eelke
f4f2474a81
Moved definition of widget instance actions to the module so other parts of the system can no about them.
...
The plugin system will create the Action objects and bind them to the specified slots of the
specific widget instances.
2019-01-05 19:58:23 +01:00
eelke
d0c4dabe8b
DatabaseWindow has no knowledge more of the existence of QueryTab but user can still create and use them within that window.
2019-01-05 11:12:47 +01:00
eelke
fd603a7434
Moving things from the application specific DatabaseWindow to generic LMainWindow (Leon framework)
...
To achieve flexibility the getDatabase call on the context which was application specific to
has been replaced with a type based object registry.
2019-01-05 09:49:12 +01:00
eelke
4a78330153
Proof of concept for binding signal to passed in slot name.
2019-01-04 18:46:02 +01:00
eelke
dc8a052544
Basic concept of MenuAction is working
...
Module can register action
Window adds this action to its menu
Clicking the menu item for the action has the expected result
But menu structure still needs work (everything is now put into one dropdown menu)
2019-01-01 11:15:16 +01:00
eelke
a29671593e
Simplified module registration
2019-01-01 08:26:20 +01:00
eelke
b0cd47ef46
Extended the plugin system to allow for dynamic runtime bindings between modules.
...
As a test implementation, this allows the TablesPage to open a CrudTab for a table/view without
the need for TablesPage, CrudTab and DatabaseWindow to know anything about each other.
2018-12-31 15:26:36 +01:00
eelke
f996703937
Corrected some usage of QueueTask that was already broken as QueueTask is defunct.
2018-12-31 15:19:16 +01:00
eelke
15bee33076
Made step to remove ASyncWindow in favour of usage of Future and FutureWatcher.
...
This should allow concurrency in the plugins to be independent from their container.
Contains also some work on the system for registering plugins.
2018-12-30 15:46:15 +01:00
eelke
a54a063c13
DatabaseWindow no longer has to pass the config to QueryTab, QueryTab can now init itself from the supplied context.
2018-12-30 15:44:05 +01:00
eelke
2a7e505dbf
Made a step in removing knowledge of DatabaseWindow from QueryTab as an effort to move
...
in the direction of a plugin system.
DatabaseWindow now passes a Context to QueryTab and other pages that give those pages an
API for passing information up the system without knowing anything about the sytem.
2018-12-29 18:59:54 +01:00
eelke
69473d65d2
Renamed MainWindow to DatabaseWindow so the name tells us the functionality provided by the window.
...
MainWindow was really a bad name as the app doesn't have a main window.
2018-12-28 12:55:11 +01:00
eelke
f0c1035378
Reorganize files in pglablib
...
The enitities and containers of the catalog now go into catalog subfolder
Models go into model
2018-12-16 11:31:33 +01:00
eelke
7db859737a
Use catalog instead of catalogue consistently
2018-11-25 09:05:01 +01:00
eelke
f629e48a85
Position of error marks is adjusted for selection.
...
Close : #20
2018-11-10 10:59:52 +01:00
eelke
f5145f36ed
wip: codegenerator, basic widget present for showing the generated code and specifying
...
parameters. Some code is also generated but it is not complete yet.
minimum still required
- field assignments
- properly format and escape the query string
2018-09-18 11:54:43 +02:00
eelke
50cb21b6f9
The list of indexes on a table now also shows the access method (ie btree)
2018-08-25 18:11:12 +02:00
eelke
78a6666839
WIP moving actions for toolbar to module system.
2018-08-05 09:07:12 +02:00
eelke
31afc6fcbf
Fix some warning
2018-08-05 09:05:24 +02:00
eelke
4dd526f32a
Icons on action supplied by the PlgPages.
2018-05-20 13:42:30 +02:00
eelke
3d516e6006
First tab at building a mechanism where tabpages can supply a list of actions that are added to the global main toolbar.
2018-05-14 20:24:41 +02:00
eelke
d67224858d
Focus query editor when opening new querytab.
...
Close #7
2018-04-21 14:36:33 +02:00
eelke
45b7d4fcbc
show location of error in gutter and as selection
...
Close #3
2018-04-09 21:44:00 +02:00
eelke
47ee1857cd
Added a gutter and currentline highlighting to the SQL editor.
...
Currently gutter only shows linenumbers. Code is mostly from http://doc.qt.io/qt-5/qtwidgets-widgets-codeeditor-example.html
There is a little bit included in this commit from a first try to make toobars adept to the current tab.
Code #2
2018-04-08 09:19:32 +02:00
eelke
3fb32f1200
Couple of minor changes.
2018-01-15 13:32:18 +01:00
eelke
abd4020ddf
Decided to use signal slot mechanism
...
The automatic cross thread activation is probably worth it.
2018-01-08 20:54:03 +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
23e307f93a
The ASyncDBConnection class uses C++ std::function callbacks now for reporting notices and state changes.
...
While I like some aspects of Qt's signals and slots system I prefer to
rely on more standard C++.
2017-12-28 07:28:21 +01:00
eelke
190a6c04dc
Made a start with showing foreignkeys in column list.
...
Not finished, need to decide what to do with multiple and multi column fkeys.
2017-12-25 10:31:58 +01:00
eelke
b5d800c87e
Added type of column on second line in column headers of QueryResultModel.
2017-12-13 18:49:58 +01:00
eelke
397138eef1
Explain works with parameters to now.
...
Also de deduplicated the callback lambda in the normal query execution.
2017-12-12 20:15:07 +01:00
eelke
6466062cc8
pg_classes can be loaded now, used in TablesTableModel for overview of tables in database.
2017-12-10 10:35:46 +01:00
eelke
ea035f58c8
Bunch of raw pointers replaced with smart pointers of references.
2017-12-09 20:21:22 +01:00
eelke
3bf1ef4fe0
Moved QueryParamListController to its own translation unit.
2017-12-09 14:16:47 +01:00
eelke
3a13b7ffb4
Messy commit. Testing suff and some improvements to how data is shown.
2017-12-09 10:45:13 +01:00
eelke
bebb3391c3
Builds on windows again
2017-11-26 13:07:21 +01:00