Freeciv21
Develop your civilization from humble roots to a global empire
optiondlg.cpp File Reference
#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
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
RESPONSE_CANCEL 
RESPONSE_OK 
RESPONSE_APPLY 
RESPONSE_RESET 
RESPONSE_REFRESH 
RESPONSE_SAVE 

Definition at line 30 of file optiondlg.cpp.

Function Documentation

◆ cut_helptext()

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().

◆ option_dialog_popdown()

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().

◆ option_dialog_popup()

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().

◆ option_gui_update()

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().

◆ split_text()

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().

Variable Documentation

◆ dialog_list