aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MenuTheme.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-12-12 18:18:49 (GMT)
committerfluxgen <fluxgen>2003-12-12 18:18:49 (GMT)
commitbf75608df0025d49ea0f52326a402825fcc55d06 (patch)
tree9a47943a7618768bebdfbcd930c066a20ef65794 /src/FbTk/MenuTheme.hh
parent624fd1e1215812057ef4d1322cafe587717a3bf8 (diff)
downloadfluxbox-bf75608df0025d49ea0f52326a402825fcc55d06.zip
fluxbox-bf75608df0025d49ea0f52326a402825fcc55d06.tar.bz2
menu delay and mode
Diffstat (limited to 'src/FbTk/MenuTheme.hh')
-rw-r--r--src/FbTk/MenuTheme.hh22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/FbTk/MenuTheme.hh b/src/FbTk/MenuTheme.hh
index 4e9deb3..07c29ad 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.10 2003/11/28 22:53:10 fluxgen Exp $ 22// $Id: MenuTheme.hh,v 1.11 2003/12/12 18:18:49 fluxgen Exp $
23 23
24#ifndef FBTK_MENUTHEME_HH 24#ifndef FBTK_MENUTHEME_HH
25#define FBTK_MENUTHEME_HH 25#define FBTK_MENUTHEME_HH
@@ -37,6 +37,11 @@ namespace FbTk {
37 37
38class MenuTheme:public FbTk::Theme { 38class MenuTheme:public FbTk::Theme {
39public: 39public:
40 //!! TODO
41 // this isn't actually used with a theme item
42 // see setMenuMode() for more info
43 enum MenuMode {CLICK_OPEN, DELAY_OPEN};
44
40 enum BulletType { EMPTY, SQUARE, TRIANGLE, DIAMOND}; 45 enum BulletType { EMPTY, SQUARE, TRIANGLE, DIAMOND};
41 MenuTheme(int screen_num); 46 MenuTheme(int screen_num);
42 virtual ~MenuTheme(); 47 virtual ~MenuTheme();
@@ -102,7 +107,16 @@ public:
102 107
103 inline unsigned char alpha() const { return m_alpha; } 108 inline unsigned char alpha() const { return m_alpha; }
104 void setAlpha(unsigned char alpha) { m_alpha = alpha; } 109 void setAlpha(unsigned char alpha) { m_alpha = alpha; }
105 110 // this isn't actually a theme item
111 // but we'll let it be here for now, until there's a better way to
112 // get resources into menu
113 void setMenuMode(MenuMode mode) { m_menumode = mode; }
114 MenuMode menuMode() const { return m_menumode; }
115 void setDelayOpen(int usec) { m_delayopen = usec; }
116 void setDelayClose(int usec) { m_delayclose = usec; }
117 int delayOpen() const { return m_delayopen; }
118 int delayClose() const { return m_delayclose; }
119
106 const FbTk::Color &borderColor() const { return *m_border_color; } 120 const FbTk::Color &borderColor() const { return *m_border_color; }
107 FbTk::Subject &themeChangeSig() { return m_theme_change_sig; } 121 FbTk::Subject &themeChangeSig() { return m_theme_change_sig; }
108 /// attach observer 122 /// attach observer
@@ -126,6 +140,10 @@ private:
126 FbTk::Subject m_theme_change_sig; 140 FbTk::Subject m_theme_change_sig;
127 141
128 unsigned char m_alpha; 142 unsigned char m_alpha;
143 MenuMode m_menumode;
144 unsigned int m_delayopen; ///< in usec
145 unsigned int m_delayclose; ///< in usec
146
129}; 147};
130 148
131}; // end namespace FbTk 149}; // end namespace FbTk