391 Commits

Author SHA1 Message Date
cbb6d3d220 Benefit from childwin's table cache in "Import text file" dialog 2008-03-23 14:01:46 +00:00
f64daf6917 New feature: VIEW editor, can create and edit views. Rather a simple dialog with only the most important options on it. The toolbuttons on mainform are partly moved around, that's the reason for the myriad of changes there. 2008-03-19 21:20:28 +00:00
de12c10721 Refactor Maintenance dialog to fullfill reasonable user wishes in bug #1865477 :
- Rename components with reasonable names
- Use caching mechanism from Childwin.FetchDBTableList to fill tables listbox
- Make form resizable, store and restore customized dimensions
- Keep form instance alive and recycle that instance as long as Mainform lives
- Fix confusion with action item (wasn't really used in both menuitems)
- Add documentation
2008-03-18 20:58:03 +00:00
b815b91039 Fix bug #1865477 "Table maintenance does not show any response"
By removing the (superflous) context menu versions of "Optimize", "Check", "Analyze" and "Repair" table.
2008-03-18 19:54:20 +00:00
e9f18b29bb Fix bug #1879419 "viewing data with tables of the same name" 2008-03-17 21:26:31 +00:00
112ea167a5 Add basic support for views, without changing too much GUI logic:
- Give them their own icon in dbtree and ListTables
- Disable pure table actions (like "Alter table", "Optimize" etc.) in context menus when a view is selected
- Add new column in ListTables: "Type" which is filled either with "Base table" or "View"
- Introduce new property "NodeType" in TVTreeData record, used currently to store NODETYPE_VIEW or NODETYPE_TABLE. This new property is meant to be used for various purposes in other VirtualTrees in the future.
- Introduce Childwin.SelectedTableType, corresponding to Childwin.SelectedTable
- Make DropTable action fit for also dropping views (and surely a list with a mixture of views and tables)
- Don't fetch rowcount from views in DisplayRowCountStats to fix bug #1844952
2008-03-17 20:35:50 +00:00
334311c2ea Make wording in column headers of ListTables up-to-date:
- "Table" => "Name" (can also contain views)
- "Records" => "Rows" (records is old-style)
- "Type" => "Engine" (dito, plus MySQL renamed that also in the SHOW TABLE STATUS result)
2008-03-15 22:40:39 +00:00
14b95f62ec Remove redundant and misleading menu items "Limit" and "Edit Memo/Blob" from popupmenu in datagrid 2008-03-15 10:59:41 +00:00
4c6f342f43 Assign different icons for non-killed processes in ListProcesses:
- Idle: green tick
- Running: blue play icon
2008-03-15 10:52:09 +00:00
01c6552829 Fix/enhance various icon issues:
- Fix wrong imageindexes in quickfilter menus for clipboard inserting and "Drop filter"
- Assign existing, fitting icons to all other quick filter menu items and "Insert date/time" items.
- Replace icon for "Query" tab by the big blue arrow which is also used for the "Play" button
- Replace icon for "View Data" buttons and "Data" tab with a more simplistic one from the Silk set. This makes the normal "table" icon more distinct as these both looked very similar previously.
- Edit the "Import CSV file" icon: add some lines which can be better associated with a "text file"
- Remove "Reload privileges" button on toolbar and leave it in the tools "flush" menu. Also remove confusing icon for this menu item as that was highly similar to the master refresh symbol.
- Assign a different (hopefully clearer) icon to "Export SQL" action
- Add seperator between database and table toolbuttons
2008-03-15 10:45:00 +00:00
5bf8555257 Find a better event for listening to changes in ListColumns: OnStateChange. OnChange sometimes isn't fired when no node is selected. Fixes state of menuEditField which should only be enabled when a node in ListColumns is focused. 2008-03-10 21:40:09 +00:00
dcab2fb099 Disabled icons should be displayed grayscaled, not only blended. Makes it easier to detect the non-disabled icons. 2008-03-10 21:16:38 +00:00
1cc757ba73 Delphi insists on moving these TPngSpeedButtons somewhere else in the DFM files. Properties are all kept, only the positions in the files have changed.
I have a slight feeling that this change fixes at least one access violation in the last nightly builds which I cannot reproduce when I compile these changed files.
2008-03-10 20:24:14 +00:00
9306da23b9 Remove Font properties of controls which have the same font assigned as the parent component but have ParentFont set to False. The effect of this change should be not visible in any form, only in the code of the DFM files.
Related revision: 956.
2008-03-09 21:00:35 +00:00
38caa4cd99 Make most "btnCancelClick" procedures superflous by assigning the correct ModalResult (mrCancel) to the relevant cancel buttons. 2008-03-09 20:27:12 +00:00
9618ac94b3 Fix directory selection in dialog "Export SQL": Root directory was set to previously selected directory which made it impossible to select parent directories of that one. 2008-03-09 20:04:13 +00:00
e53db0a9b7 PngIcons:
- Ban glyph data of all TSpeedButton's + TBitBtn's out of dfm files by converting them to TPngSpeedButtons and assign an image from PngImageListMain at runtime.
- Add "highlight" versions of "database" and "table" icons and use these on selected DBtree nodes.
- Remove no longer used BMP icons

Todo: Fill PngImageListMain at runtime.
Note 1: TBitBtn's are not Windows-theme-aware, even with a manifest in place, so we should avoid using them anywhere.
Note 2: T(Png)SpeedButton lacks a TabOrder property, so some of the other TabOrder's are automatically changed here.
2008-03-09 19:56:52 +00:00
866146d4b7 Usability: An "OK" button should be left besides a "Cancel" button. Fix position of these buttons on the dialog "Edit system variable" to make it consistent with other dialogs. 2008-03-09 08:52:13 +00:00
e29840a616 Fix bug #1842564 "Incorrect table name" after using index editor . Missing begin/end in PopulateTreeTableList. 2008-03-06 19:47:35 +00:00
9d8c33b3ce Fix detection of primary columns in datagrid, was broken since rev 1234. 2008-03-05 12:28:55 +00:00
815eea1481 Rename childwin's "Description" property to "SessionName" which says more exactly what it really is. 2008-03-05 12:21:25 +00:00
1ccb907501 Fix bug #1907061 "Columns selection combobox in DataGrid is not working". GetRegValue needed session name as 3rd parameter. 2008-03-05 11:31:32 +00:00
1edb5b3edc 2nd followup to rev 1234: Accidently forgotten part of commit. Fixes a compiler error. 2008-03-04 00:53:13 +00:00
9c29132ab5 Accidently overseen part of previous change/commit.
Btw: The red "busy" and green "ready" icon in the statusbar had been removed now, as that was no longer working with the PNGImageList. Refixes the everlasting bug #1472803. Maybe these two icons can be added sometime, as that can be very informative to the user, but then please with a less hackish solution than previously.
2008-03-04 00:30:33 +00:00
bd597d0c1d Use a PNGImageList and find replacements for nearly all icons in the application.
Sources:
- Mark James' Silk icons
- Everaldo's Crystal icons

Todo: Load icons at runtime
2008-03-04 00:20:38 +00:00
46a17e6d14 Fix faulty IF construct in previous commit: menuEditVariable always displayed the STR_NOTSUPPORTED hint. 2008-03-02 17:59:57 +00:00
3804655749 Disable variable editing on old servers which don't support that. 2008-03-02 17:52:50 +00:00
a810ca77cb Avoid a complete list refresh after editing a single server variable, only refresh the relevant node. 2008-03-02 17:44:40 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
30330bfea0 Minor: Remove unused legacy var 2008-02-12 18:58:54 +00:00
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
52c85ddabc Introduce APPDOMAIN constant (=http://www.heidisql.com/), for usage in various methods. 2008-02-08 21:11:08 +00:00
84dc50b9bd Fix compiler error from rev 1194 2008-02-06 06:51:57 +00:00
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
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
d6129572c1 Minor documentation fix in editFilterVTChange() 2008-01-26 19:12:30 +00:00
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