summaryrefslogtreecommitdiff
path: root/utils/themeeditor/gui/newprojectdialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/gui/newprojectdialog.h')
-rw-r--r--utils/themeeditor/gui/newprojectdialog.h95
1 files changed, 95 insertions, 0 deletions
diff --git a/utils/themeeditor/gui/newprojectdialog.h b/utils/themeeditor/gui/newprojectdialog.h
new file mode 100644
index 0000000000..c59607c53f
--- /dev/null
+++ b/utils/themeeditor/gui/newprojectdialog.h
@@ -0,0 +1,95 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2010 Robert Bieber
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22#ifndef NEWPROJECTDIALOG_H
23#define NEWPROJECTDIALOG_H
24
25#include <QDialog>
26
27namespace Ui {
28 class NewProjectDialog;
29}
30
31class NewProjectDialog : public QDialog {
32 Q_OBJECT
33public:
34 struct NewProjectInfo
35 {
36 QString name;
37 QString path;
38 bool sbs;
39 bool wps;
40 bool fms;
41 bool rsbs;
42 bool rwps;
43 bool rfms;
44
45 NewProjectInfo()
46 {
47 name = "";
48 path = "";
49 sbs = true;
50 wps = true;
51 fms = false;
52 rsbs = false;
53 rwps = false;
54 rfms = false;
55 }
56
57 NewProjectInfo(const NewProjectInfo& other)
58 {
59 operator=(other);
60 }
61
62 const NewProjectInfo& operator=(const NewProjectInfo& other)
63 {
64 name = other.name;
65 path = other.path;
66 sbs = other.sbs;
67 wps = other.wps;
68 fms = other.fms;
69 rsbs = other.rsbs;
70 rwps = other.rwps;
71 rfms = other.rfms;
72
73 return *this;
74 }
75 };
76
77 NewProjectDialog(QWidget *parent = 0);
78 virtual ~NewProjectDialog();
79
80 NewProjectInfo results(){ return status; }
81
82public slots:
83 void accept();
84 void reject();
85
86private slots:
87 void browse();
88
89private:
90 Ui::NewProjectDialog *ui;
91
92 NewProjectInfo status;
93};
94
95#endif // NEWPROJECTDIALOG_H