Commit graph

22 commits

Author SHA1 Message Date
eelke
6fdf631fac Make double clicking on table in CatalogInspector open crud for selected table/view. 2019-08-16 10:49:38 +02:00
eelke
1a2ec6a224 DatabaseWindow now provides some functionality to its child components through the IDatabaseWindow interface.
This way children do not need to include the full header to get access to some utility functions for changing
the titles and icons of tabpages (and in fact do not need to know that there are tabs, could be something else)
2019-08-16 08:29:27 +02:00
eelke
6d4df99100 Add Cancel back to query menu 2019-08-16 08:27:05 +02:00
eelke
460d6f5809 Added back query menu with execute and explain option. 2019-08-16 07:23:18 +02:00
eelke
e2fa613a49 Most of menu is back in its original state before the plugin experiment. 2019-08-15 19:32:33 +02:00
eelke
09ef4cdf6b CatalogInspector is normal QWidget now
added actions to open the inspector
2019-08-15 16:43:25 +02:00
eelke
edb789ca4a Removing plugin system is holding back development to much. 2019-08-15 16:18:47 +02:00
eelke
ecae0464f9 Fix: openening not accessible database crashes program.
OpenDatabase::createOpenDatabase now uses QException derived exception to report failure.
This makes it possible to catch the exception in a background thread and rethrow it when the Future is read.
Which makes it possible for the database window to properly report the problem.
2019-01-29 19:42:32 +01:00
eelke
d3c85722c7 Remove unneeded headers and code. 2019-01-06 08:17:37 +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
a5f4e4c54f Create standard close action 2019-01-04 18:29:22 +01:00
eelke
d86d278350 Remove designer DatabaseForm generating widgets from code.
Large part of toolbar and menu missing these will be recreated through plugin system.
2019-01-01 14:34:14 +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
456180325e Code cleanups 2018-12-31 15:45:53 +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
cc4f309c0f Completed removal of ASyncWindow 2018-12-31 09:40:25 +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
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
bb55ef12f3 Removed unused DatabaseWindow 2017-12-29 10:24:50 +01:00
eelke
bebb3391c3 Builds on windows again 2017-11-26 13:07:21 +01:00
Renamed from src/pglab/DatabaseWindow.h (Browse further)