Commit Graph

390 Commits

Author SHA1 Message Date
Martin Kleusberg
6742f5632d Add a filter row to the table view in the browse tab
Add a row of line edits between the table header and the actual content
of the table in the browse tab. Show one input widget per table column
in this row.

Add a live search which hides any table rows which do not fit to the
current filter settings.

Why add this to the parital-data-fetch branch? Because this is an
attempt to get rid of the find dialog which is broken again and not even
worth fixing. Also there is not much to break in this branch at the
moment ;)
2013-04-09 18:52:37 +02:00
Peinthor Rene
9f2b0a60bd python script that creates a ~250mb test db with 1mio records 2013-04-07 22:53:29 +02:00
Peinthor Rene
217ca805a1 fix correct row insert 2013-04-07 22:47:25 +02:00
Martin Kleusberg
13db875acd Clear the table view in the browse tab when closing a database file 2013-04-07 20:55:56 +02:00
Martin Kleusberg
9d02480294 SqliteTableModel: Simplify code 2013-04-07 20:49:54 +02:00
Martin Kleusberg
225e5a1c74 SqliteTableModel: Don't crash when opening an empty table 2013-04-07 19:21:03 +02:00
Martin Kleusberg
77cf98fd53 SqliteTableModel: Inserting and deleting rows, clean up, bug fixes
Add some basic code to support inserting and deleting rows again.

Fix a few bugs here and there.

Do some general code clean up.
2013-04-07 19:08:40 +02:00
Martin Kleusberg
73bda97ce9 SqliteTableModel: Fix editing 2013-04-07 17:51:56 +02:00
Martin Kleusberg
3cd5792cea More improvements and fixes to the new SqliteTableModel
Change the way sorting is done to correctly sort all data even if it
hasn't been loaded completely yet.

Fix the navigation label and buttons by showing the correct information
again and fixing the validator of the input field.

Log all SQL statements executed from within the SqliteTableModel.

Silence a few warnings.
2013-04-07 17:30:35 +02:00
Martin Kleusberg
5d2139ce99 Kind of fix the find dialog when using the SqliteTableModel 2013-04-06 23:40:47 +02:00
Martin Kleusberg
00b9f40271 SqliteTableModel: Make editing of data possible again 2013-04-06 23:12:53 +02:00
Martin Kleusberg
f25892d6d2 SqliteTableModel: Do a few fixes and add sorting again
Fix empty rows being shown in the main window when changing to a table
with less rows than the old one.

Add sorting in the browse tab again.

