Freeciv21
Develop your civilization from humble roots to a global empire
themes_common.h File Reference
#include <QString>
#include <QVector>
+ Include dependency graph for themes_common.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void init_themes ()
 Initialized themes data. More...
 
const QVector< QString > * get_themes_list (const struct option *poption)
 Return a static string vector of useable theme names. More...
 
bool load_theme (const QString &theme_name)
 Loads a theme with the given name. More...
 
void theme_reread_callback (struct option *option)
 Wrapper for load_theme. More...
 

Function Documentation

◆ get_themes_list()

const QVector<QString>* get_themes_list ( const struct option poption)

Return a static string vector of useable theme names.

Definition at line 78 of file themes_common.cpp.

Referenced by init_client_options().

◆ init_themes()

void init_themes ( )

Initialized themes data.

Definition at line 56 of file themes_common.cpp.

Referenced by client_main().

◆ load_theme()

bool load_theme ( const QString &  theme_name)

Loads a theme with the given name.

First matching directory will be used. If there's no such theme the function returns FALSE.

Definition at line 104 of file themes_common.cpp.

Referenced by gui_clear_theme(), map_view::shortcut_pressed(), theme_reread_callback(), and ui_main().

◆ theme_reread_callback()

void theme_reread_callback ( struct option poption)

Wrapper for load_theme.

It's is used by local options dialog

Definition at line 120 of file themes_common.cpp.

Referenced by init_client_options().