Ansgar Becker
f3ce46af4d
Update VirtualTrees component code to release v7.6.6 from Jan 12 2024
2024-01-29 15:00:26 +01:00
Ansgar Becker
0d9de512cd
Remove unit scopes from project settings, prefer fully qualified unit names in uses clauses. Enhance readability and compiler performance.
2022-12-26 17:59:19 +01:00
Ansgar Becker
965e88b579
Delphi 11.1: fix VirtualTree package files, fix missing uses clauses, and some newly required type casts
2022-06-18 18:08:00 +02:00
Ansgar Becker
d46716ff2e
Issue #1503 : reactivate DPI awareness, and try to read/write component dimensions DPI independently
2021-12-26 13:06:24 +01:00
Ansgar Becker
19677fa7f0
Let a second version of EscapeString decide itself whether to quote a string, based on the given datatype. Closes #1386
2021-06-09 20:10:00 +02:00
Ansgar Becker
65cf4a5820
Introduce an auto-quoting mode in TDBConnection.EscapeString, and use that to get rid of quotes around hex values and integers in quick filters
2021-05-01 07:35:56 +02:00
Ansgar Becker
3eb3480e1c
Get rid of global esc() function (which always refers to MainForm.ActiveConnection) and prefer the method's or unit's connection object instead
2020-05-10 13:41:15 +02:00
Ansgar Becker
9c6769196d
Apply DBtree's OnPaintText code to dialog for selecting user privilege object, so we get bold focused path there as well. Related to #785
2019-11-01 13:49:11 +01: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
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
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
4f9613b05c
High DPI: fix growing window dimensions on each opening. Related to #378
2019-07-07 21:22:19 +02:00
Ansgar Becker
cdb10d8005
Required code updates for recent VirtualTreeview update
2018-12-11 21:50:26 +01:00
Ansgar Becker
3759611c34
Issue #8 : convert system colors applied by code into their theme color
2018-10-27 17:47:16 +02:00
Ansgar Becker
9cdcd63145
Issue #213 : Assign system or custom font once, to the application, and let all forms inherit that font, so there is no need to call InheritFont() for each form.
2018-10-25 19:24:45 +02:00
Ansgar Becker
5a8a4af29a
Rename helpers unit to apphelpers, to overcome a naming conflict with the FireMonkey unit FMX.Canvas.GPU.Helpers. Closes #102 .
2018-01-22 19:48:17 +01:00
Ansgar Becker
ade0bd3f44
Support multiple objects selected in user manager > add object.
2016-08-29 18:37:00 +00:00
Ansgar Becker
6e608f157e
Replace out-dated code which does not compile in 64bit mode in helpers.SetWindowSizeGrip. Use a TForm descendant in the new unit "extra_controls". Code parts taken from http://www.delphigroups.info/2/4/326787.html
2013-11-01 14:54:13 +00:00
Ansgar Becker
ca1d94c87b
Issue #557 : Include gnugettext.pas from https://dxgettext.svn.sourceforge.net/svnroot/dxgettext/trunk/dxgettext/sample/ . And add basic code to all FormCreate events to translate their components in the future.
2012-11-10 14:28:44 +00:00
Ansgar Becker
90ab0b6cf1
Refactor logic for reading and writing application and session settings:
...
* Introduce TAppSettings, created in dpr file
* Implement read and write methods, and replace callers of GetRegValue and MainReg.WriteInt/... with these
* Optimize read and write methods for avoiding redundant accesses to registry
* Auto-remove stored default settings from registry to avoid registry spam
* Replace synced MainForm.pref* variables with TAppSettings.Read* calls
* Move SetLocales call to dpr file
* Move MainForm.FDirname* variables to appropriate methods in helpers.pas
* Implement TQueryHistory.Create(SessionPath), reading its items within constructor
2012-08-19 10:55:08 +00:00
Ansgar Becker
c0f97fd160
Documentation
2012-03-13 22:13:14 +00:00
Ansgar Becker
88115dcb26
Code cosmetic: Remove unused FColumns list, and set FConnection once instead of accessing outside instance.
2012-01-03 23:58:44 +00:00
Ansgar Becker
40cdacc1a6
Enable OK button when user types custom object name. Fixes issue #2669 .
2012-01-03 23:56:28 +00:00
Ansgar Becker
3824e552fe
Rewrite import file dialog: Use a grid for column values, distinct between binary and text files
2011-07-11 06:13:50 +00:00
Ansgar Becker
e96fa77cbd
Do not cache dialog instances any longer. OnCreate code is mostly very quick, and caching them adds quite some pitfalls into the code. Not to mention 30 lines less code in main.pas now :)
2011-06-26 20:01:42 +00:00
Ansgar Becker
a9f1f076b0
Fix two minor compiler warnings.
2011-03-17 23:07:02 +00:00
Ansgar Becker
49a97584e6
Code preparation for non-MySQL connections: Extract abstract stuff into a new TDBConnection class, and let TMySQLConnection derive from that. Same with TDBQuery / TMySQLQuery. See issue #1008 .
2011-03-17 23:03:54 +00:00
Ansgar Becker
deb0c1afbf
User manager: Turn custom object editors into one single editor for a wildcard database. Enhances what r3681 did for issue #2299 .
2011-02-08 22:11:43 +00:00
Ansgar Becker
9e8ddad470
User manager: Allow applying dbs with wildcards via custom input text, while escaping mouse-selected objects from tree. Fixes issue #2299 .
2011-02-08 00:11:33 +00:00
Ansgar Becker
b6f7c17ac1
Rewrite code behind user manager dialog:
...
- Use GRANT + REVOKE queries as recommended by MySQL.
- Fixes various wrong INSERTs/UPDATEs which were intended to normalize structure in mysql db.
- Remove features: max query count per hour/day/...
- Enables user to assign stored routine privileges now, see http://www.heidisql.com/forum.php?t=6684
- Add "Clone user" button, fixes issue #1316
- Add "Repeat password" edit box, fixes issue #1461
- Paint privilege text in different colors for read/write/admin commands.
2010-11-10 21:15:54 +00:00
Ansgar Becker
0fa6c15c9d
Implement multiple connections per window. DBtree and friends now have their nodes bound to TDBObject instances. Fixes issue #2144 .
2010-10-05 23:06:29 +00:00
Ansgar Becker
97f01a175b
Move database filter again from mainform to session manager, so people without privilege to run SHOW DATABASE are not stuck. Fixes issue #1485 . Also, allow to see available databases when user does a dropdown. Also, simplify logic for refreshing database list in mainform.
2010-04-22 15:16:27 +00:00
Ansgar Becker
9080ad7607
No need to use the Wide* version of string functions any longer.
2010-01-15 20:28:48 +00:00
Ansgar Becker
52ea8f410a
Use Unicode enabled TStringList instead of TWideStringList in all places. Should have no visible effect, apart from a very minor performance optimization, as String reference pointers are handled by Delphi, WideString by Windows.
2010-01-14 19:41:58 +00:00
Ansgar Becker
7d401ffde8
Upgrade to Delphi 2010:
...
* Removes TNT Unicode controls, which are no longer required. All VCL controls now have native Unicode support.
* Remove Delphi 11 packages, otherwise we would either need to keep TNT or break Unicode
* PngComponents update from Uwe Raabe on http://cc.embarcadero.com/Item/26127
* Adjust auto build process
* Since Delphi 2009, Strings are now UnicodeStrings, not AnsiStrings any longer. Fix a bunch of compiler errors which came along with this change.
TODO: Project should compile but give tons of compiler warnings.
2010-01-05 23:14:33 +00:00
Ansgar Becker
e356cb7ed7
Sanitize all "uses" clauses from unneeded unit references.
2009-12-22 23:19:56 +00:00
Ansgar Becker
62764fa5e3
Fix access violation when trying to expand a trigger or routine in order to fetch its columns.
2009-12-19 21:18:57 +00:00
Ansgar Becker
91063382b2
Use DBtree's events in a similar tree, to remove redundant code. Fixes wrong node icons for routines and triggers.
2009-12-19 21:13:56 +00:00
Ansgar Becker
35e8bbb304
Do not fetch database objects from information_schema, which has gotten extremely slow on servers with many databases and triggers, since we support triggers.
...
* Instead, use separate SHOW commands for tables, functions, procedures and triggers
* Catch this chance to move these methods from main unit to mysql_connection, so they're accessible in a more generic way
* Additionally, introduce new classes TDBObject and TDBObjectList which provide a more generic way than TMySQLQuery to access these database objects.
Fixes issue #1529
2009-12-19 11:40:28 +00:00
Ansgar Becker
12a8e2ebc5
Implement a more lightweight connection layer, consisting of 2 units in source directory. Breaks threading and window to window communication, which should be reimplemented later.
2009-10-28 00:08:49 +00:00
Ansgar Becker
f01893d08a
Experimental: Reintroduce table tab, this time by placing the existing editors for tables, views and routines as TFrames onto that tab. Unfortunately a whole bunch of GUI changes involved here which makes the diff unreadable. Should solve issue #1149 .
2009-06-04 12:56:55 +00:00
Ansgar Becker
dbb84e6df9
Integrate stored procedures and functions into the GUI flow, so they are visible like tables and editable from everywhere.
...
- FetchDbTableList now makes use of various tables in INFORMATION_SCHEMA if available - the only way of listing stored routines.
- If a routine is selected, Table + Data tab hide their grids and display a corresponding message instead. Seemed the only way to keep the normal flow of clicks, not changing too much click logic.
2009-03-02 21:40:44 +00:00
Ansgar Becker
909d31fd64
Simplify writing settings to registry:
...
* Keep only one TRegistry object in memory instead of creating a new one in each routine.
* Move out relevant functions and TRegistry object from main to helpers to make them usable globally.
2009-01-03 17:16:11 +00:00
Ansgar Becker
f1b3f5501f
Remove last traces of MDI (issue #513 ). Merges code, controls and events from childwin into main.
2009-01-01 23:24:36 +00:00
Ansgar Becker
2efb248325
Virtual Tree needs a further fix for usage with custom DPI settings: its default node height is hardcoded and only works for 96 DPI. Make that dynamically by checking the grid's font height. Fixes issue #705 : Unreadable text on Vista
2008-09-02 18:34:39 +00:00
Ansgar Becker
9a52593dc2
Use Vista's Segeo font for all forms by using the SetVistaFonts() in mainform plus the new routine InheritFont() which simply overtakes fontname and size from the mainform to all other forms.
2008-08-29 18:20:14 +00:00
Ansgar Becker
6daf4b3f76
Fix most remaining Unicode unsafe GUI controls.
2008-08-25 20:24:00 +00:00
Ansgar Becker
aabd4bbf57
Add some more support for databases and tables with unicode characters.
2008-08-08 19:32:24 +00:00
rosenfield.albert
bf24403596
* Crashed tables were mistaken for views. Fixes issue #650 .
...
* Add separate node type for crashed tables, so that some sort of a graphic can be associated with those.
2008-08-07 23:17:28 +00:00