aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MenuItem.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2005-06-23 03:09:39 (GMT)
committerfluxgen <fluxgen>2005-06-23 03:09:39 (GMT)
commit0df6609bb94ae51e3fd6f18b1c05667653dfb37f (patch)
tree023490c10cf3f5c17ba88ad5be925aae43a11bd0 /src/FbTk/MenuItem.hh
parent5373f6d840abaa49685c15fee2f411e77472a7da (diff)
downloadfluxbox-0df6609bb94ae51e3fd6f18b1c05667653dfb37f.zip
fluxbox-0df6609bb94ae51e3fd6f18b1c05667653dfb37f.tar.bz2
added showSubmenu in MenuItem
Diffstat (limited to 'src/FbTk/MenuItem.hh')
-rw-r--r--src/FbTk/MenuItem.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/FbTk/MenuItem.hh b/src/FbTk/MenuItem.hh
index b3b2f6b..0bf66be 100644
--- a/src/FbTk/MenuItem.hh
+++ b/src/FbTk/MenuItem.hh
@@ -94,13 +94,13 @@ public:
94 virtual inline void setLabel(const char *label) { m_label = (label ? label : ""); } 94 virtual inline void setLabel(const char *label) { m_label = (label ? label : ""); }
95 virtual inline void setToggleItem(bool val) { m_toggle_item = val; } 95 virtual inline void setToggleItem(bool val) { m_toggle_item = val; }
96 void setIcon(const std::string &filename, int screen_num); 96 void setIcon(const std::string &filename, int screen_num);
97 Menu *submenu() { return m_submenu; } 97 virtual Menu *submenu() { return m_submenu; }
98 /** 98 /**
99 @name accessors 99 @name accessors
100 */ 100 */
101 //@{ 101 //@{
102 virtual inline const std::string &label() const { return m_label; } 102 virtual inline const std::string &label() const { return m_label; }
103 inline const Menu *submenu() const { return m_submenu; } 103 virtual const Menu *submenu() const { return m_submenu; }
104 virtual inline bool isEnabled() const { return m_enabled; } 104 virtual inline bool isEnabled() const { return m_enabled; }
105 virtual inline bool isSelected() const { return m_selected; } 105 virtual inline bool isSelected() const { return m_selected; }
106 virtual inline bool isToggleItem() const { return m_toggle_item; } 106 virtual inline bool isToggleItem() const { return m_toggle_item; }
@@ -120,6 +120,8 @@ public:
120 @param time the time stamp 120 @param time the time stamp
121 */ 121 */
122 virtual void click(int button, int time); 122 virtual void click(int button, int time);
123 /// must use this to show submenu to ensure consistency for object like window menu in ClientMenu (see Workspace.cc)
124 virtual void showSubmenu();
123 RefCount<Command> &command() { return m_command; } 125 RefCount<Command> &command() { return m_command; }
124 const RefCount<Command> &command() const { return m_command; } 126 const RefCount<Command> &command() const { return m_command; }
125 //@} 127 //@}