]> vaikene.ee Git - evaf/commitdiff
Changed to use Gui::Panel instead of Gui::Window.
authorEnar Väikene <enar@vaikene.net>
Thu, 1 Dec 2011 14:20:49 +0000 (16:20 +0200)
committerEnar Väikene <enar@vaikene.net>
Thu, 1 Dec 2011 14:20:49 +0000 (16:20 +0200)
src/apps/FileFinder/GUI/gui.cpp
src/apps/FileFinder/GUI/gui.h
src/apps/FileFinder/GUI/version.h
src/apps/PswGen/GUI/gui.cpp
src/apps/PswGen/GUI/version.h

index 260b6c8b64f8631c3f798f56bdbb5233f203a1e8..d1f1c4b36169b9bfa4bee7cd3d93e65ef2be9df9 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->addWindow(wMain);
+    win->addPanel("FileFinder", wMain);
 
     // Create actions for the window and widgets on it
     createActions();
index 02f4f22fa9b0986e5360b116678e8f31fdff788e..c8d36334b5777ad139075b0f1c238b5f20e4cd0b 100644 (file)
@@ -21,7 +21,7 @@
 #  define __FILEFINDER_GUI_GUI_H
 
 #include <Plugins/iPlugin>
-#include <Gui/Window>
+#include <Gui/Panel>
 
 #include <QObject>
 #include <QString>
@@ -49,14 +49,14 @@ namespace Internal {
 /**
  * Main widget for the FileFinder window
  */
-class MainWidget : public Gui::Window
+class MainWidget : public Gui::Panel
 {
     Q_OBJECT
 
 public:
 
     MainWidget(QWidget * parent = 0)
-        : Gui::Window(parent)
+        : Gui::Panel(parent)
     {}
 
     virtual void keyPressEvent(QKeyEvent * e);
index 733a6f54a72df3fa02b3112cdf46707276ff79f0..481c3f1df74161a3677c5ba03dc0cf6ec5fe10b3 100644 (file)
 /**
  * Module/library version number in the form major,minor,release,build
  */
-#define VER_FILE_VERSION                0,1,3,3
+#define VER_FILE_VERSION                0,1,4,4
 
 /**
  * Module/library version number in the string format (shall end with \0)
  */
-#define VER_FILE_VERSION_STR            "0.1.3.3\0"
+#define VER_FILE_VERSION_STR            "0.1.4.4\0"
 
 /**
  * Module/library name (shall end with \0)
index 706522b1ef44aa30a19d6620b287d70c7dedda8f..1ced109fa27cb869ec691d7568d3c0378dd8cb79 100644 (file)
@@ -27,7 +27,7 @@
 #include <Common/iLogger>
 #include <Common/iRegistry>
 #include <SdiWindow/iSdiWindow>
-#include <Gui/Window>
+#include <Gui/Panel>
 
 #include <QtGui>
 
@@ -75,11 +75,11 @@ bool Module::init(QString const & args)
     SdiWindow::iSdiWindow * win = evafQueryInterface<SdiWindow::iSdiWindow>("iSdiWindow");
     EVAF_TEST_X(win, "No iSdiWindow interface");
 
-    Gui::Window * masterWidget = new Gui::Window;
-    win->addWindow(masterWidget);
+    Gui::Panel * panel = new Gui::Panel;
+    win->addPanel("PswGen", panel);
 
     QVBoxLayout * v = new QVBoxLayout;
-    masterWidget->setLayout(v);
+    panel->setLayout(v);
 
     QGridLayout * g = new QGridLayout;
     v->addLayout(g);
@@ -109,7 +109,7 @@ bool Module::init(QString const & args)
     }
     connect(wName, SIGNAL(textChanged(QString)), this, SLOT(textChanged(QString)));
     g->addWidget(wName, 1, 1, 1, 2);
-    masterWidget->setFocusProxy(wName);
+    panel->setFocusProxy(wName);
 
     l = new QLabel(tr("&Length of the password:", VER_MODULE_NAME_STR));
     l->setAlignment(Qt::AlignRight);
@@ -147,15 +147,15 @@ bool Module::init(QString const & args)
     connect(wCopy, SIGNAL(clicked()), this, SLOT(copyClicked()));
     h->addWidget(wCopy);
 
-    QAction * a = new QAction(masterWidget);
+    QAction * a = new QAction(panel);
     a->setShortcut(Qt::Key_Return);
     connect(a, SIGNAL(triggered()), this, SLOT(generateClicked()));
-    masterWidget->addAction(a);
+    panel->addAction(a);
 
-    a = new QAction(masterWidget);
+    a = new QAction(panel);
     a->setShortcut(Qt::Key_Escape);
     connect(a, SIGNAL(triggered()), qApp, SLOT(quit()));
-    masterWidget->addAction(a);
+    panel->addAction(a);
 
     mReady = true;
 
index 8d9aad397eca83739c9ebbe1e1e95170a3bebf49..8f3e970ab521a83ceaf022a92755ab5f1f58dda7 100644 (file)
 /**
  * Module/library version number in the form major,minor,release,build
  */
-#define VER_FILE_VERSION                0,1,4,5
+#define VER_FILE_VERSION                0,1,5,6
 
 /**
  * Module/library version number in the string format (shall end with \0)
  */
-#define VER_FILE_VERSION_STR            "0.1.4.5\0"
+#define VER_FILE_VERSION_STR            "0.1.5.6\0"
 
 /**
  * Module/library name (shall end with \0)