Freeciv-3.3
Loading...
Searching...
No Matches
Signals | Public Member Functions | Data Fields | Private Slots | Private Member Functions | Private Attributes
ruledit_gui Class Reference

#include <ruledit_qt.h>

+ Inheritance diagram for ruledit_gui:

Signals

void req_vec_may_have_changed (const requirement_vector *vec)
 

Public Member Functions

void setup (QWidget *central_in)
 
void display_msg (const char *msg)
 
requirers_dlgcreate_requirers (const char *title)
 
void show_required (requirers_dlg *requirers, const char *msg)
 
void flush_widgets ()
 
void open_req_edit (QString target, struct requirement_vector *preqs)
 
void unregister_req_edit (class req_edit *redit)
 
void open_req_vec_fix (req_vec_fix_item *item_info)
 
void unregister_req_vec_fix (req_vec_fix *fixer)
 
void open_effect_edit (QString target, struct universal *uni, enum effect_filter_main_class efmc)
 
void unregister_effect_edit (class effect_edit *e_edit)
 
void refresh_effect_edits ()
 

Data Fields

struct rule_data data
 

Private Slots

void rulesetdir_given ()
 
void incoming_req_vec_change (const requirement_vector *vec)
 

Private Member Functions

void launch_now ()
 

Private Attributes

QLabel * msg_dspl
 
QTabWidget * stack
 
QLineEdit * ruleset_select
 
QWidget * central
 
QStackedLayoutmain_layout
 
tab_achievementach
 
tab_buildingbldg
 
tab_countercounter
 
tab_miscmisc
 
tab_techtech
 
tab_unitunit
 
tab_goodgood
 
tab_govgov
 
tab_enablerenablers
 
tab_extrasextras
 
tab_multipliermultipliers
 
tab_terrainsterrains
 
tab_nationnation
 
struct req_edit_listreq_edits
 
struct req_vec_fix_listreq_vec_fixers
 
struct effect_edit_listeffect_edits
 

Detailed Description

Definition at line 96 of file ruledit_qt.h.

Member Function Documentation

◆ create_requirers()

requirers_dlg * ruledit_gui::create_requirers ( const char title)

◆ display_msg()

void ruledit_gui::display_msg ( const char msg)

◆ flush_widgets()

void ruledit_gui::flush_widgets ( )

Flush information from widgets to stores where it can be saved from.

Definition at line 328 of file ruledit_qt.cpp.

Referenced by tab_misc::save_now().

◆ incoming_req_vec_change

void ruledit_gui::incoming_req_vec_change ( const requirement_vector vec)
privateslot

A requirement vector may have been changed.

Parameters
vecthe requirement vector that may have been changed.

Definition at line 287 of file ruledit_qt.cpp.

Referenced by open_req_edit(), and open_req_vec_fix().

◆ launch_now()

void ruledit_gui::launch_now ( )
private

Launch the main page.

game.server.rulesetdir must be correctly set beforehand.

Definition at line 250 of file ruledit_qt.cpp.

Referenced by rulesetdir_given(), and setup().

◆ open_effect_edit()

void ruledit_gui::open_effect_edit ( QString  target,
struct universal uni,
enum effect_filter_main_class  efmc 
)

◆ open_req_edit()

void ruledit_gui::open_req_edit ( QString  target,
struct requirement_vector preqs 
)

◆ open_req_vec_fix()

void ruledit_gui::open_req_vec_fix ( req_vec_fix_item item_info)

Open req_vec_fix dialog.

Definition at line 370 of file ruledit_qt.cpp.

Referenced by tab_enabler::repair_now().

◆ refresh_effect_edits()

void ruledit_gui::refresh_effect_edits ( )

Refresh all effect edit dialogs

Definition at line 443 of file ruledit_qt.cpp.

Referenced by effect_edit::effect_type_menu(), and effect_edit::set_value().

◆ req_vec_may_have_changed

void ruledit_gui::req_vec_may_have_changed ( const requirement_vector vec)
signal

A requirement vector may have been changed.

Parameters
vecthe requirement vector that was changed.

Referenced by incoming_req_vec_change(), and open_req_edit().

◆ rulesetdir_given

void ruledit_gui::rulesetdir_given ( )
privateslot

User entered rulesetdir to load.

Definition at line 235 of file ruledit_qt.cpp.

Referenced by setup().

◆ setup()

void ruledit_gui::setup ( QWidget *  central_in)

Setup GUI object

Definition at line 107 of file ruledit_qt.cpp.

Referenced by ruledit_qt_run().

