]> git.sur5r.net Git - bacula/bacula/commitdiff
Move putz test program to a test program directory under qt-console.
authorDirk H Bartley <dbartley@schupan.com>
Fri, 23 Mar 2007 12:30:12 +0000 (12:30 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Fri, 23 Mar 2007 12:30:12 +0000 (12:30 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4391 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/testprogs/putz/main.cpp [new file with mode: 0644]
bacula/src/qt-console/testprogs/putz/putz.cpp [new file with mode: 0644]
bacula/src/qt-console/testprogs/putz/putz.h [new file with mode: 0644]
bacula/src/qt-console/testprogs/putz/putz.pro [new file with mode: 0644]
bacula/src/qt-console/testprogs/putz/putz.ui [new file with mode: 0644]

diff --git a/bacula/src/qt-console/testprogs/putz/main.cpp b/bacula/src/qt-console/testprogs/putz/main.cpp
new file mode 100644 (file)
index 0000000..5e7287e
--- /dev/null
@@ -0,0 +1,16 @@
+#include <QApplication>
+#include "putz.h"
+
+Putz *putz;
+QApplication *app;
+
+int main(int argc, char *argv[])
+{
+       app = new QApplication(argc, argv);
+       app->setQuitOnLastWindowClosed(true);
+
+       putz = new Putz;
+       putz->show();
+
+       return app->exec();
+}
diff --git a/bacula/src/qt-console/testprogs/putz/putz.cpp b/bacula/src/qt-console/testprogs/putz/putz.cpp
new file mode 100644 (file)
index 0000000..0b8fd13
--- /dev/null
@@ -0,0 +1,11 @@
+#include <QAbstractEventDispatcher>
+#include <QApplication>
+
+#include "putz.h"
+
+Putz::Putz()
+{
+   printf("got to Putz Constructor\n");
+   setupUi(this);
+}
diff --git a/bacula/src/qt-console/testprogs/putz/putz.h b/bacula/src/qt-console/testprogs/putz/putz.h
new file mode 100644 (file)
index 0000000..97e6ba8
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef _PUTZ_H_
+#define _PUTZ_H_
+
+#include <QtGui>
+#include "ui_putz.h"
+
+class Putz : public QMainWindow, public Ui::MainWindow
+{
+   Q_OBJECT 
+
+public:
+   Putz();
+
+public slots:
+
+private:
+};
+
+#endif /* _PUTZ_H_ */
diff --git a/bacula/src/qt-console/testprogs/putz/putz.pro b/bacula/src/qt-console/testprogs/putz/putz.pro
new file mode 100644 (file)
index 0000000..2e31791
--- /dev/null
@@ -0,0 +1,15 @@
+CONFIG += qt debug
+
+TEMPLATE = app
+TARGET = putz
+DEPENDPATH += .
+INCLUDEPATH += ..
+MOC_DIR = moc
+OBJECTS_DIR = obj
+UI_DIR = ui
+
+# Main window
+FORMS += putz.ui
+
+HEADERS += putz.h
+SOURCES += putz.cpp main.cpp
diff --git a/bacula/src/qt-console/testprogs/putz/putz.ui b/bacula/src/qt-console/testprogs/putz/putz.ui
new file mode 100644 (file)
index 0000000..343f002
--- /dev/null
@@ -0,0 +1,83 @@
+<ui version="4.0" >
+ <class>MainWindow</class>
+ <widget class="QMainWindow" name="MainWindow" >
+  <property name="geometry" >
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>557</width>
+    <height>534</height>
+   </rect>
+  </property>
+  <property name="windowTitle" >
+   <string>MainWindow</string>
+  </property>
+  <property name="dockNestingEnabled" >
+   <bool>true</bool>
+  </property>
+  <widget class="QWidget" name="centralwidget" />
+  <widget class="QMenuBar" name="menubar" >
+   <property name="geometry" >
+    <rect>
+     <x>0</x>
+     <y>0</y>
+     <width>557</width>
+     <height>28</height>
+    </rect>
+   </property>
+  </widget>
+  <widget class="QStatusBar" name="statusbar" />
+  <widget class="QDockWidget" name="dockWidget" >
+   <property name="sizePolicy" >
+    <sizepolicy>
+     <hsizetype>7</hsizetype>
+     <vsizetype>7</vsizetype>
+     <horstretch>12</horstretch>
+     <verstretch>7</verstretch>
+    </sizepolicy>
+   </property>
+   <property name="windowTitle" >
+    <string>Whoochie</string>
+   </property>
+   <attribute name="dockWidgetArea" >
+    <number>1</number>
+   </attribute>
+   <widget class="QWidget" name="dockWidgetContents" >
+    <layout class="QGridLayout" >
+     <property name="margin" >
+      <number>9</number>
+     </property>
+     <property name="spacing" >
+      <number>6</number>
+     </property>
+     <item row="0" column="0" >
+      <widget class="QTreeWidget" name="treeWidget" />
+     </item>
+    </layout>
+   </widget>
+  </widget>
+  <widget class="QDockWidget" name="dockWidget_2" >
+   <property name="windowTitle" >
+    <string>coochie</string>
+   </property>
+   <attribute name="dockWidgetArea" >
+    <number>2</number>
+   </attribute>
+   <widget class="QWidget" name="dockWidgetContents_2" >
+    <layout class="QGridLayout" >
+     <property name="margin" >
+      <number>9</number>
+     </property>
+     <property name="spacing" >
+      <number>6</number>
+     </property>
+     <item row="0" column="0" >
+      <widget class="QTableWidget" name="tableWidget" />
+     </item>
+    </layout>
+   </widget>
+  </widget>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>