diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-06-27 17:34:51 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2011-06-27 17:34:51 (GMT) |
commit | 4ef496df68eb7c778e4624f924de7f93829b7ae0 (patch) | |
tree | d1aca8af94a5fbb5abac44173db5051117401dff /src/MenuCreator.hh | |
parent | b08a5a2017764170706032e79ae0a8e95a928f25 (diff) | |
download | fluxbox_pavel-4ef496df68eb7c778e4624f924de7f93829b7ae0.zip fluxbox_pavel-4ef496df68eb7c778e4624f924de7f93829b7ae0.tar.bz2 |
A veeeery rough implementation of lua menu parsers
Diffstat (limited to 'src/MenuCreator.hh')
-rw-r--r-- | src/MenuCreator.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/MenuCreator.hh b/src/MenuCreator.hh index a9fb649..6c537de 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,6 +42,8 @@ class FluxboxWindow; | |||
37 | 42 | ||
38 | class MenuCreator { | 43 | class MenuCreator { |
39 | public: | 44 | public: |
45 | static std::auto_ptr<FbMenu> | ||
46 | createMenu(lua::state &l, int screen_number, FbTk::AutoReloadHelper *reloader = NULL); | ||
40 | static FbMenu *createMenu(const std::string &label, int screen_num); | 47 | static FbMenu *createMenu(const std::string &label, int screen_num); |
41 | static FbMenu *createMenuType(const std::string &label, int screen_num); | 48 | static FbMenu *createMenuType(const std::string &label, int screen_num); |
42 | static bool createFromFile(const std::string &filename, | 49 | static bool createFromFile(const std::string &filename, |