Freeciv-3.3: fc_shortcut_popup Class Reference

Freeciv-3.3

Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Protected Member Functions | Private Member Functions | Private Attributes
fc_shortcut_popup Class Reference

`#include <shortcuts.h>`

Inheritance diagram for fc_shortcut_popup:

## Public Member Functions

| fc_shortcut_popup (QWidget *parent)
void | run (fc_shortcut *s)

## Data Fields

fc_shortcut * | sc

## Protected Member Functions

void | closeEvent (QCloseEvent *)

## Private Member Functions

bool | check_if_exist ()

## Private Attributes

line_edit | edit

## Detailed Description

Definition at line 156 of file shortcuts.h.

## Constructor & Destructor Documentation

## ◆ fc_shortcut_popup()

fc_shortcut_popup::fc_shortcut_popup | ( | QWidget * | parent | ) |

Constructor for setting shortcuts

Definition at line 331 of file shortcuts.cpp.

## Member Function Documentation

## ◆ check_if_exist()

bool fc_shortcut_popup::check_if_exist | ( |  | ) |

private

Checks is shortcut is already assigned and popups hud box then or return false if is not assigned

Definition at line 418 of file shortcuts.cpp.

Referenced by closeEvent().

## ◆ closeEvent()

void fc_shortcut_popup::closeEvent | ( | QCloseEvent * | ev | ) |

protected

Closes given popup and sets shortcut

Definition at line 399 of file shortcuts.cpp.

## ◆ run()

void fc_shortcut_popup::run | ( | fc_shortcut * | s | ) |

Popups line edit for setting shortcut

Definition at line 385 of file shortcuts.cpp.

## Field Documentation

## ◆ edit

line_edit fc_shortcut_popup::edit

private

Definition at line 167 of file shortcuts.h.

Referenced by fc_shortcut_popup(), and run().

## ◆ sc

fc_shortcut* fc_shortcut_popup::sc

Definition at line 162 of file shortcuts.h.

Referenced by check_if_exist(), closeEvent(), fc_shortcut_popup(), line_edit::keyReleaseEvent(), line_edit::mousePressEvent(), and run().