Ansgar Becker
88eb857346
Add preference option and logic for alternating grid row background colors. Fixes issue #2820 .
2013-06-17 18:01:33 +00:00
Ansgar Becker
9e7adec692
Distinct between traditional and simplified Chinese, add zh_TW translated by jeff.tu.
2013-03-09 07:01:33 +00:00
Ansgar Becker
981b746752
Rename local variable to what it stands for.
2013-03-03 17:04:12 +00:00
Ansgar Becker
6fa32dc9fc
Make usage of query history optionally. Fixes issue #3122 .
2013-02-26 20:24:33 +00:00
Ansgar Becker
e1c4f14dbc
Make foreign values drop down optionally. See http://www.heidisql.com/forum.php?t=11816
2013-02-04 18:30:35 +00:00
Ansgar Becker
d630989541
Ensure row count step + maximum settings are never "0". Fixes issue #3080 .
2013-01-12 18:11:14 +00:00
Ansgar Becker
9629739901
TSynHighlighterAttributes.FriendlyName is used in registry value names, but .FriendlyName seems to get translated by gnugettext, so we have one registry value per language in registry! Fix that by using .Name instead of .FriendlyName, which unfortunately breaks customized styles from users now.
2012-12-04 20:46:21 +00:00
Ansgar Becker
5a3b09bfd0
Display language names, not their short codes, in language selector. See issue #3016 , comment #39 .
2012-12-02 11:09:36 +00:00
Ansgar Becker
f96288fce9
Translate string variables and literals in .pas files. TODO: translate constants.
2012-11-26 05:44:01 +00:00
Ansgar Becker
5958d7102b
Fix broken "Auto detect" setting in language selector.
2012-11-14 21:13:56 +00:00
Ansgar Becker
585b88cd8b
Add manual language selector in preferences dialog. See issue #557 .
2012-11-14 20:54:02 +00:00
Ansgar Becker
ca1d94c87b
Issue #557 : Include gnugettext.pas from https://dxgettext.svn.sourceforge.net/svnroot/dxgettext/trunk/dxgettext/sample/ . And add basic code to all FormCreate events to translate their components in the future.
2012-11-10 14:28:44 +00:00
Ansgar Becker
491a6298d1
Introduce property LogToFile in TMainForm, which is synced with the registry setting asLogToFile. Fixes issue #2936 .
2012-08-23 23:16:36 +00:00
Ansgar Becker
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
Ansgar Becker
0d0fad6745
SelectNode triggers a potentially set OnFocusChanged event, benefit from that logic in some places where I used to assign Focusnode := xyz.
2012-03-13 22:21:53 +00:00
Ansgar Becker
1a13a011c2
Reintroduce option "Remember filters" on Preferences > Data, as a replacement for the delete buttons besides the recent filters dropdown. Reverts r3463 and fixes issue #2776 .
2012-03-13 22:11:11 +00:00
Ansgar Becker
de0048d419
Issue #2728 :
...
* Support Unix paths to MySQL binaries.
* Auto-add the right directory separator at the end of the path setting
2012-03-02 21:03:52 +00:00
Ansgar Becker
3370a6a4da
Add menu item for launching mysql.exe command line with current parameters. Fixes issue #2728 .
2012-02-28 23:34:58 +00:00
Ansgar Becker
cedf5d888e
Introduce new preference option "Prefill empty date/time fields". Fixes issue #2708 .
2012-02-27 22:36:48 +00:00
Ansgar Becker
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
Ansgar Becker
d07cfcb7c6
Provide option "tabs to spaces" in preferences dialog. For space reasons, move highlighter options to new tab "Highlighter". Also, unify padding on tab sheets, and move "Ask for saving files" option to "SQL" tab.
2011-11-10 23:27:02 +00:00
Ansgar Becker
bdc7c0c245
Sort font names alphabetically in SQL font selector. Fixes issue #2569 .
2011-10-08 16:45:50 +00:00
Ansgar Becker
e96fa77cbd
Do not cache dialog instances any longer. OnCreate code is mostly very quick, and caching them adds quite some pitfalls into the code. Not to mention 30 lines less code in main.pas now :)
2011-06-26 20:01:42 +00:00
Ansgar Becker
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
Ansgar Becker
478c0306c7
Use modern TaskMessageDlg as a replacement for MessageDlg where appropriate.
2011-05-26 06:08:19 +00:00
Ansgar Becker
3c11e6c5a8
Introduce a separate dialog for all "copy grid data as .." actions, including the file export. Fixes issue #1499 .
2011-04-28 07:33:49 +00:00
Ansgar Becker
3272430c40
Code cosmetic: Merge the few lines from TrimSQLlog into LogSQL
2011-04-19 22:09:16 +00:00
Ansgar Becker
4fbf2c23dd
Introduce experimental MS SQL support
2011-03-29 23:20:21 +00:00
Ansgar Becker
243a553d9d
Make prompt to save modified SQL text customizable. See http://www.heidisql.com/forum.php?t=6373
2010-09-19 18:52:22 +00:00
Ansgar Becker
84c638f0de
Prefer VCL function StripHotkey() over StringReplace
2010-05-30 23:19:23 +00:00
Ansgar Becker
9984bf0236
Issue #1135 : Implement tabs for multiple batch results in a query tab. Does not yet show multi results of stored procedures. Maximum number of tabs is customizable in Preferences > Data.
2010-05-26 23:11:08 +00:00
Ansgar Becker
2cda425c39
Make SQL completion proposal optional. Fixes issue #1782 .
2010-04-11 22:23:58 +00:00
Ansgar Becker
3ed8c5bd91
Make session log directory configurable. Fixes issue #494 .
2010-03-16 00:18:44 +00:00
Ansgar Becker
f7ee77561b
Display colored bar for table size and row count columns in ListTables, and for process time column in ListProcesses. Also, extend the preferences dialog so this color can be customized and/or disabled.
2010-03-09 23:30:44 +00:00
Ansgar Becker
b8fd48a6cb
After setting grids to multi line mode their vertical scrollbar was not updated. Fix that. Additionally, let FixVT() do what's required instead of doing that in OnInitNode respectively the "Apply" action on the preferences dialog.
2010-03-03 23:46:01 +00:00
Ansgar Becker
c426bc5e16
Enable variable node height in data and query grids. Customizable as number of lines per row. Fixes issue #1082 .
2010-03-02 23:11:48 +00:00
Ansgar Becker
458b4c3acf
Introduce a more simple strategy in data tab grid for loading data:
...
* Load in OnBeforePaint, if the tree's tag is set to NOTLOADED
* Load 1,000 rows in one step, up to a maximum of 100,000 rows. Both values are customizable.
* Load next chunk when user presses PageDown on the last node, or, more explicitly, when user clicks "Next rows" button
* Should fix all AVs which seem to be a timing issue with loading data on demand.
* Fixes issue #1675 , fixes issue #1580 , fixes issue #1721 , fixes issue #1734 , fixes issue #972
2010-03-01 16:44:36 +00:00
Ansgar Becker
e045cb3d76
Delphi 2010 has PNG + alpha channel support in TImageList, so we don't need PNGcomponents any longer.
2010-02-08 00:36:17 +00:00
Ansgar Becker
95e12a0bd1
Introduce new log category lcUserFiredSQL, and make log level customizable via preferences. Fixes issue #1652 .
2010-02-04 00:39:29 +00:00
Ansgar Becker
5d7b25d7e9
Add preference option to restrict number of application instances to 1. If the executable is open and called a second time, it's brought to foreground. Plus, if a filename was passed, a new tab is opened. Should fix a part of what is described in issue #1332 .
2010-01-24 00:14:23 +00:00
Ansgar Becker
4d47af1e9e
Code cosmetic:
...
* Sanitize main unit from unused variables
* Move global variables to public scope
* Bring public vars into some reasonable order
* Move constants to const.inc, unless dependent from some used VCL unit
2010-01-10 17:11:42 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
0e29eda7ac
Add preference option to use locale number format for CSV+XML+HTML exports. Mainly to work around an Excel bug, which expects float values to be formatted with locale decimal separator when pasting. Fixes issue #1459 .
2009-12-08 09:14:42 +00:00
Ansgar Becker
0c83491ed5
Implement preference option to adjust tab width in SynMemos. Fixes issue #857 .
2009-11-24 19:34:48 +00:00
Ansgar Becker
445c1adefd
A THotKey is not able to hold "Tab" or "Shift+Tab" as shortcuts. Use TSynHotKey's instead in preferences dialog which doesn't have this limitation.
2009-09-24 18:52:35 +00:00
Ansgar Becker
ddbb3a8880
TAction shortcuts have to be set manually for the current session.
2009-09-21 23:23:12 +00:00
Ansgar Becker
c6be8dd575
Implement customizing of shortcuts for all available TActions and SynEditor commands. Fixes issue #536 .
2009-09-21 23:12:21 +00:00
Ansgar Becker
d09f1380a1
Refactor query tabs code:
...
* Collect all relevant controls of one query tab and its variables in a new object
* Collect these tab objects into a TObjectList
* Fixes mixed up QueryMemoLineBreakStyle variable - was used for all tabs, now part of the above mentioned object
* Same goes for minor remembering of selected tab on queryhelpers list
* Use filenames on tabs if saved or loaded.
* On tab close ask if content should be saved.
2009-08-19 23:47:59 +00:00
Ansgar Becker
7e9fcc6586
Implement multiple query tabs. Fixes issue #443 .
2009-08-03 23:16:16 +00:00