Commit Graph

42 Commits

Author SHA1 Message Date
Ansgar Becker
e521f7ab0c CSV import: add checkbox option for keeping dialog open after successful import, so the user may process multiple files with less clicks 2024-07-23 19:39:56 +02:00
Ansgar Becker
9c5d8358e0 Automagic modifications to form files, done through updates of IDE and some components. Especially removes no longer published properties OldCreateOrder and PixelsPerInch. 2022-12-11 14:54:48 +01:00
Ansgar Becker
b3365319b0 Issue #1503: Set the new (slightly higher) default font size for 100% DPI setting on all other forms as well 2021-12-27 07:44:51 +01:00
Ansgar Becker
cb1024b048 Fix more potential theme related EAccessViolation's, due to Action:=caFree in OnClose event of modal forms. Their caller now frees these modal forms. In non-modal forms, keep caFree in OnClose but remove existing OnDestroy events, moving code to OnClose instead.
https://www.heidisql.com/forum.php?t=38043
https://stackoverflow.com/questions/2075405/how-to-close-non-modal-form-in-delphi
2021-06-22 20:37:34 +02:00
Ansgar Becker
37cd83410b Prefer hardcoded width of button toolbar on CSV import dialog. Closes #1258 2020-12-13 13:35:59 +01:00
Ansgar Becker
3182107aff Automatic form additions, done by the new IDE: "ImageName". Related to #1052 2020-06-07 20:11:24 +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
5aafc46fca Sort encoding names in CSV import dialog alphabetically. Closes #579. 2019-03-18 20:22:52 +01:00
Ansgar Becker
aa0540921c Issue #448: Apply 192 new icons mainly from Icons8 gallery, with an OpenSource permission (talked to Eugenie from Icons8) 2019-01-26 19:15:25 +01: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
77a892cb21 Again, try to fix the high DPI issue on the text file import dialog. This time by moving the button toolbar below the "Columns" label. Closes #328. 2018-08-20 09:30:04 +02:00
Ansgar Becker
71dbb9ecb0 Give side-by-side group boxes on text import dialog the same width 2018-08-18 18:02:59 +02:00
Ansgar Becker
6196893ef3 Move columns tool buttons on text import dialog from right to bottom. Should fix positioning in high DPI mode. Closes #328. 2018-08-18 17:44:38 +02:00
Ansgar Becker
2c7cf7ace0 Add "check/uncheck all" button to column selector in textfile import dialog. See http://www.heidisql.com/forum.php?t=13566 2014-11-08 14:28:42 +00:00
Ansgar Becker
bf3ff4eecb Adjust width of more controls so they fit to the translated captions (at least in German). Related to issue #557. 2012-12-08 07:38:50 +00:00
Ansgar Becker
53444c700a Add "truncate table" feature to text import dialog. See http://www.heidisql.com/forum.php?t=9367 2011-11-10 22:15:42 +00:00
Ansgar Becker
14150b15be Disable move buttons as long as there is no movable column. Fixes issue #2488 2011-07-06 17:19:38 +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
b16b7010a2 Issue #2134: More enhancements for text import dialog:
- Add option to unformat local numbers from file contents
- Add option "Low priority" again
- Fetch warnings and notes via SHOW WARNINGS, display them in log panel and leave dialog open if there are any
- Inform user if 0 rows were imported and display hint about what could be the cause
2010-09-05 10:33:39 +00:00
Ansgar Becker
b51123ee2c Reorganize "import textfile" dialog, and implement an own CSV parser, selectable as an alternative to the LOAD DATA method. Fixes issue #2134. 2010-09-03 22:22:23 +00:00
Ansgar Becker
8baeb35652 Fix stuff on "Import Textfile" dialog:
* Store settings in FormDestroy instead of btnImportClick
* Restore settings in FormCreate instead of FormShow
* Turn editFilename into a TButtonedEdit, including the file browse button
* Turn SpeedButtons for column moving into a TToolbar, to remove hackish code for assigning icons
* Increase dropdown items on charset pulldown, to decrease the need to scroll.
2010-03-08 23:07:17 +00:00
Ansgar Becker
e045cb3d76 Delphi 2010 has PNG + alpha channel support in TImageList, so we don't need PNGcomponents any longer. 2010-02-08 00:36:17 +00:00
Ansgar Becker
30e40ac897 Automatic dfm changes by IDE: Removed ComboBox.ItemHeight property and auto-adjusted dimensions of various buttons and other controls. 2010-01-30 08:15:31 +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
rosenfield.albert
8610147eaa The CSV files currently supported are not standard CSV files but MySQL-specific ones in a format compliant with LOAD DATA INFILE.
Importing normal CSV files will give odd effects, such as the text "\12" in a field being converted to a character value etc.

