src/config.h

Wed, 17 Jul 2013 03:06:21 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Wed, 17 Jul 2013 03:06:21 +0300
changeset 5
3c04e05ab24f
parent 3
d0b278fd29d5
child 6
67b6ef6917ba
permissions
-rw-r--r--

Added configs for Zandronum binary paths

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();
5
3c04e05ab24f Added configs for Zandronum binary paths
Teemu Piippo <crimsondusk64@gmail.com>
parents: 3
diff changeset
19 str binaryConfigName( str ver ) const;
3
d0b278fd29d5 Implemented wad path list
Teemu Piippo <crimsondusk64@gmail.com>
parents: 2
diff changeset
20
d0b278fd29d5 Implemented wad path list
Teemu Piippo <crimsondusk64@gmail.com>
parents: 2
diff changeset
21 public slots:
d0b278fd29d5 Implemented wad path list
Teemu Piippo <crimsondusk64@gmail.com>
parents: 2
diff changeset
22 void addPath();
d0b278fd29d5 Implemented wad path list
Teemu Piippo <crimsondusk64@gmail.com>
parents: 2
diff changeset
23 void findPath();
d0b278fd29d5 Implemented wad path list
Teemu Piippo <crimsondusk64@gmail.com>
parents: 2
diff changeset
24 void delPath();
5
3c04e05ab24f Added configs for Zandronum binary paths
Teemu Piippo <crimsondusk64@gmail.com>
parents: 3
diff changeset
25 void findZanBinary();
3c04e05ab24f Added configs for Zandronum binary paths
Teemu Piippo <crimsondusk64@gmail.com>
parents: 3
diff changeset
26 void okPressed();
3c04e05ab24f Added configs for Zandronum binary paths
Teemu Piippo <crimsondusk64@gmail.com>
parents: 3
diff changeset
27 void cancelPressed();
2
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
28
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
29 private:
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
30 Ui_ConfigBox* ui;
5
3c04e05ab24f Added configs for Zandronum binary paths
Teemu Piippo <crimsondusk64@gmail.com>
parents: 3
diff changeset
31 list<QLineEdit*> m_zanBinaries;
2
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
32 };
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
33
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
34 #endif // CONFIG_H

mercurial