Freeciv-3.3
|
#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) |
void | comment_given () |
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 |
QLineEdit * | comment |
Definition at line 47 of file effect_edit.h.
|
explicit |
Setup effect_edit object
Definition at line 45 of file effect_edit.cpp.
effect_edit::~effect_edit | ( | ) |
Effect edit destructor
Definition at line 148 of file effect_edit.cpp.
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 200 of file effect_edit.cpp.
Referenced by effect_list_fill_cb().
|
privateslot |
User requested new effect
Definition at line 333 of file effect_edit.cpp.
Referenced by effect_edit().
|
privateslot |
User pushed close button
Definition at line 228 of file effect_edit.cpp.
Referenced by effect_edit().
|
protected |
User clicked windows close button.
Definition at line 325 of file effect_edit.cpp.
|
privateslot |
User entered comment for the effect
Definition at line 386 of file effect_edit.cpp.
Referenced by effect_edit().
|
privateslot |
User requested effect deletion
Definition at line 352 of file effect_edit.cpp.
Referenced by effect_edit().
|
privateslot |
User wants to edit requirements
Definition at line 308 of file effect_edit.cpp.
Referenced by effect_edit().
User selected type for the effect.
Definition at line 280 of file effect_edit.cpp.
Referenced by effect_edit().
|
privateslot |
Fill active menus from selected effect.
Definition at line 256 of file effect_edit.cpp.
Referenced by comment_given(), refresh(), and select_effect().
Getter for filter
Definition at line 220 of file effect_edit.cpp.
User selected multiplier for the effect
Definition at line 366 of file effect_edit.cpp.
Referenced by effect_edit().
void effect_edit::refresh | ( | ) |
Refresh the information.
Definition at line 181 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 237 of file effect_edit.cpp.
Referenced by effect_edit().
Read value from spinbox to effect
Definition at line 296 of file effect_edit.cpp.
Referenced by effect_edit().
|
private |
Definition at line 79 of file effect_edit.h.
Referenced by comment_given(), effect_edit(), and fill_active().
|
private |
Definition at line 75 of file effect_edit.h.
Referenced by effect_edit(), and fill_active().
|
private |
Definition at line 70 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 62 of file effect_edit.h.
Referenced by effect_edit(), and refresh().
Definition at line 69 of file effect_edit.h.
Referenced by add_now(), effect_edit(), filter_get(), and refresh().
|
private |
Definition at line 68 of file effect_edit.h.
Referenced by add_effect_to_list(), effect_edit(), refresh(), and select_effect().
|
private |
Definition at line 78 of file effect_edit.h.
Referenced by effect_edit(), and fill_active().
|
private |
Definition at line 67 of file effect_edit.h.
Referenced by edit_reqs(), and effect_edit().
Definition at line 72 of file effect_edit.h.
Referenced by add_effect_to_list(), comment_given(), delete_now(), edit_reqs(), effect_edit(), effect_type_menu(), fill_active(), multiplier_menu(), select_effect(), and set_value().
|
private |
Definition at line 73 of file effect_edit.h.
Referenced by edit_reqs(), and select_effect().
|
private |
Definition at line 65 of file effect_edit.h.
Referenced by close_now(), closeEvent(), edit_reqs(), effect_edit(), effect_type_menu(), and set_value().
|
private |
Definition at line 76 of file effect_edit.h.
Referenced by effect_edit(), and fill_active().