Commit Graph

577 Commits

Author SHA1 Message Date
Ansgar Becker
be80dc2de2 - Create Delphi 11 package for PngComponents (D10 to come)
- Replace Thany.inc by using compilers.inc
- Set correct output and search directories
2008-03-01 00:24:10 +00:00
Ansgar Becker
45bc241c26 Adjust PngComponents files to match standard directory names.
TODO: Create seperate packages for D10 + D11 - not doable by this commit after having renamed the packages directory and its files.
2008-02-29 23:38:58 +00:00
Ansgar Becker
7b4ce12864 New component: PngComponents by Martijn Saly, downloaded from http://www.thany.org/article/18/VCL and committed as is.
License:
Redistributable in unmodified form. Statement from the author on the above website: "Do with them what you want. Improve them, republish them, as long as my legacy can live on"
2008-02-29 23:28:50 +00:00
Ansgar Becker
c81dd21d69 Enhancement for all VirtualTrees: Remember previously selected nodes and restore them after any refresh. Using existing helpers:GetVTCaptions plus new helpers:SetVTSelection 2008-02-29 23:07:47 +00:00
Ansgar Becker
8679b371e3 New feature: Introduce a dialog for editing a server variable which is called on ListVariables (DblClick or Enter). 2008-02-29 22:32:53 +00:00
Ansgar Becker
7e4bfafbe1 Fix access violation in Database tab when at least one view exists: TField.AsFloat on a NULL value throws this AV. User report can be found here: http://www.heidisql.com/forum/viewtopic.php?p=1812 2008-02-27 20:17:04 +00:00
Ansgar Becker
2f30ee2e68 Simplify updatecheck: Make unit updatedownload superflous by moving relevant code to updatecheck.pas. Resign from displaying a progressbar for the mostly short download time, instead use the existing status label for a textual progress information. 2008-02-27 19:31:58 +00:00
Ansgar Becker
d6d8f88417 Move unused stuff from rev 1209 and 1210 out of the release relevant files, to a place where they can be reactivated if required sometime in the future. The .res file can be restored by calling /extra/updater/makeresource.cmd . 2008-02-23 22:29:41 +00:00
Ansgar Becker
befebb7fe7 Build-Installer: Replace batch code by a Visual Basic Script which is capable of doing loops and reasonable error handling. Gets executed by the Windows Script Host after the new build has been downloaded.
Todo: The download process itself should also be done in this VB script. That would make the unit "updatedownload" superflous.
2008-02-23 21:22:09 +00:00
Ansgar Becker
0414f44756 As discussed, move JHeidi distribution files out of the repository, to heidisql.com/jheidi/files/ 2008-02-23 08:36:28 +00:00
Ansgar Becker
9f23a9b313 Updatecheck: Find a batchfile-solution to replace the running exe with a downloaded build.
TODO: find some sleep command for the batch file, as we sometimes get "access denied" while trying to overwrite the just terminated exe. Seems like taskkill doesn't close all handles itself.
2008-02-23 00:54:02 +00:00
servertude
700ac08264 title bar text change 2008-02-22 05:20:00 +00:00
servertude
e26dea872d remove swearing in comment 2008-02-22 04:41:25 +00:00
servertude
d09d564957 initial upload 2008-02-22 04:38:32 +00:00
servertude
252eeee997 initial upload 2008-02-22 04:36:59 +00:00
servertude
d1648c2bb2 initial upload 2008-02-22 04:18:21 +00:00
Francisco Ernesto Teixeira
7788014258 Added methods that enable the update of running main application just giving the direction of newest main application file. 2008-02-21 03:01:10 +00:00
Francisco Ernesto Teixeira
218b63d5f5 Update Callback Application:
Resource file to main application.
2008-02-21 02:54:34 +00:00
Francisco Ernesto Teixeira
8412e7748a Update Callback Application:
Replace the current file application with the newest downloaded.
2008-02-21 02:18:07 +00:00
Ansgar Becker
4200ca1bc6 Add an installation option to enable/disable the automatic update checks, as discussed. By default the option is enabled, like in HeidiSQL itself. The user now has the chance to disable this option early enough so phoning home is never done.
(Btw, there are quite some hardcoded, redundant values in this .iss file. Would be great if it could make use of our const.inc)
2008-02-20 21:49:07 +00:00
Ansgar Becker
1884746b8c Enable compiler warnings for platform specific stuff again, as discussed. Reminds us to search alternatives for platform specific function calls like SelectDirectory. Reverts part of revision 1170. 2008-02-20 21:21:38 +00:00
Ansgar Becker
7e6477552c Fix bug #1897916 "SQL error: Unknown system variable NAMES" by using a regular expression for detecting the numeric version. The commonly used mysql versions with numerical suffixes caused this bug, for example "4.0.31-20070605_Debian-5-log".
(Plus: Make PerformConnect more readable.)
2008-02-20 20:59:00 +00:00
Ansgar Becker
b584aa5ae4 Introduce automatism for calling the updatecheck dialog. User can set the interval how often this is done in preferences dialog (default interval: 3 days, can be completely disabled). The automatic calling of this dialog should not disturb anyone as it's closed immediately if there are no updates available or if a developer version with an unknown revision is used.
Some GUI controls on the dialog had to be moved around as well as some lines of code so everything works well with the automatic dialog closing.
2008-02-19 19:44:33 +00:00
Ansgar Becker
85ea545c29 Follow up to rev 1201: remove resource file previously used on updatecheck dialog. 2008-02-19 19:33:23 +00:00
Ansgar Becker
b9f615f024 Minor fix for updatecheck: Set the font color of the correct TMemo after a button has been disabled. 2008-02-14 23:04:05 +00:00
Ansgar Becker
32a4c08a8b Enhancements and fixes for updatecheck dialog:
- Fix URL opened by btnBuild
- Fetch and display date, revision and note of release/build
- Put the download buttons into separated TGroupBoxes and add a TMemo for Notes above them
- Enable a download button if "download revision" > "current revision". Enables a more exact comparision, especially for releases.
- Remove dodgy "refresh" icon on form.

