Commit Graph

2447 Commits

Author SHA1 Message Date
Ansgar Becker
bb797d5b60 Use an Aero based TaskDialog with command buttons when warning about large files. 2011-06-09 23:31:15 +00:00
Ansgar Becker
fad397b810 Let SetActiveDatabase focus db node also when the current focused node is a table in that db. Ensures that OnFocusChanged is called after dropping tables. Fixes issue #2450. 2011-06-09 21:16:11 +00:00
Ansgar Becker
4ebc63198d Minor: Do not trigger Dbtree.OnFocusChanged when only the focused column changes. 2011-06-09 21:02:58 +00:00
Ansgar Becker
9117667871 Fix usage of non assigned active connection, for moments in which we have no focused tree node. Should fix issue #2453. 2011-06-09 20:49:26 +00:00
Ansgar Becker
6fd6cf4108 Fix empty generated data grid filter when line is not yet full. Fixes issue #2452. 2011-06-09 19:15:17 +00:00
Ansgar Becker
d3ea4111a3 Suppress error dialog when process is already gone. Fixes issue #2362. 2011-06-09 17:24:15 +00:00
Ansgar Becker
c5ac79f647 Fix another bunch of AVs, caused by dbtree without focused node when saving table or view. Probably fixes issue #2444 and maybe also issue #2438. 2011-06-08 20:14:13 +00:00
Ansgar Becker
2fffb9d9b7 Silence EAccessViolations in TWinControl.WMKeyDown. Fixes issue #2439. 2011-06-06 20:00:15 +00:00
Ansgar Becker
db302e6254 Enable SQL help button by default. Fixes issue #2442. 2011-06-06 17:26:36 +00:00
Ansgar Becker
7c1896c196 Repaint server version panel when focused tree node has changed, not from within the OnConnect event. Fixes wrong version display when auto-connecting to multiple servers. See http://www.heidisql.com/forum.php?t=8600 2011-06-05 10:52:42 +00:00
Ansgar Becker
3f58b59983 Add "Disconnect" item to tree context menu. Fixes issue #2345. 2011-06-05 10:23:58 +00:00
Ansgar Becker
310c3f546a Fix a bunch of access violations, caused by 0 active connections. Invalidate various trees in that case, and fix the code in their BeforePaint events. 2011-06-05 10:20:02 +00:00
Ansgar Becker
98bae018a2 Try another Wine fix for updating grid columns, issue #2405. 2011-06-03 22:33:21 +00:00
Ansgar Becker
0e01d00aa9 Do not wrap column header initialization in Begin/EndUpdate. Reverts r3818 and probably fixes issue #2405. 2011-06-03 16:33:41 +00:00
Ansgar Becker
834f1319c1 Call run dialog when dropping large files or clicking file open drop down menu. Fixes issue #2436. 2011-06-01 22:36:50 +00:00
Ansgar Becker
7e4daded87 Fix TMySQLConnection.Ping in situations when FActive is already false, like a detected disconnect when hovering over server status panel. Most probably fixes what's described here: http://www.heidisql.com/forum.php?t=8499 2011-06-01 22:18:02 +00:00
Ansgar Becker
5571c5851a Refactor parts of completion proposal:
* Don't use broken Proposal.PreviousToken, rely on regexp
* Documentation updates
Fixes issue #2432
2011-05-31 20:20:37 +00:00
Ansgar Becker
6f2d7d9656 Suppress repaints while closing query tab. Reverts an uncritical part of r3051. 2011-05-30 20:06:51 +00:00
Ansgar Becker
c8cfc39c99 Avoid AVs by referring to DBObject.Connection instead of MainForm.ActiveConnection, which is nil for milliseconds when the tree focused node changes. Fixes issue #2418. 2011-05-30 17:21:25 +00:00
Ansgar Becker
0c16da99ea Follow up on r3745 2011-05-29 23:07:58 +00:00
Ansgar Becker
8f4c2da963 Popup once for all selected files in OpenFileDialog, not once per file. Remove "yes to all" and "no to all" buttons again, and fixes non-loading files. See issue #2265. 2011-05-29 22:52:58 +00:00
Ansgar Becker
d68e8bd719 Fix compiler hint 2011-05-29 19:54:58 +00:00
Ansgar Becker
046f388930 Make connection switch log line more noticeable. 2011-05-29 19:49:32 +00:00
Ansgar Becker
0bb33d8907 Add "Yes to all" and "No to all" buttons to the popup dialog which asks for running instead of loading a query file. Fixes issue #2265 2011-05-29 15:56:34 +00:00
Ansgar Becker
2e3c71e443 Disable "Remove index" button after click on "clear". See http://www.heidisql.com/forum.php?t=8610 2011-05-29 15:26:58 +00:00
Ansgar Becker
f94df22986 Support half written column names after "table." in completion proposal. Fixes issue #2429. 2011-05-29 10:45:17 +00:00
Ansgar Becker
18c018aabe Batch query list uses 1-based left and right offset, which needs to be considered when comparing to the 0-based caret position. Fixes issue #2427. 2011-05-28 21:38:23 +00:00
Ansgar Becker
0b49dfc4b8 Accidentally forgotten files for r3849 2011-05-28 21:25:56 +00:00
Ansgar Becker
a329844e9f Use hex style in WHERE clause and column values of grid updates. Fixes issue #2183. Also, raise warning when 0 rows were affected by UPDATE, INSERT or DELETE action. 2011-05-28 21:20:19 +00:00
Ansgar Becker
42c29f7655 Catch exception when grid export file cannot be created. Fixes issue #2325. 2011-05-28 07:40:44 +00:00
Ansgar Becker
5e1d4645d2 Remove unused global constants 2011-05-27 20:16:04 +00:00
Ansgar Becker
829696cc77 Remove accidentally committed changes from previous commit. 2011-05-27 19:57:26 +00:00
Ansgar Becker
8d38175c7a Use blended icons for unvisited databases again, and activate full row selection in db tree to have a nicer selected icon and because it looks useful. 2011-05-27 19:55:26 +00:00
Ansgar Becker
80634bd952 Avoid calling Mainform.ActiveDatabase when we have TDBObject.Connection.Database. Probably fixes issue #2418. 2011-05-27 17:37:18 +00:00
Ansgar Becker
ad9aba3549 Remove SetVistaFont(), move code to the only caller of it in TMainForm.FormCreate. 2011-05-27 05:10:40 +00:00
Ansgar Becker
c4565ec764 Move SetVistaFont() to helpers unit and remove uVistaFuncs unit 2011-05-27 04:59:37 +00:00
Ansgar Becker
2d548b5ef6 Introduce some wrapper functions for message and error dialogs in order to have less code and to avoid hidden titles on Windows XP. Fixes issue #2425. 2011-05-27 04:48:21 +00:00
Ansgar Becker
478c0306c7 Use modern TaskMessageDlg as a replacement for MessageDlg where appropriate. 2011-05-26 06:08:19 +00:00
Ansgar Becker
def104bb9d Some more safety against possible access violation in StatusBarDrawPanel. Fixes issue #2418 2011-05-26 04:52:14 +00:00
Ansgar Becker
96baa670c8 Fix detection of table name on MSSQL / data grid. Enables grid editing again. 2011-05-23 20:25:59 +00:00
Ansgar Becker
91e5f25bb0 Fix multiple files loaded into the same tab. 2011-05-23 05:13:12 +00:00
Ansgar Becker
6ec5a3ed2a Move code in TMainForm.QueryLoad to TQueryTab.LoadContents, and move out code for finding first empty tab. Background file watching did load a modified file into the wrong query tab before. Fixes issue #2416. 2011-05-22 07:23:29 +00:00
Ansgar Becker
b89e6c8473 Use save instead of save as action for the disk button on the main toolbar. Fixes issue #2422 2011-05-21 13:45:01 +00:00
Ansgar Becker
3e4836839b Allow ANSI quotes in VIEW code. Fixes issue #2419 2011-05-19 22:06:28 +00:00
Ansgar Becker
137528d561 Clear database list on disconnect, avoiding AVs when disconnecting two connections rapidly. Fixes issue #2420. 2011-05-19 17:58:40 +00:00
Ansgar Becker
ca283aee1d Try to fix situations when the database tab gets repainted with no active connection. Fixes issue #2417. 2011-05-18 05:48:50 +00:00
Ansgar Becker
c4f06b692a Use current tab for loading sql file, not the first empty tab. Fixes issue #2416. 2011-05-18 05:22:38 +00:00
Ansgar Becker
592b2d98b0 Disable save button if 0 columns. Fixes issue #2411. 2011-05-14 13:55:27 +00:00
Ansgar Becker
2c9e2edc9d Create users list after querying mysql.user, so when that query returns an error, a later check for existence of the user list can decide to close the user manager. Fixes issue #2414 2011-05-14 05:36:38 +00:00
Ansgar Becker
52bfc62253 Fix access violations caused by query helpers columns node, accessing selected tree node when nothing is selected. See http://www.heidisql.com/forum.php?t=8512 2011-05-12 17:59:50 +00:00