274 Commits

Author SHA1 Message Date
912c46b20c Add menuitem "Lookup [keyword] in SQL help" to popupQuery. Many users likely don't know that they can press F1 in SynMemoQuery/SynMemoFilter to do the same, so here's the more visible solution. 2007-09-12 08:31:01 +00:00
e5ccc0716f Bugfix: Regression from r903: Selecting a database then expanding it would cause it to be deselected. 2007-09-11 20:47:43 +00:00
b056d43e4b Fix a range error and various other bugs in vstFreeNode(). 2007-09-11 20:40:41 +00:00
7ef5d4c34b Follow-up to r903: A few more optimizations and fixes. Thanks for the review! 2007-09-11 18:50:45 +00:00
073716aaf1 Add VirtualTreeView source code path to debug source directories. 2007-09-11 18:20:40 +00:00
0fc363f988 Bugfix: Load database properties (tables) when switching directly to a new table in another database via the tree. 2007-09-11 18:06:57 +00:00
38b3c93209 Enable checks. See r904. 2007-09-11 17:18:46 +00:00
c2f5e22a3f Enable safe compiler optimizations. 2007-09-11 17:10:07 +00:00
2e1ff085f1 Disable usage of Delphi debug DCUs. 2007-09-11 16:57:52 +00:00
d1f1d0fb5c Enable checks and debug information.
Range and overflow checking can be turned off when building a release exe to improve performance slightly.

Debugging options can be turned off when building a release exe to reduce the executable file size.
2007-09-11 16:49:44 +00:00
9409c798ab Remove ActualDatabase and ActualTable variables, plus various minor optimizations that ensued from said change. Fixes a problem where when:
- viewing data in a table
 - switching to query tab
 - pressing master refresh
some of the tabs would disappear.
2007-09-11 15:58:47 +00:00
c8da2bf945 Bugfix: Do not reset the enable state to something incorrect of buttons that already has been given correct state. A regression, not sure from which revision. 2007-09-11 09:55:41 +00:00
c8979cd114 Bugfix: A "for Cardinal(i) := 0 to -1" loop in Delphi will run for 2^32 iterations rather than 0 iterations - when a list given to AddUniqueItemsToList() is empty, avoid starting this for loop and thereby avoid a range error when clicking the '+' sign next to an empty database. 2007-09-11 09:27:17 +00:00
44198bcfa1 Re-implement r775 in a way which does not break Zeos' row buffer mechanism. Fixes issue #1789215. 2007-09-10 17:25:23 +00:00
aa9879ecac Expect compiler_dir and package_dir to be set by command line parameter rather than hardcoding them in the script itself. Helps keeping out appropriately paths from SVN. 2007-09-07 07:52:17 +00:00
25d6112666 Fix autobuild process which couldn't find compilers.inc. D10 + 11 IDE find it anyway because they have the path set in searchpaths. 2007-09-07 07:41:59 +00:00
91422efb41 Disable building unused designtime packages in autobuild process 2007-09-07 07:37:22 +00:00
c44040387c Fullfill feature wish #1754228 : Sort usernames in User-Manager 2007-09-06 14:46:44 +00:00
970d267a23 Implement feature wish #1779324 : Support for field COMMENT in ListColumns and field editor. 2007-09-06 14:39:11 +00:00
e3529376a4 Revert rev 892 as discussed on the devels list.
Although this batch file will mainly be used on a build-server, it should not break something on a developers machine.
2007-09-05 09:50:00 +00:00
2d20176554 Convert last TSortListView to standard TListView, so we can nuke TSortListView completely from our components list.
The ListView in tbl_properties won't support sorting by columnclicking any longer, but that was useless with such a small amount of items anyway.

Further finetuning of list:
- Disable column-click
- Avoid animation on columns + items creation
- Autosize columns correctly
- Refactor WITH .. DO statements
2007-09-05 09:03:08 +00:00
9c4bdd4f95 Ensure we're not building with local modifications in source files. 2007-09-04 22:40:42 +00:00
cebf2418f5 Better use /build folder instead of appropriately folders for BPL and DCP output. 2007-09-04 22:38:08 +00:00
7ff13f58d7 Pause waiting for a key after printing usage, in case the build script is launched from a GUI. The window and message would disappear too fast for anyone to see. 2007-09-04 15:40:19 +00:00
87352ed697 Follow up to rev 888: Get D10 package running again. 2007-09-04 15:32:19 +00:00
1c6dc32f53 Add build command script. Will be helpful for creating nightly builds. Adjustments of the project files included to get the build script running without errors with D10 + D11 packages. 2007-09-04 15:24:03 +00:00
6d72ead5dd Refactor logic in preferences dialog:
- Consistency:
  - Move all global preferences vars from mainform to childwin.
  - Get rid of unused legacy vars NativeFieldTypes + LanguageOffset
- Readability:
  - Add documentation
  - Prefix preferences vars with "pref"
  - Get rid of WITH .. DO statements
