diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-07-15 21:39:09 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-07-15 21:39:09 +0000 |
commit | c272144867f94dc7e99f8333bec5dd052878ecd8 (patch) | |
tree | 6ceb4ce5111b05da666ab2c0a1fda571d84ccd42 /utils/themeeditor/gui/newprojectdialog.h | |
parent | e700e195d88f09a94fe681fd2906564ade2be0d0 (diff) | |
download | rockbox-c272144867f94dc7e99f8333bec5dd052878ecd8.tar.gz rockbox-c272144867f94dc7e99f8333bec5dd052878ecd8.zip |
Theme Editor: Added New Project feature
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27439 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/gui/newprojectdialog.h')
-rw-r--r-- | utils/themeeditor/gui/newprojectdialog.h | 95 |
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 | |||
27 | namespace Ui { | ||
28 | class NewProjectDialog; | ||
29 | } | ||
30 | |||
31 | class NewProjectDialog : public QDialog { | ||
32 | Q_OBJECT | ||
33 | public: | ||
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 | |||
82 | public slots: | ||
83 | void accept(); | ||
84 | void reject(); | ||
85 | |||
86 | private slots: | ||
87 | void browse(); | ||
88 | |||
89 | private: | ||
90 | Ui::NewProjectDialog *ui; | ||
91 | |||
92 | NewProjectInfo status; | ||
93 | }; | ||
94 | |||
95 | #endif // NEWPROJECTDIALOG_H | ||