Commit graph

594 commits

Author SHA1 Message Date
eelke
167f5b1386 throw exception instead of causing access violation 2019-09-26 20:14:35 +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
bcfd82c27d Fix crash when starting to add connection.
Caused by uninitialized variable. Commit contains some minor style fixes also.
2019-09-02 16:33:13 +02:00
eelke
7f88b98cdd End user can now specify how long password manager remembers the master key.
Closes $24
2019-09-01 16:06:08 +02:00
eelke
d489f11e52 Store encrypted passwords with connections.
Closes #22 as encrypted password is now deleted as part of the connection record.
2019-09-01 14:07:58 +02:00
eelke
e5ae9663c4 Fix missing return value ConnectionTreeModel::removeRows 2019-09-01 10:26:42 +02:00
Eelke Klein
41c1305e3d Merge branch 'improve-connection-manager' into 'master'
Improve connection manager

See merge request eelke/pgLab!5
2019-09-01 08:19:22 +00:00
eelke
bf8bb087e7 Fix: adding connection
Crashed because it tried to select right group when there was no group to set.
2019-09-01 06:52:26 +02:00
eelke
d9431b173c Cleanup 2019-09-01 06:48:34 +02:00
eelke
91049b235a Send InsertRows signals when adding a group. 2019-09-01 06:48:11 +02:00
eelke
0fb1d89aee When editing connection the dialog is now initialized on the correct connection group. 2019-09-01 06:45:39 +02:00
eelke
2823297482 Fix crash when closing dialoog with X button 2019-09-01 06:43:28 +02:00
eelke
521d3cdaac Add seperate actions for adding and removing connection groups. 2019-09-01 06:42:21 +02:00
eelke
dbb6e1ab01 Can open window for database by clicking on the config in the connection tree. 2019-08-29 16:10:28 +02:00
eelke
b3a98f6dc0 Most of functionality for connections in tree works now. Old list largely removed. 2019-08-27 20:12:00 +02:00
eelke
8840d3bcbb Basic version of ConnectionTreeModel is working. 2019-08-25 15:33:51 +02:00
eelke
3721808df4 Remove unused function 2019-08-25 08:10:37 +02:00
eelke
b65edaa6ee Improved how connection is removed from the configuration file. 2019-08-25 08:00:54 +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
78247c7abe Small cleanup of ConnectionManager 2019-08-23 09:44:06 +02:00
eelke
1792f42dac Improved working of BackupDialog
- improved layout
- automatically switch to output component when start is clicked
- coloured output for succes/error message
- highlighter for pg_dump output that highlights error lines

Note: all output of pg_dump goes to stderr because stdout is reserved for output of the backup data.
2019-08-23 09:43:48 +02:00
eelke
221cc33bb4 Remove unused unit 2019-08-23 09:41:03 +02:00
eelke
b939916b07 Fix incorrect ALTER TABLE statement for columns in the instepctor.
Was caused by incorrect condition for determining the use of IDENTITY.
2019-08-19 19:44:07 +02:00
eelke
b3352b8496 Database window can now be opened from within the connection manager by
double clicking a connection or pressing enter when a connection is selected.
2019-08-19 19:32:40 +02:00
eelke
e4a43a77bd Disable editing of the description of the connections in the connection ListView.
Also replace the integer literals defining the columns for enum to make more readable.
2019-08-19 19:26:39 +02:00
eelke
033d2b3d45 Removed debug statement that gave lot of output and which was not needed anymore. 2019-08-19 16:06:23 +02:00
eelke
48ac8c6bab Improved generation of c/cpp string from query
Extra lines before and after query are removed. Whitespace at end of line
is removed. SQL comments are converted to cpp style comments and are outside
the string literal.

To achieve this the function now uses the SQLLexer to know what is comment.
This also required the additional capability in the lexer to also return whitespace and newline tokens.
Also a few bugs in the lexer were fixed.
2019-08-19 13:52:23 +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
7450e5bd4c Merge branch 'remove-plugin-system' 2019-08-15 20:15:37 +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
b0fa02455c Remove all of plugin_support 2019-08-15 18:00:19 +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
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