Freeciv-3.3
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
36class tab_enabler : public QWidget
37{
39
40 public:
41 explicit tab_enabler(ruledit_gui *ui_in);
42 void refresh();
43
44 private:
48
50 QMenu *type_menu;
51 QPushButton *act_reqs_button;
52 QPushButton *tgt_reqs_button;
53 QPushButton *delete_button;
54 QPushButton *repair_button;
56 QLineEdit *comment;
57
59
60 private slots:
61 void select_enabler();
62 void add_now();
63 void repair_now();
65 void delete_now();
67 void edit_target_reqs();
68 void edit_actor_reqs();
69 void comment_given();
70};
71
72#endif // FC__TAB_ENABLERS_H
ruledit_gui * ui
void incoming_req_vec_change(const requirement_vector *vec)
void comment_given()
void edit_type(QAction *action)
struct action_enabler * selected
QPushButton * act_reqs_button
QToolButton * type_button
void edit_actor_reqs()
QLineEdit * comment
QPushButton * tgt_reqs_button
QMenu * type_menu
void edit_target_reqs()
void select_enabler()
QListWidget * enabler_list
QPushButton * delete_button
bool initialize_new_enabler(struct action_enabler *enabler)
QPushButton * repair_button
void update_enabler_info(struct action_enabler *enabler)
char * incite_cost
Definition comments.c:76
struct player_slot * slots
Definition player.c:51