2007-09-03 15:44:18 +00:00
b3b0225f8b Code clean up in ReadWindowOptions:
- Get rid of confusing WITH .. DO statement
- Make code more compact and readable (reverts parts of the dodgy revision 620)
2007-09-03 14:39:53 +00:00
cfc49dc186 Fix broken rev 878: Restore preference "Remember WHERE filters" on startup was using the registry folder of the session although it's a global preference. 2007-09-03 14:23:56 +00:00
d095fdb7cb Revamp "Advanced table properties" dialog:
- Synchronize height of all listviews after moving the splitter on one page.
- Drop maximum dimensions of form.
- Store/restore form and list dimensions via registry
- Documentation
- Simplify code
- Add useful popupmenu with items "Copy" + "Select all" to SynMemos which display the CREATE statements
- Rely on modalresult of form, drop OnClick handler of Close-button
- Format sum of table sizes using FormatByteNumber instead of always using KB as the unit of choice.
- Add a statusbar to the form to signalize that the form can be resized.
2007-09-03 13:59:29 +00:00
16c0ac36b3 MySQL 4.0.1 and above allow moving a columns position within an ALTER TABLE statement. Use that to overcome various risks of the manual mechanism for older servers. 2007-09-03 09:38:20 +00:00
21a7d22af9 TimerProcesslist should not exclusively refresh ListProcesses. Instead it look useful that the other two subtabs ListVariables + ListCommandstats have this auto-refresh feature too. 2007-09-03 09:17:08 +00:00
67a4887e0e Make the id-column in ListProcesses slightly wider so large numbers can be viewed without resizing the column. 2007-09-02 23:08:16 +00:00
f279d9cc3f Add support for killing more than one process in one go. 2007-09-02 23:04:42 +00:00
f4ce711c4c Empty table using faster TRUNCATE statement on newer servers. Fullfills feature request #1644143 2007-09-02 22:18:20 +00:00
a140b4d1d6 Fullfill feature request #1724941 Add option "Remember data pane filters across sessions" 2007-09-02 21:54:29 +00:00
544ff577c0 Followup to rev 740: Refresh table cache also after relevant properties of one or more tables got changed by
- TTableComment.ButtonOKClick()
- TMDIChild.EmptyTable()
- TMDIChild.MenuChangeTypeClick()
- TMDIChild.MenuChangeTypeOtherClick()
- TMDIChild.MenuOptimizeClick()
- TMDIChild.MenuRepairClick()
2007-09-02 19:00:28 +00:00
4e9336d10d Minor code simplification: use "continue" instead of large begin/end block 2007-09-02 14:09:20 +00:00
895e69269f Fix AV on comparing mixed column content in VirtualTrees (strings compared to integers) 2007-09-02 13:46:07 +00:00
0f361d5af0 Avoid time consuming animation when DBtree items are deleted and restored in databases with many tables. 2007-09-02 10:36:55 +00:00
bab0a38fe4 MakeInt(): Correctly backconvert strings which were previously formatted by FormatByteNumber() . Fixes incorrect sorting of columns in VirtualTrees which contain some byte values. Also enables us to call FormatToByteNumber() in "Size" column of ListTables. 2007-09-02 10:05:09 +00:00
23a97d93a6 Add accidently deleted icons for SQL help. 2007-09-01 06:17:13 +00:00
40c41d3cbe Add support for TeraByte and PetaByte in FormatByteNumber.
Overcomes a "E2099 Overflow in conversion or arithmetic operation" compiler error by using constants instead of calculating the limits.
2007-08-31 00:03:55 +00:00
8ab0b95440 Implement a more effective solution for hiding and unhiding columns in ListColumns.
Pros:
- ShowDBProperties doesn't reset column layout
- Sort direction is remembered automatically
- Reading columnlist from registry is done once in a TMDIChild, not on each ShowDBProperties
- Hiding/unhiding columns doesn't call ShowDBProperties
- No more hassling with what is called a "default column" or not. popupDBGrid is usable like in Windows Explorer.
- Column layout is stored global, not per session.
Cons:
- Column layout from old settings logic needed to be discarded

Side effect:
- Fixes a potential AV in FormatNumber(str) with empty strings.
- Created an overloaded FormatByteNumber() which can take a string as input
2007-08-30 23:49:38 +00:00
2dee4b326f Fix todo: Replace Ansgar's otherwise adorable icons with a couple of free ones from Mark James.
Scheme:
 * Green arrow means "current window"
 * Computer means "is connected"
 * Lightning means "connect"
 * Plug pull means "disconnect"
2007-08-29 16:09:09 +00:00
996de281d7 * Bugfix: Properly propagate exception when editing forbidden (access denied) data in a grid.
* Cosmetic: Fix haywire indentation in TMysqlQueryThread.Execute.
2007-08-29 01:48:28 +00:00
bf401df253 * Implement Pos2, which takes a start parameter.
* Mask USING {BTREE,HASH,RTREE} from older servers. I wonder why mysqld doesn't do this by itself. Fixes issue #1779065.
2007-08-29 00:49:40 +00:00
80a64fff0b Produce less spam when exporting empty tables. Set your differ to ignore whitespace. Fixes issue #1779063. 2007-08-29 00:20:57 +00:00
0ee7e15e4b Only show tables in the "export tables" window, do not include views.
(Views need to be exported last for an import to work properly, which is a better solution - should do that at some point.  Other stuff needs to be exported too, stored procedures etc).  Fixes issue #1779068.
2007-08-29 00:12:57 +00:00
de147880c4 Bugfix: Fix (improve) positioning of TToolBar elements on Windows Vista. 2007-08-28 23:57:44 +00:00