diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-05-12 00:22:40 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-05-12 00:22:40 (GMT) |
commit | 93b0c5322a7482d83e38657b36e9814f8415e47b (patch) | |
tree | 0e7bfe2e975e0b9bd88334975c691e98513c1c14 /src/MenuCreator.hh | |
parent | 72a45fae3c39323206e7d19913bb3ab17a691691 (diff) | |
download | fluxbox-93b0c5322a7482d83e38657b36e9814f8415e47b.zip fluxbox-93b0c5322a7482d83e38657b36e9814f8415e47b.tar.bz2 |
refactor menu reloading, added FbTk::AutoReloadHelper
Diffstat (limited to 'src/MenuCreator.hh')
-rw-r--r-- | src/MenuCreator.hh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/MenuCreator.hh b/src/MenuCreator.hh index 660d097..8fb0242 100644 --- a/src/MenuCreator.hh +++ b/src/MenuCreator.hh | |||
@@ -28,18 +28,24 @@ | |||
28 | #include <list> | 28 | #include <list> |
29 | 29 | ||
30 | namespace FbTk { | 30 | namespace FbTk { |
31 | class AutoReloadHelper; | ||
31 | class Menu; | 32 | class Menu; |
32 | } | 33 | } |
33 | 34 | ||
35 | class FbMenu; | ||
34 | class FluxboxWindow; | 36 | class FluxboxWindow; |
35 | 37 | ||
36 | class MenuCreator { | 38 | class MenuCreator { |
37 | public: | 39 | public: |
38 | static FbTk::Menu *createMenu(const std::string &label, int screen_num); | 40 | static FbMenu *createMenu(const std::string &label, int screen_num); |
39 | static FbTk::Menu *createMenuType(const std::string &label, int screen_num); | 41 | static FbMenu *createMenuType(const std::string &label, int screen_num); |
40 | static bool createFromFile(const std::string &filename, | 42 | static bool createFromFile(const std::string &filename, |
41 | FbTk::Menu &inject_into, bool begin = true); | 43 | FbTk::Menu &inject_into, |
42 | static bool createWindowMenuFromFile(const std::string &filename, FbTk::Menu &inject_into); | 44 | FbTk::AutoReloadHelper *reloader = NULL, |
45 | bool begin = true); | ||
46 | static void createWindowMenuFromFile(const std::string &filename, | ||
47 | FbTk::Menu &inject_into, | ||
48 | FbTk::AutoReloadHelper *reloader); | ||
43 | static bool createWindowMenuItem(const std::string &type, const std::string &label, | 49 | static bool createWindowMenuItem(const std::string &type, const std::string &label, |
44 | FbTk::Menu &inject_into); | 50 | FbTk::Menu &inject_into); |
45 | 51 | ||