Freeciv-3.2
Loading...
Searching...
No Matches
req_edit.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__REQ_EDIT_H
15#define FC__REQ_EDIT_H
16
17#ifdef HAVE_CONFIG_H
18#include <fc_config.h>
19#endif
20
21// Qt
22#include <QDialog>
23
24// common
25#include "requirements.h"
26
27class QListWidget;
28class QListWidgetItem;
29class QMenu;
30class QSpinBox;
31class QToolButton;
32
33class ruledit_gui;
34
35class req_edit : public QDialog
36{
38
39 public:
40 explicit req_edit(ruledit_gui *ui_in, QString target,
42 void refresh();
43 void add(const char *msg);
44
46
47signals:
48 /********************************************************************/
53
54 private:
56
58
61 void clear_selected();
62 void update_selected();
64 void refresh_selected();
65
72
73 private slots:
74 void select_req();
75 void fill_active();
76 void add_now();
77 void delete_now();
78 void close_now();
79
84 void univ_value_edit(int value);
85
87
88 protected:
90};
91
92#endif // FC__REQ_EDIT_H
struct requirement_vector * req_vector
Definition req_edit.h:45
ruledit_gui * ui
Definition req_edit.h:55
void req_present_menu(QAction *action)
Definition req_edit.cpp:356
void delete_now()
Definition req_edit.cpp:428
QToolButton * edit_value_enum_button
Definition req_edit.h:67
QToolButton * edit_present_button
Definition req_edit.h:71
void refresh()
Definition req_edit.cpp:189
struct requirement selected_values
Definition req_edit.h:60
void univ_value_enum_menu(QAction *action)
Definition req_edit.cpp:375
void add(const char *msg)
void close_now()
Definition req_edit.cpp:237
void incoming_req_vec_change(const requirement_vector *vec)
Definition req_edit.cpp:452
void univ_value_edit(int value)
Definition req_edit.cpp:390
QSpinBox * edit_value_nbr_field
Definition req_edit.h:69
QToolButton * edit_range_button
Definition req_edit.h:70
void fill_active()
Definition req_edit.cpp:295
void closeEvent(QCloseEvent *event)
Definition req_edit.cpp:477
struct requirement * selected
Definition req_edit.h:59
void req_vec_may_have_changed(const requirement_vector *vec)
QMenu * edit_value_enum_menu
Definition req_edit.h:68
void req_type_menu(QAction *action)
Definition req_edit.cpp:321
void update_selected()
Definition req_edit.cpp:212
void select_req()
Definition req_edit.cpp:246
QToolButton * edit_type_button
Definition req_edit.h:66
void clear_selected()
Definition req_edit.cpp:222
void refresh_item(QListWidgetItem *item, struct requirement *preq)
Definition req_edit.cpp:150
void req_range_menu(QAction *action)
Definition req_edit.cpp:339
void refresh_selected()
Definition req_edit.cpp:172
QListWidget * req_list
Definition req_edit.h:57
void add_now()
Definition req_edit.cpp:411
char * incite_cost
Definition comments.c:75
enum event_type event
Definition events.c:81
struct player_slot * slots
Definition player.c:51
Definition climisc.h:82