aboutsummaryrefslogtreecommitdiff
path: root/src/Focusable.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Focusable.hh')
-rw-r--r--src/Focusable.hh16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/Focusable.hh b/src/Focusable.hh
index 8434a97..47f14d3 100644
--- a/src/Focusable.hh
+++ b/src/Focusable.hh
@@ -26,8 +26,7 @@
26#include "FbTk/ITypeAheadable.hh" 26#include "FbTk/ITypeAheadable.hh"
27#include "FbTk/Subject.hh" 27#include "FbTk/Subject.hh"
28#include "FbTk/Signal.hh" 28#include "FbTk/Signal.hh"
29 29#include "FbTk/FbString.hh"
30#include <string>
31 30
32class BScreen; 31class BScreen;
33class FluxboxWindow; 32class FluxboxWindow;
@@ -83,9 +82,9 @@ public:
83 FluxboxWindow *fbwindow() { return m_fbwin; } 82 FluxboxWindow *fbwindow() { return m_fbwin; }
84 83
85 /// @return WM_CLASS class string (for pattern matching) 84 /// @return WM_CLASS class string (for pattern matching)
86 virtual const std::string &getWMClassClass() const { return m_class_name; } 85 virtual const FbTk::FbString &getWMClassClass() const { return m_class_name; }
87 /// @return WM_CLASS name string (for pattern matching) 86 /// @return WM_CLASS name string (for pattern matching)
88 virtual const std::string &getWMClassName() const { return m_instance_name; } 87 virtual const FbTk::FbString &getWMClassName() const { return m_instance_name; }
89 /// @return wm role string (for pattern matching) 88 /// @return wm role string (for pattern matching)
90 virtual std::string getWMRole() const { return "Focusable"; } 89 virtual std::string getWMRole() const { return "Focusable"; }
91 90
@@ -96,9 +95,9 @@ public:
96 /// @return icon pixmap of the focusable 95 /// @return icon pixmap of the focusable
97 virtual const FbTk::PixmapWithMask &icon() const { return m_icon; } 96 virtual const FbTk::PixmapWithMask &icon() const { return m_icon; }
98 /// @return title string 97 /// @return title string
99 virtual const std::string &title() const { return m_title; } 98 virtual const FbTk::BiDiString &title() const { return m_title; }
100 /// @return type ahead string 99 /// @return type ahead string
101 const std::string &iTypeString() const { return title(); } 100 const std::string &iTypeString() const { return title().logical(); }
102 /** 101 /**
103 * Signaling object to attatch observers to. 102 * Signaling object to attatch observers to.
104 */ 103 */
@@ -139,7 +138,10 @@ protected:
139 BScreen &m_screen; //< the screen in which it works 138 BScreen &m_screen; //< the screen in which it works
140 FluxboxWindow *m_fbwin; //< the working fluxbox window 139 FluxboxWindow *m_fbwin; //< the working fluxbox window
141 140
142 std::string m_title, m_instance_name, m_class_name; 141 FbTk::BiDiString m_title;
142 FbTk::FbString m_instance_name;
143 FbTk::FbString m_class_name;
144
143 bool m_focused; //< whether or not it has focus 145 bool m_focused; //< whether or not it has focus
144 bool m_attention_state; //< state of icon button while demanding attention 146 bool m_attention_state; //< state of icon button while demanding attention
145 FbTk::PixmapWithMask m_icon; //< icon pixmap with mask 147 FbTk::PixmapWithMask m_icon; //< icon pixmap with mask