aboutsummaryrefslogtreecommitdiff
path: root/src/IconbarTool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/IconbarTool.cc')
-rw-r--r--src/IconbarTool.cc36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc
index 4ce600f..413aebf 100644
--- a/src/IconbarTool.cc
+++ b/src/IconbarTool.cc
@@ -74,39 +74,6 @@ void FbTk::Resource<IconbarTool::Mode>::setFromString(const char *strval) {
74} 74}
75 75
76template<> 76template<>
77void FbTk::Resource<IconbarTool::DeiconifyMode>::setDefaultValue() {
78 m_value = IconbarTool::FOLLOW;
79}
80
81template<>
82void FbTk::Resource<IconbarTool::DeiconifyMode>::setFromString(const char* strval) {
83 if (strncasecmp(strval, "Current", strlen("Current")) == 0)
84 m_value = IconbarTool::CURRENT;
85 else if (strncasecmp(strval, "Follow", strlen("Follow")) == 0)
86 m_value = IconbarTool::FOLLOW;
87 else if (strncasecmp(strval, "SemiFollow", strlen("SemiFollow")) == 0)
88 m_value = IconbarTool::SEMIFOLLOW;
89 else
90 setDefaultValue();
91}
92
93template<>
94std::string FbTk::Resource<IconbarTool::DeiconifyMode>::getString() const {
95 switch (m_value) {
96 case IconbarTool::SEMIFOLLOW:
97 return std::string("SemiFollow");
98 break;
99 case IconbarTool::CURRENT:
100 return std::string("Current");
101 break;
102 case IconbarTool::FOLLOW:
103 default:
104 return std::string("Follow");
105 break;
106 };
107}
108
109template<>
110void FbTk::Resource<IconbarTool::WheelMode>::setDefaultValue() { 77void FbTk::Resource<IconbarTool::WheelMode>::setDefaultValue() {
111 m_value = IconbarTool::SCREEN; 78 m_value = IconbarTool::SCREEN;
112} 79}
@@ -373,9 +340,6 @@ IconbarTool::IconbarTool(const FbTk::FbWindow &parent, IconbarTheme &theme, BScr
373 m_empty_pm(0), 340 m_empty_pm(0),
374 m_rc_mode(screen.resourceManager(), WORKSPACE, 341 m_rc_mode(screen.resourceManager(), WORKSPACE,
375 screen.name() + ".iconbar.mode", screen.altName() + ".Iconbar.Mode"), 342 screen.name() + ".iconbar.mode", screen.altName() + ".Iconbar.Mode"),
376 m_deiconify_mode(screen.resourceManager(), FOLLOW,
377 screen.name() + ".iconbar.deiconifyMode",
378 screen.name() + ".iconbar.DeiconifyMode"),
379 m_wheel_mode(screen.resourceManager(), OFF, 343 m_wheel_mode(screen.resourceManager(), OFF,
380 screen.name() + ".iconbar.wheelMode", 344 screen.name() + ".iconbar.wheelMode",
381 screen.name() + ".iconbar.WheelMode"), 345 screen.name() + ".iconbar.WheelMode"),