Commit Graph

544 Commits

Author SHA1 Message Date
Ansgar Becker
b335a120ec rfe #607 "Stop toolbar popups" . All toolbars are visible now, regardless of the activated tab. Only relevant buttons are enabled when switching tabs. 2008-07-05 09:16:38 +00:00
Ansgar Becker
7ca77ad2f8 Fix bug #606 "Enabled toolbuttons after canceling connection dialog" 2008-07-03 18:24:57 +00:00
Ansgar Becker
7908f769e0 Accidently forgotten file in r1558 2008-07-02 22:41:10 +00:00
Ansgar Becker
ffc58c022b Revert broken r1561. Worse than before - more AVs, even when pressing a speedbutton which has loaded its icon correctly. Weird. 2008-07-02 22:33:05 +00:00
Ansgar Becker
94822c33fa Fix one critical AV, part of bug #580 . Loading a PNGImage from a TPNGImagelist onto a TSpeedbuttons seems buggy. Instead, assign icons at designtime. Ugly fix as we now have redundant icons, anyway, we should look after not using TPNGSpeedbutton in too many places. 2008-07-02 22:21:04 +00:00
Ansgar Becker
450edab57c Try to fix bug #604, AV when pressing help button 2008-07-02 21:51:11 +00:00
Ansgar Becker
4215631083 Fix bug #603 (Ctrl+A shortcut in query editor). Would have been nice to put this TEditSelectAll action into the "Edit" main menu, as it provides a global shortcut which magically works in all TEdits and other descendants of TCustomEdit. But TEditSelectAll interferes with SynEdit's own shortcut in a way that
a) the action's shortcut has prio over SynMemo's shortcut
b) the "select all" action itself is not functioning for a SynMemo
Not sure where the bug is, either in TEditSelectAll or in TSynMemo.
2008-07-02 21:29:02 +00:00
Ansgar Becker
b145877d95 Finally move ToolbarQuery and relevant code to main unit. 2008-07-02 19:32:27 +00:00
Ansgar Becker
844c87f356 Add buttons to main toolbars to edit selected database and table 2008-07-01 19:07:20 +00:00
Ansgar Becker
5b0bb48d0a Convert the myriad of redundant menuitems and buttons on the main controlbar + important toolbars in the tabsheets to use TActions. This moves
a) some hundred lines of code from childwin.pas to main.pas
b) redundant hints/captions/shortcuts/events for similar buttons/menuitems to their corresponding TAction in main.dfm .

