aboutsummaryrefslogtreecommitdiff
path: root/src/IconbarTool.hh
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-06-11 11:00:45 (GMT)
committerPavel Labath <pavelo@centrum.sk>2013-02-16 23:49:23 (GMT)
commiteb0eef14134ee667c60f75f53de4e24950f3c117 (patch)
tree58b35842e1f84666373478bca3386be037a7a019 /src/IconbarTool.hh
parent3b7c1a3c220b7ccec0dee7804d36dabfe81449c4 (diff)
downloadfluxbox_pavel-eb0eef14134ee667c60f75f53de4e24950f3c117.zip
fluxbox_pavel-eb0eef14134ee667c60f75f53de4e24950f3c117.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/IconbarTool.hh')
-rw-r--r--src/IconbarTool.hh11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/IconbarTool.hh b/src/IconbarTool.hh
index 118eacf..90df5cf 100644
--- a/src/IconbarTool.hh
+++ b/src/IconbarTool.hh
@@ -110,11 +110,12 @@ private:
110 std::auto_ptr<FocusableList> m_winlist; 110 std::auto_ptr<FocusableList> m_winlist;
111 IconMap m_icons; 111 IconMap m_icons;
112 std::string m_mode; 112 std::string m_mode;
113 FbTk::Resource<std::string> m_rc_mode; 113 FbTk::StringResource m_rc_mode;
114 FbTk::Resource<FbTk::Container::Alignment> m_rc_alignment; ///< alignment of buttons 114 /// alignment of buttons
115 FbTk::Resource<int> m_rc_client_width; ///< size of client button in LEFT/RIGHT mode 115 FbTk::Resource<FbTk::Container::Alignment, FbTk::EnumTraits<FbTk::Container::Alignment> > m_rc_alignment;
116 FbTk::Resource<unsigned int> m_rc_client_padding; ///< padding of the text 116 FbTk::IntResource m_rc_client_width; ///< size of client button in LEFT/RIGHT mode
117 FbTk::Resource<bool> m_rc_use_pixmap; ///< if iconbar should use win pixmap or not 117 FbTk::UIntResource m_rc_client_padding; ///< padding of the text
118 FbTk::BoolResource m_rc_use_pixmap; ///< if iconbar should use win pixmap or not
118 FbMenu m_menu; 119 FbMenu m_menu;
119 int m_alpha; 120 int m_alpha;
120}; 121};