Commit Graph

4002 Commits

Author SHA1 Message Date
Ansgar Becker
71d9ef9011 Same as for TExtForm: translate in TDBObjectEditor.OnCreate, not in all derived editor classed 2019-07-22 07:28:07 +02:00
Ansgar Becker
fcdf323086 Let TExtForm translate all strings on a form, to reduce the code in any FormCreate event 2019-07-21 20:12:13 +02:00
Ansgar Becker
88a9e53f0d Remove remainders of DPI related code, and move TExtForm.AddSizeGrip procedure to property .HasSizeGrip. Uses TSizeGripXP instead of TSizeGripThemed, as this looks quite the same. 2019-07-21 19:44:05 +02:00
Ansgar Becker
cfe412e12c Update code from vcl-styles-utils to current master branch from April 03 2019. Disables LegacyIFEND compiler flag so Vcl.Styles.FontAwesome.pas compiles without modification. 2019-07-21 08:17:37 +02:00
Ansgar Becker
fbdddaa765 Collect custom session background colors via OnGetColors event of TColorBox, do not mix it in the code for refreshing the session tree. Also refresh custom colors each time a session is focused, so it has new colors. 2019-07-20 17:29:22 +02:00
Ansgar Becker
c31cae2060 Giving up on high DPI readiness - remove tweaks which mostly don't work as expected, and even differently on various computers. Instead, let Windows blur fonts. 2019-07-18 20:53:53 +02:00
Ansgar Becker
2ebbdc6ba3 Issue #718: Fonts may still be too large because the monitor on which a form is created has DPI > 100%. Calculate DpiScaleFactor based on that first monitor. See https://www.heidisql.com/forum.php?t=34230 2019-07-18 19:08:32 +02:00
Ansgar Becker
6a75e8c404 Issue #718: Fonts may be too large because they get scaled before the window gets moved to the wanted screen. So, this moves the code for scaling fonts to FormShow, so we can scale fonts according to the screen's DPI setting. 2019-07-18 07:52:59 +02:00
Ansgar Becker
70c79b33c5 High DPI: Scale up font size when applying font to query editors and result grids
Todo: mouse wheel zooming seems broken on dpi > 100%
2019-07-17 22:15:38 +02:00
Ansgar Becker
92c8f62b85 High DPI:
* remove ParentFont flag from forms again (introduced in 9cdcd63145 for #213). This just inherits from default Windows settings.
* instead, scale font size in InheritFont(), and move that to the new TExtForm class
* mark app with PerMonitorV2 support
2019-07-17 21:59:18 +02:00
Ansgar Becker
2dfb11879d Make search for libraries case insensitive. Closes #716 2019-07-17 07:02:56 +02:00
Ansgar Becker
92fb291c9f Add "Multi column filter" item to "Go to" menu. Closes #681. Also, "Switch between query/results" now switches between filter and grid in Data tab. 2019-07-14 19:46:54 +02:00
Ansgar Becker
0a1299ddeb Add "Switch to query/results" item to "Go to" menu. Closes #698 2019-07-14 19:27:15 +02:00
Ansgar Becker
df6a566ee6 Revert a part of 1c76c2ecc0, which disabled the port input for MS SQL / TCP connections if the host is a named instance. According to #714 you can still use the port for named instances. Closes #714. 2019-07-14 17:38:16 +02:00
Ansgar Becker
e4423c76a3 Issue #513: add a theme preview dialog, which loads the selected theme png file from heidisql.com 2019-07-13 15:59:43 +02:00
Ansgar Becker
0a31363fe9 Append system error message to error dialog popping up when tabs.ini is not writable. See https://www.heidisql.com/forum.php?t=34044 2019-07-12 18:25:38 +02:00
Ansgar Becker
36ae8f26b6 Issue #360: add unique session colors only to the background color selector, and label them "Custom color". See https://www.heidisql.com/forum.php?t=34168#p34194 2019-07-12 18:23:07 +02:00
Ansgar Becker
7f214ed4ef Add custom colors from sessions to background color selector. See https://www.heidisql.com/forum.php?t=34168 2019-07-11 21:38:03 +02:00
Ansgar Becker
2930df7f24 Issue #677: select first available library if default or configured one is not available. 2019-07-10 22:05:47 +02:00
Ansgar Becker
aa2ee9fd8f Restore tabs feature crashes often on old XP systems, so we activate it by default only on Vista and newer. See https://www.heidisql.com/forum.php?t=34044 2019-07-10 16:25:25 +02:00
Ansgar Becker
65102121bc Disable tab restore/store when tabs.ini is not writable. See https://www.heidisql.com/forum.php?t=34044#p34148 2019-07-10 11:46:19 +02:00
Ansgar Becker
fae11b70aa Silence reoccurring error dialogues due to non-writable portable_settings.txt, by introducing a portable-read-only mode as soon as an update to that file fails 2019-07-10 11:05:12 +02:00
Ansgar Becker
a249753683 Make mysql_fetch_field() available. Helps in debugging #697. 2019-07-08 20:25:42 +02:00
Ansgar Becker
2a91a13b42 Issue #677:
* drop workaround for application crash on WinXP, when loading newer libmariadb (see #79)
* raise TDbLib's own exception instead of baking an own one with less details. Probably helps in debugging: https://www.heidisql.com/forum.php?t=34044
* rename EDatabaseError to EDbError, to overcome naming conflict in DB unit
* load libpq.dll always with path, which should anyway work better than without it. See http://www.heidisql.com/forum.php?t=22514
2019-07-08 20:23:05 +02:00
Ansgar Becker
4f9613b05c High DPI: fix growing window dimensions on each opening. Related to #378 2019-07-07 21:22:19 +02:00
Ansgar Becker
535336850a Fix wrong calculated height and width of tool buttons after DPI change / move between monitors. Closes #446 2019-07-07 09:42:14 +02:00
Ansgar Becker
2c5d6eb49a High DPI: fix wrong height of status bar, by not setting it to what GetTextHeight returns. Maybe also related to #483. 2019-07-06 16:03:40 +02:00
Ansgar Becker
e804db8fcc Issue #677: provide a new library combobox in MySQL mode, for selecting any of the libmysql/mariadb.dll files from the application directory 2019-07-05 06:44:10 +02:00
Ansgar Becker
a9fd8be2f3 Fix new crash in ConnectionInfo (mouse over server version status panel) 2019-06-30 08:59:49 +02:00
Ansgar Becker
92a34000e3 Escape double quotes in SSH password for plink command. Closes issue #261 2019-06-29 08:02:52 +02:00
Ansgar Becker
f2ed7b01a1 Use UnescapeString() to remove more escape sequences than a duplicated single quote. Move ExtractLiteral() to TDBConnection, as UnescapeString() depends on the connection type. Closes #690. 2019-06-26 19:52:22 +02:00
Ansgar Becker
5670ba50fd Fix some suspicious places which can cause exceptions when data tab is open and current connection is being closed. Probably closes #615. 2019-06-24 21:45:04 +02:00
Ansgar Becker
a6ea858880 Use the same new dll loading mechanism also for PostgreSQL's libpq.dll 2019-06-22 17:57:46 +02:00
Ansgar Becker
1d6a415f5f Refactor: rename mysql_structures unit neutrally to dbstructures 2019-06-22 14:26:41 +02:00
Ansgar Becker
c91ab241e3 Fix wrong data shown in data tab, when switching between a table/database with the same name on different servers 2019-06-22 14:16:07 +02:00
Ansgar Becker
c844032197 Use mysql_optionsv to tell newer MySQL servers HeidiSQL's program_name, visible then in performance_schema.session_connect_attrs 2019-06-19 22:47:34 +02:00
Ansgar Becker
59e3ba4b34 Fix duplicated application directory prepended on library path 2019-06-19 22:45:14 +02:00
Ansgar Becker
a77eedde58 Experimental: introduce TDbLib and descendant TMySQLLib, and outsource dll loading mechanism there, out of DoBeforeConnect 2019-06-19 21:15:22 +02:00
Ansgar Becker
e704ecd371 Quick filter: only unique cell values in "IN (...)" generation 2019-06-19 17:51:04 +02:00
Ansgar Becker
e4a9016348 Issue #296: enhance checkbox phrasing, and move it above to the other checkboxes 2019-06-12 20:34:03 +02:00
Ansgar Becker
51e55433d3 Fix compiler warnings, and add documentation 2019-06-12 20:15:50 +02:00
Chad Whitely
fb2e3ef029 Cleartext syntax changes 2019-06-12 06:36:02 +02:00
Chad Whitely
0facfaa5cc Add cleartext option to sessions 2019-06-12 06:36:02 +02:00
Ansgar Becker
6641b82a43 Issue #578: prefer Invalidate over Repaint, as the lists may not be displayed at all and may crash when forcing a repaint 2019-06-11 07:16:45 +02:00
Ansgar Becker
f349ed9583 Table editor: root nodes in indexes and foreign key list are defined in BeforePaint event, so repaint these explicitly when table properties have been read. Closes #578. 2019-06-11 07:11:11 +02:00
Ansgar Becker
bda7b932d1 Define default values for port and username of all supported server types. Also, do not change them in the session manager, when user selects a different sub type of the same server. 2019-06-09 09:27:17 +02:00
Ansgar Becker
5995a4009e Issue #140: restore width and height of query tab editors along with their filename 2019-06-09 08:39:12 +02:00
Ansgar Becker
ba24c39987 Report active theme name, so we are once probably able to remove some of them which are mostly unused, to speed up application start 2019-06-08 09:19:35 +02:00
Ansgar Becker
0cd6ab7a0d Remove unused variable 2019-06-08 08:49:08 +02:00
Ansgar Becker
ad0975eab8 Fix wrong position of dropped column on index tab. Closes #385. 2019-06-08 08:48:14 +02:00