summaryrefslogtreecommitdiff
path: root/tableproperties.h
diff options
context:
space:
mode:
authorLukáš Lalinský <lalinsky@gmail.com>2008-11-23 22:44:06 +0100
committerLukáš Lalinský <lalinsky@gmail.com>2008-11-23 22:44:06 +0100
commit5da39fc03fe42f7e4b572374e983ea1afb80033d (patch)
tree4d6fcca41e63b37f8c77577c55d89b510fe959fe /tableproperties.h
downloaddbmodel-5da39fc03fe42f7e4b572374e983ea1afb80033d.tar.xz
Initial commit
Diffstat (limited to 'tableproperties.h')
-rw-r--r--tableproperties.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/tableproperties.h b/tableproperties.h
new file mode 100644
index 0000000..99e8fdb
--- /dev/null
+++ b/tableproperties.h
@@ -0,0 +1,33 @@
+#ifndef TABLEPROPERTIES_H
+#define TABLEPROPERTIES_H
+
+#include <QWidget>
+#include "ui_tableproperties.h"
+
+class DatabaseTable;
+
+class TableProperties : public QWidget
+{
+ Q_OBJECT
+
+public:
+ TableProperties(QWidget *parent = 0);
+
+ DatabaseTable *table() { return m_table; }
+ void setTable(DatabaseTable *table);
+
+protected slots:
+ void setSelectedTableName(const QString &name);
+ void setSelectedTableColumnName(QTreeWidgetItem *item, int column);
+ void addColumn();
+ void removeColumn();
+ void moveColumnUp();
+ void moveColumnDown();
+ void updateColumnSelection();
+
+private:
+ DatabaseTable *m_table;
+ Ui_TableProperties ui;
+};
+
+#endif