Commit graph

406 commits

Author SHA1 Message Date
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
048843a1d4 Bezig met plugin menu systeem 2019-08-15 12:40:29 +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
7f09d5fe07 Made a start with the notification system. However need to figure out
how i want to handle multithreading and screen updates.
2019-08-14 06:54:50 +02:00
eelke
5494e5076b Don't read relhasoids on version 12. Also don't try to select data we are not allowed to read. 2019-08-10 18:12:26 +02:00
eelke
1c48b1945c Make database window come up maximized. 2019-08-10 18:11:00 +02:00
eelke
86cdcbe06a Don't read protransform, we are not using it and version 12 doesn't have it. 2019-08-10 18:10:19 +02:00
eelke
2ceea4b577 Don't read consrc we are not using it and version 12 doesn't have it. 2019-08-10 18:09:14 +02:00
eelke
70b842597c Read from pg_roles as only superusers can read pg_authid
Contents is same except password is masked. Password does not seem very important to view as it is encrypted anyway.

Close #53
2019-08-10 14:18:01 +02:00
Eelke Klein
68922fdae8 Merge branch 'master' of gitlab.com:eelke/pgLab 2019-07-13 08:46:57 +02:00
Eelke Klein
b6796174a2 Ignore .user files 2019-07-13 08:46:44 +02:00
Eelke Klein
b5cb8a271f Improved backup dialog 2019-07-13 08:45:32 +02:00
eelke
f6f275001e Type column of column table is coloured by type again. Close #49
The custom tableview in pgLab installs a custom delegate that tends to do what we
need automatically and is more efficient. However it doesn't support custom colouring
so we need to use the standard QStyledDelegate for the type column to get that working.
2019-07-07 14:37:42 +02:00
eelke
894e740401 Close #48, Fix that table lists come up with columns to small. 2019-07-07 14:06:09 +02:00
eelke
d7763e83bf More projects fixes. 2019-03-27 18:50:58 +01:00
eelke
4694b09ba1 Merge branch 'master' of ssh://gitlab.com:/eelke/pgLab
# Conflicts:
#	common.pri
2019-03-27 18:24:27 +01:00
eelke
089c793df7 MIsc changes 2019-03-27 18:23:00 +01:00
Eelke Klein
e7bfaeff9a project file cleanup
Moving system dependent parts into local.pri which is not tracked and supply local.pri.sample as a template for developers to adjust for their local system.
2019-03-24 08:53:22 +01:00
eelke
0f37f74dda Fix: parameter type combobox didn't come up with old value.
Was looking in wrong column of model for the value to show.
2019-02-10 09:10:31 +01:00
eelke
f2808de613 Sequence and Function pages are now properly filtered on namespace. 2019-02-09 20:37:34 +01:00
eelke
7ca671a078 Fix: when looking up data reverse mapping of proxy filter so we select correct
data.
2019-02-09 17:44:05 +01:00
eelke
b08bd1a315 The trigger SQL now also shows the function definition. 2019-02-09 17:36:37 +01:00
eelke
3fdd42ffb2 Collection of small fixes and improvements
- Selections stay clearly visible when focus changes to other widget
- Autoresize columns
- Table properties view now correctly allows selection in both columns and draws selection correctly
- Tables can be sorted again and now by any column
2019-02-09 14:59:33 +01:00
eelke
3fb88edab2 Added icon for "normal" indexes 2019-02-09 11:36:37 +01: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
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
eca8841427 Added shortcuts to the Execute, Explain and Explain Analyze context actions. 2019-02-07 16:53:48 +01:00
eelke
db735363f7 QueryResultModel no longer truncates long strings to improve display performance.
Optimization of display is now done by PgLabItemDelegate. This also makes it easier in future commit
to enabled showing complete string and correctly exporting the data.
2019-02-07 16:48:30 +01:00
eelke
be2ffd7ef9 Bunch of renames to reduce confusion. 2019-01-31 19:31:17 +01:00
eelke
cbb2f897aa Define toolbar locations for the actions of the QueryTool module. 2019-01-31 19:25:54 +01:00
eelke
6acf70660b Fix: hang in syntax highlighter
SqlLexer was changed to correctly report end of file. Which this code didn't handle
2019-01-29 20:36:07 +01:00
eelke
27fde22d54 Fix: Cancelling the password prompt of the PSK database doesn't keep endlessly asking for password. 2019-01-29 19:52:50 +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
3820fb2600 RunControllableTask now also properly catches Exceptions and reports them through the Future. 2019-01-29 19:39:21 +01:00
eelke
39ac8ef02d Some work on parser, not used yet. 2019-01-28 20:53:10 +01:00
eelke
3b482c1c73 Fix lexer for empty input. 2019-01-28 20:52:39 +01:00
eelke
077fae50af fix some warnings 2019-01-28 20:52:04 +01:00
eelke
7c32d67196 Default to no wordwrap. 2019-01-06 21:38:11 +01:00
eelke
407304294a Analyzer didn't like this. 2019-01-06 21:37:57 +01:00
eelke
bcf0cf1c6c Merge branch 'plugin-architecture' 2019-01-06 17:08:50 +01:00
eelke
e5dd27ff1a Added several actions that were left out while switching to module.
- save copy as
- export
- copy as c string
- copy as raw cpp string
2019-01-06 17:07:59 +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
d6fce5c31f Simplified LWidgetAction initialization 2019-01-06 08:17:17 +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
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
a5f4e4c54f Create standard close action 2019-01-04 18:29:22 +01:00