Commit Graph

712 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
190630641c Update BUILDING instructions
See issue #29.
2014-05-29 21:18:11 +02:00
Martin Kleusberg
2e6d9d6a25 Readme: Qt3support is not needed for compilation
See issue #31.
2014-05-29 21:12:44 +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
Peinthor Rene
e80aab1c83 Merge pull request #21 from Shouqun/highdpi-text
Add High DPI text rendering support for Mac OSX.
2014-05-26 11:12:55 +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
Martin Kleusberg
be401ad477 Fix project files of libraries to compile with Qt5
This should fix issue #11.
2014-05-22 20:19:10 +02:00
Justin Clift
8f929a535f Added link to the website in the README.md 2014-05-21 05:41:35 +01:00
Justin Clift
c83b625ac7 Add OSX 10.9 to working list, and warn about quote char in path 2014-05-21 05:39:54 +01: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
Justin Clift
8e94c10f67 Added 3.1 release 2014-05-20 15:47:11 +01:00
Peinthor Rene
d49678d585 announce new release 2014-05-17 10:46:19 +02: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
74d72bacda updater: give us a chance to point to a different release page 2014-05-16 18:21:38 +02:00
Peinthor Rene
7dc88babcd cmake: reindent file 2014-05-16 18:03:52 +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
4b12faf278 Update cmake file 2014-05-15 17:58:04 +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
Justin Clift
e568298077 Added link to website for Raquel Ravanini 2014-05-15 00:56:44 +01:00
Justin Clift
10717eb855 Added link to our new Twitter account 2014-05-15 00:46:11 +01:00
Justin Clift
0a7e31cad1 Added link to Jens Miltners GitHub user page 2014-05-14 17:14:31 +01:00
Peinthor Rene
466d78cf53 Fix missing include, worked with qt5 2014-05-14 07:26:42 +02:00