Freeciv-3.2
Loading...
Searching...
No Matches
effect_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__EFFECT_EDIT_H
15#define FC__EFFECT_EDIT_H
16
17#ifdef HAVE_CONFIG_H
18#include <fc_config.h>
19#endif
20
21// Qt
22#include <QDialog>
23#include <QListWidget>
24#include <QToolButton>
25
26// common
27#include "requirements.h"
28
29class QLineEdit;
30class QSpinBox;
31
32class ruledit_gui;
33
35 EFMC_NONE, // No requirements
36 EFMC_ALL // Any requirements
37};
38
46
47class effect_edit : public QDialog
48{
50
51 public:
52 explicit effect_edit(ruledit_gui *ui_in, QString target,
55 void refresh();
56 void add(const char *msg);
58 struct effect_list_fill_data *fill_data);
59
60 struct universal *filter_get();
61
63
64 private:
66
71
74
77
79 QLineEdit *comment;
80
81 private slots:
82 void select_effect();
83 void fill_active();
84 void edit_reqs();
85 void add_now();
86 void delete_now();
87 void close_now();
88
90 void set_value(int value);
92 void comment_given();
93
94 protected:
96};
97
98#endif // FC__EFFECT_EDIT_H
struct effect_list * effects
Definition effect_edit.h:70
void multiplier_menu(QAction *action)
QToolButton * edit_type_button
Definition effect_edit.h:75
QString name
Definition effect_edit.h:67
void add_effect_to_list(struct effect *peffect, struct effect_list_fill_data *fill_data)
void fill_active()
enum effect_filter_main_class efmc
Definition effect_edit.h:62
void add(const char *msg)
void set_value(int value)
QToolButton * mp_button
Definition effect_edit.h:78
void delete_now()
void comment_given()
void closeEvent(QCloseEvent *event)
struct universal filter
Definition effect_edit.h:69
QListWidget * list_widget
Definition effect_edit.h:68
struct universal * filter_get()
QSpinBox * value_box
Definition effect_edit.h:76
ruledit_gui * ui
Definition effect_edit.h:65
void effect_type_menu(QAction *action)
QLineEdit * comment
Definition effect_edit.h:79
struct effect * selected
Definition effect_edit.h:72
void select_effect()
char * incite_cost
Definition comments.c:75
effect_filter_main_class
Definition effect_edit.h:34
@ EFMC_ALL
Definition effect_edit.h:36
@ EFMC_NORMAL
Definition effect_edit.h:34
@ EFMC_NONE
Definition effect_edit.h:35
enum event_type event
Definition events.c:81
struct player_slot * slots
Definition player.c:51
struct universal * filter
Definition effect_edit.h:41
enum effect_filter_main_class efmc
Definition effect_edit.h:42
class effect_edit * edit
Definition effect_edit.h:43