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
This commit is contained in:
parent
a704332342
commit
42432b06a9
31 changed files with 598 additions and 472 deletions
38
pglab/widgets/CatalogSequencesPage.h
Normal file
38
pglab/widgets/CatalogSequencesPage.h
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#ifndef SEQUENCESPAGES_H
|
||||
#define SEQUENCESPAGES_H
|
||||
|
||||
#include <QSplitter>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
|
||||
class PgLabTableView;
|
||||
class PgDatabaseCatalog;
|
||||
class SequenceModel;
|
||||
class CustomFilterSortModel;
|
||||
class SqlCodePreview;
|
||||
class PgSequence;
|
||||
|
||||
class CatalogSequencesPage : public QSplitter {
|
||||
Q_OBJECT
|
||||
public:
|
||||
CatalogSequencesPage(QWidget *parent = nullptr);
|
||||
|
||||
void setCatalog(std::shared_ptr<const PgDatabaseCatalog> cat);
|
||||
public slots:
|
||||
|
||||
void sequenceTable_currentRowChanged(const QModelIndex ¤t, const QModelIndex &previous);
|
||||
|
||||
private:
|
||||
PgLabTableView *m_sequenceTable = nullptr;
|
||||
//QTabWidget *m_detailTabs = nullptr;
|
||||
SqlCodePreview *m_definitionView = nullptr;
|
||||
SequenceModel *m_model = nullptr;
|
||||
CustomFilterSortModel *m_sortFilterProxy = nullptr;
|
||||
std::shared_ptr<const PgDatabaseCatalog> m_catalog;
|
||||
|
||||
void retranslateUi();
|
||||
void selectedSequenceChanged(const std::optional<PgSequence> &seq);
|
||||
void updateSqlTab(const std::optional<PgSequence> &seq);
|
||||
};
|
||||
|
||||
#endif // SEQUENCESPAGES_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue