aboutsummaryrefslogtreecommitdiff
path: root/src/ScreenResource.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2015-01-15 17:49:35 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-01-15 17:49:45 (GMT)
commitbd9afcafb93382b5b7f32c222594699214581596 (patch)
tree418583c08c6e5ebdfcd172f5aba96d465c27d47b /src/ScreenResource.hh
parent8387742c8860694777f7c2c62da0a90c9e836988 (diff)
downloadfluxbox-bd9afcafb93382b5b7f32c222594699214581596.zip
fluxbox-bd9afcafb93382b5b7f32c222594699214581596.tar.bz2
Refactor: split out menu generation from BScreen
Again, it's easier to read the code when the whole menu-generation is out of the way.
Diffstat (limited to 'src/ScreenResource.hh')
-rw-r--r--src/ScreenResource.hh63
1 files changed, 63 insertions, 0 deletions
diff --git a/src/ScreenResource.hh b/src/ScreenResource.hh
new file mode 100644
index 0000000..3a6eaa1
--- /dev/null
+++ b/src/ScreenResource.hh
@@ -0,0 +1,63 @@
1#ifndef SCREEN_RESOURCE_HH
2#define SCREEN_RESOURCE_HH
3
4// ScreenResource.hh for Fluxbox Window Manager
5// Copyright (c) 2015 - Mathias Gumz <akira@fluxbox.org>
6//
7// Permission is hereby granted, free of charge, to any person obtaining a
8// copy of this software and associated documentation files (the "Software"),
9// to deal in the Software without restriction, including without limitation
10// the rights to use, copy, modify, merge, publish, distribute, sublicense,
11// and/or sell copies of the Software, and to permit persons to whom the
12// Software is furnished to do so, subject to the following conditions:
13//
14// The above copyright notice and this permission notice shall be included in
15// all copies or substantial portions of the Software.
16//
17// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE.
24
25#include "FbWinFrame.hh"
26#include "FbTk/Resource.hh"
27#include <string>
28
29struct ScreenResource {
30
31 ScreenResource(FbTk::ResourceManager &rm,
32 const std::string &scrname, const std::string &altscrname);
33
34 FbTk::Resource<bool> opaque_move,
35 full_max,
36 max_ignore_inc,
37 max_disable_move,
38 max_disable_resize,
39 workspace_warping,
40 show_window_pos,
41 auto_raise,
42 click_raises;
43
44 FbTk::Resource<std::string> default_deco;
45 FbTk::Resource<FbWinFrame::TabPlacement> tab_placement;
46 FbTk::Resource<std::string> windowmenufile;
47 FbTk::Resource<unsigned int> typing_delay;
48 FbTk::Resource<int> workspaces,
49 edge_snap_threshold,
50 focused_alpha,
51 unfocused_alpha,
52 menu_alpha,
53 menu_delay,
54 tab_width,
55 tooltip_delay;
56 FbTk::Resource<bool> allow_remote_actions;
57 FbTk::Resource<bool> clientmenu_use_pixmap;
58 FbTk::Resource<bool> tabs_use_pixmap;
59 FbTk::Resource<bool> max_over_tabs;
60 FbTk::Resource<bool> default_internal_tabs;
61};
62
63#endif