aboutsummaryrefslogtreecommitdiff
path: root/src/ScreenPlacement.hh
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-06-11 11:00:45 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-11-01 09:52:46 (GMT)
commit8c208459910f1dddcfdeb00567b990eebfc218b8 (patch)
tree47c442f906124306a52e13641d28fc6cd1ac513e /src/ScreenPlacement.hh
parent60cd98604ae0ee62d64e3bc852898f69dae221d4 (diff)
downloadfluxbox_pavel-8c208459910f1dddcfdeb00567b990eebfc218b8.zip
fluxbox_pavel-8c208459910f1dddcfdeb00567b990eebfc218b8.tar.bz2
Simplify FbTk::Resource template class
by outsourcing the conversion from string/lua to the specific type (and back) to a separate class. This change touches a lot of files because the interface of FbTk::Resource changed slightly. However, the changes are minor.
Diffstat (limited to 'src/ScreenPlacement.hh')
-rw-r--r--src/ScreenPlacement.hh9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ScreenPlacement.hh b/src/ScreenPlacement.hh
index 05db90d..cbe1528 100644
--- a/src/ScreenPlacement.hh
+++ b/src/ScreenPlacement.hh
@@ -76,9 +76,12 @@ public:
76 ColumnDirection colDirection() const { return *m_col_direction; } 76 ColumnDirection colDirection() const { return *m_col_direction; }
77 77
78private: 78private:
79 FbTk::Resource<RowDirection> m_row_direction; ///< row direction resource 79 /// row direction resource
80 FbTk::Resource<ColumnDirection> m_col_direction; ///< column direction resource 80 FbTk::Resource<RowDirection, FbTk::EnumTraits<RowDirection> > m_row_direction;
81 FbTk::Resource<PlacementPolicy> m_placement_policy; ///< placement policy resource 81 /// column direction resource
82 FbTk::Resource<ColumnDirection, FbTk::EnumTraits<ColumnDirection> > m_col_direction;
83 /// placement policy resource
84 FbTk::Resource<PlacementPolicy, FbTk::EnumTraits<PlacementPolicy> > m_placement_policy;
82 PlacementPolicy m_old_policy; ///< holds old policy, used to determine if resources has changed 85 PlacementPolicy m_old_policy; ///< holds old policy, used to determine if resources has changed
83 std::auto_ptr<PlacementStrategy> m_strategy; ///< main strategy 86 std::auto_ptr<PlacementStrategy> m_strategy; ///< main strategy
84 std::auto_ptr<PlacementStrategy> m_fallback_strategy; ///< a fallback strategy if the main strategy fails 87 std::auto_ptr<PlacementStrategy> m_fallback_strategy; ///< a fallback strategy if the main strategy fails