aboutsummaryrefslogtreecommitdiff
path: root/src/Resources.hh
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-08-15 21:03:57 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-11-01 10:04:02 (GMT)
commit698a4af938737295494dade50950d1aeebc8b55d (patch)
tree075017c3a59ac2575f708d223cf2391e82b9eb69 /src/Resources.hh
parent678a98de943963e993827540496741ae814af8bd (diff)
downloadfluxbox_paul-698a4af938737295494dade50950d1aeebc8b55d.zip
fluxbox_paul-698a4af938737295494dade50950d1aeebc8b55d.tar.bz2
Move declarations of Resource enums to a separate file
The reason for this is that I need to access those enums from fluxbox-update_configs and I don't want to #include and link everything in src. I also merged Slit::Placement, Toolbar::Placement and FbWinFrame::TabPlacement into one enum.
Diffstat (limited to 'src/Resources.hh')
-rw-r--r--src/Resources.hh100
1 files changed, 100 insertions, 0 deletions
diff --git a/src/Resources.hh b/src/Resources.hh
new file mode 100644
index 0000000..3481a66
--- /dev/null
+++ b/src/Resources.hh
@@ -0,0 +1,100 @@
1// Resources.hh for Fluxbox Window Manager
2// Copyright (c) 2011 Pavel Labath (pavelo at centrum dot sk)
3//
4// Permission is hereby granted, free of charge, to any person obtaining a
5// copy of this software and associated documentation files (the "Software"),
6// to deal in the Software without restriction, including without limitation
7// the rights to use, copy, modify, merge, publish, distribute, sublicense,
8// and/or sell copies of the Software, and to permit persons to whom the
9// Software is furnished to do so, subject to the following conditions:
10//
11// The above copyright notice and this permission notice shall be included in
12// all copies or substantial portions of the Software.
13//
14// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE.
21
22#ifndef RESOURCES_HH
23#define RESOURCES_HH
24
25#include "FbTk/Resource.hh"
26
27enum Placement {
28 // top and bottom placement
29 TOPLEFT = 1, TOPCENTER, TOPRIGHT,
30 BOTTOMLEFT, BOTTOMCENTER, BOTTOMRIGHT,
31 // left and right placement
32 LEFTBOTTOM, LEFTCENTER, LEFTTOP,
33 RIGHTBOTTOM, RIGHTCENTER, RIGHTTOP,
34};
35
36enum PlacementPolicy {
37 ROWSMARTPLACEMENT,
38 COLSMARTPLACEMENT,
39 COLMINOVERLAPPLACEMENT,
40 ROWMINOVERLAPPLACEMENT,
41 CASCADEPLACEMENT,
42 UNDERMOUSEPLACEMENT
43};
44
45enum RowDirection {
46 LEFTRIGHTDIRECTION, ///< from left to right
47 RIGHTLEFTDIRECTION ///< from right to left
48};
49
50enum ColumnDirection {
51 TOPBOTTOMDIRECTION, ///< from top to bottom
52 BOTTOMTOPDIRECTION ///< from bottom to top
53};
54
55/// main focus model
56enum FocusModel {
57 MOUSEFOCUS = 0, ///< focus follows mouse, but only when the mouse is moving
58 CLICKFOCUS, ///< focus on click
59 STRICTMOUSEFOCUS ///< focus always follows mouse, even when stationary
60};
61
62/// focus model for tabs
63enum TabFocusModel {
64 MOUSETABFOCUS = 0, ///< tab focus follows mouse
65 CLICKTABFOCUS ///< tab focus on click
66};
67
68/// draw type for the WinButtons
69enum WinButtonType {
70 MAXIMIZEBUTTON,
71 MINIMIZEBUTTON,
72 SHADEBUTTON,
73 STICKBUTTON,
74 CLOSEBUTTON,
75 MENUICONBUTTON
76};
77
78/// obsolete
79enum TabsAttachArea{ATTACH_AREA_WINDOW= 0, ATTACH_AREA_TITLEBAR};
80
81enum LayerType {
82 LAYERMENU = 0,
83 LAYER1 = 1,
84 LAYERABOVE_DOCK = 2,
85 LAYER3 = 3,
86 LAYERDOCK = 4,
87 LAYER5 = 5,
88 LAYERTOP = 6,
89 LAYER7 = 7,
90 LAYERNORMAL = 8,
91 LAYER9 = 9,
92 LAYERBOTTOM = 10,
93 LAYER11 = 11,
94 LAYERDESKTOP = 12,
95 NUM_LAYERS = 13
96};
97
98typedef FbTk::Resource<Placement, FbTk::EnumTraits<Placement> > PlacementResource;
99
100#endif /* RESOURCES_HH */