diff options
Diffstat (limited to 'src/MenuCreator.hh')
-rw-r--r-- | src/MenuCreator.hh | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/MenuCreator.hh b/src/MenuCreator.hh index 91add47..4329639 100644 --- a/src/MenuCreator.hh +++ b/src/MenuCreator.hh | |||
@@ -26,6 +26,11 @@ | |||
26 | #include "FbTk/FbString.hh" | 26 | #include "FbTk/FbString.hh" |
27 | 27 | ||
28 | #include <list> | 28 | #include <list> |
29 | #include <memory> | ||
30 | |||
31 | namespace lua { | ||
32 | class state; | ||
33 | } | ||
29 | 34 | ||
30 | namespace FbTk { | 35 | namespace FbTk { |
31 | class AutoReloadHelper; | 36 | class AutoReloadHelper; |
@@ -37,14 +42,16 @@ class FluxboxWindow; | |||
37 | 42 | ||
38 | namespace MenuCreator { | 43 | namespace MenuCreator { |
39 | 44 | ||
45 | std::auto_ptr<FbMenu> | ||
46 | createMenu(lua::state &l, int screen_number, FbTk::AutoReloadHelper *reloader = NULL); | ||
40 | FbMenu *createMenu(const std::string &label, int screen_num); | 47 | FbMenu *createMenu(const std::string &label, int screen_num); |
41 | FbMenu *createMenuType(const std::string &label, int screen_num); | 48 | FbMenu *createMenuType(const std::string &label, int screen_num); |
42 | bool createFromFile(const std::string &filename, | 49 | bool createFromFile(const std::string &filename, |
43 | FbTk::Menu &inject_into, | 50 | FbTk::Menu &inject_into, |
44 | FbTk::AutoReloadHelper *reloader = NULL, | 51 | FbTk::AutoReloadHelper *reloader = NULL, |
45 | bool begin = true); | 52 | bool begin = true); |
46 | bool createWindowMenuItem(const std::string &type, const std::string &label, | 53 | bool createWindowMenuItem(const std::string &type, const std::string &label, |
47 | FbTk::Menu &inject_into); | 54 | FbTk::Menu &inject_into); |
48 | }; | 55 | } |
49 | 56 | ||
50 | #endif // MENUCREATOR_HH | 57 | #endif // MENUCREATOR_HH |