eelke
0483dc8b3d
Improved releasenotes manual can also be opened from a databasewindow now.
2022-09-05 15:01:33 +02:00
eelke
c874b297c1
Add about dialog to File menu of the connection manager.
...
Make the contents of the dialog more accurate and include a link to the releasenotes file.
2022-09-04 09:19:03 +02:00
eelke
457b09f15c
Improved error reporting
2022-08-14 08:04:21 +02:00
eelke
c71fdc4af7
Reorganization of pgLab project
2022-04-09 08:57:29 +02:00
eelke
7300865c77
Switched DatabaseWindow to using the form designer.
2022-04-08 20:16:42 +02:00
eelke
06504ecc1f
Improvements to the CrudModel
...
The new data of modified rows is now stored directly within the row_mapping
also changed how new rows are handled so the new empty row for inserting
is not a special case but is part of the list.
2022-01-22 16:22:29 +01:00
eelke
50bf4588ce
Cleanup remove system for background tasks we were not using anymore.
2022-01-16 18:51:43 +01:00
eelke
badd46ea8f
Use QtConcurrent::run.then chain in DatabaseWindow too.
2022-01-16 18:21:18 +01:00
eelke
482be432d3
Prevent crash when menu item is selected to early.
2021-09-29 19:39:42 +02:00
eelke
144321a5d3
fix that connection are only closed when the window is closed not when the tab owning them is closed.
...
Caused by the fact the the tab was not freed. Now the widgets on the tabs are freed when they are closed which
in turns frees (and closes) the connection objects.
2021-09-17 18:55:10 +02:00
eelke
683853e72e
Do not rely on connectSlotsByName anymore as it breaks easily.
...
In the process I also made the initialisation of the actions more compact.
2021-07-08 16:28:32 +02:00
eelke
d629ef4cba
Remove duplicate code.
2021-07-05 20:41:24 +02:00
eelke
38fc939860
cleanup DatabaseWindow.cpp
2021-07-04 20:24:05 +02:00
eelke
6d08b40309
When files are dropped on a database window open them as sql files.
2021-06-16 19:20:03 +02:00
eelke
f0e5488ce0
List of databases and roles moved to a "Server tab" within the database window.
...
Opened by selecting "Inspect Server" from the menu.
2021-04-10 14:27:04 +02:00
eelke
423043d431
Qt6 migration
2021-03-06 13:13:31 +01:00
eelke
dea76e17c5
ft: Closing windows asks to save queries before closing the window.
...
fix: closetab did incorrectly close when cancel was choosen.
2020-04-04 13:23:43 +02:00
eelke
47b3ea83e9
Fix show filename in tab after opening file and make F5 execute shortcut
...
work.
2019-12-03 19:08:13 +01:00
eelke
1a208a6a2d
Crud page has now reload action.
...
F5 key is bound to the execute query, reload catalog and reload crud
actions. By using addAction to add these actions to the relevant pages
the ambiguity of the shortcut is resolved.
2019-10-13 07:31:48 +02:00
eelke
60d8f36328
poc Add support for reloading the catalog
...
Reload works and the column page reacts correctly. Others to be checked
and fixed.
2019-10-06 13:52:45 +02:00
eelke
4ea388cad7
Merge branch 'master' of ssh://git@gitlab.com:/eelke/pgLab.git
2019-10-06 09:34:45 +02:00
eelke
45c3a0480b
The normal copy now works for SQL definition views.
2019-10-05 16:41:14 +02:00
eelke
082293e58a
Switched ConnectionConfig to QString from std::string to fit better into Qt framework
2019-09-16 19:24:39 +02:00
eelke
b09e8a6d4b
ConnectionManager overhaul
...
- connection settings are now changed by seperate component currently called in a seperate window
- old settings pane on the right of the connections had been removed
- new edit config button added between new connection and remove connection
2019-08-24 20:47:32 +02:00
eelke
fbd630489e
Added paste lang option for pasting programming code.
...
Expects you to paste only string literals with possible concatenation operators like . or +
2019-08-19 11:38:04 +02:00
eelke
35d1e75d35
Split all connection related controller functionality off into seperate ConnectionController.
2019-08-19 10:05:05 +02:00
eelke
8c13bdc2ef
Make closing of tabs work again.
2019-08-16 10:49:59 +02:00
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
d45707b542
Items for inspecting database schema and catalogs moved to window menu.
...
Closes #42
2019-08-15 20:15:13 +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
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
42432b06a9
Restructuring catalog tabs
...
- Moved detail tabs of table to their own components
- Table list has become seperate component on seperate tab
- Table list does not use designer anymore
- Moved sequences and functions tabs into the catalog inspector
2019-02-09 11:36:22 +01: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
3e4917428d
TablesPage is now CatalogInspector and is now a module.
2019-01-06 10:11:48 +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
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