diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-14 03:04:23 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-14 03:04:23 +0000 |
| commit | 059bc4dc24b68d637c3608c05344c53c64cc2c4b (patch) | |
| tree | 6772afd49bd8c7ea1cb07d8af631f25a618f5e11 /otk/renderstyle.hh | |
| parent | 1431cd19584e750309561e0054fd013d566965cb (diff) | |
add a Config class with config data from the scripts.
set up the functions for loading a style from a file.
use the Config class throughout instead of reading out of the python namespace all the time.
Diffstat (limited to 'otk/renderstyle.hh')
| -rw-r--r-- | otk/renderstyle.hh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/otk/renderstyle.hh b/otk/renderstyle.hh index 69745533..69c26a7f 100644 --- a/otk/renderstyle.hh +++ b/otk/renderstyle.hh @@ -5,8 +5,8 @@ #include "rendertexture.hh" #include "rendercolor.hh" #include "font.hh" +#include "ustring.hh" -#include <string> #include <list> namespace otk { @@ -34,6 +34,7 @@ public: static void registerNotify(int screen, StyleNotify *n); static void unregisterNotify(int screen, StyleNotify *n); static RenderStyle *style(int screen); + static bool setStyle(int screen, const ustring &stylefile); enum Justify { LeftTopJustify, @@ -42,8 +43,11 @@ public: }; private: + static bool loadStyle(RenderStyle *s, int screen, const ustring &stylefile); + static void defaultStyle(RenderStyle *s, int screen); + int _screen; - std::string _file; + ustring _file; RenderColor *_root_color; @@ -89,7 +93,6 @@ private: int _bevel_width; public: - RenderStyle(int screen, const std::string &stylefile); virtual ~RenderStyle(); inline int screen() const { return _screen; } |
