diff options
author | fluxgen <fluxgen> | 2006-02-20 21:04:35 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2006-02-20 21:04:35 (GMT) |
commit | 369b4e1b92491aa57b0bf430b89bf732b80fa6a4 (patch) | |
tree | 2bf00a93ad1c195ef7d446e8989069f218a2cd47 /src/LayerMenu.cc | |
parent | 2566d84561ce9f5ecaf1adcce97eb578747034e3 (diff) | |
download | fluxbox_pavel-369b4e1b92491aa57b0bf430b89bf732b80fa6a4.zip fluxbox_pavel-369b4e1b92491aa57b0bf430b89bf732b80fa6a4.tar.bz2 |
moved class Layer from class Fluxbox and thus reduces some dependecies
Diffstat (limited to 'src/LayerMenu.cc')
-rw-r--r-- | src/LayerMenu.cc | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/LayerMenu.cc b/src/LayerMenu.cc index afcd4ac..cec0c59 100644 --- a/src/LayerMenu.cc +++ b/src/LayerMenu.cc | |||
@@ -1,6 +1,7 @@ | |||
1 | #include "LayerMenu.hh" | 1 | #include "LayerMenu.hh" |
2 | 2 | ||
3 | #include "fluxbox.hh" | 3 | #include "FbCommands.hh" |
4 | #include "Layer.hh" | ||
4 | 5 | ||
5 | #include "FbTk/RefCount.hh" | 6 | #include "FbTk/RefCount.hh" |
6 | #include "FbTk/SimpleCommand.hh" | 7 | #include "FbTk/SimpleCommand.hh" |
@@ -11,7 +12,6 @@ LayerMenu::LayerMenu(MenuTheme &tm, FbTk::ImageControl &imgctrl, | |||
11 | ToggleMenu(tm, imgctrl, layer) { | 12 | ToggleMenu(tm, imgctrl, layer) { |
12 | _FB_USES_NLS; | 13 | _FB_USES_NLS; |
13 | 14 | ||
14 | Fluxbox *fluxbox = Fluxbox::instance(); | ||
15 | 15 | ||
16 | struct { | 16 | struct { |
17 | int set; | 17 | int set; |
@@ -20,17 +20,15 @@ LayerMenu::LayerMenu(MenuTheme &tm, FbTk::ImageControl &imgctrl, | |||
20 | int layernum; | 20 | int layernum; |
21 | } layer_menuitems[] = { | 21 | } layer_menuitems[] = { |
22 | //TODO: nls | 22 | //TODO: nls |
23 | {0, 0, _FBTEXT(Layer, AboveDock, "Above Dock", "Layer above dock"), fluxbox->getAboveDockLayer()}, | 23 | {0, 0, _FBTEXT(Layer, AboveDock, "Above Dock", "Layer above dock"), Layer::ABOVE_DOCK}, |
24 | {0, 0, _FBTEXT(Layer, Dock, "Dock", "Layer dock"), fluxbox->getDockLayer()}, | 24 | {0, 0, _FBTEXT(Layer, Dock, "Dock", "Layer dock"), Layer::DOCK}, |
25 | {0, 0, _FBTEXT(Layer, Top, "Top", "Layer top"), fluxbox->getTopLayer()}, | 25 | {0, 0, _FBTEXT(Layer, Top, "Top", "Layer top"), Layer::TOP}, |
26 | {0, 0, _FBTEXT(Layer, Normal, "Normal", "Layer normal"), fluxbox->getNormalLayer()}, | 26 | {0, 0, _FBTEXT(Layer, Normal, "Normal", "Layer normal"), Layer::NORMAL}, |
27 | {0, 0, _FBTEXT(Layer, Bottom, "Bottom", "Layer bottom"), fluxbox->getBottomLayer()}, | 27 | {0, 0, _FBTEXT(Layer, Bottom, "Bottom", "Layer bottom"), Layer::BOTTOM}, |
28 | {0, 0, _FBTEXT(Layer, Desktop, "Desktop", "Layer desktop"), fluxbox->getDesktopLayer()}, | 28 | {0, 0, _FBTEXT(Layer, Desktop, "Desktop", "Layer desktop"), Layer::DESKTOP}, |
29 | }; | 29 | }; |
30 | 30 | ||
31 | FbTk::RefCount<FbTk::Command> saverc_cmd(new FbTk::SimpleCommand<Fluxbox>( | 31 | FbTk::RefCount<FbTk::Command> saverc_cmd(new FbCommands::SaveResources()); |
32 | *Fluxbox::instance(), | ||
33 | &Fluxbox::save_rc)); | ||
34 | 32 | ||
35 | for (size_t i=0; i < 6; ++i) { | 33 | for (size_t i=0; i < 6; ++i) { |
36 | // TODO: fetch nls string | 34 | // TODO: fetch nls string |