Commit Graph

203 Commits

Author SHA1 Message Date
Martin Kleusberg
0180017dbd Delete the ChooseTableForm and DeleteTableForm dialogs
Delete those two dialog, the only use of which is to make it possible to
select a table which is totally pointless because the user can do this
in the main window and would probably do so intuitively anyway.
2013-01-02 20:03:33 +01:00
Martin Kleusberg
547e8d9964 Fix window caption of edit field dialog called by popup menu
Fix the caption of the edit field dialog to show the correct table name
when it is called by the modify field action in the popup menu or the
toolbar.
Also remove one more useless debug message.
2013-01-02 19:14:38 +01:00
Martin Kleusberg
29673568be Move preferences menu action to view menu 2013-01-02 19:10:38 +01:00
Martin Kleusberg
0f323dcbfa Allow all file names when opening a DB by drag & drop 2013-01-02 19:03:52 +01:00
Martin Kleusberg
eef1c04020 Rename files to match class names 2013-01-02 19:01:47 +01:00
Martin Kleusberg
0edfb7e9d3 Show triggers and views
Also show the triggers and views in the DB structure tab.
2013-01-02 18:50:27 +01:00
Martin Kleusberg
c0b2c073a6 Add license information for the icons used 2013-01-02 18:28:17 +01:00
Martin Kleusberg
e33077ef8e Detect and colourise comments in the SQL syntax highlighter 2013-01-01 17:09:13 +01:00
Martin Kleusberg
9092e7d41f Reduce the amount of those useless debug messages a bit 2013-01-01 16:31:22 +01:00
Martin Kleusberg
43496c9549 Merge editTableForm and createTableForm
Add the functionality needed to create new tables to the editTableForm
dialog.
Delete the createTableForm as it is no longer needed, also delete its
semi-finished replacement createTableDialog.
Fix not working add column function and as usual some other bugs here
and there.
2013-01-01 16:23:12 +01:00
Martin Kleusberg
9a9d32a5a7 Do not reload not needed information when changing the current tab
Do not query the table selected in the browse data tab when changing to
the database structure tab and vice versa.
2013-01-01 15:48:09 +01:00
Martin Kleusberg
c68900030b Add modify field action to toolbar 2013-01-01 15:41:31 +01:00
Martin Kleusberg
f623a62036 Always show all rows in table view of browse tab
Always show all rows of the current table in the browse tab of the main
window instead of limiting it to a 1000 per page.
Change the functionality of the buttons and inputs to change the page
accordingly.

Limiting the number of rows to a 1000 was probably done for performance
reasons but is a killer in terms of usability. And as we'll probably
move sooner or later to a model-view architecture that loads data on
demand, the performance when opening large tables will be more than
restored anyway.
2013-01-01 15:32:50 +01:00
Martin Kleusberg
979ed7a007 Clean up code, especially includes
Clean up the entire code a bit, especially by deleting unneeded defines
and includes. This should make the code a bit clearer and faster to
compile.
2012-12-31 18:01:48 +01:00
Martin Kleusberg
cb4686dbbf Fix input validation of custom field type field 2012-12-31 17:31:39 +01:00
Martin Kleusberg
21b9c83480 Fix editFieldForm to work correctly for newly added tables 2012-12-31 16:26:42 +01:00
Martin Kleusberg
d066c86507 Fix a number of bugs
Fix bug when closing the editFieldForm.
Fix bug that not always the correct database object was used.
Fix bug that changed field type when changing field name in editTableForm.
2012-12-31 16:16:25 +01:00
Martin Kleusberg
8c322b2dd1 Get rid of renameTableForm dialog
Delete the renameTableForm class and dialog. They are basically useless
as their functionality can (and has been) easily be integrated into the
editTableForm.
2012-12-31 15:58:57 +01:00
Martin Kleusberg
bab3683e18 Create Qt Designer form for editTableForm dialog 2012-12-31 15:56:33 +01:00
Martin Kleusberg
9fa8cc3ee4 Remove the addFieldTypeForm dialog
Delete the addFieldTypeForm dialog which appears to be quite useless.
It's not needed by editFieldForm anymore and would probably never been
of any use at all.
2012-12-31 01:17:41 +01:00
Martin Kleusberg
01f1e0b253 Use a Qt Designer form file for the editFieldForm dialog
Design the editFieldForm dialog in Qt Designer.
Also add custom field type support and fix some other issues.

