]> vaikene.ee Git - evaf/commitdiff
Renamed Gui::Window to a more generic Gui::Panel, which can be a window, but also...
authorEnar Väikene <enar@vaikene.net>
Thu, 1 Dec 2011 14:05:22 +0000 (16:05 +0200)
committerEnar Väikene <enar@vaikene.net>
Thu, 1 Dec 2011 14:05:22 +0000 (16:05 +0200)
of some other user interface layout.

src/libs/Gui/CMakeLists.txt
src/libs/Gui/Panel [new file with mode: 0644]
src/libs/Gui/Window [deleted file]
src/libs/Gui/panel.cpp [moved from src/libs/Gui/window.cpp with 85% similarity]
src/libs/Gui/panel.h [moved from src/libs/Gui/window.h with 62% similarity]
src/libs/Gui/version.h

index fab0577247c9ae114afdc4852183a84f18c8cfe3..19fd17239bb3c6e0f44bc419d8cb18609efd0f1e 100644 (file)
@@ -15,12 +15,12 @@ set(eVaf_LIBRARIES)
 
 # Source files
 set(SRCS
-    window.cpp
+    panel.cpp
 )
 
 # Header files for the meta-object compiler
 set(MOC_HDRS
-    window.h
+    panel.h
 )
 
 # Version info resource file for Windows builds
diff --git a/src/libs/Gui/Panel b/src/libs/Gui/Panel
new file mode 100644 (file)
index 0000000..896d171
--- /dev/null
@@ -0,0 +1 @@
+#include "panel.h"
diff --git a/src/libs/Gui/Window b/src/libs/Gui/Window
deleted file mode 100644 (file)
index 80b3d1c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-#include "window.h"
similarity index 85%
rename from src/libs/Gui/window.cpp
rename to src/libs/Gui/panel.cpp
index 880e1189ad2e49e3bf37c7ceb564dfc49bb42372..f5527897b99e904f25626c9bc73fc1344fa73ed7 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * @file Gui/window.cpp
+ * @file Gui/panel.cpp
  * @brief Version information for eVaf modules
  * @author Enar Vaikene
  *
  * Agreement provided with the Software.
  */
 
-#include "window.h"
+#include "panel.h"
 
 using namespace eVaf;
 
 //-------------------------------------------------------------------
 
-Gui::Window::Window(QWidget * parent)
-    : QWidget(parent)
+Gui::Panel::Panel(QWidget * parent, Qt::WindowFlags f)
+    : QWidget(parent, f)
 {}
 
-Gui::Window::~Window()
+Gui::Panel::~Panel()
 {}
similarity index 62%
rename from src/libs/Gui/window.h
rename to src/libs/Gui/panel.h
index 15c426a9864b287b984035a7962e8f15ecc396cb..8c70ba615c0e9645dc62f611d6f521d14e298c36 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * @file Gui/window.h
+ * @file Gui/panel.h
  * @brief Version information for eVaf modules
  * @author Enar Vaikene
  *
@@ -17,8 +17,8 @@
  * Agreement provided with the Software.
  */
 
-#ifndef __GUI_WINDOW_H
-#  define __GUI_WINDOW_H
+#ifndef __GUI_PANEL_H
+#  define __GUI_PANEL_H
 
 #include "libgui.h"
 
@@ -35,21 +35,26 @@ namespace eVaf {
 namespace Gui {
 
 /**
- * eVaf GUI window class.
- * @code#include <Gui/Window>@endcode
+ * eVaf GUI panel class.
+ * @code#include <Gui/Panel>@endcode
  *
- * The Gui::Window class is a common ancestor for all the eVaf windows. eVaf applications can have different window managers
- * that manage Gui::Window objects.
+ * The Gui::Panel class is the generic widget for eVaf GUI applications. It is an empty
+ * widget that can be filled with actual user interface elements like labels, edit boxes etc.
+ * Gui::Panel acts like a normal widget, which can be shown as a stand-alone window or added to other
+ * user interface layouts.
+ *
+ * The main purpose of Gui::Panel is that it can be added to one of the eVaf document interface
+ * managers.
  */
-class GUI_EXPORT Window : public QWidget
+class GUI_EXPORT Panel : public QWidget
 {
     Q_OBJECT
 
 public:
 
-    Window(QWidget * parent = 0);
+    Panel(QWidget * parent = 0, Qt::WindowFlags f = 0);
 
-    virtual ~Window();
+    virtual ~Panel();
 
 };
 
@@ -57,4 +62,4 @@ public:
 } // namespace eVaf
 
 
-#endif // window.h
+#endif // panel.h
index a2987049024f941a48497c35ca0a5cbd7a6fc1fa..dc36c0a1ba0a2b2afb0b18d0e8f68a902b3d6dbf 100644 (file)
 /**
  * Module/library version number in the form major,minor,release,build
  */
-#define VER_FILE_VERSION                0,1,1,1
+#define VER_FILE_VERSION                0,2,1,3
 
 /**
  * Module/library version number in the string format (shall end with \0)
  */
-#define VER_FILE_VERSION_STR            "0.1.1.1\0"
+#define VER_FILE_VERSION_STR            "0.2.1.3\0"
 
 /**
  * Module/library name (shall end with \0)