From: hama Date: Mon, 17 Aug 2015 22:19:46 +0000 (+0200) Subject: project selection dialog X-Git-Url: https://gitweb.hamatoma.de/?a=commitdiff_plain;h=640f3f41609e688a2afc4818c4bf46d0d919c772;p=reqt project selection dialog --- diff --git a/appl/reditor/projectselection.cpp b/appl/reditor/projectselection.cpp new file mode 100644 index 0000000..3a1ab36 --- /dev/null +++ b/appl/reditor/projectselection.cpp @@ -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 index 0000000..1625826 --- /dev/null +++ b/appl/reditor/projectselection.hpp @@ -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 + +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 index 0000000..91ccee6 --- /dev/null +++ b/appl/reditor/projectselection.ui @@ -0,0 +1,275 @@ + + + ProjectSelection + + + + 0 + 0 + 982 + 703 + + + + Dialog + + + + + + + 16777215 + 75 + + + + Open new file/project: + + + + + + + + + open + + + + + + + Selects a file wit a file open dialog box + + + ... + + + + + + + Select a project directory with a directory open box + + + ... + + + + + + + + + + Qt::Horizontal + + + + + + + + + Last opened files: + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Filter for last opened files. +Use wildcards: '*' (any string) and '?' (any character) + + + + + + + + + 6 + + + 1 + + + true + + + + Name + + + + + Modified + + + + + Parent + + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Open again + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + + Last opened projects: + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Filter for last opened projects. +Use wildcards: '*' (any string) and '?' (any character) + + + + + + + + + 4 + + + true + + + false + + + + Name + + + + + Parent + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Open again + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + diff --git a/appl/reditor/reditor.pro b/appl/reditor/reditor.pro index 22c86ca..b37d58c 100644 --- a/appl/reditor/reditor.pro +++ b/appl/reditor/reditor.pro @@ -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