dmflagspanel.h
1 //------------------------------------------------------------------------------
2 // dmflagspanel.h
3 //------------------------------------------------------------------------------
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 // 02110-1301, USA.
19 //
20 //------------------------------------------------------------------------------
21 // Copyright (C) 2014 "Zalewa" <zalewapl@gmail.com>
22 //------------------------------------------------------------------------------
23 #ifndef id76bed8d4_95b3_443b_9d90_4f95b6310cf8
24 #define id76bed8d4_95b3_443b_9d90_4f95b6310cf8
25 
26 #include "dptr.h"
27 
28 #include <QWidget>
29 #include <QtContainerFwd>
30 
31 class DMFlagsSection;
32 class EnginePlugin;
33 class GameCreateParams;
34 class Ini;
35 
36 class DMFlagsPanel : public QWidget
37 {
38 public:
39  DMFlagsPanel(QWidget *parent);
40  ~DMFlagsPanel();
41 
42  void fillInParams(GameCreateParams &params);
43  bool initDMFlagsTabs(const EnginePlugin *engine);
44  void loadConfig(Ini &config);
45  void saveConfig(Ini &config);
46 
47 private:
49 
50  QList<DMFlagsSection> dmFlags() const;
51  void removeDMFlagsTabs();
52 };
53 
54 #endif
Game parametrization data used when creating new games.
A group of DMFlag objects that can be safely OR&#39;ed together to form a meaningful value.
Configuration handler.
Definition: ini.h:69