Freeciv-3.1
Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Private Slots | Private Attributes
fc_sc_button Class Reference

#include <shortcuts.h>

+ Inheritance diagram for fc_sc_button:

Public Member Functions

 fc_sc_button ()
 
 fc_sc_button (fc_shortcut *s)
 
void show_info (QString str)
 

Data Fields

fc_shortcutsc
 
fc_shortcutsc_orig
 

Private Slots

void popup_error ()
 

Private Attributes

QString err_message
 

Detailed Description

Definition at line 172 of file shortcuts.h.

Constructor & Destructor Documentation

◆ fc_sc_button() [1/2]

fc_sc_button::fc_sc_button ( )

Constructor for button setting shortcut

Definition at line 519 of file shortcuts.cpp.

◆ fc_sc_button() [2/2]

fc_sc_button::fc_sc_button ( fc_shortcut s)

Constructor setting given shortcut

Definition at line 527 of file shortcuts.cpp.

Member Function Documentation

◆ popup_error

void fc_sc_button::popup_error ( )
privateslot

Shows information about assigned shortcut

Definition at line 551 of file shortcuts.cpp.

Referenced by popup_error(), and show_info().

◆ show_info()

void fc_sc_button::show_info ( QString  str)

Executes slot to show information about assigned shortcut

Definition at line 542 of file shortcuts.cpp.

Referenced by fc_shortcut_popup::check_if_exist().

Field Documentation

◆ err_message

QString fc_sc_button::err_message
private

Definition at line 175 of file shortcuts.h.

Referenced by popup_error(), and show_info().

◆ sc

fc_shortcut* fc_sc_button::sc

◆ sc_orig

fc_shortcut* fc_sc_button::sc_orig

Definition at line 180 of file shortcuts.h.

Referenced by fc_sc_button().