src/config.h

Wed, 17 Jul 2013 18:46:47 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Wed, 17 Jul 2013 18:46:47 +0300
changeset 6
67b6ef6917ba
parent 5
3c04e05ab24f
child 10
bc1414343e19
permissions
-rw-r--r--

Now capable of actually launching demos

2
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
1 #ifndef CONFIG_H
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
2 #define CONFIG_H
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
3
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
4 #include <QDialog>
3
d0b278fd29d5 Implemented wad path list
Teemu Piippo <crimsondusk64@gmail.com>
parents: 2
diff changeset
5 #include "main.h"
d0b278fd29d5 Implemented wad path list
Teemu Piippo <crimsondusk64@gmail.com>
parents: 2
diff changeset
6 #include "types.h"
2
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
7
5
3c04e05ab24f Added configs for Zandronum binary paths
Teemu Piippo <crimsondusk64@gmail.com>
parents: 3
diff changeset
8 class QLineEdit;
2
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
9 class Ui_ConfigBox;
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
10
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
11 class ConfigBox : public QDialog {
3
d0b278fd29d5 Implemented wad path list
Teemu Piippo <crimsondusk64@gmail.com>
parents: 2
diff changeset
12 Q_OBJECT
d0b278fd29d5 Implemented wad path list
Teemu Piippo <crimsondusk64@gmail.com>
parents: 2
diff changeset
13
2
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
14 public:
3
d0b278fd29d5 Implemented wad path list
Teemu Piippo <crimsondusk64@gmail.com>
parents: 2
diff changeset
15 explicit ConfigBox( QWidget* parent = null, Qt::WindowFlags f = 0 );
2
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
16 virtual ~ConfigBox();
3
d0b278fd29d5 Implemented wad path list
Teemu Piippo <crimsondusk64@gmail.com>
parents: 2
diff changeset
17 void addPath( str path );
d0b278fd29d5 Implemented wad path list
Teemu Piippo <crimsondusk64@gmail.com>
parents: 2
diff changeset
18 void initFromSettings();
d0b278fd29d5 Implemented wad path list
Teemu Piippo <crimsondusk64@gmail.com>
parents: 2
diff changeset
19
d0b278fd29d5 Implemented wad path list
Teemu Piippo <crimsondusk64@gmail.com>
parents: 2
diff changeset
20 public slots:
d0b278fd29d5 Implemented wad path list
Teemu Piippo <crimsondusk64@gmail.com>
parents: 2
diff changeset
21 void addPath();
d0b278fd29d5 Implemented wad path list
Teemu Piippo <crimsondusk64@gmail.com>
parents: 2
diff changeset
22 void findPath();
d0b278fd29d5 Implemented wad path list
Teemu Piippo <crimsondusk64@gmail.com>
parents: 2
diff changeset
23 void delPath();
5
3c04e05ab24f Added configs for Zandronum binary paths
Teemu Piippo <crimsondusk64@gmail.com>
parents: 3
diff changeset
24 void findZanBinary();
3c04e05ab24f Added configs for Zandronum binary paths
Teemu Piippo <crimsondusk64@gmail.com>
parents: 3
diff changeset
25 void okPressed();
3c04e05ab24f Added configs for Zandronum binary paths
Teemu Piippo <crimsondusk64@gmail.com>
parents: 3
diff changeset
26 void cancelPressed();
2
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
27
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
28 private:
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
29 Ui_ConfigBox* ui;
5
3c04e05ab24f Added configs for Zandronum binary paths
Teemu Piippo <crimsondusk64@gmail.com>
parents: 3
diff changeset
30 list<QLineEdit*> m_zanBinaries;
2
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
31 };
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
32
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
33 #endif // CONFIG_H

mercurial