Do some minor clean ups.
2013-04-06 22:09:36 +02:00
Peinthor Rene
93cce3d87f first working prototype 2013-04-06 12:22:50 +02:00
Peinthor Rene
5caba4b906 Merge pull request #16 from justinclift/compile_on_osx
Compile for current arch only, don't force x86.
2013-03-31 13:51:24 -07:00
Justin Clift
2bdae0caa4 Compile for current arch only, don't force x86. 2013-03-31 15:23:38 +01:00
Peinthor Rene
f2e5747a0a ifdef out the special mac code for now
it needs more fixing and I can't test it.
2013-03-31 10:27:22 +02:00
Peinthor Rene
d54bb46964 and another type mismatch on mac 2013-03-31 10:21:11 +02:00
Peinthor Rene
805944eab9 fix compile error on mac 2013-03-31 10:15:25 +02:00
Peinthor Rene
a258b66f1d don't build ppc versions anymore by default on mac 2013-03-31 00:16:49 +01:00
Peinthor Rene
c0f0f2fb38 small addition show the chosen color in the column 2013-03-30 18:17:11 +01:00
Martin Kleusberg
8e44d53e63 Simplify and improve code of last commit 2013-03-30 16:47:27 +01:00
Martin Kleusberg
d941073c25 Make syntax highlighting configurable
Add new options to the preferences dialog to change the colours and text
styles used in the SQL syntax highlighter.
2013-03-30 15:06:26 +01:00
Peinthor Rene
340af96deb fix additional space if we have no completionPrefix 2013-03-29 14:54:25 +01:00
Peinthor Rene
ed9941ac5e proper quote field names 2013-03-29 14:50:34 +01:00
Peinthor Rene
6b7361a6d6 Fix string hilighting and add better lexer rules 2013-03-29 14:50:20 +01:00
Peinthor Rene
7614f40146 forgot a ! after var rename 2013-03-28 21:16:00 +01:00
Peinthor Rene
b36800ea02 disable editing of table data if not a new table
we currently don't support it
2013-03-28 19:00:45 +01:00
Peinthor Rene
c5399932e2 no need to set the db into dirty state
we have rollbacked/committed anyway
2013-03-28 18:52:07 +01:00
Peinthor Rene
e46d3401df remove the *brrr* goto 2013-03-28 18:47:38 +01:00
Peinthor Rene
50b160227b only revert if the db wasn't dirty before
otherwise we might have reverted pre execute query transactions
2013-03-28 10:55:09 +01:00
Peinthor Rene
16a40ed349 it's now possible to specify the restore point name 2013-03-28 10:51:09 +01:00
Peinthor Rene
13eba0f5d4 improve the fix on the broken execute query transaction
should now do the same as before, but with working rollback and commit
2013-03-27 22:44:42 +01:00
Peinthor Rene
cea4afcd04 fix broken transaction logic if executing a query 2013-03-27 22:37:28 +01:00
Peinthor Rene
7644364130 partial selects and a hotkey for execute query
show the correct queryPart
also add some thoughts of me
2013-03-27 08:12:56 +01:00
Peinthor Rene
c6d5391672 don't insert nulls into columns with a default 2013-03-25 06:41:52 +01:00
Peinthor Rene
3d6b09ddb4 kill too long lines, no functional changes 2013-03-25 06:15:27 +01:00
unknown
d2c0452e2c fix the windows build 2013-03-24 23:40:13 +02:00
Peinthor Rene
be239d0f05 make the empty insert statement work in pk + not null situations 2013-03-24 21:53:01 +01:00
Peinthor Rene
ec650b0024 forgot to update the error message of add record 2013-03-24 21:44:22 +01:00
Peinthor Rene
fdb3e51827 show why we couldn't update the record 2013-03-24 21:36:51 +01:00
Peinthor Rene
7eb385b28d remove the defaultnewdata setting
it is useless now
2013-03-24 21:27:36 +01:00
Peinthor Rene
d7d6a861b2 Rework the kinda broken add record button
Now it should always be possible to add a new record,
no matter how the table is defined or what the new data default is.
The default new data setting will be removed in the next commit.
2013-03-24 21:26:01 +01:00
Peinthor Rene
d08f57c772 add a bit of documentation sqlb::Table::sql() 2013-03-24 21:22:07 +01:00
Peinthor Rene
0d601c03f1 add emptyinsertstm function to table object
creates an empty insert statement for the table fields
2013-03-24 21:20:49 +01:00
Peinthor Rene
c4f09765b3 add columns if modifying tables 2013-03-24 13:02:27 +01:00
Peinthor Rene
efef0cc5ac rename createColumn to addColumn
and make it work with the new sqltypes
2013-03-24 13:01:58 +01:00
Peinthor Rene
35449e7c1a rework the dropcolumn function
it now uses the sqlb::Table object preserving:
not null, default value, check constraint
2013-03-22 15:56:07 +01:00
Peinthor Rene
f75b361581 add method to easily remove fields from table 2013-03-22 15:51:44 +01:00
Peinthor Rene
f4187521ee improve the unittests for create table parsing 2013-03-22 15:50:26 +01:00
Peinthor Rene
ba6d51edf2 fix all warnings in the grammar and some bugs
literals were case sensitive so lower keywords broke parsing
2013-03-22 15:50:04 +01:00