#include <QActionGroup>
#include <QApplication>
#include <QFileDialog>
#include <QMainWindow>
#include <QMessageBox>
#include <QScrollArea>
#include <QStandardPaths>
#include <QVBoxLayout>
#include "string_vector.h"
#include "game.h"
#include "government.h"
#include "goto.h"
#include "name_translation.h"
#include "road.h"
#include "unit.h"
#include "connectdlg_common.h"
#include "control.h"
#include "helpdata.h"
#include "fc_client.h"
#include "chatline.h"
#include "cityrep.h"
#include "dialogs.h"
#include "gotodlg.h"
#include "gui_main.h"
#include "hudwidget.h"
#include "mapctrl.h"
#include "messagedlg.h"
#include "plrdlg.h"
#include "ratesdlg.h"
#include "repodlgs.h"
#include "shortcuts.h"
#include "spaceshipdlg.h"
#include "sprite.h"
#include "menu.h"
Go to the source code of this file.
◆ ADD_OLD_SHORTCUT
#define ADD_OLD_SHORTCUT |
( |
|
wanted_action_id, |
|
|
|
sc_id |
|
) |
| |
Value: if (act_id == wanted_action_id) { \
}
static fc_shortcuts * sc()
QString shortcut_to_string(fc_shortcut *sc)
◆ CREATE_SUB_ITEM
#define CREATE_SUB_ITEM |
( |
|
_menu_, |
|
|
|
_act_id_, |
|
|
|
_sub_tgt_id_, |
|
|
|
_sub_tgt_name_ |
|
) |
| |
Value: { \
QAction *_sub_item_ = _menu_->addAction(_sub_tgt_name_); \
int _sub_target_id_ = _sub_tgt_id_; \
QObject::connect(_sub_item_, &QAction::triggered, \
[this, _act_id_, _sub_target_id_]() { \
start_go_act(_act_id_, _sub_target_id_); \
}); \
}
◆ enable_interface()
void enable_interface |
( |
bool |
enable | ) |
|
|
static |
◆ get_tile_change_menu_text()
static const char * get_tile_change_menu_text |
( |
struct tile * |
ptile, |
|
|
enum unit_activity |
activity |
|
) |
| |
|
static |
Return the text for the tile, changed by the activity. Should only be called for irrigation, mining, or transformation, and only when the activity changes the base terrain type.
Definition at line 551 of file menu.cpp.
◆ multiairlift()
◆ real_menus_init()
void real_menus_init |
( |
void |
| ) |
|
Initialize menus (sensitivity, name, etc.) based on the current state and current ruleset, etc. Call menus_update().
Definition at line 510 of file menu.cpp.
◆ real_menus_update()
void real_menus_update |
( |
void |
| ) |
|
Update all of the menus (sensitivity, name, etc.) based on the current state.
Definition at line 528 of file menu.cpp.