00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __EDELIB_THEMELOADER_H__
00022 #define __EDELIB_THEMELOADER_H__
00023
00024 #include "Theme.h"
00025 #include "XSettingsClient.h"
00026
00027 EDELIB_NS_BEGIN
00028
00029 struct ThemeLoader_P;
00030
00046 class ThemeLoader {
00047 private:
00048 ThemeLoader_P *priv;
00049
00050 void apply_common_gui_elements(void);
00051 E_DISABLE_CLASS_COPY(ThemeLoader)
00052 public:
00054 ThemeLoader();
00055
00057 ~ThemeLoader();
00058
00067 bool load(const char *name = "default", const char *prefix = "ede");
00068
00072 bool load_with_path(const char *path);
00073
00078 bool load_xsettings(void);
00079
00083 Theme *theme(void);
00084
00088 XSettingsClient *xsettings(void);
00089
00090 #ifndef SKIP_DOCS
00091 E_CLASS_GLOBAL_EXPLICIT_DECLARE(ThemeLoader)
00092 #endif
00093 };
00094
00095 EDELIB_NS_END
00096 #endif
00097