Freeciv21
Develop your civilization from humble roots to a global empire
tileset_options.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2024 Louis Moureaux
2 // SPDX-License-Identifier: GPL-3.0-or-later
3 
4 #pragma once
5 
6 #include <QDialog>
7 #include <QString>
8 
9 #include <map>
10 
11 class QCheckBox;
12 struct tileset;
13 
14 namespace freeciv {
15 
19 class tileset_options_dialog : public QDialog {
20  Q_OBJECT
21 
22  std::map<QString, QCheckBox *> m_checks;
23 
24 public:
25  explicit tileset_options_dialog(struct tileset *t, QWidget *parent = 0);
26 
27 private slots:
28  void reset();
29 };
30 
31 } // namespace freeciv
Lets the user toggle tileset options.
tileset_options_dialog(struct tileset *t, QWidget *parent=0)
Sets up the tileset options dialog.
std::map< QString, QCheckBox * > m_checks
void reset()
Resets all options to the tileset defaults.
Definition: path.cpp:10