Commit Graph

171 Commits

Author SHA1 Message Date
Ansgar Becker
4662ebf31e Support filename and dirname patterns in export target combobox. Fixes issue #2622. 2012-12-13 20:37:01 +00:00
Ansgar Becker
645a9f3c7f Make message strings from const.inc translatable 2012-11-29 06:15:44 +00:00
Ansgar Becker
9d8b4cd83a Make more inline strings translatable. 2012-11-28 23:27:31 +00:00
Ansgar Becker
024a1a4d5e Straighten some more translation strings 2012-11-28 05:55:05 +00:00
Ansgar Becker
80d41dcc9e Fix typos and optimize a bunch of translations. Technical stuff such as variable names and version numbers should not be subject of translations. 2012-11-27 21:26:59 +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
a6170ad769 Prefer SysUtils.IncludeTrailingPathDelimiter over home brown code 2012-11-10 14:43:35 +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
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
56e0d8b445 Implement session folders. Fixes issue #1228. 2012-07-27 06:54:56 +00:00
Ansgar Becker
98028e8344 Issue #1031: Fix non processed table nodes in table tools dialog, due to activated grouping in tree. See http://www.heidisql.com/forum.php?t=10883 2012-07-20 08:52:53 +00:00
Ansgar Becker
87ce4d99c7 Turn off any SQL_MODE locally, before running "SHOW CREATE db/table" queries, so there results do not use ansi quotes. Fixes issue #2619, finally. 2012-06-17 11:34:18 +00:00
Ansgar Becker
59e6e7710d Fix memory leak: ExportStream was recreated for each table in export loop 2012-06-17 11:31:33 +00:00
Ansgar Becker
f31867bd5c Revert r3976 (removal of SQL_MODE handling in export), and revert r3988. Use a IF(@OLD_XYZ IS NULL, 0, @OLD_XYZ) approach instead. This way we fix unwanted auto_increment values for "0", and foreign_key_checks are restored to its previous value instead of 0. Fixes issue #2870 and might also be related to issue #2619. 2012-06-17 10:43:26 +00:00
Ansgar Becker
5e8bf8306a Remove unused unit inclusions, detected by CNPack/Uses cleaner 2012-05-01 08:34:12 +00:00
Ansgar Becker
6703f20711 Move global LoadConnectionParams() to class function TDBConnection.ReadFromRegistry() 2012-03-26 18:34:33 +00:00
Ansgar Becker
2e6d39c401 Do not auto check all child nodes by checking parent node, when clicking "Check all tables". See http://www.heidisql.com/forum.php?t=10334 2012-03-24 22:01:27 +00:00
Ansgar Becker
156bd42291 Prevent exporting dummy VIEWs from having multiple DEFAULT CURRENT_TIMESTAMP clauses. Fixes issue #2748. 2012-02-28 22:36:25 +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
504aed87e6 Follow up to r4059, use Tree.CheckState[Node] also when unchecking nodes. See issue #2738. 2012-02-24 23:33:12 +00:00
Ansgar Becker
b76bd09d13 Use Tree.CheckState[Node], not Node.CheckState to fix a potential OnCheck event. Fixes issue #2738. 2012-02-24 20:14:11 +00:00
Ansgar Becker
a816787be4 Add context menu to object tree in export dialog, and add items to check all/none/bytype. See http://www.heidisql.com/forum.php?t=9844 2012-02-04 11:47:41 +00:00
Ansgar Becker
ba14143238 Export whole CREATE VIEW code, not only the VIEW body. Fixes issue #2625. 2012-02-04 06:52:21 +00:00
Ansgar Becker
5d4a33198c Do not export data from MRG_MYISAM tables. See http://www.heidisql.com/forum.php?t=9842 2012-02-02 20:05:53 +00:00
Ansgar Becker
990535228f Autofix TYPE|ENGINE clause when exporting to server. Fixes issue #2688. 2012-01-18 20:56:27 +00:00
Ansgar Becker
10c17f502d Do not store and restore old value of FOREIGN_KEY_CHECKS variable, just set it to 0 when beginning to export, and to 1 again at the end. Should prevent from running into "'foreign_key_checks' can't be set to the value of 'NULL'" error when disconnects happen within export process. Fixes issue #2500. 2011-12-17 14:33:44 +00:00
Ansgar Becker
1a15e89023 Use -- for line comments, not #, to support MS SQL also in export files. 2011-12-11 21:11:31 +00:00
Ansgar Becker
8ed065ea97 Do not modify SQL_MODE when exporting, just do that temporarily before creating triggers. Avoids running into errors when e.g. ANSI_QUOTES is turned on. Fixes issue #2619. 2011-12-04 11:11:48 +00:00
Ansgar Becker
a69041d17d Add support for Windows 7 task button progress. Unify all callers of ProgressBarStatus in a set of 5 functions in main unit instead of helpers, as this is where the progress bar is placed and also we need the handle of the main window. 2011-11-08 22:27:52 +00:00
Ansgar Becker
968efc99f3 Export VIEWs with alternative version of SELECT code. Follow up to r3941, see issue #2546. 2011-11-05 00:10:47 +00:00
Ansgar Becker
242b128885 Populate database pulldown with dbs from current connection in export window. Fixes issue #2572. 2011-11-05 00:07:23 +00:00
Ansgar Becker
783cbdbcc0 Save and restore settings in table tools dialog. Restore server selection only in export mode. Fixes issue #2520 and non-restored previous file settings. 2011-08-14 10:15:09 +00:00
Ansgar Becker
b169e57fe9 Paint green size bar in database trees 2011-07-03 21:49:26 +00:00
Ansgar Becker
133b2a265c Refactor code for Host subtabs: Remove TVTreeData structure, use TDBQueryList instead. Use same code for most grid events. 2011-07-03 08:44:20 +00:00
Ansgar Becker
3c725b3d76 Quote collation clause in all places. Fixes issue #2479. Related: issue #1852. 2011-06-27 19:44:07 +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
b53e0c466e FindDBNode cannot find the right node if db tree is refreshing and has no focused node. Pass connection parameter to FindDBNode to fix that. Effect was that after a table structure change, the db tree was broken. Fixes issue #2471. 2011-06-23 10:44:30 +00:00
Ansgar Becker
a329844e9f Use hex style in WHERE clause and column values of grid updates. Fixes issue #2183. Also, raise warning when 0 rows were affected by UPDATE, INSERT or DELETE action. 2011-05-28 21:20:19 +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
3b91279777 Introduce support for BIT fields in grids and export output. See issue #766 and http://www.heidisql.com/forum.php?t=8462 2011-05-10 05:15:59 +00:00
Ansgar Becker
64974c3118 Fix potential division by zero exception 2011-05-05 19:11:57 +00:00
Ansgar Becker
c8b25c75fa Bind session parameter object to session manager list nodes, to be able to show the right vendor icon in that list. 2011-04-17 23:21:05 +00:00
Ansgar Becker
f831bf3103 Display percent of processed objects on table tools dialog, and show progress bar. 2011-04-16 06:41:54 +00:00
Ansgar Becker
30498b99f0 Fix quoting for MS SQL mode. 2011-04-16 05:38:38 +00:00
Ansgar Becker
bec6422d34 Turn close button into cancel button for processing time, and break loop in TfrmTableTools.Execute when clicked. See http://www.heidisql.com/forum.php?t=8238 2011-04-16 05:34:05 +00:00
Ansgar Becker
2e44387eb2 Remove seconds from uptime and connected time in status bar. Should fix flickering finally. See http://www.heidisql.com/forum.php?t=7977 2011-04-06 19:59:36 +00:00
Ansgar Becker
08e4e0666a Use unified method for getting database names. 2011-04-01 05:24:37 +00:00
Ansgar Becker
4142bed111 Quote identifiers with the right quote char when exporting to server. 2011-04-01 05:20:45 +00:00
Ansgar Becker
4fbf2c23dd Introduce experimental MS SQL support 2011-03-29 23:20:21 +00:00
Ansgar Becker
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