diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-11 07:41:22 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-11 07:41:22 (GMT) |
commit | 9f2f65a698c4cc71373a7fe9d73a0889e0d3487b (patch) | |
tree | 4ad67db771d73ea3c48f80a1244037fc9754edd2 /src/FbTk/MultiButtonMenuItem.hh | |
parent | 1f01d84c080d607a91eb417efcaf5e500b5f1d7e (diff) | |
download | fluxbox-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.zip fluxbox-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.tar.bz2 |
make FbTk::Command a template class, split parsing information out of ObjectRegistry
Diffstat (limited to 'src/FbTk/MultiButtonMenuItem.hh')
-rw-r--r-- | src/FbTk/MultiButtonMenuItem.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/MultiButtonMenuItem.hh b/src/FbTk/MultiButtonMenuItem.hh index 6d717af..5d67bdf 100644 --- a/src/FbTk/MultiButtonMenuItem.hh +++ b/src/FbTk/MultiButtonMenuItem.hh | |||
@@ -34,7 +34,7 @@ public: | |||
34 | MultiButtonMenuItem(int buttons, const FbString &label, Menu *submenu); | 34 | MultiButtonMenuItem(int buttons, const FbString &label, Menu *submenu); |
35 | virtual ~MultiButtonMenuItem(); | 35 | virtual ~MultiButtonMenuItem(); |
36 | /// sets command to specified button | 36 | /// sets command to specified button |
37 | void setCommand(int button, FbTk::RefCount<FbTk::Command> &cmd); | 37 | void setCommand(int button, FbTk::RefCount<FbTk::Command<void> > &cmd); |
38 | /// executes command for the button click | 38 | /// executes command for the button click |
39 | virtual void click(int button, int time, unsigned int mods); | 39 | virtual void click(int button, int time, unsigned int mods); |
40 | /// @return number of buttons this instance handles | 40 | /// @return number of buttons this instance handles |
@@ -43,7 +43,7 @@ public: | |||
43 | private: | 43 | private: |
44 | void init(int buttons); | 44 | void init(int buttons); |
45 | 45 | ||
46 | FbTk::RefCount<FbTk::Command> *m_button_exe; | 46 | FbTk::RefCount<FbTk::Command<void> > *m_button_exe; |
47 | unsigned int m_buttons; | 47 | unsigned int m_buttons; |
48 | }; | 48 | }; |
49 | 49 | ||