diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-08-15 21:03:57 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2013-02-18 21:04:26 (GMT) |
commit | cab5fa69f059033c4e304076f1892d9cf7c84031 (patch) | |
tree | dd56d66c9f19dbdc606c144e8c6af2a6a444c324 /src/MinOverlapPlacement.cc | |
parent | a897844ea1cfa6303112fd3f0d472d3e135bdc6d (diff) | |
download | fluxbox_pavel-cab5fa69f059033c4e304076f1892d9cf7c84031.zip fluxbox_pavel-cab5fa69f059033c4e304076f1892d9cf7c84031.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/MinOverlapPlacement.cc')
-rw-r--r-- | src/MinOverlapPlacement.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/MinOverlapPlacement.cc b/src/MinOverlapPlacement.cc index 78cadb4..12928c6 100644 --- a/src/MinOverlapPlacement.cc +++ b/src/MinOverlapPlacement.cc | |||
@@ -52,19 +52,19 @@ public: | |||
52 | // do all STL set implementations use this for sorting? | 52 | // do all STL set implementations use this for sorting? |
53 | bool operator <(const Area &o) const { | 53 | bool operator <(const Area &o) const { |
54 | switch (s_policy) { | 54 | switch (s_policy) { |
55 | case ScreenPlacement::ROWMINOVERLAPPLACEMENT: | 55 | case ROWMINOVERLAPPLACEMENT: |
56 | // if we're making rows, y-value is most important | 56 | // if we're making rows, y-value is most important |
57 | if (y != o.y) | 57 | if (y != o.y) |
58 | return ((y < o.y) ^ (s_col_dir == ScreenPlacement::BOTTOMTOP)); | 58 | return ((y < o.y) ^ (s_col_dir == BOTTOMTOPDIRECTION)); |
59 | if (x != o.x) | 59 | if (x != o.x) |
60 | return ((x < o.x) ^ (s_row_dir == ScreenPlacement::RIGHTLEFT)); | 60 | return ((x < o.x) ^ (s_row_dir == RIGHTLEFTDIRECTION)); |
61 | return (corner < o.corner); | 61 | return (corner < o.corner); |
62 | case ScreenPlacement::COLMINOVERLAPPLACEMENT: | 62 | case COLMINOVERLAPPLACEMENT: |
63 | // if we're making columns, x-value is most important | 63 | // if we're making columns, x-value is most important |
64 | if (x != o.x) | 64 | if (x != o.x) |
65 | return ((x < o.x) ^ (s_row_dir == ScreenPlacement::RIGHTLEFT)); | 65 | return ((x < o.x) ^ (s_row_dir == RIGHTLEFTDIRECTION)); |
66 | if (y != o.y) | 66 | if (y != o.y) |
67 | return ((y < o.y) ^ (s_col_dir == ScreenPlacement::BOTTOMTOP)); | 67 | return ((y < o.y) ^ (s_col_dir == BOTTOMTOPDIRECTION)); |
68 | return (corner < o.corner); | 68 | return (corner < o.corner); |
69 | default: | 69 | default: |
70 | return false; | 70 | return false; |
@@ -74,14 +74,14 @@ public: | |||
74 | // position where the top left corner of the window will be placed | 74 | // position where the top left corner of the window will be placed |
75 | int x, y; | 75 | int x, y; |
76 | 76 | ||
77 | static ScreenPlacement::RowDirection s_row_dir; | 77 | static RowDirection s_row_dir; |
78 | static ScreenPlacement::ColumnDirection s_col_dir; | 78 | static ColumnDirection s_col_dir; |
79 | static ScreenPlacement::PlacementPolicy s_policy; | 79 | static PlacementPolicy s_policy; |
80 | }; | 80 | }; |
81 | 81 | ||
82 | ScreenPlacement::RowDirection Area::s_row_dir = ScreenPlacement::LEFTRIGHT; | 82 | RowDirection Area::s_row_dir = LEFTRIGHTDIRECTION; |
83 | ScreenPlacement::ColumnDirection Area::s_col_dir = ScreenPlacement::TOPBOTTOM; | 83 | ColumnDirection Area::s_col_dir = TOPBOTTOMDIRECTION; |
84 | ScreenPlacement::PlacementPolicy Area::s_policy = ScreenPlacement::ROWMINOVERLAPPLACEMENT; | 84 | PlacementPolicy Area::s_policy = ROWMINOVERLAPPLACEMENT; |
85 | 85 | ||
86 | } // end of anonymous namespace | 86 | } // end of anonymous namespace |
87 | 87 | ||