Rework of catalog objects. Several of them are now inheriting from common

base classes that implement common functionality.
This commit is contained in:
eelke 2018-11-25 19:45:06 +01:00
parent 840af1e0a9
commit 73c4cf4790
45 changed files with 340 additions and 265 deletions

View file

@ -5,6 +5,7 @@
#include <QWidget>
#include "PlgPage.h"
#include <memory>
#include <optional>
namespace Ui {
class CrudTab;
@ -20,7 +21,7 @@ class CrudTab : public PlgPage
public:
explicit CrudTab(MainWindow *parent = 0);
~CrudTab();
~CrudTab() override;
void setConfig(std::shared_ptr<OpenDatabase> db, const PgClass &table);
@ -33,7 +34,7 @@ private:
MainWindow *m_window;
std::shared_ptr<OpenDatabase> m_db;
PgClass m_table;
std::optional<PgClass> m_table;
CrudModel *m_crudModel = nullptr;
std::vector<QAction*> actions;