pgLab/pglab/TablesPage.h
eelke ec78dafa94 Removed on_ from the name of the slots to prevent warning about not being able to find the signals.
The old name followed the pattern used by Qt to automatically deduce what signal should
be connected to which slot. However as these are signals from a sub object it cannot find
them and I have made the connections manually. To prevent getting warnings at runtime
I changed the name.
2018-01-06 21:33:24 +01:00

44 lines
1.1 KiB
C++

#ifndef TABLESPAGE_H
#define TABLESPAGE_H
#include <QWidget>
#include <memory>
#include <QItemSelection>
namespace Ui {
class TablesPage;
}
class TablesTableModel;
class ColumnTableModel;
class ConstraintModel;
class PgDatabaseCatalog;
class NamespaceFilterWidget;
class IndexModel;
class TablesPage : public QWidget
{
Q_OBJECT
public:
explicit TablesPage(QWidget *parent = 0);
~TablesPage();
void setCatalog(std::shared_ptr<PgDatabaseCatalog> cat);
private:
Ui::TablesPage *ui;
std::shared_ptr<PgDatabaseCatalog> m_catalog;
TablesTableModel* m_tablesModel = nullptr;
ColumnTableModel* m_columnsModel = nullptr;
ConstraintModel* m_constraintModel = nullptr;
IndexModel* m_indexModel = nullptr;
NamespaceFilterWidget* m_namespaceFilterWidget;
private slots:
void tableListTable_currentRowChanged(const QModelIndex &current, const QModelIndex &previous);
void constraintsTable_currentRowChanged(const QModelIndex &current, const QModelIndex &previous);
void constraintsTable_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
};
#endif // TABLESPAGE_H