◆ show_required()

void ruledit_gui::show_required ( requirers_dlg requirers,
const char msg 
)

Add entry to requirers dlg.

Definition at line 317 of file ruledit_qt.cpp.

Referenced by ruledit_qt_display_requirers().

◆ unregister_effect_edit()

void ruledit_gui::unregister_effect_edit ( class effect_edit e_edit)

Unregister closed effect_edit dialog

Definition at line 435 of file ruledit_qt.cpp.

Referenced by effect_edit::close_now(), and effect_edit::closeEvent().

◆ unregister_req_edit()

void ruledit_gui::unregister_req_edit ( class req_edit redit)

Unregister closed req_edit dialog

Definition at line 362 of file ruledit_qt.cpp.

Referenced by req_edit::close_now(), and req_edit::closeEvent().

◆ unregister_req_vec_fix()

void ruledit_gui::unregister_req_vec_fix ( req_vec_fix fixer)

Unregister closed req_vec_fix dialog.

Definition at line 398 of file ruledit_qt.cpp.

Referenced by req_vec_fix::~req_vec_fix().

Field Documentation

◆ ach

tab_achievement* ruledit_gui::ach
private

Definition at line 136 of file ruledit_qt.h.

Referenced by launch_now(), and setup().

◆ bldg

tab_building* ruledit_gui::bldg
private

Definition at line 137 of file ruledit_qt.h.

Referenced by launch_now(), and setup().

◆ central

QWidget* ruledit_gui::central
private

Definition at line 133 of file ruledit_qt.h.

Referenced by setup().

◆ counter

tab_counter* ruledit_gui::counter
private

Definition at line 138 of file ruledit_qt.h.

◆ data

struct rule_data ruledit_gui::data

◆ effect_edits

struct effect_edit_list* ruledit_gui::effect_edits
private

◆ enablers

tab_enabler* ruledit_gui::enablers
private

Definition at line 144 of file ruledit_qt.h.

Referenced by launch_now(), and setup().

◆ extras

tab_extras* ruledit_gui::extras
private

Definition at line 145 of file ruledit_qt.h.

Referenced by launch_now(), and setup().

◆ good

tab_good* ruledit_gui::good
private

Definition at line 142 of file ruledit_qt.h.

Referenced by launch_now(), and setup().

◆ gov

tab_gov* ruledit_gui::gov
private

Definition at line 143 of file ruledit_qt.h.

Referenced by launch_now(), and setup().

◆ main_layout

QStackedLayout* ruledit_gui::main_layout
private

Definition at line 134 of file ruledit_qt.h.

Referenced by launch_now(), and setup().

◆ misc

tab_misc* ruledit_gui::misc
private

Definition at line 139 of file ruledit_qt.h.

Referenced by flush_widgets(), launch_now(), and setup().

◆ msg_dspl

QLabel* ruledit_gui::msg_dspl
private

Definition at line 130 of file ruledit_qt.h.

Referenced by display_msg(), and setup().

◆ multipliers

tab_multiplier* ruledit_gui::multipliers
private

Definition at line 146 of file ruledit_qt.h.

Referenced by launch_now(), and setup().

◆ nation

tab_nation* ruledit_gui::nation
private

Definition at line 148 of file ruledit_qt.h.

Referenced by flush_widgets(), launch_now(), and setup().

◆ req_edits

struct req_edit_list* ruledit_gui::req_edits
private

Definition at line 150 of file ruledit_qt.h.

Referenced by open_req_edit(), setup(), and unregister_req_edit().

◆ req_vec_fixers

struct req_vec_fix_list* ruledit_gui::req_vec_fixers
private

Definition at line 151 of file ruledit_qt.h.

Referenced by open_req_vec_fix(), setup(), and unregister_req_vec_fix().

◆ ruleset_select

QLineEdit* ruledit_gui::ruleset_select
private

Definition at line 132 of file ruledit_qt.h.

Referenced by rulesetdir_given(), and setup().

◆ stack

QTabWidget* ruledit_gui::stack
private

Definition at line 131 of file ruledit_qt.h.

Referenced by setup().

◆ tech

tab_tech* ruledit_gui::tech
private

Definition at line 140 of file ruledit_qt.h.

Referenced by launch_now(), and setup().

◆ terrains

tab_terrains* ruledit_gui::terrains
private

Definition at line 147 of file ruledit_qt.h.

Referenced by launch_now(), and setup().

◆ unit

tab_unit* ruledit_gui::unit
private

Definition at line 141 of file ruledit_qt.h.