fuze+: use mdelay and not udelay in lcd sequences
[kugel-rb.git] / utils / themeeditor / gui / newprojectdialog.h
blob7d1a710a1d9543cedbc684b0e9e1755b0128c2ea
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2010 Robert Bieber
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.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef NEWPROJECTDIALOG_H
23 #define NEWPROJECTDIALOG_H
25 #include <QDialog>
27 namespace Ui {
28 class NewProjectDialog;
31 class NewProjectDialog : public QDialog {
32 Q_OBJECT
33 public:
34 struct NewProjectInfo
36 QString name;
37 QString path;
38 QString target;
39 bool sbs;
40 bool wps;
41 bool fms;
42 bool rsbs;
43 bool rwps;
44 bool rfms;
46 NewProjectInfo()
48 name = "";
49 path = "";
50 target = "";
51 sbs = true;
52 wps = true;
53 fms = false;
54 rsbs = false;
55 rwps = false;
56 rfms = false;
59 NewProjectInfo(const NewProjectInfo& other)
61 operator=(other);
64 const NewProjectInfo& operator=(const NewProjectInfo& other)
66 name = other.name;
67 path = other.path;
68 target = other.target;
69 sbs = other.sbs;
70 wps = other.wps;
71 fms = other.fms;
72 rsbs = other.rsbs;
73 rwps = other.rwps;
74 rfms = other.rfms;
76 return *this;
80 NewProjectDialog(QWidget *parent = 0);
81 virtual ~NewProjectDialog();
83 NewProjectInfo results(){ return status; }
85 public slots:
86 void accept();
87 void reject();
89 private slots:
90 void browse();
91 void targetChange(int target);
93 private:
94 Ui::NewProjectDialog *ui;
96 NewProjectInfo status;
99 #endif // NEWPROJECTDIALOG_H