]> vaikene.ee Git - evaf/commitdiff
Changed to use the Gui::Window class instead of QWidget.
authorEnar Väikene <enar@vaikene.net>
Tue, 29 Nov 2011 13:08:04 +0000 (15:08 +0200)
committerEnar Väikene <enar@vaikene.net>
Tue, 29 Nov 2011 13:08:04 +0000 (15:08 +0200)
src/apps/FileFinder/GUI/CMakeLists.txt
src/apps/FileFinder/GUI/gui.cpp
src/apps/FileFinder/GUI/gui.h
src/apps/FileFinder/GUI/version.h
src/apps/PswGen/GUI/CMakeLists.txt
src/apps/PswGen/GUI/gui.cpp
src/apps/PswGen/GUI/version.h

index a29d09f55cb06f582dedf9f495ca4ff5a3c43b71..cdc585fab82979f0964e65aace12e639dd50b09f 100644 (file)
@@ -8,7 +8,7 @@ include(${QT_USE_FILE})
 include_directories(${eVaf_INCLUDE})
 
 # Required eVaf libraries
-set(eVaf_LIBRARIES CommonLib PluginsLib)
+set(eVaf_LIBRARIES CommonLib PluginsLib GuiLib)
 
 # Source files
 set(SRCS
index 29dcd712b3280e4aa22d3d37ee4dbce38f32f592..260b6c8b64f8631c3f798f56bdbb5233f203a1e8 100644 (file)
@@ -118,7 +118,7 @@ bool FileFinder::GUI::Module::init(QString const & args)
     // Create the main widget for this window
     wMain = new Internal::MainWidget;
     connect(wMain, SIGNAL(quit()), qApp, SLOT(quit()));
-    win->addWidget(wMain);
+    win->addWindow(wMain);
 
     // Create actions for the window and widgets on it
     createActions();
index e4c0c8e885c2a7cda45c9058ce69f47ab66a7309..02f4f22fa9b0986e5360b116678e8f31fdff788e 100644 (file)
@@ -21,6 +21,7 @@
 #  define __FILEFINDER_GUI_GUI_H
 
 #include <Plugins/iPlugin>
+#include <Gui/Window>
 
 #include <QObject>
 #include <QString>
@@ -48,14 +49,14 @@ namespace Internal {
 /**
  * Main widget for the FileFinder window
  */
-class MainWidget : public QWidget
+class MainWidget : public Gui::Window
 {
     Q_OBJECT
 
 public:
 
     MainWidget(QWidget * parent = 0)
-        : QWidget(parent)
+        : Gui::Window(parent)
     {}
 
     virtual void keyPressEvent(QKeyEvent * e);
index dd5c198056476bdbeeee7cbae9e95fb1a75eb41a..733a6f54a72df3fa02b3112cdf46707276ff79f0 100644 (file)
 /**
  * Module/library version number in the form major,minor,release,build
  */
-#define VER_FILE_VERSION                0,1,2,2
+#define VER_FILE_VERSION                0,1,3,3
 
 /**
  * Module/library version number in the string format (shall end with \0)
  */
-#define VER_FILE_VERSION_STR            "0.1.2.2\0"
+#define VER_FILE_VERSION_STR            "0.1.3.3\0"
 
 /**
  * Module/library name (shall end with \0)
index 329cd170bbfa949ebf1d2b0149aa52a8fca531e9..bea3cd6ee1dc939737f84a78cc6b8a716394604c 100644 (file)
@@ -8,7 +8,7 @@ include(${QT_USE_FILE})
 include_directories(${eVaf_INCLUDE})
 
 # Required eVaf libraries
-set(eVaf_LIBRARIES CommonLib PluginsLib)
+set(eVaf_LIBRARIES CommonLib PluginsLib GuiLib)
 
 # Source files
 set(SRCS
index 23a3c881c2591c82d5f3a4f81a0c2051e9d9672f..706522b1ef44aa30a19d6620b287d70c7dedda8f 100644 (file)
@@ -27,6 +27,7 @@
 #include <Common/iLogger>
 #include <Common/iRegistry>
 #include <SdiWindow/iSdiWindow>
+#include <Gui/Window>
 
 #include <QtGui>
 
@@ -74,8 +75,8 @@ bool Module::init(QString const & args)
     SdiWindow::iSdiWindow * win = evafQueryInterface<SdiWindow::iSdiWindow>("iSdiWindow");
     EVAF_TEST_X(win, "No iSdiWindow interface");
 
-    QWidget * masterWidget = new QWidget;
-    win->addWidget(masterWidget);
+    Gui::Window * masterWidget = new Gui::Window;
+    win->addWindow(masterWidget);
 
     QVBoxLayout * v = new QVBoxLayout;
     masterWidget->setLayout(v);
index c4fbd22ae82790bd7bd737a64380c992675f066e..8d9aad397eca83739c9ebbe1e1e95170a3bebf49 100644 (file)
 /**
  * Module/library version number in the form major,minor,release,build
  */
-#define VER_FILE_VERSION                0,1,3,4
+#define VER_FILE_VERSION                0,1,4,5
 
 /**
  * Module/library version number in the string format (shall end with \0)
  */
-#define VER_FILE_VERSION_STR            "0.1.3.4\0"
+#define VER_FILE_VERSION_STR            "0.1.4.5\0"
 
 /**
  * Module/library name (shall end with \0)