diff options
author | Jim Ramsay <jim.ramsay@motorola.com> | 2010-05-25 12:19:52 (GMT) |
---|---|---|
committer | Jim Ramsay <jim.ramsay@motorola.com> | 2010-05-25 12:19:52 (GMT) |
commit | ba487cb11e5c1310dc61f7ed6b344a9dc07b0d61 (patch) | |
tree | 1e03585ed396783853d9ff2984e8e02e3aa5566c | |
parent | 0935a8d5564e1aee5fd0f7dd5d21f3fc69d15562 (diff) | |
download | fluxbox_lack-ClientMenu-borders.zip fluxbox_lack-ClientMenu-borders.tar.bz2 |
TEMPORARY WIPClientMenu-borders
-rw-r--r-- | src/AttentionTheme.hh | 28 | ||||
-rw-r--r-- | src/ClientMenu.cc | 3 |
2 files changed, 31 insertions, 0 deletions
diff --git a/src/AttentionTheme.hh b/src/AttentionTheme.hh new file mode 100644 index 0000000..d5d539a --- /dev/null +++ b/src/AttentionTheme.hh | |||
@@ -0,0 +1,28 @@ | |||
1 | #include <FocusableTheme.hh> | ||
2 | |||
3 | class AttentionTheme: public FocusableTheme { | ||
4 | public: | ||
5 | AttentionTheme(Focusable &win, FbTk::ThemeProxy<BaseTheme> &focused, | ||
6 | FbTk::ThemeProxy<BaseTheme> &unfocused, | ||
7 | FbTk::ThemeProxy<BaseTheme> &attention): | ||
8 | FocusableTheme(win, focused, unfocused), m_attention_theme(attention) | ||
9 | {} | ||
10 | |||
11 | AttentionTheme(Focusable &win, FbTk::ThemeProxy<BaseTheme> &focused, | ||
12 | FbTk::ThemeProxy<BaseTheme> &unfocused): | ||
13 | AttentionTheme(win, focused, unfocused, focused) | ||
14 | {} | ||
15 | |||
16 | FbTk::ThemeProxy<BaseTheme> &attentionTheme() { return m_attention_theme; } | ||
17 | const FbTk::ThemeProxy<BaseTheme> &attentionTheme() const { return m_attention_theme; } | ||
18 | |||
19 | virtual BaseTheme &operator *() { | ||
20 | return (m_win.getAttentionState() ? *m_attention_theme : FocusableTheme::()); | ||
21 | } | ||
22 | virtual const BaseTheme &operator *() const { | ||
23 | return (m_win.getAttentionState() ? *m_attention_theme : FocusableTheme::()); | ||
24 | } | ||
25 | |||
26 | private: | ||
27 | FbTk::ThemeProxy<BaseTheme> &m_attention_theme; | ||
28 | }; | ||
diff --git a/src/ClientMenu.cc b/src/ClientMenu.cc index 2ee7e51..a11de2e 100644 --- a/src/ClientMenu.cc +++ b/src/ClientMenu.cc | |||
@@ -30,6 +30,9 @@ | |||
30 | #include "FbTk/MenuItem.hh" | 30 | #include "FbTk/MenuItem.hh" |
31 | #include "FbTk/MemFun.hh" | 31 | #include "FbTk/MemFun.hh" |
32 | 32 | ||
33 | //#include "fluxbox.hh" | ||
34 | #include <iostream> | ||
35 | |||
33 | namespace { // anonymous | 36 | namespace { // anonymous |
34 | 37 | ||
35 | class ClientMenuItem: public FbTk::MenuItem { | 38 | class ClientMenuItem: public FbTk::MenuItem { |