f1b3f5501f
Remove last traces of MDI (issue #513 ). Merges code, controls and events from childwin into main.
2009-01-01 23:24:36 +00:00
1a2478643c
Fix inconsistent window and button captions (bug #864 )
2008-11-23 11:37:52 +00:00
7f69da2051
Do not recycle field editor form, fixes bug #870 :AV on "Edit column" after reconnection
2008-11-23 11:19:53 +00:00
7c6a70232a
Fix bug #799 default value '' of a field changed to '''' when field name changed
2008-10-13 22:05:59 +00:00
c3d7ff9f5b
Update nomenclature.
2008-10-10 01:04:16 +00:00
bee0edfabe
Fix bug #332 "index manager: column names unreadable" by making the form resizable, including fixes for the side by side listboxes.
2008-10-09 22:50:45 +00:00
4c96e40cca
Fix redundant "SHOW KEYS FROM xyz" when calling the field editor. Was duplicated since r1843. Now the field editor benefits in two places from Childwin.FSelectedTableKeys
2008-10-08 20:36:46 +00:00
da87f658fb
Fix bug #784 Cant add field without default value
2008-10-08 20:29:59 +00:00
55b449a359
Fix bug #779 imposible to add autoincrement column. Removes an older workaround for the same issue which just disabled the autoinc checkbox for new fields. Now, it is possible to set the autoinc attribute for both edit and add mode, including a confirmation dialog which asks for allowance to remove any existing primary key.
2008-10-08 20:17:27 +00:00
b2f2fd20b8
Follow up to r1830: Use FillAvailColumns in all places where that's applicable.
2008-10-01 05:51:04 +00:00
7007094204
Fix bug #771 : Index editor - available columns in bad order after dropping one or more of the used columns
2008-09-30 18:27:06 +00:00
47e5888547
Fix bug #759 : wrong context-sensitive help
2008-09-26 17:01:32 +00:00
b9724a5aaf
Fulfill rfe #750 : Field editor - allow non quoted literals for default value
2008-09-17 20:25:00 +00:00
c15f1ce7a5
Vista, Field editor: Work around for higher DPI settings no longer needed using the Segeo font. Instead, fix the pulldown's ItemHeight in that case which per default only fits for 96 DPI.
2008-09-02 18:22:18 +00:00
9a52593dc2
Use Vista's Segeo font for all forms by using the SetVistaFonts() in mainform plus the new routine InheritFont() which simply overtakes fontname and size from the mainform to all other forms.
2008-08-29 18:20:14 +00:00
e2b67b5831
Cosmetic: Replace old style SQL wait mouse cursor with system default wait cursor. Especially prettier when running Vista.
2008-08-26 08:36:06 +00:00
223b9713c3
Fix bug #688 "add field -> AutoIncrement checked and disabled"
2008-08-26 04:40:54 +00:00
6daf4b3f76
Fix most remaining Unicode unsafe GUI controls.
2008-08-25 20:24:00 +00:00
dedc3d92b1
Fix fieldeditor and neighbours for Unicode table- and columnnames
2008-08-19 22:48:05 +00:00
f2ed48bf2d
Fix bug #679 and friends: Database name has a new line attached to it.
...
Broken in r1635. TWideStrings.Append doesn't explode its text parameter to multiple items, it's meant to append one single item.
2008-08-19 18:55:30 +00:00
4adf27a845
Fix bug #678 . Changes FSelectedTableColumns and FSelectedTableKeys to be properties, fetched on demand, set to nil to signalize they're invalid after renaming or deleting a column.
2008-08-13 21:31:15 +00:00
aabd4bbf57
Add some more support for databases and tables with unicode characters.
2008-08-08 19:32:24 +00:00
df37fb8be0
Terminology and similar updates (followup).
2008-08-08 08:22:42 +00:00
071e68c598
* Bugfix: column type dropdown was rendered incorrectly with non-default font dpi configurations. Fixes issue #615 .
...
* Commented code that shows how to get current DPI. Feel free to delete.
2008-08-07 23:55:13 +00:00
bfbf1ee2f1
Terminology update: a table consists of columns vs rows, and the intersection of a row and a column is called a field.
...
(Except for Delphi's TField and MySql's FIELD, obviously, which are harder to fix.)
2008-08-07 18:56:06 +00:00
ffc58c022b
Revert broken r1561. Worse than before - more AVs, even when pressing a speedbutton which has loaded its icon correctly. Weird.
2008-07-02 22:33:05 +00:00
94822c33fa
Fix one critical AV, part of bug #580 . Loading a PNGImage from a TPNGImagelist onto a TSpeedbuttons seems buggy. Instead, assign icons at designtime. Ugly fix as we now have redundant icons, anyway, we should look after not using TPNGSpeedbutton in too many places.
2008-07-02 22:21:04 +00:00
5b0bb48d0a
Convert the myriad of redundant menuitems and buttons on the main controlbar + important toolbars in the tabsheets to use TActions. This moves
...
a) some hundred lines of code from childwin.pas to main.pas
b) redundant hints/captions/shortcuts/events for similar buttons/menuitems to their corresponding TAction in main.dfm .
This change
a) avoids several inconsistent captions like described in issue #595
b) makes it easier to have toolbars on the mainform which are controlled by childform.
2008-07-01 18:59:07 +00:00
9e70c359ed
Bugfix: Make it possible to use empty string ('') as a default value for columns. Fixes issue #326 .
2008-06-24 11:25:58 +00:00
1b2fd65ed2
Fix a weird rendering issue on Windows Vista.
2008-06-24 10:56:33 +00:00
f64626f152
Bugfix: fix regression; up-key and mousewheel-up were broken in r1512 for the data type dropdown.
2008-06-24 09:22:53 +00:00
cf7859a131
Now with even more effort to use the right names amongst a myriad of ill-explained and logically incoherent bundles of random color enumeration.
2008-06-23 18:06:54 +00:00
167f7529ad
Use some other enumerations for colors.
2008-06-23 17:58:03 +00:00
eb94d80223
* Add definition of column type 'groups' to mysql_structures.
...
* Enhance the TComboBox used in fieldeditor to support option groups via owner drawing.
* Add some ridiculously dumb functions to translate between the dropdown's index and (non-group) item index.
* Accomplishes rfe #577 .
2008-06-23 15:39:36 +00:00
e5e837aa2e
Fix bug #571 "New column at end of table"
2008-06-21 10:39:32 +00:00
264693f6b2
Implement making a column the last one in a table and fix issue #564 . There is no LAST command for ALTER TABLE CHANGE col, such as there is FIRST, so it has to be done more manually by generating an "AFTER [lastcol which is not the col to be edited]"
2008-06-20 18:02:42 +00:00
1410658712
Fix refresh of ListColumns after closing index manager.
2008-03-28 16:04:08 +00:00
e53db0a9b7
PngIcons:
...
- Ban glyph data of all TSpeedButton's + TBitBtn's out of dfm files by converting them to TPngSpeedButtons and assign an image from PngImageListMain at runtime.
- Add "highlight" versions of "database" and "table" icons and use these on selected DBtree nodes.
- Remove no longer used BMP icons
Todo: Fill PngImageListMain at runtime.
Note 1: TBitBtn's are not Windows-theme-aware, even with a manifest in place, so we should avoid using them anywhere.
Note 2: T(Png)SpeedButton lacks a TabOrder property, so some of the other TabOrder's are automatically changed here.
2008-03-09 19:56:52 +00:00
815eea1481
Rename childwin's "Description" property to "SessionName" which says more exactly what it really is.
2008-03-05 12:21:25 +00:00
c51ea356a1
Fix bug #1841478 "Access violation when add indexes" by keeping the instance of TFieldEditForm in memory after using it instead of recreating it each time the window is shown. The AV seems to be caused by FreeAndNil(f) but that's not reproducable when you start the exe within Delphi. However, the AV is gone now.
...
Related changes:
+ Use modal result values on buttons instead of explicitely setting them via code
+ Move some safe code out of a try .. except because only THandledSQLError's are catched.
2008-01-17 23:26:19 +00:00
e7bcbdf293
* Bugfix: plug the most obvious memory leaks.
...
* Clear some unused code and wrong comments.
2007-11-09 09:51:31 +00:00
d3529fd37d
Fix bug #1820595 "Access violation in manage indexes"
2007-10-28 12:39:04 +00:00
22f5af0f8b
Fix bug #1820597 "Can't delete the last index of a table"
2007-10-28 12:25:31 +00:00
9b90e38572
Fix bug #1685799 "interface allows selecting zerofill without unsigned"
2007-10-28 12:01:34 +00:00
f085be1ca8
Rename mysql.pas and it's helper file installer_function_list_generator.php so their purpose is more clearer to newbies.
2007-10-23 18:49:14 +00:00
17f9730b76
Fix bugs
...
#1814411 "Incorrect SQL when changing structure on a field"
#1814293 "Incorrect SQL when changing structure on a FLOAT field"
2007-10-16 19:34:25 +00:00
0d0c0ddbef
Fix bug #1813760 "TIMESTAMP fields with NULL".
...
Side effect: Explicitely set "Can be NULL" option if "Not Null" is unchecked
2007-10-16 19:04:59 +00:00
f3e98a9f5b
Fix bug #1810117 Updating timestamp fields with default value "CURRENT_TIMESTAMP"
2007-10-12 19:16:04 +00:00
a027d51276
Fix logic in TFieldEditForm.OkClick which lead to closing the fieldeditor with ModalResult=mrCancel after SQL errors, although AddUpdateField() sets mrNone.
2007-10-12 18:51:07 +00:00
b16a5184a9
Do not suppress SQL errors in case the field editor generated erroneous SQL.
2007-10-12 18:44:10 +00:00