diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-08-15 21:03:57 (GMT) |
---|---|---|
committer | Paul Tagliamonte <paultag@fluxbox.org> | 2012-04-07 02:13:13 (GMT) |
commit | bc803c3211f3caa3554c9e96f687701de007b436 (patch) | |
tree | d23fbbeb9affe7a4c3d67cde7c4732dd47625682 /src/Resources.hh | |
parent | 3012793a8f9151ded4c83da6075919a36dde412f (diff) | |
download | fluxbox_paul-bc803c3211f3caa3554c9e96f687701de007b436.zip fluxbox_paul-bc803c3211f3caa3554c9e96f687701de007b436.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.hh | 100 |
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 | |||
27 | enum 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 | |||
36 | enum PlacementPolicy { | ||
37 | ROWSMARTPLACEMENT, | ||
38 | COLSMARTPLACEMENT, | ||
39 | COLMINOVERLAPPLACEMENT, | ||
40 | ROWMINOVERLAPPLACEMENT, | ||
41 | CASCADEPLACEMENT, | ||
42 | UNDERMOUSEPLACEMENT | ||
43 | }; | ||
44 | |||
45 | enum RowDirection { | ||
46 | LEFTRIGHTDIRECTION, ///< from left to right | ||
47 | RIGHTLEFTDIRECTION ///< from right to left | ||
48 | }; | ||
49 | |||
50 | enum ColumnDirection { | ||
51 | TOPBOTTOMDIRECTION, ///< from top to bottom | ||
52 | BOTTOMTOPDIRECTION ///< from bottom to top | ||
53 | }; | ||
54 | |||
55 | /// main focus model | ||
56 | enum 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 | ||
63 | enum TabFocusModel { | ||
64 | MOUSETABFOCUS = 0, ///< tab focus follows mouse | ||
65 | CLICKTABFOCUS ///< tab focus on click | ||
66 | }; | ||
67 | |||
68 | /// draw type for the WinButtons | ||
69 | enum WinButtonType { | ||
70 | MAXIMIZEBUTTON, | ||
71 | MINIMIZEBUTTON, | ||
72 | SHADEBUTTON, | ||
73 | STICKBUTTON, | ||
74 | CLOSEBUTTON, | ||
75 | MENUICONBUTTON | ||
76 | }; | ||
77 | |||
78 | /// obsolete | ||
79 | enum TabsAttachArea{ATTACH_AREA_WINDOW= 0, ATTACH_AREA_TITLEBAR}; | ||
80 | |||
81 | enum 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 | |||
98 | typedef FbTk::Resource<Placement, FbTk::EnumTraits<Placement> > PlacementResource; | ||
99 | |||
100 | #endif /* RESOURCES_HH */ | ||