diff options
author | markt <markt> | 2007-04-01 07:16:17 (GMT) |
---|---|---|
committer | markt <markt> | 2007-04-01 07:16:17 (GMT) |
commit | 92473d69cc773f7c164733d7c8d1584c4e7b567f (patch) | |
tree | cdc3b1dee6912fe11fb614983fd090f35d275799 /src/Focusable.hh | |
parent | 49de038888f4d6f7623bed446edfccb7c67b50c8 (diff) | |
download | fluxbox-92473d69cc773f7c164733d7c8d1584c4e7b567f.zip fluxbox-92473d69cc773f7c164733d7c8d1584c4e7b567f.tar.bz2 |
just converting some old code to make future changes easier
Diffstat (limited to 'src/Focusable.hh')
-rw-r--r-- | src/Focusable.hh | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/Focusable.hh b/src/Focusable.hh index cf14de0..8982f29 100644 --- a/src/Focusable.hh +++ b/src/Focusable.hh | |||
@@ -41,8 +41,8 @@ class Focusable: public FbTk::ITypeAheadable { | |||
41 | public: | 41 | public: |
42 | Focusable(BScreen &scr, FluxboxWindow *fbwin = 0): | 42 | Focusable(BScreen &scr, FluxboxWindow *fbwin = 0): |
43 | m_screen(scr), m_fbwin(fbwin), | 43 | m_screen(scr), m_fbwin(fbwin), |
44 | m_instance_name("fluxbox"), m_class_name("fluxbox"), | 44 | m_instance_name("fluxbox"), m_class_name("fluxbox"), m_focused(false), |
45 | m_focused(false), m_titlesig(*this) { } | 45 | m_titlesig(*this), m_focussig(*this), m_diesig(*this) { } |
46 | virtual ~Focusable() { } | 46 | virtual ~Focusable() { } |
47 | /** | 47 | /** |
48 | * Take focus. | 48 | * Take focus. |
@@ -99,15 +99,18 @@ public: | |||
99 | }; | 99 | }; |
100 | 100 | ||
101 | /** | 101 | /** |
102 | * Used for both title and icon changes. | 102 | @name signals |
103 | * @return title signal subject | 103 | @{ |
104 | */ | 104 | */ |
105 | // Used for both title and icon changes. | ||
105 | FbTk::Subject &titleSig() { return m_titlesig; } | 106 | FbTk::Subject &titleSig() { return m_titlesig; } |
106 | /** | 107 | // Used for both title and icon changes. |
107 | * Used for both title and icon changes. | ||
108 | * @return title signal subject | ||
109 | */ | ||
110 | const FbTk::Subject &titleSig() const { return m_titlesig; } | 108 | const FbTk::Subject &titleSig() const { return m_titlesig; } |
109 | FbTk::Subject &focusSig() { return m_focussig; } | ||
110 | const FbTk::Subject &focusSig() const { return m_focussig; } | ||
111 | FbTk::Subject &dieSig() { return m_diesig; } | ||
112 | const FbTk::Subject &dieSig() const { return m_diesig; } | ||
113 | /** @} */ // end group signals | ||
111 | 114 | ||
112 | protected: | 115 | protected: |
113 | BScreen &m_screen; //< the screen in which it works | 116 | BScreen &m_screen; //< the screen in which it works |
@@ -117,7 +120,8 @@ protected: | |||
117 | bool m_focused; //< whether or not it has focus | 120 | bool m_focused; //< whether or not it has focus |
118 | FbTk::PixmapWithMask m_icon; //< icon pixmap with mask | 121 | FbTk::PixmapWithMask m_icon; //< icon pixmap with mask |
119 | 122 | ||
120 | FocusSubject m_titlesig; //< for signaling title and icon changes | 123 | // state and hint signals |
124 | FocusSubject m_titlesig, m_focussig, m_diesig; | ||
121 | }; | 125 | }; |
122 | 126 | ||
123 | #endif // FOCUSABLE_HH | 127 | #endif // FOCUSABLE_HH |