Commit graph

21 commits

Author SHA1 Message Date
eelke
7630723b69 Switched TablesTableModel to rely on the PgLabDelegate for formatting instead of the old model base class. 2018-08-27 21:12:27 +02:00
eelke
a4054ed789 Introduced global enum to keep track of custom roles we want to use in our datamodels. 2018-08-26 15:18:32 +02:00
eelke
ad4c6fd442 The PropertyProxyModel now properly maps the second column to the active row of the source.
It has a slot to receive the activeRow.
Used this in the TablesPage to let the property tab follow the currentIndex in the list of tables.
2018-08-26 07:59:15 +02:00
eelke
c6faafec59 Renamed HorizontalProxyModel to PropertyProxyModel as the original name didn't reflect
what we are going to morph it into.
2018-08-26 07:14:25 +02:00
eelke
3080523b0d First step in using HorizontalProxyModel to show selected row in properties table.
HorizontalProxyModel now inherits from QIdentityProxyModel which provides a more complete base implementation (maybe to much?)
for now it seems to do what we want, forward relevant signals which the abstract base didn't.
Issues: Properties table needs formatting and shows all rows as columns instead of values of a single row.
2018-08-26 07:11:46 +02:00
eelke
7c4f1a4752 fix: the source views for constraints and indexes are now cleared when the
model is reset as this will clear all selections.

Unfortunatly the selection model does not trigger a selectionChanged when
the model is reset.

Close #16
2018-08-05 11:57:27 +02:00
eelke
f1020ac56e Index DROP and CREATE statements are now shown.
For now the create is still single line. Either complex query is required
to get details for custom generator or we need to format after the fact.

Close #12
2018-08-05 11:27:05 +02:00
eelke
ec8c3ff5ec The list of tables can now be sorted by either name,schema or schema,name by clicking on the column headers. 2018-07-07 09:57:59 +02:00
eelke
61645d44ac Show moer information about the indexes. 2018-04-08 09:04:38 +02:00
eelke
e1405d5370 Use PgLabItemDelegate for indexes tab. 2018-01-15 13:31:37 +01:00
eelke
2ba27178a2 Double clicking a table now opens a CRUD page for that table however data cannot be changed yet thought it will display an editbox. 2018-01-09 20:39:43 +01:00
eelke
ec78dafa94 Removed on_ from the name of the slots to prevent warning about not being able to find the signals.
The old name followed the pattern used by Qt to automatically deduce what signal should
be connected to which slot. However as these are signals from a sub object it cannot find
them and I have made the connections manually. To prevent getting warnings at runtime
I changed the name.
2018-01-06 21:33:24 +01:00
eelke
97d4e2a1a4 Created IndexModel for displaying the indexes on a table. Constraints can now show the SQL to drop and create them.
The keyword list is now directly based of the official keyword list from postgresql.
2018-01-06 21:22:22 +01:00
eelke
a99f059b70 Added list of constraints to the tables page.
Last column shows the full textual definition until I have decided on
a better way to visualize the details.
2017-12-30 13:02:40 +01:00
eelke
b5254ac723 Have a working model for showing the namespaces in a tree with checkboxes.
The namespaces are currently spit into user and system. Later we might
add recognizing namespaces introduced by specific modules/extensions.
2017-12-29 08:39:08 +01:00
eelke
23840ce7c5 Cosmetic improvements. 2017-12-19 19:55:12 +01:00
eelke
3424b62aa0 Autosize column of column overview. 2017-12-17 20:05:09 +01:00
eelke
7051ef2efc The oid column is now shown for tables that are "with oids". 2017-12-17 19:54:23 +01:00
eelke
e9d72d391d PgAttribute loading + ColummnTableModel
Required enchancement to PgContainer to make multifield key work.
2017-12-12 20:13:53 +01:00
eelke
f9caadb59e For testing purposes a new table tab is created when a querytab is created. 2017-12-10 14:20:45 +01:00
eelke
43e6042794 First version of table overview tab, only design no implementation yet 2017-12-10 08:17:07 +01:00