Commit Graph

37 Commits

Author SHA1 Message Date
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
56262e50a4 Issue #1577: make apphelpers.SelectNode more intelligent, returning true/false to indicate whether it successful went through OnFocusChanging event 2022-05-05 19:13:42 +02:00
Ansgar Becker
fe9bc11505 Do not auto-close search/replace dialog if no occurrences were found. Closes #896 2022-05-05 07:35:19 +02:00
Ansgar Becker
8955dc8d98 Issue #1577: break loop in search/replace on grid if advancing focus on next node is not allowed through OnFocusChanging event 2022-05-04 07:34:02 +02:00
Ansgar Becker
46cf71f540 Fix crash in search/replace dialog, when pressing F3 in some edge case 2022-03-21 18:11:59 +01:00
Ansgar Becker
87db1a162d Move some more query tab related code out of TMainForm into TQueryTabs 2021-06-04 09:03:47 +02:00
Ansgar Becker
869993e45d Fix unusable search/replace dialog in views and procedures. Closes #1376 2021-05-24 14:17:34 +02:00
Ansgar Becker
7883fd5baa Fix non-loaded previously used search and replace text in drop-down 2021-05-15 08:49:10 +02:00
Ansgar Becker
e0d3563c43 Issue #136: support read-only grid text editor in search/replace dialog, when query result is non editable 2021-05-13 11:13:52 +02:00
Ansgar Becker
3647316425 Issue #136: Create TSynMemo on text editor at design time, not at runtime. Not sure why I moved that in 2015.
* support find/replace using our self baken dialog
* fix non-working shortcuts for find/replace actions
2021-03-16 18:24:43 +01:00
Ansgar Becker
c878311b8b Fix grid search/replace with scope=selection. Closes #1233 2020-11-21 14:16:47 +01:00
Ansgar Becker
faaf1e29f9 Issue #819: add examples to some of the regular expression shorthands, and add \x for hex codes 2020-04-14 18:08:01 +02:00
Ansgar Becker
df0ab05be4 Issue #819: add two buttons right besides search and replace combo boxes, with a dropdown menu containing clickable hints on regular expression qualifiers 2020-04-14 17:48:27 +02:00
Ansgar Becker
ef4bdd9c55 Issue #819: extend hint for regular expression search/replace mode with \l \L \u and \U modifiers 2020-04-13 20:10:26 +02:00
Ansgar Becker
cedf8359ad Issue #819: extend hint for regular expression search/replace mode, as we now support uppercase replacements 2020-04-13 13:20:54 +02:00
Ansgar Becker
17e75e70da Refactor: rename helper function sstr() to something more readable, and optimize it slightly 2019-11-04 20:15:41 +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
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
David Rodrigues
9624a9b1bd As suggested by #634
User: @cookieguru
2019-05-13 07:36:24 +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
269ee242d9 Introduce GUI font preferences setting, so the user can customize the font of all dialogs and forms. Does not work with menus, however. See http://www.heidisql.com/forum.php?t=19666 2015-11-03 06:28:37 +00:00
Ansgar Becker
cd165aea92 Make search/replace dialog resizable 2014-12-27 18:39:48 +00:00
Ansgar Becker
8c3775fe0f Add "Save as textfile" action, and include that in routine editor > "CREATE code" tab > context menu. Fixes issue #3486. 2014-05-08 04:50:59 +00:00
Ansgar Becker
627f246f69 Load full row content before replacing text using the search+replace dialog on the data grid. Fixes issue #3252. 2013-09-22 05:27:57 +00:00
Ansgar Becker
7c96c04ed9 Make detection of active grid or editor in search/replace dialog more stable. 2013-02-24 09:30:12 +00:00
Ansgar Becker
88b3666bf1 Support search/replace in data and result grids. Fixes issue #2979. 2013-01-15 20:46:41 +00:00
Ansgar Becker
9d8b4cd83a Make more inline strings translatable. 2012-11-28 23:27:31 +00:00
Ansgar Becker
f96288fce9 Translate string variables and literals in .pas files. TODO: translate constants. 2012-11-26 05:44:01 +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
5e8bf8306a Remove unused unit inclusions, detected by CNPack/Uses cleaner 2012-05-01 08:34:12 +00:00
Ansgar Becker
da96a7c412 Implicitly activate backwards search when replacement string contains \n, to overcome the multi line bug described in previous commit. Suggestion from michaelgang, see http://www.heidisql.com/forum.php?t=8977 2011-08-18 10:50:59 +00:00
Ansgar Becker
fe2d5149a5 Add support for \t and \n for replacement in search+replace dialog. Accepting a multi line bug in SynEdit, which forces the user to search backwards when using \n in replacement. See http://www.heidisql.com/forum.php?t=8977 2011-08-18 06:41:49 +00:00
Ansgar Becker
3c0da9de03 Make search input find matching items case sensitively. Fixes issue #2343. 2011-03-13 19:04:38 +00:00
Ansgar Becker
02d29ea976 Implement a home brown find + replace dialog, supporting regular expressions, and using all stuff SynEdit gives us. Add main menu item "Search" next to "Edit". Fixes issue #1069. 2010-02-01 23:55:44 +00:00