aboutsummaryrefslogtreecommitdiff
path: root/src/MenuCreator.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/MenuCreator.hh')
-rw-r--r--src/MenuCreator.hh15
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
31namespace lua {
32class state;
33}
29 34
30namespace FbTk { 35namespace FbTk {
31class AutoReloadHelper; 36class AutoReloadHelper;
@@ -37,14 +42,16 @@ class FluxboxWindow;
37 42
38namespace MenuCreator { 43namespace 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