diff options
author | markt <markt> | 2007-03-27 08:43:09 (GMT) |
---|---|---|
committer | markt <markt> | 2007-03-27 08:43:09 (GMT) |
commit | 9ebfea7944a1455a74cb70781373d83f50ad196c (patch) | |
tree | 919096d5e05e9b70499433bea3db2faf19b27bae /src/Focusable.hh | |
parent | 58e280952a47fc3fb77b4659a21cc4ce6a73066e (diff) | |
download | fluxbox-9ebfea7944a1455a74cb70781373d83f50ad196c.zip fluxbox-9ebfea7944a1455a74cb70781373d83f50ad196c.tar.bz2 |
lots and lots of code cleanup, plus introduced new ClientMenu class
Diffstat (limited to 'src/Focusable.hh')
-rw-r--r-- | src/Focusable.hh | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/Focusable.hh b/src/Focusable.hh index e2c7e50..d7c1ae8 100644 --- a/src/Focusable.hh +++ b/src/Focusable.hh | |||
@@ -19,10 +19,12 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id$ | ||
23 | |||
22 | #ifndef FOCUSABLE_HH | 24 | #ifndef FOCUSABLE_HH |
23 | #define FOCUSABLE_HH | 25 | #define FOCUSABLE_HH |
24 | 26 | ||
25 | #include "FbTk/FbPixmap.hh" | 27 | #include "FbTk/PixmapWithMask.hh" |
26 | #include "FbTk/ITypeAheadable.hh" | 28 | #include "FbTk/ITypeAheadable.hh" |
27 | #include "FbTk/Subject.hh" | 29 | #include "FbTk/Subject.hh" |
28 | 30 | ||
@@ -52,14 +54,8 @@ public: | |||
52 | inline FluxboxWindow *fbwindow() { return m_fbwin; } | 54 | inline FluxboxWindow *fbwindow() { return m_fbwin; } |
53 | 55 | ||
54 | // so we can make nice buttons, menu entries, etc. | 56 | // so we can make nice buttons, menu entries, etc. |
55 | virtual const FbTk::FbPixmap &iconPixmap() const { return m_icon_pixmap; } | 57 | virtual const FbTk::PixmapWithMask &icon() const { return m_icon; } |
56 | virtual bool usePixmap() const { return iconPixmap().drawable() != None; } | ||
57 | |||
58 | virtual const FbTk::FbPixmap &iconMask() const { return m_icon_mask; } | ||
59 | virtual bool useMask() const { return iconMask().drawable() != None; } | ||
60 | |||
61 | virtual const std::string &title() const { return m_title; } | 58 | virtual const std::string &title() const { return m_title; } |
62 | virtual const std::string &iconTitle() const { return m_icon_title; } | ||
63 | const std::string &iTypeString() const { return title(); } | 59 | const std::string &iTypeString() const { return title(); } |
64 | 60 | ||
65 | class FocusSubject: public FbTk::Subject { | 61 | class FocusSubject: public FbTk::Subject { |
@@ -80,8 +76,8 @@ protected: | |||
80 | FluxboxWindow *m_fbwin; | 76 | FluxboxWindow *m_fbwin; |
81 | 77 | ||
82 | bool m_focused; | 78 | bool m_focused; |
83 | std::string m_title, m_icon_title; | 79 | std::string m_title; |
84 | FbTk::FbPixmap m_icon_pixmap, m_icon_mask; | 80 | FbTk::PixmapWithMask m_icon; |
85 | 81 | ||
86 | FocusSubject m_titlesig; | 82 | FocusSubject m_titlesig; |
87 | }; | 83 | }; |