Freeciv-3.1: /fast/freeciv/nightly/S3_1/tools/ruledit/tab_enablers.h Source File

Freeciv-3.1

Loading...
Searching...
No Matches
tab_enablers.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13
14#ifndef FC__TAB_ENABLERS_H
15#define FC__TAB_ENABLERS_H
16
17#ifdef HAVE_CONFIG_H
18#include <fc_config.h>
19#endif
20
21// Qt
22#include <QWidget>
23
24/* ruledit */
25#include "req_vec_fix.h"
26
27class QPushButton;
28class QLabel;
29class QLineEdit;
30class QListWidget;
31class QMenu;
32class QToolButton;
33
34class ruledit_gui;
35
36 class tab_enabler : public QWidget
37{
38 Q_OBJECT
39
40 public:
41 explicit tab_enabler(ruledit_gui *ui_in);
42 void refresh();
43
44 private:
45 ruledit_gui *ui;
46 void update_enabler_info(struct action_enabler *enabler);
47 bool initialize_new_enabler(struct action_enabler *enabler);
48
49 QToolButton *type_button;
50 QMenu *type_menu;
51 QPushButton *act_reqs_button;
52 QPushButton *tgt_reqs_button;
53 QPushButton *delete_button;
54 QPushButton *repair_button;
55 QListWidget *enabler_list;
56
57 struct action_enabler *selected;
58
59 private slots:
60 void select_enabler();
61 void add_now();
62 void repair_now();
63 void incoming_req_vec_change(const requirement_vector *vec);
64 void delete_now();
65 void edit_type(QAction *action);
66 void edit_target_reqs();
67 void edit_actor_reqs();
68};
69
70#endif // FC__TAB_ENABLERS_H
ruledit_gui
Definition ruledit_qt.h:96
tab_enabler
Definition tab_enablers.h:37
tab_enabler::ui
ruledit_gui * ui
Definition tab_enablers.h:45
tab_enabler::incoming_req_vec_change
void incoming_req_vec_change(const requirement_vector *vec)
Definition tab_enablers.cpp:351
tab_enabler::delete_now
void delete_now()
Definition tab_enablers.cpp:284
tab_enabler::refresh
void refresh()
Definition tab_enablers.cpp:178
tab_enabler::edit_type
void edit_type(QAction *action)
Definition tab_enablers.cpp:363
tab_enabler::selected
struct action_enabler * selected
Definition tab_enablers.h:57
tab_enabler::act_reqs_button
QPushButton * act_reqs_button
Definition tab_enablers.h:51
tab_enabler::type_button
QToolButton * type_button
Definition tab_enablers.h:49
tab_enabler::edit_actor_reqs
void edit_actor_reqs()
Definition tab_enablers.cpp:397
tab_enabler::tgt_reqs_button
QPushButton * tgt_reqs_button
Definition tab_enablers.h:52
tab_enabler::type_menu
QMenu * type_menu
Definition tab_enablers.h:50
tab_enabler::repair_now
void repair_now()
Definition tab_enablers.cpp:337
tab_enabler::edit_target_reqs
void edit_target_reqs()
Definition tab_enablers.cpp:386
tab_enabler::select_enabler
void select_enabler()
Definition tab_enablers.cpp:268
tab_enabler::enabler_list
QListWidget * enabler_list
Definition tab_enablers.h:55
tab_enabler::delete_button
QPushButton * delete_button
Definition tab_enablers.h:53
tab_enabler::initialize_new_enabler
bool initialize_new_enabler(struct action_enabler *enabler)
Definition tab_enablers.cpp:297
tab_enabler::repair_button
QPushButton * repair_button
Definition tab_enablers.h:54
tab_enabler::update_enabler_info
void update_enabler_info(struct action_enabler *enabler)
Definition tab_enablers.cpp:206
tab_enabler::add_now
void add_now()
Definition tab_enablers.cpp:305
slots
struct player_slot * slots
Definition player.c:50
req_vec_fix.h
action_enabler
Definition actions.h:438
action
Definition actions.h:379