First version of table overview tab, only design no implementation yet

This commit is contained in:
eelke 2017-12-10 08:17:07 +01:00
parent cd4e99cd11
commit 43e6042794
4 changed files with 110 additions and 3 deletions

14
pglab/TablesPage.cpp Normal file
View file

@ -0,0 +1,14 @@
#include "TablesPage.h"
#include "ui_TablesPage.h"
TablesPage::TablesPage(QWidget *parent) :
QWidget(parent),
ui(new Ui::TablesPage)
{
ui->setupUi(this);
}
TablesPage::~TablesPage()
{
delete ui;
}

22
pglab/TablesPage.h Normal file
View file

@ -0,0 +1,22 @@
#ifndef TABLESPAGE_H
#define TABLESPAGE_H
#include <QWidget>
namespace Ui {
class TablesPage;
}
class TablesPage : public QWidget
{
Q_OBJECT
public:
explicit TablesPage(QWidget *parent = 0);
~TablesPage();
private:
Ui::TablesPage *ui;
};
#endif // TABLESPAGE_H

68
pglab/TablesPage.ui Normal file
View file

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>TablesPage</class>
<widget class="QWidget" name="TablesPage">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1041</width>
<height>830</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QTableView" name="tableListTable"/>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="columnsTab">
<attribute name="title">
<string>Columns</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTableView" name="columnsTable"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="propertiesTab">
<attribute name="title">
<string>Properties</string>
</attribute>
</widget>
<widget class="QWidget" name="statisticsTab">
<attribute name="title">
<string>Statistics</string>
</attribute>
</widget>
<widget class="QWidget" name="dependenciesTab">
<attribute name="title">
<string>Dependencies</string>
</attribute>
</widget>
<widget class="QWidget" name="dependentsTab">
<attribute name="title">
<string>Dependents</string>
</attribute>
</widget>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="tableDdlSql"/>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View file

@ -68,7 +68,8 @@ PgDatabaseCatalogue.cpp \
CodeBuilderConfiguration.cpp \ CodeBuilderConfiguration.cpp \
ResultTableModelUtil.cpp \ ResultTableModelUtil.cpp \
BaseTableModel.cpp \ BaseTableModel.cpp \
QueryParamListController.cpp QueryParamListController.cpp \
TablesPage.cpp
HEADERS += \ HEADERS += \
QueryResultModel.h \ QueryResultModel.h \
@ -111,7 +112,8 @@ PgDatabaseCatalogue.h \
CodeBuilderConfiguration.h \ CodeBuilderConfiguration.h \
ResultTableModelUtil.h \ ResultTableModelUtil.h \
BaseTableModel.h \ BaseTableModel.h \
QueryParamListController.h QueryParamListController.h \
TablesPage.h
FORMS += mainwindow.ui \ FORMS += mainwindow.ui \
DatabaseWindow.ui \ DatabaseWindow.ui \
@ -121,7 +123,8 @@ FORMS += mainwindow.ui \
QueryTab.ui \ QueryTab.ui \
BackupDialog.ui \ BackupDialog.ui \
ServerWindow.ui \ ServerWindow.ui \
ProcessStdioWidget.ui ProcessStdioWidget.ui \
TablesPage.ui
RESOURCES += \ RESOURCES += \
resources.qrc resources.qrc