]> gitweb.hamatoma.de Git - reqt/commitdiff
project selection dialog
authorhama <hama@siduction.net>
Mon, 17 Aug 2015 22:19:46 +0000 (00:19 +0200)
committerhama <hama@siduction.net>
Mon, 17 Aug 2015 22:19:46 +0000 (00:19 +0200)
appl/reditor/projectselection.cpp [new file with mode: 0644]
appl/reditor/projectselection.hpp [new file with mode: 0644]
appl/reditor/projectselection.ui [new file with mode: 0644]
appl/reditor/reditor.pro

diff --git a/appl/reditor/projectselection.cpp b/appl/reditor/projectselection.cpp
new file mode 100644 (file)
index 0000000..3a1ab36
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * Licence:
+ * You can use and modify this file without any restriction.
+ * There is no warranty.
+ * You also can use the licence from http://www.wtfpl.net/.
+ * The original sources can be found on https://github.com/republib.
+*/
+
+
+#include "projectselection.hpp"
+#include "ui_projectselection.h"
+
+ProjectSelection::ProjectSelection(QWidget *parent) :
+       QDialog(parent),
+       ui(new Ui::ProjectSelection)
+{
+       ui->setupUi(this);
+}
+
+ProjectSelection::~ProjectSelection()
+{
+       delete ui;
+}
diff --git a/appl/reditor/projectselection.hpp b/appl/reditor/projectselection.hpp
new file mode 100644 (file)
index 0000000..1625826
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+ * Licence:
+ * You can use and modify this file without any restriction.
+ * There is no warranty.
+ * You also can use the licence from http://www.wtfpl.net/.
+ * The original sources can be found on https://github.com/republib.
+*/
+
+
+#ifndef PROJECTSELECTION_HPP
+#define PROJECTSELECTION_HPP
+
+#include <QDialog>
+
+namespace Ui {
+class ProjectSelection;
+}
+
+class ProjectSelection : public QDialog
+{
+       Q_OBJECT
+
+public:
+       explicit ProjectSelection(QWidget *parent = 0);
+       ~ProjectSelection();
+
+private:
+       Ui::ProjectSelection *ui;
+};
+
+#endif // PROJECTSELECTION_HPP
diff --git a/appl/reditor/projectselection.ui b/appl/reditor/projectselection.ui
new file mode 100644 (file)
index 0000000..91ccee6
--- /dev/null
@@ -0,0 +1,275 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>ProjectSelection</class>
+ <widget class="QDialog" name="ProjectSelection">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>982</width>
+    <height>703</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Dialog</string>
+  </property>
+  <layout class="QVBoxLayout" name="verticalLayout_3">
+   <item>
+    <widget class="QGroupBox" name="groupBox">
+     <property name="maximumSize">
+      <size>
+       <width>16777215</width>
+       <height>75</height>
+      </size>
+     </property>
+     <property name="title">
+      <string>Open new file/project:</string>
+     </property>
+     <layout class="QHBoxLayout" name="horizontalLayout_4">
+      <item>
+       <widget class="QLineEdit" name="lineEdit"/>
+      </item>
+      <item>
+       <widget class="QPushButton" name="pushButtonOpen">
+        <property name="text">
+         <string>open</string>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QToolButton" name="toolButtonSelectFile">
+        <property name="toolTip">
+         <string>Selects a file wit a file open dialog box</string>
+        </property>
+        <property name="text">
+         <string>...</string>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QToolButton" name="toolButton">
+        <property name="toolTip">
+         <string>Select a project directory with a directory open box</string>
+        </property>
+        <property name="text">
+         <string>...</string>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item>
+    <widget class="QSplitter" name="splitter">
+     <property name="orientation">
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <widget class="QWidget" name="">
+      <layout class="QVBoxLayout" name="verticalLayout">
+       <item>
+        <layout class="QHBoxLayout" name="horizontalLayout">
+         <item>
+          <widget class="QLabel" name="label">
+           <property name="text">
+            <string>Last opened files:</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <spacer name="horizontalSpacer">
+           <property name="orientation">
+            <enum>Qt::Horizontal</enum>
+           </property>
+           <property name="sizeHint" stdset="0">
+            <size>
+             <width>40</width>
+             <height>20</height>
+            </size>
+           </property>
+          </spacer>
+         </item>
+         <item>
+          <widget class="QLineEdit" name="lineEditFilterLastFile">
+           <property name="toolTip">
+            <string>Filter for last opened files.
+Use wildcards: '*' (any string) and '?' (any character)</string>
+           </property>
+          </widget>
+         </item>
+        </layout>
+       </item>
+       <item>
+        <widget class="QTableWidget" name="tableWidgetFiles">
+         <property name="columnCount">
+          <number>6</number>
+         </property>
+         <attribute name="horizontalHeaderMinimumSectionSize">
+          <number>1</number>
+         </attribute>
+         <attribute name="horizontalHeaderStretchLastSection">
+          <bool>true</bool>
+         </attribute>
+         <column>
+          <property name="text">
+           <string>Name</string>
+          </property>
+         </column>
+         <column>
+          <property name="text">
+           <string>Modified</string>
+          </property>
+         </column>
+         <column>
+          <property name="text">
+           <string>Parent</string>
+          </property>
+         </column>
+         <column/>
+         <column/>
+         <column/>
+        </widget>
+       </item>
+       <item>
+        <layout class="QHBoxLayout" name="horizontalLayout_5" stretch="0,0,0">
+         <item>
+          <spacer name="horizontalSpacer_4">
+           <property name="orientation">
+            <enum>Qt::Horizontal</enum>
+           </property>
+           <property name="sizeHint" stdset="0">
+            <size>
+             <width>40</width>
+             <height>20</height>
+            </size>
+           </property>
+          </spacer>
+         </item>
+         <item>
+          <widget class="QPushButton" name="pushButtonOpenLast">
+           <property name="text">
+            <string>Open again</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <spacer name="horizontalSpacer_5">
+           <property name="orientation">
+            <enum>Qt::Horizontal</enum>
+           </property>
+           <property name="sizeHint" stdset="0">
+            <size>
+             <width>40</width>
+             <height>20</height>
+            </size>
+           </property>
+          </spacer>
+         </item>
+        </layout>
+       </item>
+      </layout>
+     </widget>
+     <widget class="QWidget" name="">
+      <layout class="QVBoxLayout" name="verticalLayout_2">
+       <item>
+        <layout class="QHBoxLayout" name="horizontalLayout_2">
+         <item>
+          <widget class="QLabel" name="label_2">
+           <property name="text">
+            <string>Last opened projects:</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <spacer name="horizontalSpacer_2">
+           <property name="orientation">
+            <enum>Qt::Horizontal</enum>
+           </property>
+           <property name="sizeHint" stdset="0">
+            <size>
+             <width>40</width>
+             <height>20</height>
+            </size>
+           </property>
+          </spacer>
+         </item>
+         <item>
+          <widget class="QLineEdit" name="lineEditFilterLastProjects">
+           <property name="toolTip">
+            <string>Filter for last opened projects.
+Use wildcards: '*' (any string) and '?' (any character)</string>
+           </property>
+          </widget>
+         </item>
+        </layout>
+       </item>
+       <item>
+        <widget class="QTableWidget" name="tableWidgetProjects">
+         <property name="columnCount">
+          <number>4</number>
+         </property>
+         <attribute name="horizontalHeaderStretchLastSection">
+          <bool>true</bool>
+         </attribute>
+         <attribute name="verticalHeaderStretchLastSection">
+          <bool>false</bool>
+         </attribute>
+         <column>
+          <property name="text">
+           <string>Name</string>
+          </property>
+         </column>
+         <column>
+          <property name="text">
+           <string>Parent</string>
+          </property>
+         </column>
+         <column/>
+         <column/>
+        </widget>
+       </item>
+       <item>
+        <layout class="QHBoxLayout" name="horizontalLayout_7">
+         <item>
+          <spacer name="horizontalSpacer_6">
+           <property name="orientation">
+            <enum>Qt::Horizontal</enum>
+           </property>
+           <property name="sizeHint" stdset="0">
+            <size>
+             <width>40</width>
+             <height>20</height>
+            </size>
+           </property>
+          </spacer>
+         </item>
+         <item>
+          <widget class="QPushButton" name="pushButtonOpenLastProject">
+           <property name="text">
+            <string>Open again</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <spacer name="horizontalSpacer_7">
+           <property name="orientation">
+            <enum>Qt::Horizontal</enum>
+           </property>
+           <property name="sizeHint" stdset="0">
+            <size>
+             <width>40</width>
+             <height>20</height>
+            </size>
+           </property>
+          </spacer>
+         </item>
+        </layout>
+       </item>
+      </layout>
+     </widget>
+    </widget>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>
index 22c86ca5962108b07c2e5efead581442e24ab8c2..b37d58c253a5e72507decac3e3322be29b9d25c9 100644 (file)
@@ -19,7 +19,8 @@ SOURCES += main.cpp\
        mainwindow.cpp \
     ../../base/ReLogger.cpp \
     ../../base/ReQStringUtil.cpp \
-    ../../base/ReException.cpp
+    ../../base/ReException.cpp \
+    projectselection.cpp
 
 
 HEADERS  += mainwindow.hpp \
@@ -28,9 +29,11 @@ HEADERS  += mainwindow.hpp \
         ../../gui/ReEdit.hpp \
     ../../base/ReStringUtil.hpp \
     ../../base/ReQStringUtil.hpp \
-    ../../base/ReException.hpp
+    ../../base/ReException.hpp \
+    projectselection.hpp
 
-FORMS    += mainwindow.ui
+FORMS    += mainwindow.ui \
+    projectselection.ui
 
 RESOURCES += \
         editor.qrc