Freeciv-3.1
|
#include <effect_edit.h>
Public Member Functions | |
effect_edit (ruledit_gui *ui_in, QString target, struct universal *filter_in, enum effect_filter_main_class efmc_in) | |
~effect_edit () | |
void | refresh () |
void | add (const char *msg) |
void | add_effect_to_list (struct effect *peffect, struct effect_list_fill_data *fill_data) |
struct universal * | filter_get () |
Data Fields | |
enum effect_filter_main_class | efmc |
Protected Member Functions | |
void | closeEvent (QCloseEvent *event) |
Private Slots | |
void | select_effect () |
void | fill_active () |
void | edit_reqs () |
void | add_now () |
void | delete_now () |
void | close_now () |
void | effect_type_menu (QAction *action) |
void | set_value (int value) |
void | multiplier_menu (QAction *action) |
Private Attributes | |
ruledit_gui * | ui |
QString | name |
QListWidget * | list_widget |
struct universal | filter |
struct effect_list * | effects |
struct effect * | selected |
int | selected_nbr |
QToolButton * | edit_type_button |
QSpinBox * | value_box |
QToolButton * | mp_button |
Definition at line 46 of file effect_edit.h.
|
explicit |
Setup effect_edit object
Definition at line 44 of file effect_edit.cpp.
effect_edit::~effect_edit | ( | ) |
Effect edit destructor
Definition at line 142 of file effect_edit.cpp.
void effect_edit::add | ( | const char * | msg | ) |
void effect_edit::add_effect_to_list | ( | struct effect * | peffect, |
struct effect_list_fill_data * | fill_data | ||
) |
Add entry to effect list.
Definition at line 194 of file effect_edit.cpp.
Referenced by effect_list_fill_cb().
|
privateslot |
User requested new effect
Definition at line 321 of file effect_edit.cpp.
Referenced by effect_edit().
|
privateslot |
User pushed close button
Definition at line 222 of file effect_edit.cpp.
Referenced by effect_edit().
|
protected |
User clicked windows close button.
Definition at line 313 of file effect_edit.cpp.
|
privateslot |
User requested effect deletion
Definition at line 340 of file effect_edit.cpp.
Referenced by effect_edit().
|
privateslot |
User wants to edit requirements
Definition at line 296 of file effect_edit.cpp.
Referenced by effect_edit().
|
privateslot |
User selected type for the effect.
Definition at line 268 of file effect_edit.cpp.
Referenced by effect_edit().
|
privateslot |
Fill active menus from selected effect.
Definition at line 250 of file effect_edit.cpp.
Referenced by refresh(), and select_effect().
struct universal * effect_edit::filter_get | ( | ) |
Getter for filter
Definition at line 214 of file effect_edit.cpp.
|
privateslot |
User selected multiplier for the effect
Definition at line 354 of file effect_edit.cpp.
Referenced by effect_edit().
void effect_edit::refresh | ( | ) |
Refresh the information.
Definition at line 175 of file effect_edit.cpp.
Referenced by add_now(), delete_now(), effect_edit(), and multiplier_menu().
|
privateslot |
User selected effect from the list.
Definition at line 231 of file effect_edit.cpp.
Referenced by effect_edit().
|
privateslot |
Read value from spinbox to effect
Definition at line 284 of file effect_edit.cpp.
Referenced by effect_edit().
|
private |
Definition at line 74 of file effect_edit.h.
Referenced by effect_edit(), and fill_active().
|
private |
Definition at line 69 of file effect_edit.h.
Referenced by add_effect_to_list(), effect_edit(), refresh(), select_effect(), and ~effect_edit().
enum effect_filter_main_class effect_edit::efmc |
Definition at line 61 of file effect_edit.h.
Referenced by effect_edit(), and refresh().
|
private |
Definition at line 68 of file effect_edit.h.
Referenced by add_now(), effect_edit(), filter_get(), and refresh().
|
private |
Definition at line 67 of file effect_edit.h.
Referenced by add_effect_to_list(), effect_edit(), refresh(), and select_effect().
|
private |
Definition at line 77 of file effect_edit.h.
Referenced by effect_edit(), and fill_active().
|
private |
Definition at line 66 of file effect_edit.h.
Referenced by edit_reqs(), and effect_edit().
|
private |
Definition at line 71 of file effect_edit.h.
Referenced by add_effect_to_list(), delete_now(), edit_reqs(), effect_edit(), effect_type_menu(), fill_active(), multiplier_menu(), select_effect(), and set_value().
|
private |
Definition at line 72 of file effect_edit.h.
Referenced by edit_reqs(), and select_effect().
|
private |
Definition at line 64 of file effect_edit.h.
Referenced by close_now(), closeEvent(), edit_reqs(), effect_edit(), effect_type_menu(), and set_value().
|
private |
Definition at line 75 of file effect_edit.h.
Referenced by effect_edit(), and fill_active().