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

#include <tab_achievement.h>

+ Inheritance diagram for tab_achievement:

Public Member Functions

 tab_achievement (ruledit_gui *ui_in)
 
void refresh ()
 

Private Slots

void name_given ()
 
void select_achievement ()
 
void add_now ()
 
void delete_now ()
 
void same_name_toggle (bool checked)
 
void edit_effects ()
 
void edit_type (QAction *action)
 
void set_value (int value)
 

Private Member Functions

void update_achievement_info (struct achievement *pach)
 
bool initialize_new_achievement (struct achievement *pach)
 

Private Attributes

ruledit_guiui
 
QLineEdit * name
 
QLineEdit * rname
 
QListWidgetach_list
 
QCheckBoxsame_name
 
QToolButtontype_button
 
QMenu * type_menu
 
QSpinBoxvalue_box
 
struct achievementselected
 

Detailed Description

Definition at line 33 of file tab_achievement.h.

Constructor & Destructor Documentation

◆ tab_achievement()

tab_achievement::tab_achievement ( ruledit_gui ui_in)
explicit

Setup tab_achievement object

Definition at line 47 of file tab_achievement.cpp.

Member Function Documentation

◆ add_now

void tab_achievement::add_now ( )
privateslot

User requested new achievement

Definition at line 275 of file tab_achievement.cpp.

Referenced by tab_achievement().

◆ delete_now

void tab_achievement::delete_now ( )
privateslot

User requested achievement deletion

Definition at line 240 of file tab_achievement.cpp.

Referenced by tab_achievement().

◆ edit_effects

void tab_achievement::edit_effects ( )
privateslot

User wants to edit effects

Definition at line 323 of file tab_achievement.cpp.

Referenced by tab_achievement().

◆ edit_type

void tab_achievement::edit_type ( QAction action)
privateslot

User selected achievement type

Definition at line 339 of file tab_achievement.cpp.

Referenced by tab_achievement().

◆ initialize_new_achievement()

bool tab_achievement::initialize_new_achievement ( struct achievement pach)
private

Initialize new achievement for use.

Definition at line 261 of file tab_achievement.cpp.

Referenced by add_now().

◆ name_given

void tab_achievement::name_given ( )
privateslot

User entered name for the achievement

Definition at line 208 of file tab_achievement.cpp.

Referenced by tab_achievement().

◆ refresh()

void tab_achievement::refresh ( )

Refresh the information.

Definition at line 144 of file tab_achievement.cpp.

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

◆ same_name_toggle

void tab_achievement::same_name_toggle ( bool  checked)
privateslot

Toggled whether rule_name and name should be kept identical

Definition at line 312 of file tab_achievement.cpp.

Referenced by tab_achievement().

◆ select_achievement

void tab_achievement::select_achievement ( )
privateslot

User selected achievement from the list.

Definition at line 193 of file tab_achievement.cpp.

Referenced by tab_achievement().

◆ set_value

void tab_achievement::set_value ( int  value)
privateslot

Read value from spinbox to achievement

Definition at line 359 of file tab_achievement.cpp.

Referenced by tab_achievement().

◆ update_achievement_info()

void tab_achievement::update_achievement_info ( struct achievement pach)
private

Update info of the achievement

Definition at line 159 of file tab_achievement.cpp.

Referenced by add_now(), delete_now(), edit_type(), select_achievement(), set_value(), and tab_achievement().

Field Documentation

◆ ach_list

QListWidget* tab_achievement::ach_list
private

Definition at line 48 of file tab_achievement.h.

Referenced by refresh(), select_achievement(), and tab_achievement().

◆ name

QLineEdit* tab_achievement::name
private

◆ rname

QLineEdit* tab_achievement::rname
private

◆ same_name

QCheckBox* tab_achievement::same_name
private

Definition at line 49 of file tab_achievement.h.

Referenced by name_given(), tab_achievement(), and update_achievement_info().

◆ selected

struct achievement* tab_achievement::selected
private

◆ type_button

QToolButton* tab_achievement::type_button
private

Definition at line 50 of file tab_achievement.h.

Referenced by tab_achievement(), and update_achievement_info().

◆ type_menu

QMenu* tab_achievement::type_menu
private

Definition at line 51 of file tab_achievement.h.

Referenced by tab_achievement().

◆ ui

ruledit_gui* tab_achievement::ui
private

Definition at line 42 of file tab_achievement.h.

Referenced by delete_now(), edit_effects(), name_given(), and tab_achievement().

◆ value_box

QSpinBox* tab_achievement::value_box
private

Definition at line 52 of file tab_achievement.h.

Referenced by tab_achievement(), and update_achievement_info().