Commit graph

  • 780d912cd1 Adjusted project files for new boost version. eelke 2018-09-18 20:24:54 +02:00
  • f5145f36ed wip: codegenerator, basic widget present for showing the generated code and specifying parameters. Some code is also generated but it is not complete yet. eelke 2018-09-18 11:53:19 +02:00
  • daf9536bed Moved typemapping test code to its own unit so it is clearer that the tests exist eelke 2018-09-18 07:45:49 +02:00
  • c13bbde2e4 Put the FormatToStream function in its own compilation unit as it might be useful for other things to. eelke 2018-09-17 15:42:55 +02:00
  • 22bad8fb22 Added name mangling tests. eelke 2018-09-17 15:41:47 +02:00
  • 8f4845d4d2 Lot of code for generating code. Working on unit tests. eelke 2018-09-09 18:52:32 +02:00
  • da45929b12 Fix SqlLexer test eelke 2018-09-09 16:20:30 +02:00
  • 425f4eccbe Merge branch 'flexible-models' into 'master' Eelke Klein 2018-09-02 10:30:30 +00:00
  • 8b7bbec807 Flexible models Eelke Klein 2018-09-02 10:30:30 +00:00
  • e8f81557bb Simplify connecting QItemSelection::currentRowChanged to PropertyProxyModel::activeRow eelke 2018-09-02 12:28:56 +02:00
  • 0cef509771 Correct tablespace names are now shown in the list of tables. eelke 2018-08-27 21:14:57 +02:00
  • 7630723b69 Switched TablesTableModel to rely on the PgLabDelegate for formatting instead of the old model base class. eelke 2018-08-27 21:12:27 +02:00
  • a4054ed789 Introduced global enum to keep track of custom roles we want to use in our datamodels. eelke 2018-08-26 15:18:32 +02:00
  • ad4c6fd442 The PropertyProxyModel now properly maps the second column to the active row of the source. It has a slot to receive the activeRow. Used this in the TablesPage to let the property tab follow the currentIndex in the list of tables. eelke 2018-08-26 07:59:15 +02:00
  • c6faafec59 Renamed HorizontalProxyModel to PropertyProxyModel as the original name didn't reflect what we are going to morph it into. eelke 2018-08-26 07:14:25 +02:00
  • 3080523b0d First step in using HorizontalProxyModel to show selected row in properties table. eelke 2018-08-26 07:11:46 +02:00
  • 49f009bdf9 Fix two warnings + some documentation in comment eelke 2018-08-26 07:08:44 +02:00
  • 68a1a8e7c9 Addded HorizontalProxyModel which is used to effictively rotate a table 90 degrees. eelke 2018-08-25 18:14:08 +02:00
  • 50cb21b6f9 The list of indexes on a table now also shows the access method (ie btree) eelke 2018-08-25 18:11:12 +02:00
  • 7c4f1a4752 fix: the source views for constraints and indexes are now cleared when the model is reset as this will clear all selections. eelke 2018-08-05 11:57:27 +02:00
  • f1020ac56e Index DROP and CREATE statements are now shown. eelke 2018-08-05 11:27:05 +02:00
  • 78a6666839 WIP moving actions for toolbar to module system. eelke 2018-08-05 09:07:12 +02:00
  • f5e9c4b74e Added column number to list of columns of table. eelke 2018-08-05 09:05:56 +02:00
  • 31afc6fcbf Fix some warning eelke 2018-08-05 09:05:24 +02:00
  • ec8c3ff5ec The list of tables can now be sorted by either name,schema or schema,name by clicking on the column headers. eelke 2018-07-07 09:57:59 +02:00
  • 5b20f900fc Sketched rough parser code construction including some SQL AST classes. eelke 2018-06-19 19:52:56 +02:00
  • f3898599fd design docs eelke 2018-05-20 13:44:04 +02:00
  • 4dd526f32a Icons on action supplied by the PlgPages. eelke 2018-05-20 13:42:30 +02:00
  • 3d516e6006 First tab at building a mechanism where tabpages can supply a list of actions that are added to the global main toolbar. eelke 2018-05-14 20:24:41 +02:00
  • c2d725ec6d Ask confirmation before removing connection. eelke 2018-04-30 20:17:44 +02:00
  • d67224858d Focus query editor when opening new querytab. eelke 2018-04-21 14:36:33 +02:00
  • 8cb1d6eab3 Permission denied errors are now being ignored while reading the system catalog. eelke 2018-04-21 10:50:04 +02:00
  • 65c3d9f2b4 getTypeDisplayString now better handles zero oid's and oid's that are not known in the catalog. eelke 2018-04-21 10:23:28 +02:00
  • 51d72c7f20 Can close CRUD tabs now eelke 2018-04-10 20:21:50 +02:00
  • 45b7d4fcbc show location of error in gutter and as selection eelke 2018-04-09 21:44:00 +02:00
  • 47ee1857cd Added a gutter and currentline highlighting to the SQL editor. eelke 2018-04-08 09:07:43 +02:00
  • 5e83094e6a Improved way sockets are closed. eelke 2018-04-08 09:06:05 +02:00
  • 61645d44ac Show moer information about the indexes. eelke 2018-04-08 09:04:38 +02:00
  • 8c20bd6a02 Added delete support to the CRUD system. eelke 2018-04-08 09:02:22 +02:00
  • 36f5153091 Only allow editing of tables that have a primary key. eelke 2018-02-18 12:10:09 +01:00
  • 09d5c1e41a The crud now support inserting new rows eelke 2018-02-18 08:37:59 +01:00
  • c51bd7594d Data in crud table wasn't shown as it was supposed to. eelke 2018-02-18 08:32:38 +01:00
  • 2ba68d4edc fix: editing same row only updated the view for first edit eelke 2018-02-18 07:23:59 +01:00
  • 628c16e2f4 Updating rows kinda works. eelke 2018-02-18 07:15:43 +01:00
  • 99d738ee65 Added some classes from a stackoverflow to utilize Qt's concurrency functions especially cancellable QFuture's eelke 2018-02-14 19:18:51 +01:00
  • ad3f605ada Some rudementary refresh support in crud tab bound to execute action (should be replaced with dynamic action list on form) eelke 2018-02-05 22:40:17 +01:00
  • 914d2fe9fa Lexical analyzer should now be less confused by dots and comma's and an assortment of other single character symbols. eelke 2018-02-05 22:23:28 +01:00
  • 44326da564 Fix: boolean values from query result were always shown as true. eelke 2018-02-05 21:47:21 +01:00
  • d626c19e14 Basic support for update in Crud implementation, error reporting and transfering data to modified set is still missing. eelke 2018-02-05 21:42:54 +01:00
  • 3fb32f1200 Couple of minor changes. eelke 2018-01-15 13:32:18 +01:00
  • e1405d5370 Use PgLabItemDelegate for indexes tab. eelke 2018-01-15 13:31:37 +01:00
  • 07c1b63d44 Tab of crud view now shows name of the table. eelke 2018-01-15 13:31:06 +01:00
  • a543ccb021 CrudTab uses new PgLabItemDelegate, no need anymore for CrudModel to inherit BaseTableModel. eelke 2018-01-15 13:30:30 +01:00
  • 208883462c QueryResultModel inherits from QAbstractTableModel now instead of BaseTableModel and the tableview now gets a custom delegate. eelke 2018-01-15 12:23:41 +01:00
  • 3ac1d21728 Implemented a custom delegate that does the samework as the BaseTableModel class did. eelke 2018-01-15 12:21:24 +01:00
  • 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. eelke 2018-01-09 20:39:43 +01:00
  • abd4020ddf Decided to use signal slot mechanism eelke 2018-01-08 20:54:03 +01:00
  • 14ab400ccb Bezig met crudmodel/tab eelke 2018-01-08 20:45:52 +01:00
  • ee321b3fb1 Bunch of tests were in header files so they all got compiled when main got compiled. eelke 2018-01-07 09:18:51 +01:00
  • c23282cc7a Folder restructuring of test projects. eelke 2018-01-07 09:15:21 +01:00
  • a79357db87 Tables are now sorted by not perfect yet. eelke 2018-01-07 09:02:53 +01:00
  • ec78dafa94 Removed on_ from the name of the slots to prevent warning about not being able to find the signals. eelke 2018-01-06 21:33:24 +01:00
  • 97d4e2a1a4 Created IndexModel for displaying the indexes on a table. Constraints can now show the SQL to drop and create them. eelke 2018-01-06 21:22:22 +01:00
  • b436814eb5 THe SqlLexer also now recognizes casts. eelke 2018-01-06 21:18:28 +01:00
  • a99f059b70 Added list of constraints to the tables page. eelke 2017-12-30 12:57:55 +01:00
  • 22db22c6b1 Removed unused DatabaseInspectorWidget (had no code only ui design) eelke 2017-12-29 10:26:51 +01:00
  • bb55ef12f3 Removed unused DatabaseWindow eelke 2017-12-29 10:24:50 +01:00
  • f4538069cb Moved several files from pglab project to pglablib eelke 2017-12-29 10:21:10 +01:00
  • 206d734ff5 Refactorings of namespace filter eelke 2017-12-29 10:10:06 +01:00
  • 590a02599d Minor fixes to the namespace filter eelke 2017-12-29 09:48:33 +01:00
  • b5254ac723 Have a working model for showing the namespaces in a tree with checkboxes. eelke 2017-12-29 08:39:08 +01:00
  • 4e1120647c Added recognition of a few more system catalogs. eelke 2017-12-29 08:37:24 +01:00
  • 3a425ab7c1 Added some parts of ctk lib. eelke 2017-12-29 08:35:57 +01:00
  • a06c752029 Misc minor changes. eelke 2017-12-28 09:20:42 +01:00
  • 36e5526f5f Some stuff I had on another machine and which might provide useful. eelke 2017-12-28 07:29:07 +01:00
  • 23e307f93a The ASyncDBConnection class uses C++ std::function callbacks now for reporting notices and state changes. eelke 2017-12-28 07:28:21 +01:00
  • 2705a3417b The MainWindow now uses a background task to load the catalog. eelke 2017-12-28 07:23:20 +01:00
  • 057e745ebe Just some comments. eelke 2017-12-26 07:34:08 +01:00
  • 091040f13f Split big function in sql lexer into several functions. eelke 2017-12-26 07:32:52 +01:00
  • 81c4449d31 cleanup of commented out code eelke 2017-12-26 07:28:18 +01:00
  • 83332842fc Removed textbox and added two combo's for filtering. eelke 2017-12-26 07:27:46 +01:00
  • 04c656323d Defined a function to get rid of linker warning eelke 2017-12-26 07:26:39 +01:00
  • 554f138d6d Made slow part of MainWindow initialization asynchronous. eelke 2017-12-25 15:33:10 +01:00
  • 6d4662aa98 Added WorkManager to manage background tasks. eelke 2017-12-25 15:32:02 +01:00
  • 190a6c04dc Made a start with showing foreignkeys in column list. eelke 2017-12-25 10:31:58 +01:00
  • a76686acfd Changed operator << for Value to explicitly call the conversion operators. eelke 2017-12-20 22:07:20 +01:00
  • 1727b0d645 Created classes for loading constraints. eelke 2017-12-20 22:01:42 +01:00
  • 8a27a1166f Show name of index in hint of column header for the index of the column tableview. eelke 2017-12-20 20:05:54 +01:00
  • 23840ce7c5 Cosmetic improvements. eelke 2017-12-19 19:55:12 +01:00
  • c324daa75b The global function for getting a typename from an oid now supports passing the typmod of a column. eelke 2017-12-19 19:33:22 +01:00
  • 6599498556 Better handling of not being able to connect to the database. eelke 2017-12-19 19:06:36 +01:00
  • a69aa401b2 Th default values of columns are now joined with the other column data and displayed in the default column of the column tableview. eelke 2017-12-19 18:57:05 +01:00
  • 8402470baa Loading of the list of indexes works for version 9.3 (and maybe before if there are no other differences) eelke 2017-12-19 18:18:21 +01:00
  • c37e9eccb8 Better error reporting of problems during catalog load. eelke 2017-12-19 18:17:41 +01:00
  • 2a29bed75e Fixed linking of botan library eelke 2017-12-19 18:17:18 +01:00
  • 3703bd9979 Resize columns in the column list. eelke 2017-12-19 18:16:25 +01:00
  • dd0e21afb5 Improved titles of index columns in the list of columns. eelke 2017-12-19 18:16:05 +01:00
  • d1114793a1 Fixed missing comman in pg_class query. eelke 2017-12-17 20:22:55 +01:00
  • 3424b62aa0 Autosize column of column overview. eelke 2017-12-17 20:05:09 +01:00
  • 7051ef2efc The oid column is now shown for tables that are "with oids". eelke 2017-12-17 19:54:23 +01:00