Change the text in the open dialog to read "MySQL CSV file"...
2009-04-28 21:35:33 +00:00
rosenfield.albert
86d034b7d0 * Exclude "0x" from XML and CSV files, making the hex strings easier to parse on import.
* Handle NULLs explicitly in HTML export.
* Switch CSV import defaults to match those used by export.  Helps with issue #709.
2008-09-04 13:07:48 +00:00
Ansgar Becker
cc901ae8d3 Fix bug #693 Import CSV file: LOAD DATA statement breaks data if the CSV file has a different charset than the current DB. Implements the discussed pulldown on the first page of the dialog, below the file input. Defaults to UTF-8 selection. 2008-09-02 23:11:05 +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
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
1cc757ba73 Delphi insists on moving these TPngSpeedButtons somewhere else in the DFM files. Properties are all kept, only the positions in the files have changed.
I have a slight feeling that this change fixes at least one access violation in the last nightly builds which I cannot reproduce when I compile these changed files.
2008-03-10 20:24:14 +00:00
Ansgar Becker
38caa4cd99 Make most "btnCancelClick" procedures superflous by assigning the correct ModalResult (mrCancel) to the relevant cancel buttons. 2008-03-09 20:27:12 +00:00
Ansgar Becker
e53db0a9b7 PngIcons:
- Ban glyph data of all TSpeedButton's + TBitBtn's out of dfm files by converting them to TPngSpeedButtons and assign an image from PngImageListMain at runtime.
- Add "highlight" versions of "database" and "table" icons and use these on selected DBtree nodes.
- Remove no longer used BMP icons

Todo: Fill PngImageListMain at runtime.
Note 1: TBitBtn's are not Windows-theme-aware, even with a manifest in place, so we should avoid using them anywhere.
Note 2: T(Png)SpeedButton lacks a TabOrder property, so some of the other TabOrder's are automatically changed here.
2008-03-09 19:56:52 +00:00
Ansgar Becker
c13318714e Upgrade old forms to use Tahoma font. Adjust widths of various TLabel's to make their captions fit with the new font. 2007-09-26 19:36:19 +00:00
Ansgar Becker
6936031742 Replace a note on the loaddata-form about an unsupported feature by a simple version check routine which enables/disables the calling controls. 2007-07-07 18:51:02 +00:00
Ansgar Becker
2c3f1a02b4 Perform some check routines before enabling the "Import"-button. 2007-07-07 18:39:36 +00:00
Ansgar Becker
530d45a660 Reorder components on dialog for CSV-import and use the same pagecontrol-layout as on ExportSQL-dialog. 2007-07-07 18:28:22 +00:00
Ansgar Becker
bf68e4433c Improvements for CSV import dialog:
* Add feature: Read and write all options from / to registry, using some existing CSV-options
* Fix bug: Correct escaping for db, table, columns, values for terminator, etc.
* Style change: Drop superflous checkboxes from checkbox/edit pairs to save clicks. Checking for empty edits has the same effect.
* Style change: Don't convert backslashes in filename to slashes. No need to take care of escaping, esc() does that better.
2007-07-05 19:45:18 +00:00
Ansgar Becker
8bc4e646f3 Sanitize default component names. 2007-07-05 18:49:56 +00:00
Ansgar Becker
fe6d534120 Move creation of loaddataform from application startup to a place where it's done on demand. 2007-07-03 19:26:17 +00:00
Ansgar Becker
3c8f123a81 Move *.pas, *.dfm and *.inc files from root directory to a new "source" subdirectory. Leaving just the readme in the root to give all newbies a very clear and unique starting point. 2007-06-28 20:00:04 +00:00