Commit Graph

559 Commits

Author SHA1 Message Date
Martin Kleusberg 6e5c98b653 Grammar: Allow 'NULL' constraints
Allow NULL constraints in a column definition when parsing a CREATE
TABLE statement. Before this only NOT NULL constraints were parsed
correctly even though NULL is proper SQL as well - it's just a redundant
information.
2014-06-04 20:50:08 +02:00
Martin Kleusberg 5e1169b43d MainWindow: Keep column widths for each table in Browse Data tab
Store the column widths of the table view widget for each table/view
individually and restore them when changing back to the table/view.
2014-06-01 19:47:20 +02:00
Martin Kleusberg 2aaf7345ff Reduce scope of some variables 2014-05-30 19:13:43 +02:00
Peinthor Rene 040be65489 fix memory leak 2014-05-30 18:59:59 +02:00
Martin Kleusberg f8b2dd0ee3 ExportCsvDialog: Add option to define custom quote/separator chars
Make it possible to use other quote and separator characters than those
predefined in the respective combo boxes when exporting a CSV file.

See issue #23.
2014-05-30 18:11:49 +02:00
Martin Kleusberg 55435e2703 ImportCsvDialog: Add options to define custom quote/separator chars
Make it possible to use other quote and separator characters than those
predefined in the respective combo boxes when importing a CSV file.

See issue #23.
2014-05-30 17:54:13 +02:00
Martin Kleusberg a209e840b8 EditTableDialog: Also update the SQL when type is automatically changed
Also update the internal table representation and thus the SQL string at
the bottom of the window when the type of a column is changed
automatically, e.g. when the AI checkbox is clicked.

Closes #24.
2014-05-27 20:13:18 +02:00
Martin Kleusberg 2fcb131c25 MainWindow: Add keyboard shortcut for 'Write Changes' action
Closes #22.
2014-05-27 09:56:02 +02:00
Shouqun Liu ccfdf55840 Add High DPI text rendering support for Mac OSX.
For text render, adding 'NSHighResolutionCapable' key into plist fixes
high-dpi display
2014-05-26 16:26:31 +08:00
Martin Kleusberg ae4d04f9b1 EditDialog: Show warning when editing binary data in text mode 2014-05-25 17:30:57 +02:00
Martin Kleusberg 41296e3ac0 EditDialog: Increase size to fit the hex editor widget entirely 2014-05-25 17:15:28 +02:00
Martin Kleusberg c1bbbac56b CreateIndexDialog: Sort tables names alphabetically
Sort the table names in the combo box in the CreateIndexDialog
alphabetically.

Add the table icon to each entry of the combo box - not because there
are any possible object types other than tables here but just for
improved consistency with the rest of the UI.
2014-05-25 14:42:57 +02:00
Martin Kleusberg 297bfbce0a Move filter header from window to table widget and show sort indicators
Move the FilterTableHeader object from the MainWindow to the
ExtendedTableWidget class because it actually is a part of the latter,
not the former.

Show sort order arrows in the table header of the Browse Data tab after
clicking it.
2014-05-25 14:35:56 +02:00
Peinthor Rene 80d5c1a117 qt5 different including hit me again 2014-05-25 13:33:11 +02:00
Peinthor Rene 400746c9df remove virtual from MainWindow class
it is veeerryy unlikely anyone will ever extend this class
2014-05-25 13:24:22 +02:00
Peinthor Rene f7315f5f90 add a few more help menu entries
website, wiki, bug report
2014-05-25 12:58:01 +02:00
Martin Kleusberg 7b9a120d42 EditDialog: Improve handling of binary data in text mode
Make the EditDialog a bit more user friendly when editing binary data in
text mode:

Don't change back to the hex editor after changing any character.

Show the full binary data even if it contains a NULL byte.

Also (though a bit unrelated) disable rich text input for the text widget.

This partially fixes issue #19.
2014-05-25 11:53:31 +02:00
Peinthor Rene 516d71f146 Don't show cells with long text values as BLOB
Don't show cells with a text value longer than 1024 characters as
'(BLOB)'.

Also don't change back to binary mode in the EditDialog after manually
switching to the text mode.

