1) new status messages
[ptas] / zouba / ui.h
index 77ba935..460dd88 100644 (file)
@@ -1,13 +1,20 @@
 #ifndef UI_H
 #define UI_H
 
+#include <QObject>
+
 class QMainWindow;
 class QWidget;
 class QTableWidget;
 class QButtonGroup;
+class MessageTable;
+class QHBoxLayout;
+class QVBoxLayout;
 
-class Ui
+class Ui : public QObject
 {
+  Q_OBJECT
+
 public:
   Ui();
   ~Ui();
@@ -22,14 +29,25 @@ public:
     ScreenWidth=800,
     ScreenHeight=480
   };
-
   enum {
-    ButtonWidth=300,
-    ButtonHeight=70
+   ButtonWidth=300,
+   ButtonHeight=70
   };
 
+
   QWidget *centralWidget;
   QButtonGroup *destinationButtons;
   QTableWidget *table;
+  static MessageTable *messageTable;
+  QHBoxLayout *mainLayout;
+  QVBoxLayout *buttonLayout;
+
+Q_SIGNALS:
+  void homeAddressChanged( QString address );
+  void workAddressChanged( QString address );
+
+private Q_SLOTS:
+  void setHomeAddress();
+  void setWorkAddress();
 };
 #endif //UI_H