Freeciv21
Develop your civilization from humble roots to a global empire
edit_utype.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3  __ __ part of Freeciv21. Freeciv21 is free software: you can
4 / \\..// \ redistribute it and/or modify it under the terms of the GNU
5  ( oo ) General Public License as published by the Free Software
6  \__/ Foundation, either version 3 of the License, or (at your
7  option) any later version. You should have received
8  a copy of the GNU General Public License along with Freeciv21. If not,
9  see https://www.gnu.org/licenses/.
10 **************************************************************************/
11 
12 #ifndef FC__EDIT_UTYPE_H
13 #define FC__EDIT_UTYPE_H
14 
15 #include <fc_config.h>
16 
17 // Qt
18 #include <QDialog>
19 
20 class QToolButton;
21 
22 class ruledit_gui;
23 
24 class edit_utype : public QDialog {
25  Q_OBJECT
26 
27 public:
28  explicit edit_utype(ruledit_gui *ui_in, struct unit_type *utype_in);
29  void refresh();
30 
31 private:
33  struct unit_type *utype;
34  QToolButton *req_button;
35 
36 private slots:
37  void req_menu(QAction *action);
38 };
39 
40 #endif // FC__EDIT_UTYPE_H
edit_utype(ruledit_gui *ui_in, struct unit_type *utype_in)
Setup edit_utype object.
Definition: edit_utype.cpp:32
void refresh()
Refresh the information.
Definition: edit_utype.cpp:68
ruledit_gui * ui
Definition: edit_utype.h:32
void req_menu(QAction *action)
User selected tech to be req of utype.
Definition: edit_utype.cpp:76
struct unit_type * utype
Definition: edit_utype.h:33
QToolButton * req_button
Definition: edit_utype.h:34