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
|
|
@ -1,37 +1,27 @@
|
|||
#ifndef TRIGGERPAGE_H
|
||||
#define TRIGGERPAGE_H
|
||||
|
||||
#include <QSplitter>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include "widgets/CatalogPageBase.h"
|
||||
|
||||
class QTableView;
|
||||
class SqlCodePreview;
|
||||
class PgDatabaseCatalog;
|
||||
class PgClass;
|
||||
class TriggerTableModel;
|
||||
class CustomFilterSortModel;
|
||||
class QItemSelection;
|
||||
|
||||
class TriggerPage : public QSplitter
|
||||
{
|
||||
class TriggerPage : public CatalogPageBase {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit TriggerPage(QWidget *parent = nullptr);
|
||||
// TriggerPage(QWidget *parent = nullptr);
|
||||
|
||||
void setCatalog(std::shared_ptr<const PgDatabaseCatalog> cat);
|
||||
void setFilter(const std::optional<PgClass> &cls);
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
protected:
|
||||
void catalogSet() override;
|
||||
private:
|
||||
QTableView *m_tableView = nullptr;
|
||||
SqlCodePreview *m_definitionView = nullptr;
|
||||
TriggerTableModel *m_model = nullptr;
|
||||
CustomFilterSortModel *m_sortFilterProxy = nullptr;
|
||||
std::shared_ptr<const PgDatabaseCatalog> m_catalog;
|
||||
|
||||
private slots:
|
||||
void tableView_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue