aboutsummaryrefslogtreecommitdiff
path: root/src/MenuCreator.hh
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-06-27 17:34:51 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-06-27 17:34:51 (GMT)
commit4ef496df68eb7c778e4624f924de7f93829b7ae0 (patch)
treed1aca8af94a5fbb5abac44173db5051117401dff /src/MenuCreator.hh
parentb08a5a2017764170706032e79ae0a8e95a928f25 (diff)
downloadfluxbox_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.hh7
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
31namespace lua {
32class state;
33}
29 34
30namespace FbTk { 35namespace FbTk {
31class AutoReloadHelper; 36class AutoReloadHelper;
@@ -37,6 +42,8 @@ class FluxboxWindow;
37 42
38class MenuCreator { 43class MenuCreator {
39public: 44public:
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,