new GUI manarging structure set
authorUnai IRIGOYEN <u.irigoyen@gmail.com>
Wed, 14 Jul 2010 16:03:34 +0000 (18:03 +0200)
committerUnai IRIGOYEN <onil@onil-netbook.(none)>
Wed, 14 Jul 2010 16:03:34 +0000 (18:03 +0200)
code/family-shop-mgr/GUI/FamilyShopManagerPC.cpp [new file with mode: 0644]
code/family-shop-mgr/GUI/FamilyShopManagerPC.h [new file with mode: 0644]
code/family-shop-mgr/GUI/FamilyShopManagerPC.ui [new file with mode: 0644]

diff --git a/code/family-shop-mgr/GUI/FamilyShopManagerPC.cpp b/code/family-shop-mgr/GUI/FamilyShopManagerPC.cpp
new file mode 100644 (file)
index 0000000..42b3ae0
--- /dev/null
@@ -0,0 +1,26 @@
+#include "FamilyShopManagerPC.h"
+#include "ui_FamilyShopManagerPC.h"
+
+FamilyShopManagerPC::FamilyShopManagerPC(QWidget *parent) :
+    QMainWindow(parent),
+    ui(new Ui::FamilyShopManagerPC)
+{
+    ui->setupUi(this);
+}
+
+FamilyShopManagerPC::~FamilyShopManagerPC()
+{
+    delete ui;
+}
+
+void FamilyShopManagerPC::changeEvent(QEvent *e)
+{
+    QMainWindow::changeEvent(e);
+    switch (e->type()) {
+    case QEvent::LanguageChange:
+        ui->retranslateUi(this);
+        break;
+    default:
+        break;
+    }
+}
diff --git a/code/family-shop-mgr/GUI/FamilyShopManagerPC.h b/code/family-shop-mgr/GUI/FamilyShopManagerPC.h
new file mode 100644 (file)
index 0000000..2dc2d8a
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef FAMILYSHOPMANAGERPC_H
+#define FAMILYSHOPMANAGERPC_H
+
+#include <QMainWindow>
+
+namespace Ui {
+    class FamilyShopManagerPC;
+}
+
+class FamilyShopManagerPC : public QMainWindow {
+    Q_OBJECT
+public:
+    FamilyShopManagerPC(QWidget *parent = 0);
+    ~FamilyShopManagerPC();
+
+protected:
+    void changeEvent(QEvent *e);
+
+private:
+    Ui::FamilyShopManagerPC *ui;
+};
+
+#endif // FAMILYSHOPMANAGERPC_H
diff --git a/code/family-shop-mgr/GUI/FamilyShopManagerPC.ui b/code/family-shop-mgr/GUI/FamilyShopManagerPC.ui
new file mode 100644 (file)
index 0000000..fb6b0b8
--- /dev/null
@@ -0,0 +1,24 @@
+<ui version="4.0">
+ <class>FamilyShopManagerPC</class>
+ <widget class="QMainWindow" name="FamilyShopManagerPC" >
+  <property name="geometry" >
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>600</width>
+    <height>400</height>
+   </rect>
+  </property>
+  <property name="windowTitle" >
+   <string>FamilyShopManagerPC</string>
+  </property>
+  <widget class="QMenuBar" name="menuBar" />
+  <widget class="QToolBar" name="mainToolBar" />
+  <widget class="QWidget" name="centralWidget" />
+  <widget class="QStatusBar" name="statusBar" />
+ </widget>
+ <layoutDefault spacing="6" margin="11" />
+ <pixmapfunction></pixmapfunction>
+ <resources/>
+ <connections/>
+</ui>