diff options
Diffstat (limited to 'src/FbTk/MenuTheme.hh')
-rw-r--r-- | src/FbTk/MenuTheme.hh | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/FbTk/MenuTheme.hh b/src/FbTk/MenuTheme.hh index 951ab55..dfac7b1 100644 --- a/src/FbTk/MenuTheme.hh +++ b/src/FbTk/MenuTheme.hh | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: MenuTheme.hh,v 1.12 2003/12/16 17:06:52 fluxgen Exp $ | 22 | // $Id: MenuTheme.hh,v 1.13 2003/12/17 00:43:22 fluxgen Exp $ |
23 | 23 | ||
24 | #ifndef FBTK_MENUTHEME_HH | 24 | #ifndef FBTK_MENUTHEME_HH |
25 | #define FBTK_MENUTHEME_HH | 25 | #define FBTK_MENUTHEME_HH |
@@ -112,17 +112,13 @@ public: | |||
112 | // get resources into menu | 112 | // get resources into menu |
113 | void setMenuMode(MenuMode mode) { m_menumode = mode; } | 113 | void setMenuMode(MenuMode mode) { m_menumode = mode; } |
114 | MenuMode menuMode() const { return m_menumode; } | 114 | MenuMode menuMode() const { return m_menumode; } |
115 | void setDelayOpen(int usec) { m_delayopen = usec; } | 115 | void setDelayOpen(int msec) { m_delayopen = msec; } |
116 | void setDelayClose(int usec) { m_delayclose = usec; } | 116 | void setDelayClose(int msec) { m_delayclose = msec; } |
117 | int delayOpen() const { return m_delayopen; } | 117 | int delayOpen() const { return m_delayopen; } |
118 | int delayClose() const { return m_delayclose; } | 118 | int delayClose() const { return m_delayclose; } |
119 | 119 | ||
120 | const FbTk::Color &borderColor() const { return *m_border_color; } | 120 | const FbTk::Color &borderColor() const { return *m_border_color; } |
121 | FbTk::Subject &themeChangeSig() { return m_theme_change_sig; } | 121 | |
122 | /// attach observer | ||
123 | void addListener(FbTk::Observer &obs) { m_theme_change_sig.attach(&obs); } | ||
124 | /// detach observer | ||
125 | void removeListener(FbTk::Observer &obs) { m_theme_change_sig.detach(&obs); } | ||
126 | private: | 122 | private: |
127 | FbTk::ThemeItem<FbTk::Color> t_text, f_text, h_text, d_text; | 123 | FbTk::ThemeItem<FbTk::Color> t_text, f_text, h_text, d_text; |
128 | FbTk::ThemeItem<FbTk::Texture> title, frame, hilite; | 124 | FbTk::ThemeItem<FbTk::Texture> title, frame, hilite; |
@@ -137,12 +133,11 @@ private: | |||
137 | 133 | ||
138 | Display *m_display; | 134 | Display *m_display; |
139 | FbTk::GContext t_text_gc, f_text_gc, h_text_gc, d_text_gc, hilite_gc; | 135 | FbTk::GContext t_text_gc, f_text_gc, h_text_gc, d_text_gc, hilite_gc; |
140 | FbTk::Subject m_theme_change_sig; | ||
141 | 136 | ||
142 | unsigned char m_alpha; | 137 | unsigned char m_alpha; |
143 | MenuMode m_menumode; | 138 | MenuMode m_menumode; |
144 | unsigned int m_delayopen; ///< in usec | 139 | unsigned int m_delayopen; ///< in msec |
145 | unsigned int m_delayclose; ///< in usec | 140 | unsigned int m_delayclose; ///< in msec |
146 | 141 | ||
147 | }; | 142 | }; |
148 | 143 | ||