Reorganization of pgLab project
This commit is contained in:
parent
7300865c77
commit
c71fdc4af7
78 changed files with 204 additions and 148 deletions
42
pglab/catalog/widgets/ColumnPage.h
Normal file
42
pglab/catalog/widgets/ColumnPage.h
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
#ifndef COLUMNPAGE_H
|
||||
#define COLUMNPAGE_H
|
||||
|
||||
#include "catalog/PgClass.h"
|
||||
#include <QSplitter>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
|
||||
|
||||
class PgLabTableView;
|
||||
class SqlCodePreview;
|
||||
class PgDatabaseCatalog;
|
||||
class ColumnTableModel;
|
||||
class QSortFilterProxyModel;
|
||||
class QItemSelection;
|
||||
class QAbstractItemModel;
|
||||
|
||||
class ColumnPage : public QSplitter
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ColumnPage(QWidget *parent = nullptr);
|
||||
|
||||
void setData(std::shared_ptr<const PgDatabaseCatalog> cat, const std::optional<PgClass> &cls);
|
||||
//void setFilter(const std::optional<PgClass> &cls);
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
private:
|
||||
PgLabTableView *m_tableView = nullptr;
|
||||
SqlCodePreview *m_definitionView = nullptr;
|
||||
ColumnTableModel *m_columnModel = nullptr;
|
||||
QSortFilterProxyModel *m_sortFilterProxy = nullptr;
|
||||
std::shared_ptr<const PgDatabaseCatalog> m_catalog;
|
||||
std::optional<PgClass> m_Class;
|
||||
|
||||
private slots:
|
||||
void tableView_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
|
||||
};
|
||||
|
||||
#endif // COLUMNPAGE_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue