48 Commits

Author SHA1 Message Date
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
88c23b9705 Fix enabled-status of "Move column from or to index" buttons. 2007-09-28 21:39:29 +00:00
9409c798ab Remove ActualDatabase and ActualTable variables, plus various minor optimizations that ensued from said change. Fixes a problem where when:
- viewing data in a table
 - switching to query tab
 - pressing master refresh
some of the tabs would disappear.
2007-09-11 15:58:47 +00:00
970d267a23 Implement feature wish #1779324 : Support for field COMMENT in ListColumns and field editor. 2007-09-06 14:39:11 +00:00
16c0ac36b3 MySQL 4.0.1 and above allow moving a columns position within an ALTER TABLE statement. Use that to overcome various risks of the manual mechanism for older servers. 2007-09-03 09:38:20 +00:00
3f0b70c409 Switch ListColumns from TSortListView to TVirtualStringTree
Additionally/Sideeffects:
- Fix vstFreeNode to delete the item from the array, not only free the item itself
- Change/Rename GetSelectedNodesFromVT to GetVTCaptions and give it the ability to return all captions, not only the selected. This function is very useful now and saves writing much redundant code.

A table with 500 columns needed 3 seconds to display in the TSortListView, now that takes less than a half second.
2007-08-27 00:01:53 +00:00
618d34ec3d Convert ComboboxKeys on the index-editor from a standard TCombobox to a TComboboxEx. Avoids/removes hackish code for drawing icons on items.
Also create some imageindexes constants to const.inc where they will be useful for other units.
2007-08-02 22:26:02 +00:00
d96cf89849 Remove unused form-variable. 2007-08-02 21:29:14 +00:00
74f056b708 Optimize updating indexes: Do the ALTER TABLE query in one go, not in one per changed or new index. So the server only has to rebuild the index file once. Especially changes on big tables with big fulltext indexes benefit from this optimization.
Also ensure the window stays open if any SQL error occurs on applying changes to the indexes, so the user doesn't has to check all changes again in that case, just fix the incorrect option and click OK again.
2007-08-02 21:22:45 +00:00
6a4a5cc1ad Followup to rev 770: Fix declaration of TButton and TabOrder property automatically added by IDE. 2007-07-28 06:50:48 +00:00
3c8f123a81 Move *.pas, *.dfm and *.inc files from root directory to a new "source" subdirectory. Leaving just the readme in the root to give all newbies a very clear and unique starting point. 2007-06-28 20:00:04 +00:00