This change
a) avoids several inconsistent captions like described in issue #595
b) makes it easier to have toolbars on the mainform which are controlled by childform.
2008-07-01 18:59:07 +00:00
Ansgar Becker
d571ce83b9 Convert remaining menuitems in database tab to use TActions (add "Alter table" and "Table properties") and prefix various neighbour actions with "act" 2008-06-28 20:16:20 +00:00
Ansgar Becker
a72f5a0e0f Consistently use TActions on ToolbarDatabase.
-> Sanitizes code from various error prone button/menuitem enablings/disablings.
-> Ensure consistent captions + hints for actions which are used in more than one menu/toolbar
Fixes one part of bug #595
2008-06-28 19:15:35 +00:00
Ansgar Becker
fa4e3f066c Fulfill rfe #300 "Allow keypress to "search" in treeview" 2008-06-28 07:13:46 +00:00
Ansgar Becker
3e8080ff48 Move toolbar with field actions from tabTable to main controlbar.
TODO: Find more distinct icons for add|edit|delete field buttons.
2008-06-28 07:01:19 +00:00
Ansgar Becker
7a0c9a6862 Fix bug #299 "Pageup/PageDown in Tree View Looses Focus". Only set focus to the relevant component in the new tab if the tabchange was done by a click on the pagecontrol, not on automatic changes. So the dbtree never looses focus if you navigate there. 2008-06-28 06:09:49 +00:00
Ansgar Becker
a8022acb8b Important toolbars should live on the main controlbar. Move toolbar from database sheet there. Plus:
- Remove redundant buttons on it ("view data" + "table properties")
- Move table related buttons from ToolbarStandard to the new ToolbarDatabase ("delete table" + "create table").
2008-06-26 17:10:31 +00:00
Ansgar Becker
84c3e0d260 Make various clipboard actions Unicode compliant:
- Copy (+ export to file) data as html, xml or csv
- Copy + paste actions in the grids
- Copy memo content
2008-06-26 12:37:34 +00:00
Ansgar Becker
f296b1730c Move heading panels from above grids to tab captions (hostname, database, table) and status bar (uptime, MySQL version). Makes space for coming GUI changes. 2008-06-26 09:49:17 +00:00
Ansgar Becker
1e3102d0b6 Fix warn colors in table name TEdit of CREATE TABLE dialog if table name is empty (2nd report in issue #556) 2008-06-26 05:46:56 +00:00
rosenfield.albert
71ec2f9f49 Replace DbMemo with TntDbMemo. 2008-06-25 14:29:21 +00:00
rosenfield.albert
f148664018 * Zeos: Make SetFieldData() public to provide a way to poke NULL into a field.
* Heidi: Use above to set field to NULL when requested by user.
2008-06-25 13:47:15 +00:00
rosenfield.albert
5c7631796f Add specific modes supposed to include various brokenness in mysqldump. Hopefully we won't have to discuss whether to account for a specific brokenness in mysqldump ever again. I almost couldn't be happier if MySQL actually fixed their bugs ;-). Fixes issue #537. 2008-06-25 05:46:19 +00:00
rosenfield.albert
5c1c61af8b Work around a bug in MySQL server; NO_BACKSLASH_ESCAPES is not included in ANSI mode, even though according to the manual:
"NO_BACKSLASH_ESCAPES enables an SQL standard compatibility mode, where backslash is 
not considered a special character."
2008-06-25 04:31:14 +00:00
rosenfield.albert
d137917930 Add code page 936 <-> gbk. 2008-06-25 04:23:00 +00:00
Ansgar Becker
173aca5009 Make sstr() unicode compliant to fix bug #313 "Run SQL file dialog fails for German umlauts in file" 2008-06-24 20:22:00 +00:00
Ansgar Becker
ab790b4072 Bring back SynUnicode to the uses clause to fix SynMemoQueryDropFiles . Files dropped were just not loaded with no error. Use namespace/unit prefixing in one place to avoid a compiler error. 2008-06-24 18:43:20 +00:00
Ansgar Becker
3ed9ded4d6 Save unicode instead of ansi in "Save memo to textfile" action 2008-06-24 18:29:34 +00:00
rosenfield.albert
9e70c359ed Bugfix: Make it possible to use empty string ('') as a default value for columns. Fixes issue #326. 2008-06-24 11:25:58 +00:00
rosenfield.albert
9d13267e41 Bugfix: Make it possible to tell "no default value" apart from "default value is NULL" in the table view. 2008-06-24 11:24:36 +00:00
rosenfield.albert
1b2fd65ed2 Fix a weird rendering issue on Windows Vista. 2008-06-24 10:56:33 +00:00
rosenfield.albert
4a0d4ef7db Rid usage of EmptyStr. 2008-06-24 09:29:26 +00:00
rosenfield.albert
f64626f152 Bugfix: fix regression; up-key and mousewheel-up were broken in r1512 for the data type dropdown. 2008-06-24 09:22:53 +00:00
Ansgar Becker
94dd599f5f Fix annoying alphabetical sorting in list of available fields in the index editor. For columns it's very normal to have them in the same order as they're defined in the table structure. 2008-06-23 23:17:57 +00:00
Ansgar Becker
abd0fab06c Tweak size column in dbtree to fit to largest numbers. 2008-06-23 23:14:30 +00:00
Ansgar Becker
2be5153edf Convert old style TDBNavigator to standard toolbuttons, use PNG icons for them and keep only needed (not redundant) buttons: first, last, insert, delete, post. Fixes bug #572 which was caused by r1401. 2008-06-23 23:09:20 +00:00
Ansgar Becker
758507d87a Show db navigator as soon as a table was selected, also when tabTable is active. Passing the sender component to viewdata() in all situations so we can check that for first time loading from within the table tab. 2008-06-23 22:31:42 +00:00
Ansgar Becker
8e3effd849 Follow up to previous commit:
- Now that auto limiting doesn't touch EditLimitEnd if it's not too high, the initial limit (50) setting seems to low. Increase it to 5000.
- Only touch EditLimitEnd in auto limiting, set it to EditLimitStart + GetCalculatedLimit, always leave EditLimitStart as it is.
2008-06-23 21:42:26 +00:00
Ansgar Becker
b7d6e07481 Do the best to fix bug #282 - not to touch a user input in EditLimitEnd + EditLimitStart if GetCalculatedLimit says we must apply a limit. 2008-06-23 20:26:14 +00:00
Ansgar Becker
1bd1bb8a6e Remove preference option to select whether auto limiting should be applied or not, for the benefit of consistency and usability. See bug #282 which complains about the limit not being remembered. This is still the case for large tables now, but GetCalculatedLimit is more a safety check to avoid huge net loads than it wants to annoy the user. A even better compromise could be not to touch the limit number in the GUI if its value is lower than GetCalculatedLimit. 2008-06-23 20:15:37 +00:00
Ansgar Becker
efa71f50bb Implement automatic closing of data sorting + column selection dialogs when clicking elsewhere by catching the FormDeactivate event. (rfe #562 and rfe #579) 2008-06-23 19:49:11 +00:00
Ansgar Becker
2d59e35e38 Fix bug #584 "HeidiSQL GUI : Create New User Error(s)" 2008-06-23 19:16:45 +00:00
rosenfield.albert
cf7859a131 Now with even more effort to use the right names amongst a myriad of ill-explained and logically incoherent bundles of random color enumeration. 2008-06-23 18:06:54 +00:00
rosenfield.albert
167f7529ad Use some other enumerations for colors. 2008-06-23 17:58:03 +00:00
rosenfield.albert
83025528bd Pass data_length and index_length through FieldContent() in LoadDatabaseProperties(). Probably "fixes" issue #554. 2008-06-23 17:48:46 +00:00
rosenfield.albert
ea352df61d Bugfix: removing a privilege did not work for the special case where UPDATE ... ON DUPE KEY instead of INSERT has to be used (for the server-level privileges jumbled together with lots of irrelevant stuff we don't want to touch in mysql.user). 2008-06-23 17:06:06 +00:00
rosenfield.albert
777061c1ac Adapt a slightly more natural group ordering, and at the same time show which of the types (now cropping up at the start of the list) are nonstandard and are probably best avoided.
(Except for the über-performance freaks that gives a shit, see also:
http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster)
2008-06-23 16:15:09 +00:00
rosenfield.albert
eb94d80223 * Add definition of column type 'groups' to mysql_structures.
* Enhance the TComboBox used in fieldeditor to support option groups via owner drawing.
 * Add some ridiculously dumb functions to translate between the dropdown's index and (non-group) item index.
 * Accomplishes rfe #577.
2008-06-23 15:39:36 +00:00
rosenfield.albert
72586d0791 Follow-up to previous revision: missing name changes. 2008-06-23 11:43:05 +00:00
rosenfield.albert
59e24a828f Improve object names and captions. 2008-06-23 11:21:04 +00:00
Ansgar Becker
faf1c73da9 Fix compiler error, caused by accidently left testing line in last commit. 2008-06-22 17:48:55 +00:00