425 Commits

Author SHA1 Message Date
342f1b37d7 Fix setting for name of selected database, which must be a session setting, not a global one. See http://www.heidisql.com/forum.php?t=12101 2013-02-13 07:51:53 +00:00
e1c4f14dbc Make foreign values drop down optionally. See http://www.heidisql.com/forum.php?t=11816 2013-02-04 18:30:35 +00:00
88b3666bf1 Support search/replace in data and result grids. Fixes issue #2979. 2013-01-15 20:46:41 +00:00
4fd920906c Introduce "KeepAskingSetting" parameter to MessageDialog(), which activates a verification checkbox left besides the dialog buttons. Use that when confirming to close a query tab, so the user can disable the dialog within the dialog itself, without the need to disable this setting in Preferences > SQL. Fixes issue #3065, which was broken since r4283. 2012-12-31 11:03:16 +00:00
551864a06c Ensure we do not send an empty query, if a single query is larger than the max_allowed_packet setting. This way, we most probably get disconnected anyway, but that clearly leaves responsibility to the user to make the query smaller. 2012-12-31 10:33:32 +00:00
65d7e2ffab Read and write snippet files in a subdirectory of the application directory when in portable mode. Fixes issue #2980. 2012-12-31 10:30:33 +00:00
39b69226e1 Group tree options in popup submenu, and introduce new option "Auto expand on click". Fixes issue #3061. 2012-12-26 08:14:10 +00:00
eb1500efcf Turn asSessionFolder into a session setting, so it gets stored in a session, not as a global setting. Likely fixes issue #2956. 2012-12-09 10:36:29 +00:00
fcc6ffee5b Follow up to r4266, issue #3051: Fix selection of the right routine type, based on the itemindex, not the combo box text. 2012-12-09 09:42:19 +00:00
a77a55da18 Optimize TAppSettings.SetSessionPath to only fire PrepareRegistry if required. 2012-12-04 20:40:44 +00:00
cea47f7087 Decide to store settings value even when it's equal to the default value we hold in TAppSetting.Default[Int|String|Bool]. This is important when AppSettings.Read() gets a default value passed, e.g. SynSQLSyn1.Attribute[i].IntegerStyle. Fixes issue #3032. 2012-12-04 20:35:51 +00:00
68b1c957f1 Translate error message footer hint 2012-12-03 18:27:59 +00:00
ce263681d9 Even if user runs Vista or above, he may have deactivated themes. Check that before assuming TTaskDialog to be available. Fixes issue #3043. 2012-12-02 08:59:58 +00:00
cc8b0bc202 Support hyperlinks in MessageDialogs, and add a footer with a Google search link to error dialogs. 2012-11-30 13:27:57 +00:00
911402d830 Introduce translatable message/error/confirmation dialogs. 2012-11-29 22:45:51 +00:00
645a9f3c7f Make message strings from const.inc translatable 2012-11-29 06:15:44 +00:00
9d8b4cd83a Make more inline strings translatable. 2012-11-28 23:27:31 +00:00
f96288fce9 Translate string variables and literals in .pas files. TODO: translate constants. 2012-11-26 05:44:01 +00:00
caaaaedc11 Workaround to avoid exceptions in FindNode() when an Int64 from TDBQuery.RecNo comes in and gets compared to the Cardinal typed VTree.Node.Index. 2012-11-21 05:10:25 +00:00
b6a18114f4 Fix access violation when using ASCIIencoding, by turning it from a SingleTon into a new instance each time we call GetEncodingByName. Probably introduces a memory leak. The encoding object is freed when using in a TStringStream context which is freed after usage. See exportgrid unit. 2012-11-17 08:48:21 +00:00
783a9d146e Issue #557: Override automatic language detection via registry setting "Language". 2012-11-13 22:06:07 +00:00
6b04fc0493 Prefer codepage 437 over TEncoding.ASCII. See PM from Markus Gnam. 2012-11-07 19:07:47 +00:00
583a8350b8 Install Ararat Synapse library (r169 from trunk), as a preparation for HTTP tunnel implementation. See issue #1405. 2012-10-21 12:17:43 +00:00
4151f0d82a Text import: Uncheck critical "Truncate table" checkbox, to avoid accidental data removal. See http://www.heidisql.com/forum.php?t=11260 2012-09-30 12:20:19 +00:00
8b51f19ed0 Fix AV when displaying data of a table which has 0 rows. Mainly caused by range differences of VT.RootNodeCount (Cardinal) and TDBQuery.RecordCount (Int64). 2012-09-30 12:07:52 +00:00
fea0e8e194 Code cosmetic in initialization code:
* Move TMainForm.ParseCommandLineParameters to helpers:ParseCommandLine
* Modify ParseCommandLine to work without private statics FCmdlineFilenames and FCmdlineConnectionParams
* Move code from helpers:setLocales to dpr file
* Rename TMainForm.Startup to TMainForm.AfterFormCreate
* Destroy AppSettings explicitly in single instance mode
2012-09-16 16:55:53 +00:00
2963bff020 Turn asRecentFilter into a session setting and define its value so it can handle the FormatName parameter. See http://www.heidisql.com/forum.php?t=11096 2012-09-02 08:46:30 +00:00
4eb450ce69 Fix confusion in save-as-dialog. Fixes issue #2921. 2012-08-31 13:51:13 +00:00
694a99f13a Tweak grid export dialog with some minor enhancements:
- Auto select ANSI encoding for Excel output, see http://en.wikipedia.org/wiki/Comma-separated_values#Application_support
- Auto modify file extension when selecting format
- Support "Include query" checkbox in XML format, see http://www.heidisql.com/forum.php?t=10853#p11082
- Imitate mysqldump's XML style, see http://dev.mysql.com/doc/refman/5.5/en/mysqldump.html#option_mysqldump_xml
2012-08-31 09:54:01 +00:00
8d73413de8 Fix and enhance handling of multiple statements and multiple results:
* TMySQLConnection.Query did not process further results if the first one is a non-result. Instead, it disconnected you as the required mysql_store_result() was never called. Fixed now. Should fix the error described here: http://www.heidisql.com/forum.php?t=11049
* Cache result of SHOW VARIABLES, and introduce a MaxAllowedPacket function, which benefits from that cache
* Do not limit the number of statements in "batch in one go" mode, only limit its size. This is to minimize the number of sent packets for a huge numbers of very small queries.
2012-08-27 22:56:12 +00:00
9de0a2fc0f Add "Include query" checkbox option onto grid export dialog. See http://www.heidisql.com/forum.php?t=10853 2012-08-26 12:47:05 +00:00
2ffedb7721 Add "Include auto increment column" checkbox option onto grid export dialog. Fixes issue #2864. 2012-08-25 13:38:04 +00:00
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
675530ca74 TAppSettings.ValueExists respects SessionPath, which is not used in GetSessionNames, so prefer FRegistry.ValueExists here. See http://www.heidisql.com/forum.php?t=11020 2012-08-21 20:51:43 +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
525b0b4edc Code maintenance: Remove unused control tags, turn check menu items into TAction's, and refactor some code parts. 2012-08-02 22:15:35 +00:00
56e0d8b445 Implement session folders. Fixes issue #1228. 2012-07-27 06:54:56 +00:00
3ead3f8ef6 Fix broken loop variable in batch SQL counting. Fixes issue #2860 2012-05-31 16:56:29 +00:00
548eb4003f Catch EInvalidOp exceptions from calls to Trunc(), caused by unsigned Int64 values in string parameters of MakeInt(). 2012-05-20 12:25:44 +00:00
2ef9f4e288 Implement server variable mapping table, and extend the variable editor to explicitly modify strings, numbers, booleans or enumerations, as described on http://dev.mysql.com/doc/refman/5.6/en/dynamic-system-variables.html . Fixes issue #2614. 2012-05-20 08:34:13 +00:00
0f4ec0b3e9 Fix wrong spelled character sets in HTML files, exported from grids. Fixes issue #2825 2012-05-19 10:25:04 +00:00
30474de294 Encode more unsafe characters in urls 2012-05-01 12:10:17 +00:00
62c0396165 Separate version from app name using slash instead of space, which seems most commonly 2012-05-01 09:00:27 +00:00
e8b6de3b6f Include operating system in user agent 2012-05-01 08:56:36 +00:00
5e8bf8306a Remove unused unit inclusions, detected by CNPack/Uses cleaner 2012-05-01 08:34:12 +00:00
5cb54b3711 Remove helper function ToggleCheckListBox, replace the few callers with simple code alternatives 2012-05-01 06:50:57 +00:00
3e2d4371a3 Implement home brown "THttpDownload" class, making use of the Internet_* methods from WinINet unit. Replaces "TDownloadUrl2" class. Fixes single char in user agent. 2012-04-29 06:37:24 +00:00
a7af9a9a2c No use for procedure debug() any longer. 2012-04-09 17:44:17 +00:00
6ef3d17042 Use home brown file format for exporting and importing registry settings, as used for portable_settings.txt. Registry dumps cannot be imported into a separate registry key for a portable instance, which is hereby fixed, see http://www.heidisql.com/forum.php?t=10503 . 2012-04-09 17:40:12 +00:00
108b07be50 Remove unused variable and fix a string list memory leak 2012-03-26 18:44:57 +00:00