If you stumble across this compiler notice: "FileAge(File)" is deprecated, while the used overloaded method "FileAge(File, DateTime)" is not. See also: http://groups.google.com/group/borland.public.delphi.rtl.win32/browse_thread/thread/9792bef1ee37a298/75b96783bb4862ee
2008-02-14 20:24:02 +00:00
Ansgar Becker
d3edf57600 Fix for previous commit: Selected NULL cells should be readable everywhere, not just with my personal color settings... 2008-02-12 20:01:15 +00:00
Ansgar Becker
f9b6fdaf64 Follow up to rev 1156: Enhance readability of selected NULL cells with grey font color: Just use the default font color clWindowText in those cases.
User report: http://www.heidisql.com/forum/viewtopic.php?p=1753
Code inspired by: http://qc.codegear.com/wc/qcmain.aspx?d=3009
2008-02-12 19:49:32 +00:00
Ansgar Becker
30330bfea0 Minor: Remove unused legacy var 2008-02-12 18:58:54 +00:00
Ansgar Becker
638b69ea85 Add feature 1769207 "Automatic Software Update":
Implements a simple dialog which tells the user if there is some new release or nightly build available. Parses http://www.heidisql.com/updatecheck.php as a .ini file. Download buttons just start the webbrowser currently.
Todo: Automatic invocation of this dialog at regular intervals (for example once a week)
Todo: Automatic download + update + restart
2008-02-10 23:29:39 +00:00
Ansgar Becker
52c85ddabc Introduce APPDOMAIN constant (=http://www.heidisql.com/), for usage in various methods. 2008-02-08 21:11:08 +00:00
Ansgar Becker
84dc50b9bd Fix compiler error from rev 1194 2008-02-06 06:51:57 +00:00
Ansgar Becker
4e23728aa2 - Move all hardcoded preferences names (registry) plus their default values to const.inc to fix inconsistencies like the one described here: http://www.heidisql.com/forum/viewtopic.php?p=1739
- Consequently use Mainform.GetRegValue() to read these values, an overloaded method with either Boolean, String or Integer result. These methods keep a global TRegistry object (regMain) open while the application runs, rather than creating a new one for each caller.
- Remove Mainform.SaveRegValue() which was used in one or two callers. Rather use a TRegistry object and do that by hand. There's no significant advantage in using a SaveRegValue method currently.
2008-02-06 00:00:52 +00:00
Ansgar Becker
be733f6821 Fix preselection of context relevant database in pulldown (CreateTable). Was done in two redundant places before and both did it wrong, not taking DBRightClickSelectedItem into account. 2008-01-26 23:16:17 +00:00
Ansgar Becker
d6129572c1 Minor documentation fix in editFilterVTChange() 2008-01-26 19:12:30 +00:00
Francisco Ernesto Teixeira
f6f6c4d87d Sanitize: Synedit Official CVS Server Revision 1.2 removes the obsolete ChangeLog file.
Reference: http://synedit.cvs.sourceforge.net/synedit/SynEdit/ChangeLog.htm?hideattic=0&view=log
2008-01-24 02:48:09 +00:00
Francisco Ernesto Teixeira
a6a53de8b1 Fix bug #1872643 "Interface: UNSUPPORTED default value for GEOMETRY field"
Error message: <spatial data type> can't have a default value.
Solution:  I tried every type of this family data type and found that they needs the flag HasDefault as False.
2008-01-23 21:22:00 +00:00
Ansgar Becker
f53ea37647 Add a filter editor above ListVariables, ListStatus and ListProcesses. Should make the lists more suitable to look for specific values when they're very long.
(Plus: Move some TPopupMenus around so they don't overlap other controls at design time)
2008-01-23 20:24:35 +00:00
Ansgar Becker
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
Ansgar Becker
0c10b77794 Place a TSynMemo below ListProcesses and use that to display the executed SQL command. Makes debugging SQL stuff more conveniant. 2008-01-11 22:06:28 +00:00
Ansgar Becker
95fa339756 Split Host/Variables tab into two tabs + lists for variables + status. Mixing both results is inconveniant because they are normally quite long. 2008-01-11 21:25:50 +00:00
Ansgar Becker
a79ac546e5 Fix bug #1856457 "Incorect table creation queries / wrong error handling"
Solution: Just keep CreateTableForm open after firing a faulty CREATE TABLE statement.
Note: The "Create" button has ModalResult := mrOK, so the form is automatically closed in the normal case.
2008-01-11 20:39:23 +00:00
Ansgar Becker
a580043f9c Fix bug #1865305 "error popups with server down and process list reloads" 2008-01-11 20:05:51 +00:00
Ansgar Becker
26f5d5ce88 - Get rid of lame helper notinlist(), use TStringList.IndexOf() instead.
- Get rid of TCreateTableForm.ButtonsChange(), merge code into TCreateTableForm.EditFieldnameChange()
2008-01-11 16:10:14 +00:00
Ansgar Becker
5fbee3c690 Make selection of table engine available on pre 4.1 servers. Applies to "Alter table" dialog as well as "Create table".
- Use variables like "have_innodb" for detection of supported engines.
- Move redundant code from two places to Childwin.TableEnginesCombo()
- Remove some legacy code around this logic
- Don't free the instance of CreateTableForm after closing it. Saves some SQL queries from being fired each time the form gets created.
2008-01-11 15:45:21 +00:00
Francisco Ernesto Teixeira
2dc93c9ca5 Statements using CALL SQL requires that the option CLIENT_MULTI_RESULTS
is enabled. Reference: http://dev.mysql.com/doc/refman/5.0/en/call.html
2007-12-19 13:54:18 +00:00
Francisco Ernesto Teixeira
2eae79f254 Fix searchpath of TNT design package (D2007). 2007-12-18 12:35:13 +00:00
Francisco Ernesto Teixeira
3a313a1eeb Fix bug #1845426 "Can't call stored procedure" 2007-12-18 12:30:44 +00:00
Ansgar Becker
93172bd196 Get the copy/paste workaround in grids working also for the "Query"-grid 2007-12-17 23:28:27 +00:00
Ansgar Becker
1671ea2c19 Move all code for adjusting CREATE TABLE statements to a specific version from exportsql.pas to fixSQL(). Using SynEdit's nice regular expression object. Fixes bug #1843890 "Exportfile: YPE=MyISAM; (missing T)" 2007-12-17 23:12:35 +00:00