Commit Graph

13 Commits

Author SHA1 Message Date
Martin Kleusberg
64e07ad99e Show warning in Edit Table dialog when the grammar parser had trouble
The grammar parser returns a bool value to indicate if it encountered
some SQL feature that it doesn't understand yet. We might as well use
that bit of information and show it to the user.
2016-08-20 17:37:59 +02:00
Martin Kleusberg
24ce374bb0 EditTableDialog: Fix 'fooling' of list selection by dragging
See issue #261.
2015-04-23 19:52:06 +02:00
Martin Kleusberg
cde2393539 Use QScintilla instead of own implementation of a code editor
This is a first rough implementation of QScintilla support as SQL text
editor.

It should work mostly and build fine with qmake as well as cmake. The
new code supports all the features of the old one plus adding a few
subtle improvements. The main point of this, however, is reducing the
code we have to maintain and making it easier to add new features to the
editor.
2015-04-23 19:51:54 +02:00
Martin Kleusberg
3277849121 Add column to EditTableDialog to allow setting foreign key constraints
Add a new column to the fiel table in the Edit Table Dialog to allow the
user to add and edit foreign key constraints.
2014-11-06 18:33:19 +01:00
Martin Kleusberg
ba9931ac7f EditTableDialog: Add without rowid checkbox
Add a checkbox for setting the 'WITHOUT rowid' flag in the
EditTableDialog. All functionality concerning the checkbox is
implemented by this commit with one exception: Setting/unsetting the
flag on an existing table won't perform any changes yet.

See issue #51.
2014-08-27 18:50:55 +02:00
Peinthor Rene
ff50a94eef edittable: add ability to set the unique constraint on a table 2014-08-07 23:15:38 +02:00
Peinthor Rene
651e3bf146 edittable dialog: add splitter and better default size
I added a splitter and set better expanding properties
2014-06-13 18:14:09 +02:00
Martin Kleusberg
7167129464 EditTableDialog: Add buttons to move a field up and down
Add two buttons to move the currently selected field up or down to allow
changing the field order of a table.

Extend the DBBrowserDB::renameColumn() method to support changing the
position of a field.
2013-06-13 20:37:19 +02:00
Peinthor Rene
51b31503fe make the edittabledialog a bit wider so columns fit 2013-03-19 17:18:52 +01:00
Peinthor Rene
bf29ebb37c add new field properties default value and check constraint 2013-03-19 17:18:52 +01:00
Peinthor Rene
ac9901abc2 the sql text view should be read only 2013-03-16 20:36:30 +01:00
Peinthor Rene
05da4bfe8e Rework the create/modify table dialog.
In the crusade to remove the ugly edit field dialog.
Editing tables does currently not work because of a locking issue.
2013-03-16 20:22:23 +01:00
Martin Kleusberg
24c3eca2e5 Rename dialog files and classes
Rename the files and classes for the dialogs to share all the same
naming pattern. This should make navigation in the code a bit easier.
Do not include dialogs not rewritten yet; they'll be edited as they are
redesigned.
2013-01-08 21:19:01 +01:00