![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <QApplication>#include <QCheckBox>#include <QColorDialog>#include <QComboBox>#include <QDialogButtonBox>#include <QFontDialog>#include <QGroupBox>#include <QHBoxLayout>#include <QScrollArea>#include <QSpinBox>#include "log.h"#include "fc_client.h"#include "optiondlg.h"#include "options.h"#include "page_pregame.h"
Include dependency graph for optiondlg.cpp:Go to the source code of this file.
Enumerations | |
| enum | { RESPONSE_CANCEL , RESPONSE_OK , RESPONSE_APPLY , RESPONSE_RESET , RESPONSE_REFRESH , RESPONSE_SAVE } |
Functions | |
| QString | split_text (const QString &text, bool cut) |
| Splits long text to 80 characters. More... | |
| QString | cut_helptext (const QString &text) |
| Remove some text from given text(help text) to show as tooltip. More... | |
| void | option_dialog_popup (const char *name, const struct option_set *poptset) |
| Popup the option dialog for the option set. More... | |
| void | option_dialog_popdown (const struct option_set *poptset) |
| Popdown the option dialog for the option set. More... | |
| void | option_gui_update (struct option *poption) |
| Update the GUI for the option. More... | |
Variables | |
| QHash< const struct option_set *, option_dialog * > | dialog_list |
| anonymous enum |
| Enumerator | |
|---|---|
| RESPONSE_CANCEL | |
| RESPONSE_OK | |
| RESPONSE_APPLY | |
| RESPONSE_RESET | |
| RESPONSE_REFRESH | |
| RESPONSE_SAVE | |
Definition at line 30 of file optiondlg.cpp.
| QString cut_helptext | ( | const QString & | text | ) |
Remove some text from given text(help text) to show as tooltip.
Definition at line 87 of file optiondlg.cpp.
Referenced by get_tooltip(), get_tooltip_improvement(), get_tooltip_unit(), and research_diagram::mouseMoveEvent().
| void option_dialog_popdown | ( | const struct option_set * | poptset | ) |
Popdown the option dialog for the option set.
Definition at line 798 of file optiondlg.cpp.
Referenced by server_options_free().
| void option_dialog_popup | ( | const char * | name, |
| const struct option_set * | poptset | ||
| ) |
Popup the option dialog for the option set.
Definition at line 722 of file optiondlg.cpp.
Referenced by popup_client_options(), and mr_menu::server_options().
| void option_gui_update | ( | struct option * | poption | ) |
Update the GUI for the option.
Definition at line 812 of file optiondlg.cpp.
Referenced by option_changed().
| QString split_text | ( | const QString & | text, |
| bool | cut | ||
| ) |
Splits long text to 80 characters.
Definition at line 45 of file optiondlg.cpp.
Referenced by option_dialog::add_option(), get_tooltip(), get_tooltip_improvement(), get_tooltip_unit(), and research_diagram::mouseMoveEvent().
| QHash<const struct option_set *, option_dialog *> dialog_list |
Definition at line 40 of file optiondlg.cpp.
Referenced by option_dialog::apply_option(), option_dialog_popdown(), option_dialog_popup(), option_gui_update(), and option_dialog::~option_dialog().