Freeciv-3.3
Loading...
Searching...
No Matches
Public Member Functions | Private Slots | Private Member Functions | Private Attributes
tab_good Class Reference

#include <tab_good.h>

+ Inheritance diagram for tab_good:

Public Member Functions

 tab_good (ruledit_gui *ui_in)
 
void refresh ()
 

Private Slots

void name_given ()
 
void select_good ()
 
void add_now ()
 
void delete_now ()
 
void same_name_toggle (bool checked)
 
void edit_reqs ()
 
void edit_effects ()
 

Private Member Functions

void update_good_info (struct goods_type *pgood)
 
bool initialize_new_good (struct goods_type *pgood)
 

Private Attributes

ruledit_guiui
 
QLineEdit * name
 
QLineEdit * rname
 
QListWidgetgood_list
 
QCheckBoxsame_name
 
struct goods_typeselected
 

Detailed Description

Definition at line 30 of file tab_good.h.

Constructor & Destructor Documentation

◆ tab_good()

tab_good::tab_good ( ruledit_gui ui_in)
explicit

Setup tab_good object

Definition at line 46 of file tab_good.cpp.

Member Function Documentation

◆ add_now

void tab_good::add_now ( )
privateslot

User requested new good

Definition at line 242 of file tab_good.cpp.

Referenced by tab_good().

◆ delete_now

void tab_good::delete_now ( )
privateslot

User requested good deletion

Definition at line 204 of file tab_good.cpp.

Referenced by tab_good().

◆ edit_effects

void tab_good::edit_effects ( )
privateslot

User wants to edit effects

Definition at line 301 of file tab_good.cpp.

Referenced by tab_good().

◆ edit_reqs

void tab_good::edit_reqs ( )
privateslot

User wants to edit reqs

Definition at line 290 of file tab_good.cpp.

Referenced by tab_good().

◆ initialize_new_good()

bool tab_good::initialize_new_good ( struct goods_type pgood)
private

Initialize new good for use.

Definition at line 224 of file tab_good.cpp.

Referenced by add_now().

◆ name_given

void tab_good::name_given ( )
privateslot

User entered name for the good

Definition at line 172 of file tab_good.cpp.

Referenced by tab_good().

◆ refresh()

void tab_good::refresh ( )

Refresh the information.

Definition at line 114 of file tab_good.cpp.

Referenced by add_now(), delete_now(), ruledit_gui::launch_now(), name_given(), and tab_good().

◆ same_name_toggle

void tab_good::same_name_toggle ( bool  checked)
privateslot

Toggled whether rule_name and name should be kept identical

Definition at line 279 of file tab_good.cpp.

Referenced by tab_good().

◆ select_good

void tab_good::select_good ( )
privateslot

User selected good from the list.

Definition at line 157 of file tab_good.cpp.

Referenced by tab_good().

◆ update_good_info()

void tab_good::update_good_info ( struct goods_type pgood)
private

Update info of the good

Definition at line 129 of file tab_good.cpp.

Referenced by add_now(), delete_now(), select_good(), and tab_good().

Field Documentation

◆ good_list

QListWidget* tab_good::good_list
private

Definition at line 45 of file tab_good.h.

Referenced by refresh(), select_good(), and tab_good().

◆ name

QLineEdit* tab_good::name
private

Definition at line 43 of file tab_good.h.

Referenced by name_given(), same_name_toggle(), tab_good(), and update_good_info().

◆ rname

QLineEdit* tab_good::rname
private

Definition at line 44 of file tab_good.h.

Referenced by name_given(), same_name_toggle(), tab_good(), and update_good_info().

◆ same_name

QCheckBox* tab_good::same_name
private

Definition at line 46 of file tab_good.h.

Referenced by name_given(), tab_good(), and update_good_info().

◆ selected

struct goods_type* tab_good::selected
private

Definition at line 48 of file tab_good.h.

Referenced by delete_now(), edit_effects(), edit_reqs(), name_given(), tab_good(), and update_good_info().

◆ ui

ruledit_gui* tab_good::ui
private

Definition at line 39 of file tab_good.h.

Referenced by delete_now(), edit_effects(), edit_reqs(), name_given(), and tab_good().