aboutsummaryrefslogtreecommitdiff
path: root/src/WinButtonTheme.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-08 08:50:58 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-08 08:50:58 (GMT)
commit1f01d84c080d607a91eb417efcaf5e500b5f1d7e (patch)
tree979c14aa12abfa6d0fe1aa936a9b1e9effd86a32 /src/WinButtonTheme.hh
parentec3125aeb95a06f08cd4895c5b7c3a8911c1b368 (diff)
downloadfluxbox-1f01d84c080d607a91eb417efcaf5e500b5f1d7e.zip
fluxbox-1f01d84c080d607a91eb417efcaf5e500b5f1d7e.tar.bz2
split WinButtonTheme into multiple themes
Diffstat (limited to 'src/WinButtonTheme.hh')
-rw-r--r--src/WinButtonTheme.hh44
1 files changed, 8 insertions, 36 deletions
diff --git a/src/WinButtonTheme.hh b/src/WinButtonTheme.hh
index 5d3e3fe..5436237 100644
--- a/src/WinButtonTheme.hh
+++ b/src/WinButtonTheme.hh
@@ -25,12 +25,15 @@
25#include "FbTk/Theme.hh" 25#include "FbTk/Theme.hh"
26#include "FbTk/PixmapWithMask.hh" 26#include "FbTk/PixmapWithMask.hh"
27 27
28#include <string>
29
28class FbWinFrameTheme; 30class FbWinFrameTheme;
29 31
30class WinButtonTheme: public FbTk::Theme, 32class WinButtonTheme: public FbTk::Theme,
31 public FbTk::ThemeProxy<WinButtonTheme> { 33 public FbTk::ThemeProxy<WinButtonTheme> {
32public: 34public:
33 WinButtonTheme(int screen_num, 35 WinButtonTheme(int screen_num,
36 const std::string &extra, const std::string &altextra,
34 FbTk::ThemeProxy<FbWinFrameTheme> &frame_theme); 37 FbTk::ThemeProxy<FbWinFrameTheme> &frame_theme);
35 ~WinButtonTheme(); 38 ~WinButtonTheme();
36 39
@@ -38,53 +41,29 @@ public:
38 41
39 const FbTk::PixmapWithMask &closePixmap() const { return *m_close_pm; } 42 const FbTk::PixmapWithMask &closePixmap() const { return *m_close_pm; }
40 FbTk::PixmapWithMask &closePixmap() { return *m_close_pm; } 43 FbTk::PixmapWithMask &closePixmap() { return *m_close_pm; }
41 FbTk::PixmapWithMask &closeUnfocusPixmap() { return *m_close_unfocus_pm; }
42 const FbTk::PixmapWithMask &closePressedPixmap() const { return *m_close_pressed_pm; }
43 FbTk::PixmapWithMask &closePressedPixmap() { return *m_close_pressed_pm; }
44 44
45 const FbTk::PixmapWithMask &maximizePixmap() const { return *m_maximize_pm; } 45 const FbTk::PixmapWithMask &maximizePixmap() const { return *m_maximize_pm; }
46 FbTk::PixmapWithMask &maximizePixmap() { return *m_maximize_pm; } 46 FbTk::PixmapWithMask &maximizePixmap() { return *m_maximize_pm; }
47 FbTk::PixmapWithMask &maximizeUnfocusPixmap() { return *m_maximize_unfocus_pm; }
48 const FbTk::PixmapWithMask &maximizePressedPixmap() const { return *m_maximize_pressed_pm; }
49 FbTk::PixmapWithMask &maximizePressedPixmap() { return *m_maximize_pressed_pm; }
50 47
51 const FbTk::PixmapWithMask &iconifyPixmap() const { return *m_iconify_pm; } 48 const FbTk::PixmapWithMask &iconifyPixmap() const { return *m_iconify_pm; }
52 FbTk::PixmapWithMask &iconifyPixmap() { return *m_iconify_pm; } 49 FbTk::PixmapWithMask &iconifyPixmap() { return *m_iconify_pm; }
53 FbTk::PixmapWithMask &iconifyUnfocusPixmap() { return *m_iconify_unfocus_pm; }
54 const FbTk::PixmapWithMask &iconifyPressedPixmap() const { return *m_iconify_pressed_pm; }
55 FbTk::PixmapWithMask &iconifyPressedPixmap() { return *m_iconify_pressed_pm; }
56 50
57 const FbTk::PixmapWithMask &stickPixmap() const { return *m_stick_pm; } 51 const FbTk::PixmapWithMask &stickPixmap() const { return *m_stick_pm; }
58 FbTk::PixmapWithMask &stickPixmap() { return *m_stick_pm; } 52 FbTk::PixmapWithMask &stickPixmap() { return *m_stick_pm; }
59 FbTk::PixmapWithMask &stickUnfocusPixmap() { return *m_stick_unfocus_pm; }
60 const FbTk::PixmapWithMask &stickPressedPixmap() const { return *m_stick_pressed_pm; }
61 FbTk::PixmapWithMask &stickPressedPixmap() { return *m_stick_pressed_pm; }
62 53
63 FbTk::PixmapWithMask &stuckPixmap() { return *m_stuck_pm; } 54 FbTk::PixmapWithMask &stuckPixmap() { return *m_stuck_pm; }
64 FbTk::PixmapWithMask &stuckUnfocusPixmap() { return *m_stuck_unfocus_pm; }
65 55
66 const FbTk::PixmapWithMask &shadePixmap() const { return *m_shade_pm; } 56 const FbTk::PixmapWithMask &shadePixmap() const { return *m_shade_pm; }
67 FbTk::PixmapWithMask &shadePixmap() { return *m_shade_pm; } 57 FbTk::PixmapWithMask &shadePixmap() { return *m_shade_pm; }
68 FbTk::PixmapWithMask &shadeUnfocusPixmap() { return *m_shade_unfocus_pm; }
69 const FbTk::PixmapWithMask &shadePressedPixmap() const { return *m_shade_pressed_pm; }
70 FbTk::PixmapWithMask &shadePressedPixmap() { return *m_shade_pressed_pm; }
71 58
72 const FbTk::PixmapWithMask &unshadePixmap() const { return *m_unshade_pm; } 59 const FbTk::PixmapWithMask &unshadePixmap() const { return *m_unshade_pm; }
73 FbTk::PixmapWithMask &unshadePixmap() { return *m_unshade_pm; } 60 FbTk::PixmapWithMask &unshadePixmap() { return *m_unshade_pm; }
74 FbTk::PixmapWithMask &unshadeUnfocusPixmap() { return *m_unshade_unfocus_pm; }
75 const FbTk::PixmapWithMask &unshadePressedPixmap() const { return *m_unshade_pressed_pm; }
76 FbTk::PixmapWithMask &unshadePressedPixmap() { return *m_unshade_pressed_pm; }
77 61
78 const FbTk::PixmapWithMask &menuiconPixmap() const { return *m_menuicon_pm; } 62 const FbTk::PixmapWithMask &menuiconPixmap() const { return *m_menuicon_pm; }
79 FbTk::PixmapWithMask &menuiconPixmap() { return *m_menuicon_pm; } 63 FbTk::PixmapWithMask &menuiconPixmap() { return *m_menuicon_pm; }
80 FbTk::PixmapWithMask &menuiconUnfocusPixmap() { return *m_menuicon_unfocus_pm; }
81 const FbTk::PixmapWithMask &menuiconPressedPixmap() const { return *m_menuicon_pressed_pm; }
82 FbTk::PixmapWithMask &menuiconPressedPixmap() { return *m_menuicon_pressed_pm; }
83 64
84 FbTk::PixmapWithMask &titleFocusPixmap() { return *m_title_focus_pm; } 65 FbTk::PixmapWithMask &titlePixmap() { return *m_title_pm; }
85 const FbTk::PixmapWithMask &titleFocusPixmap() const { return *m_title_focus_pm; } 66 const FbTk::PixmapWithMask &titlePixmap() const { return *m_title_pm; }
86 FbTk::PixmapWithMask &titleUnfocusPixmap() { return *m_title_unfocus_pm; }
87 const FbTk::PixmapWithMask &titleUnfocusPixmap() const { return *m_title_unfocus_pm; }
88 67
89 virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); } 68 virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); }
90 virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); } 69 virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); }
@@ -94,16 +73,9 @@ public:
94 73
95private: 74private:
96 75
97 FbTk::ThemeItem<FbTk::PixmapWithMask> m_close_pm, m_close_unfocus_pm, m_close_pressed_pm; 76 FbTk::ThemeItem<FbTk::PixmapWithMask> m_close_pm, m_maximize_pm,
98 FbTk::ThemeItem<FbTk::PixmapWithMask> m_maximize_pm, m_maximize_unfocus_pm, m_maximize_pressed_pm; 77 m_iconify_pm, m_shade_pm, m_unshade_pm, m_menuicon_pm, m_title_pm,
99 FbTk::ThemeItem<FbTk::PixmapWithMask> m_iconify_pm, m_iconify_unfocus_pm, m_iconify_pressed_pm; 78 m_stick_pm, m_stuck_pm;
100 FbTk::ThemeItem<FbTk::PixmapWithMask> m_shade_pm, m_shade_unfocus_pm, m_shade_pressed_pm;
101 FbTk::ThemeItem<FbTk::PixmapWithMask> m_unshade_pm, m_unshade_unfocus_pm, m_unshade_pressed_pm;
102 FbTk::ThemeItem<FbTk::PixmapWithMask> m_menuicon_pm, m_menuicon_unfocus_pm, m_menuicon_pressed_pm;
103 // why this? we need this for the background of the appicon in WinButtons
104 FbTk::ThemeItem<FbTk::PixmapWithMask> m_title_focus_pm, m_title_unfocus_pm;
105 FbTk::ThemeItem<FbTk::PixmapWithMask> m_stick_pm, m_stick_unfocus_pm, m_stick_pressed_pm;
106 FbTk::ThemeItem<FbTk::PixmapWithMask> m_stuck_pm, m_stuck_unfocus_pm;
107 79
108 FbTk::ThemeProxy<FbWinFrameTheme> &m_frame_theme; 80 FbTk::ThemeProxy<FbWinFrameTheme> &m_frame_theme;
109}; 81};