The dialog is still doing nothing because support for modifying columns
is still missing in the SQLite interface.
2012-12-31 01:14:03 +01:00
Martin Kleusberg
4bf095ec13 Fix last commit 2012-12-31 00:15:21 +01:00
Martin Kleusberg
34e85abb71 Get rid of addfieldform
Get rid of the addFieldForm class and dialog and use the editFieldForm
instead.
Also fix the window caption of the editFieldForm dialogs called by the
editTableForm to show the correct table name.
2012-12-31 00:10:47 +01:00
Martin Kleusberg
29d72c3c92 Set the needed Qt modules properly in the project file 2012-12-30 22:44:35 +01:00
Martin Kleusberg
2295c58a0f Handle create table action 2012-12-30 20:28:40 +01:00
Martin Kleusberg
06b9bc02f3 Use a Qt Designer form file for the main window
Use the Qt Designer to build the main window form.
2012-12-30 19:57:39 +01:00
Martin Kleusberg
cfa7cd5eaf Fix identation 2012-12-30 16:29:35 +01:00
Martin Kleusberg
b2c8f57dfe Implement MainWindow::deleteTablePopup()
Implement the code to delete a table by using the context menu.
2012-12-30 15:55:05 +01:00
Martin Kleusberg
9a85e38c44 Use Qt designer for the preferences dialog
Use the Qt Designer for designing the preferences dialog instead of
doing that manually in code.
2012-12-30 15:01:35 +01:00
Peinthor Rene
2048920df0 add a freedesktop file 2012-12-23 23:53:54 +01:00
Peinthor Rene
516dbf8961 upgrade to sqlite version 3.7.15.1 2012-12-23 23:35:07 +01:00
Peinthor Rene
b81454c461 redo about dialog with version info and a qt designer file 2012-12-23 23:29:15 +01:00
Peinthor Rene
0c368ff7ad fix out of source builds 2012-12-23 22:07:56 +01:00
Peinthor Rene
63461df6c4 add current git hash to the app title 2012-07-31 18:51:30 +02:00
Peinthor Rene
00601b6f8d add CTRL+L shortcut for log view 2012-07-31 15:58:54 +02:00
Peinthor Rene
959e7ccf91 change the order in the browse data tab on header click
if a header is clicked in the browse data view
the sort order of the clicked column is used/changed
2012-07-31 15:55:21 +02:00
Peinthor Rene
d45678c551 on refresh don't reset column widths 2012-07-29 22:36:53 +02:00
Peinthor Rene
c7c191574d add alt+c shortcut to close db menu entry 2012-07-29 21:38:14 +02:00
Peinthor Rene
8c2c1903c9 better size hint for the table combobox 2012-06-12 20:02:36 +02:00
Peinthor Rene
433a126a06 resize column to contents in the data browser, but limit column size to 400 2012-06-11 16:42:29 +02:00
Peinthor Rene
1f760aac14 set horizontal scrollmode of result widgets to per pixel 2012-04-17 16:37:21 +02:00
Peinthor Rene
b42de4ac4c browsetab: set a simpled wrapped tooltip for items to quickly lookup long content 2012-04-03 17:08:58 +02:00
Peinthor Rene
d391f938bf syntaxhighlighter: Fix quotation matching 2012-04-03 16:40:38 +02:00
Peinthor Rene
aea23c0134 CTRL+F hotkey for the find window 2012-03-27 15:27:11 +02:00
Peinthor Rene
fa2a70405e improve the execute query tab.
Don't set db state to dirty if only selects are executed.
Result table isn't editable anymore and reset columns correctly
query string is correctly given as UTF8
2012-03-27 15:26:51 +02:00
Peinthor Rene
ec331b0c80 add F5 hotkey to the refresh button 2012-03-08 17:11:22 +01:00
Peinthor Rene
7eab9d069e avoid another useless copy 2012-03-07 18:23:37 +01:00
Peinthor Rene
ffebe2bb03 hightlight table names in the sql edit window 2012-03-07 18:21:06 +01:00
Peinthor Rene
cc82b47a77 add support for table names highlighting 2012-03-07 18:20:45 +01:00
Peinthor Rene
474cbf04eb rename private highlighter members 2012-03-07 18:20:27 +01:00