Closes issue #16.
2014-05-24 20:34:03 +02:00
Martin Kleusberg 42501d31fe Fix some strings in the MainWindow form file
Change the tool tips and help texts for the navigation buttons in the
Browse Data tab. They were still referring to the old concept of pages
of 1000 records.
2014-05-24 20:24:20 +02:00
Martin Kleusberg ca56fb9f4a Fix project file 2014-05-24 20:19:48 +02:00
Martin Kleusberg c24fa1fcbc Translation: Begin German translation 2014-05-24 20:12:24 +02:00
Martin Kleusberg dac1ed1fdb Fix last commit.
Still had some debug code in there. Sorry!!
2014-05-24 20:03:13 +02:00
Martin Kleusberg 51be349c74 Fix loading of translation files
The QTranslator objects need to be stored as class attributes as
otherwise they are destroyed after the Application constructor is done
and translations won't work.
2014-05-24 20:01:22 +02:00
Martin Kleusberg a6fdb49aa0 CSV import/export: Add pipe character as possible field separator 2014-05-24 19:28:08 +02:00
Justin Clift f9ffd0d887 Make About dialog larger, so it displays fully on OSX
Also specify font size better for bottom text, which was previously
unreadable on OSX 10.7.
2014-05-20 19:51:41 +01:00
Peinthor Rene 1126b6f7cd plot: windows or qt4 doesn't like empty column headers 2014-05-17 10:31:45 +02:00
Peinthor Rene b5e5d3b0c5 updater: show the url we got from the release file 2014-05-16 18:29:13 +02:00
Peinthor Rene 1fdf3e4fd4 updater: exit a possible redirect loop 2014-05-16 18:24:26 +02:00
Peinthor Rene edab586c08 plot: rescale to all drawn axis
I did miss this call on the customplot widget
2014-05-16 18:02:32 +02:00
Peinthor Rene 39ab238ddd plot: only select a color on double click
otherwise we will get some random globalcolor from qt
2014-05-16 17:49:42 +02:00
Peinthor Rene a4f8ee7721 plot: swap Y and X column
also add a dummy column so the color isn't shown the rest of the row
2014-05-16 17:37:12 +02:00
Peinthor Rene 404274be32 plot: keep the color between model updates 2014-05-16 17:32:25 +02:00
Martin Kleusberg dc54c548b7 Implement file associations on MacOS by reacting on QFileOpenEvent
Remove the deactivated MacOS dependent code for reacting on Cocoa events
for file associations from main.cpp

Try to implement the same functionality by reacting on QFileOpenEvent in
the Application class.
2014-05-15 17:52:00 +02:00
Martin Kleusberg a2905a66fd Update version number in MacOS bundle configuration file 2014-05-15 17:52:00 +02:00
Martin Kleusberg 08e8597ec8 Subclass QApplication and move most code from main() there
Create a new subclass of the QApplication class and move most of the
code in the main function to the constructor of the new class. This
makes the code a bit more consistent in terms of object orientedness,
makes it a little simpler and allows extending the new Application class
in the future.
2014-05-15 17:52:00 +02:00
Peinthor Rene 466d78cf53 Fix missing include, worked with qt5 2014-05-14 07:26:42 +02:00
Justin Clift fa1f154e64 Added multi-resolution icon file for OSX.
Created on OSX 10.7.5. I don't have a HiDPI monitor to test with
so hopefully it's ok.
2014-05-14 02:45:45 +01:00
Peinthor Rene da9f24836a plot: axis color is now chosen on activating an Y axis 2014-05-13 21:19:08 +02:00
Peinthor Rene 75b519df37 plot: no selection for tree plot columns widget 2014-05-13 21:18:22 +02:00
Justin Clift 8dfc8ad4fb Add placeholder 256x256 OSX icon image.
I'll do a proper one with all of the recommended sizes later if
John still has the source .svg.
2014-05-12 02:14:21 +01:00
Martin Kleusberg ddda08b673 Make sure the SQL editor has got the focus after creating a new tab
Focus the SQL editor of a newly created tab to make sure it receives
keyboard input without need to click it first. On my system this wasn't
the case after starting the application, i.e. the first time the SQL tab
is used.
2014-05-11 13:46:28 +02:00
Martin Kleusberg 770a37928b Plot: Suggest file formats in save dialog 2014-05-11 12:37:46 +02:00
Martin Kleusberg 1daff4a32c Update Windows icon and add script for creating new icons in the future
Add a script that takes the PNG application icon and converts it into a
multi-res Windows icon file.

Update the Windows icon file to match the new application icon.
2014-05-11 12:31:51 +02:00
Peinthor Rene 4ed5d9a778 plot: add a button to save the current plot as different file formats 2014-05-10 09:23:16 +02:00
Peinthor Rene e3db2fc3e3 make the aboutdialog a bit higher, didn't fully fit on my system 2014-05-10 08:41:34 +02:00
Martin Kleusberg c4a257256c Update the about dialog
Fix the link to the Qt project page. Also link to their page for license
information instead of pointing at a non-existant file in our
repository. This fixed issue #5.

Mention the Silk icon set in the about dialog and link to its page. This
should also make the hard-to-find CREDITS file dispensable.

Generally redesign the about dialog to use layouts for its design.
2014-05-09 21:59:14 +02:00
Peinthor Rene 2055bc6b26 plot: fix crash with selecting column out of range 2014-05-09 17:51:55 +02:00
Peinthor Rene c495524fbc fix a crash with browsing VIRTUAL tables, that we can't query 2014-05-09 17:41:00 +02:00
Peinthor Rene 9bd3cf1655 plot: add some comments 2014-05-09 17:29:00 +02:00
Peinthor Rene 062f2df775 plot: reselect columns after model change 2014-05-09 17:28:45 +02:00