Freeciv-3.3: fc_sc_button Class Reference

Freeciv-3.3

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_shortcut * | sc
fc_shortcut * | sc_orig

## Private Slots

void | popup_error ()

## Private Attributes

QString | err_message

## Detailed Description

Definition at line 173 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 520 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 528 of file shortcuts.cpp.

## Member Function Documentation

## ◆ popup_error

void fc_sc_button::popup_error | ( |  | ) |

privateslot

Shows information about assigned shortcut

Definition at line 552 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 543 of file shortcuts.cpp.

## Field Documentation

## ◆ err_message

QString fc_sc_button::err_message

private

Definition at line 176 of file shortcuts.h.

Referenced by popup_error(), and show_info().

## ◆ sc

fc_shortcut* fc_sc_button::sc

Definition at line 180 of file shortcuts.h.

Referenced by fc_sc_button(), fc_sc_button(), and popup_error().

## ◆ sc_orig

fc_shortcut* fc_sc_button::sc_orig

Definition at line 181 of file shortcuts.h.

Referenced by fc_sc_button().