Freeciv-3.2
|
#include <QApplication>
#include <QDir>
#include <QPalette>
#include <QStyleFactory>
#include <QTextStream>
#include "mem.h"
#include "themes_common.h"
#include "themes_g.h"
#include "fc_client.h"
#include "gui_main.h"
Go to the source code of this file.
Functions | |
void | qtg_gui_load_theme (const char *directory, const char *theme_name) |
void | qtg_gui_clear_theme () |
char ** | qtg_get_gui_specific_themes_directories (int *count) |
char ** | qtg_get_usable_themes_in_directory (const char *directory, int *count) |
Variables | |
QString | current_theme |
static QString | def_app_style |
static QString | stylestring |
Each gui has its own themes directories.
Returns an array containing these strings and sets array size in count. The caller is responsible for freeing the array and the paths.
Definition at line 120 of file themes.cpp.
Referenced by setup_gui_funcs().
Return an array of names of usable themes in the given directory. Array size is stored in count. The caller is responsible for freeing the array and the names.
Definition at line 145 of file themes.cpp.
Referenced by setup_gui_funcs().
void qtg_gui_clear_theme | ( | ) |
Clears a theme (sets default system theme)
Definition at line 104 of file themes.cpp.
Referenced by qtg_gui_load_theme(), qtg_ui_main(), and setup_gui_funcs().
Loads a qt theme directory/theme_name
Definition at line 44 of file themes.cpp.
Referenced by setup_gui_funcs().
|
extern |
Definition at line 65 of file fc_client.cpp.
Referenced by qtg_gui_load_theme().
|
static |
Definition at line 38 of file themes.cpp.
Referenced by qtg_gui_load_theme().
|
static |
Definition at line 39 of file themes.cpp.
Referenced by qtg_gui_load_theme().