Commit Graph

415 Commits

Author SHA1 Message Date
Peinthor Rene
267d450805 don't force release target on antlr, it is release by default anyway 2013-04-18 19:01:08 +02:00
Martin Kleusberg
214a56d916 Partially revert 7073230 to fix filter row 2013-04-17 22:06:14 +02:00
Martin Kleusberg
e057f97773 ExtendedTableWidget: Fix jumpy scrolling
Fix wrong scrolling behaviour that ocurred when going to the very bottom
of the table and scrolling up slowly.
2013-04-17 20:26:55 +02:00
Peinthor Rene
c0441dcd97 Revert "don't canFetchMore on our own"
This reverts commit b9af3706e7.

As explained MKleusberg, this might be needed, and this practise
is also used by Qt itself.
2013-04-16 19:57:03 +02:00
Peinthor Rene
a7fd9f600e insert tables/views sorted in browse combobox 2013-04-16 17:24:32 +02:00
Peinthor Rene
a2b3a57ddd use new SqliteTableModel with the executequery tab 2013-04-15 17:46:29 +02:00
Peinthor Rene
707323067d get setQuery without setTable working again 2013-04-15 17:45:41 +02:00
Peinthor Rene
e2d75ff1cf add a check for valid querys 2013-04-15 17:35:28 +02:00
Peinthor Rene
b9af3706e7 don't canFetchMore on our own
This is called by Qt itself before showing more data.
2013-04-15 06:34:33 +02:00
Peinthor Rene
24c45c5695 Merge branch 'partial-data-fetch' 2013-04-14 21:43:54 +02:00
Peinthor Rene
ce4a93ea1f set override cursor if selecting a line 2013-04-14 21:41:48 +02:00
Peinthor Rene
6f3f21fbd7 increase default chunk size
this speeds up going to record 900000 significantly
2013-04-14 21:37:38 +02:00
Martin Kleusberg
49239dad1f ExtendedTableWidget: Make scrolling less awkward with lazy population
Improve the lazy population fatchData() calls when using the vertical
scrollbar to make scrolling a lot smoother. Still not perfect but
definitely a lot better than before.
2013-04-11 17:45:14 +02:00
Martin Kleusberg
ae6e452f36 SqliteTableModel: Notify view and parent class code when clearing cache
Call beginRemoveRows() and endRemoveRows() when emptying the cache. This
silences those warnings from QAbstractItemModel::endInsertRows() and
fixes a crash when exiting the program both ocurring when the data was
resorted.
2013-04-11 16:00:54 +02:00
Martin Kleusberg
7145872f66 SqliteTableModel: Fix wrong LIMIT value in fetchData() 2013-04-11 14:23:30 +02:00
Martin Kleusberg
c7e6684fc4 SqliteTableModel: Allow data() and setData() on rows not cached yet 2013-04-11 14:08:59 +02:00
Martin Kleusberg
f73e3f0546 SqliteTableModel: Fix really stupid bug in insertRows() and removeRows() 2013-04-10 20:44:00 +02:00
Martin Kleusberg
e5013da153 Update README 2013-04-10 19:28:48 +02:00
Martin Kleusberg
334cc26c57 SqliteTableModel: Speed up on large table in certain circumstances 2013-04-10 19:27:16 +02:00
Martin Kleusberg
1ba3169428 Fix CSV export to work with SqliteTableModel 2013-04-10 18:59:37 +02:00
Martin Kleusberg
f45b89b6c9 Fix SQL export to work with the SqliteTableModel 2013-04-10 18:51:18 +02:00
Martin Kleusberg
31bf07000b SqliteTableModel: Restore BLOB support and clean up DBSQLiteDB 2013-04-10 18:18:08 +02:00
Martin Kleusberg
2463cf3d5d Get rid of the find dialog
Remove the old find dialog. It's fully replaced by the new filter row
now. Good riddance!
2013-04-09 19:36:17 +02:00
Martin Kleusberg
44a635167d Allow different comparison operators in the new filter row
Allow other comparison methods than just the LIKE operator when using
the new filter row.
2013-04-09 19:28:21 +02:00
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
94512a3785 python script that creates a ~250mb test db with 1mio records 2013-04-07 22:54:28 +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