f96288fce9
Translate string variables and literals in .pas files. TODO: translate constants.
2012-11-26 05:44:01 +00:00
90ab0b6cf1
Refactor logic for reading and writing application and session settings:
...
* Introduce TAppSettings, created in dpr file
* Implement read and write methods, and replace callers of GetRegValue and MainReg.WriteInt/... with these
* Optimize read and write methods for avoiding redundant accesses to registry
* Auto-remove stored default settings from registry to avoid registry spam
* Replace synced MainForm.pref* variables with TAppSettings.Read* calls
* Move SetLocales call to dpr file
* Move MainForm.FDirname* variables to appropriate methods in helpers.pas
* Implement TQueryHistory.Create(SessionPath), reading its items within constructor
2012-08-19 10:55:08 +00:00
5cb54b3711
Remove helper function ToggleCheckListBox, replace the few callers with simple code alternatives
2012-05-01 06:50:57 +00:00
40234cd3f4
Work around a magic automatic TAB key arriving the pulldown grid editor if the user got into this cell via TAB. Only seen for a TComboBox with style=csDropDown. Fixes issue #2809 .
2012-03-31 10:56:44 +00:00
af3f590723
Use one color pulldown for setting grid text colors, not one per data type. Use all TDBDatatypeCategory's here, so this introduces a separate color for floats and integers, which were "numeric" before.
2012-02-27 22:16:05 +00:00
cc09d87dc3
Try a blank default date/time value for grid editing. Hopefully fixes issue #2708 finally.
2012-02-15 09:24:45 +00:00
21a6381a3c
Move modified flag to the right place. Fixes issue #2709 .
2012-02-07 21:09:16 +00:00
00414d9585
Leave NULL date/time values in grid untouched if user did not modify default value. Fixes issue #2708 .
2012-02-07 00:23:12 +00:00
a83ca1c544
Follow up to r4002 and issue #2656 : Set focus to textbox only if it's already shown, to avoid "Cannot focus a hidden or disabled control".
2011-12-30 13:02:54 +00:00
d1c25d0182
Focus textbox when user clicks "Custom" in default-value selector. Fixes issue #2656 .
2011-12-26 23:21:38 +00:00
2fffb9d9b7
Silence EAccessViolations in TWinControl.WMKeyDown. Fixes issue #2439 .
2011-06-06 20:00:15 +00:00
2d548b5ef6
Introduce some wrapper functions for message and error dialogs in order to have less code and to avoid hidden titles on Windows XP. Fixes issue #2425 .
2011-05-27 04:48:21 +00:00
e3661efd58
Column type detection must not use the type index as enumerator any longer, as not all type indexes are used for all dbms. Fixes issue #2365 .
2011-03-31 19:40:38 +00:00
a6d2271988
Avoid accessing connection object if not available, to fix an access violation in session manager when pressing "new". See http://www.heidisql.com/forum.php?t=8064
2011-03-30 05:22:39 +00:00
4fbf2c23dd
Introduce experimental MS SQL support
2011-03-29 23:20:21 +00:00
49a97584e6
Code preparation for non-MySQL connections: Extract abstract stuff into a new TDBConnection class, and let TMySQLConnection derive from that. Same with TDBQuery / TMySQLQuery. See issue #1008 .
2011-03-17 23:03:54 +00:00
98300c9bd5
Make SET cell editor resizable, and store and restore its dimensions. Fixes issue #2212 .
2010-11-13 21:16:36 +00:00
e6abc640dd
Keep ignorance of DateToStr exceptions in date/time grid editor, but raise everything what can happen apart from that.
2010-10-19 21:57:46 +00:00
da114cfa32
Add support for large and negative TIME values in grid editor. Fixes issue #2203 .
2010-10-19 21:45:36 +00:00
8e17e4a999
Fix date time grid editor for YEAR data type. Fixes issue #2078 .
2010-07-20 06:29:14 +00:00
f49c871d31
Immediately call popup text editor for cells which either contain line breaks or huge text over 100k. Fixes issue #1651 .
2010-07-16 17:44:56 +00:00
c0da6e5a21
Refactor "Copy table" dialog:
...
* Replace checkboxes, radio buttons and checklistbox by a VirtualTree using checkbox support
* Support selecting/deselecting single indexes
* Support foreign keys
* Place a SynMemo at the bottom in which the user can type an optional WHERE clause to filter incoming data. Fixes issue #2000 .
* Move code for SQL generation into TTableColumn etc.
2010-06-14 00:21:33 +00:00
10ae384a81
Avoid attempt to access item index -1 of internal value list when nothing is selected in an enum editor. Fixes issue #1903 .
2010-05-10 18:37:07 +00:00
593520dc1b
Prefer server over local date/time as default value when starting grid editor on a NULL date/time. Fixes issue #1835 .
2010-05-08 17:05:38 +00:00
05b07eb8f2
Implement editing capabilities into TMySQLQuery, and make query results editable by using all the same events as in DataGrid. Most probably some bugs to fix now.
...
* Fixes issue #723
* Fixes issue #873
2010-05-05 21:39:15 +00:00
016105220c
Lower part of data type selector in table editor is hidden when exceeding lower edge of mainform. Decrease its height in such cases so that does not happen. Fixes issue #1864 .
2010-04-18 09:40:50 +00:00
b18866b252
Fix unresponsive Esc key in binary cell editor. Fixes issue #1861 .
2010-04-17 11:30:54 +00:00
b1ab76e0ba
Display first available text column value when editing InnoDB contents. Fixes issue #1849 .
2010-04-14 22:45:12 +00:00
f451d061eb
Introduce 2 new columns in Host > Databases: "Last modification" and "Events". Plus:
...
* enhance db object lists for storing additional details like last modification and data size
* remove home brown Min() and Max() functions and use those from Math unit which are not restricted to Integers.
2010-04-11 12:03:07 +00:00
5aa9b33cbd
When pressing Tab key in grids and the next column does not allow editing, just focus it, instead of jumping to the next editable cell. Fixes most situations described in issue #1677 .
2010-02-11 13:53:06 +00:00
1f39e59940
Disable non working column default values for given data type. Fixes issue #1519 .
2010-01-17 16:12:35 +00:00
5890aad90f
Do not pass <Enter> key to parent grid, if radio button or checkbox on default editor is currently focused. Fixes issue #1605 .
2010-01-17 13:31:49 +00:00
0d8653db6a
Override VirtualTree's incremental search event, make it case insensitive, and apply that event in FixVT to various lists and grids, which have IncrementalSearch enabled. Fixes issue #1605 .
2010-01-17 10:50:47 +00:00
9080ad7607
No need to use the Wide* version of string functions any longer.
2010-01-15 20:28:48 +00:00
52ea8f410a
Use Unicode enabled TStringList instead of TWideStringList in all places. Should have no visible effect, apart from a very minor performance optimization, as String reference pointers are handled by Delphi, WideString by Windows.
2010-01-14 19:41:58 +00:00
a4652d39a4
* Fix compiler warnings due to implicit AnsiString to (Unicode)String or vice versa
...
* Remove workaround for Unicode text to and from clipboard
* Fix writing/reading wrong encoded text into/from registry - no need to use Utf8Encode() any longer
* Implement TMySQLQuery.ColAsAnsi() for cases in which we read binary data.
2010-01-07 00:00:56 +00:00
7d401ffde8
Upgrade to Delphi 2010:
...
* Removes TNT Unicode controls, which are no longer required. All VCL controls now have native Unicode support.
* Remove Delphi 11 packages, otherwise we would either need to keep TNT or break Unicode
* PngComponents update from Uwe Raabe on http://cc.embarcadero.com/Item/26127
* Adjust auto build process
* Since Delphi 2009, Strings are now UnicodeStrings, not AnsiStrings any longer. Fix a bunch of compiler errors which came along with this change.
TODO: Project should compile but give tons of compiler warnings.
2010-01-05 23:14:33 +00:00
e356cb7ed7
Sanitize all "uses" clauses from unneeded unit references.
2009-12-22 23:19:56 +00:00
6ebdea449b
Browse to previous cell when pressing Shift+Tab in editing mode. No need to post messages for this logic. Fixes issue #1407 .
2009-12-21 20:05:32 +00:00
43fe695bc1
Make SHOW KEYS FROM <selected-table> and SHOW COLUMNS FROM <selected-table> superfluous. To achieve that, move parser for SHOW CREATE TABLE string from table editor to helpers unit, where it can be called by everyone. For consistency reasons the index list in table editor is converted from a TWideStringList to a TObjectList, like both table and foreign key list. However, that results in a large diff here.
2009-12-04 21:20:06 +00:00
2a57b0e1a7
Reserve slightly more needed space for a checkbox so its label "ON UPDATE CURRENT TIMESTAMP" is fully visible. Fixes issue #1334 .
2009-08-31 19:59:00 +00:00
9e731a78e1
Allow columns to have no default value at all. Important for TEXTs and BLOBs which cannot have one. Fixes issue #1261 .
2009-08-30 18:31:31 +00:00
8cfb99e0c6
Avoid a second round trip via EndEdit() and Destroy() after the editor was unfocused. Lead to an access violation in the second Destroy() call. Fixes issue #1304 .
2009-08-23 18:23:39 +00:00
4d7a301b78
TInplaceEditorLink.EndEdit() was called twice, first time via OnKeyDown event, second time implicitly by OnExit event. So the session was renamed, then again tried to renamed which caused the error "Session already exists". Fixes issue #1303 .
2009-08-18 18:49:59 +00:00
6517a04eff
Implement creation and editing of foreign key constraints in a separate new tab on the table editor. Fixes issue #400 .
2009-08-16 20:32:37 +00:00
74b36d8524
Do not overwrite FCellFont after adjusting its color. Fixes issue #1295
2009-08-15 18:17:49 +00:00
2cd3e99596
Placing a grid editor needs to leave space for various stuff left besides the edited text, e.g. the plus/minus button, an image and level indentation. Fixes issue #1293 .
...
A similar calculation is done in TBaseVirtualTree.GetDisplayRect(), only with lots of more logic. So this change may not be the last in TBaseGridEditorLink.GetCellRect().
2009-08-15 13:39:04 +00:00
2e7022a945
Bold font for primary key columns in table editor. Icons for all key columns, similar to earlier versions of ListColumns on mainform. Feels very useful for a quick look when the index editor is mostly not active.
2009-07-29 20:50:41 +00:00
b0595a7cd7
White background for column default editor - fits better into grid editing stuff as the tree also has white background. Forms with gray background appear like a foreign object here.
2009-07-27 22:33:25 +00:00
00cbfa7a08
Apply correct background color to grideditors (inplace + datetime), for cases where columns are sorted and have a gray background.
2009-07-26 08:45:21 +00:00