Commit graph

22 commits

Author SHA1 Message Date
eelke
b0fa02455c Remove all of plugin_support 2019-08-15 18:00:19 +02:00
eelke
601d071d0f Proof of concept for having the context actions statically defined in the module.
Needs work for correctly placing the items in menu and on toolbar.
Old system still needs to be removed left in place to keep app useable.
2019-08-14 09:06:48 +02:00
eelke
a704332342 Work on plugin mechanism
Context actions have become normal actions in the pluginwidget so the widget knows abot them and
can easily do things like enable/disable.
2019-02-08 10:10:11 +01:00
eelke
be2ffd7ef9 Bunch of renames to reduce confusion. 2019-01-31 19:31:17 +01:00
eelke
3e4917428d TablesPage is now CatalogInspector and is now a module. 2019-01-06 10:11:48 +01:00
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
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
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
1da8ef7407 Remove all knowledge of DatabaseWindow from CrudTab (unwanted dependency) 2018-12-31 09:51:52 +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
62c6ad5bfb Improved support from removing rows in crud tabs.
It can handle now complex selections and reports back errors encountered
when removing the rows fails.
2018-12-15 11:24:58 +01:00
eelke
fcb191f2cc Overview of triggers extended with function name and arguments.
Did a lot of refactoring on the catalog to keep things clean.
2018-11-18 19:30:45 +01: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
8c20bd6a02 Added delete support to the CRUD system. 2018-04-08 09:03:03 +02:00
eelke
ad3f605ada Some rudementary refresh support in crud tab bound to execute action (should be replaced with dynamic action list on form) 2018-02-05 22:40:17 +01:00
eelke
d626c19e14 Basic support for update in Crud implementation, error reporting and transfering data to modified set is still missing. 2018-02-05 21:42:54 +01:00
eelke
a543ccb021 CrudTab uses new PgLabItemDelegate, no need anymore for CrudModel to inherit BaseTableModel. 2018-01-15 13:30:30 +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
14ab400ccb Bezig met crudmodel/tab 2018-01-08 20:45:52 +01:00