diff options
Diffstat (limited to 'src/FbTk/MenuItem.hh')
-rw-r--r-- | src/FbTk/MenuItem.hh | 6 |
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 | //@} |