diff options
author | mathias <mathias> | 2005-05-06 18:04:14 (GMT) |
---|---|---|
committer | mathias <mathias> | 2005-05-06 18:04:14 (GMT) |
commit | 4338fbec76d8ca822dcb21c66b6d8e492ee49020 (patch) | |
tree | d99a44d5269b244e9fcea2bbddcd170ae91df6e6 /src/WinButtonTheme.hh | |
parent | 783a3903759117112e4120a5ff47b59f2a67cf06 (diff) | |
download | fluxbox-4338fbec76d8ca822dcb21c66b6d8e492ee49020.zip fluxbox-4338fbec76d8ca822dcb21c66b6d8e492ee49020.tar.bz2 |
Added new Buttons for the Titlebar of a Window (Mathias)
- Shade - just like the "Stick"-button
Styleresources:
window.shade.pixmap, window.shade.unfocus.pixmap, window.shade.pressed.pixmap
window.unshade.pixmap, window.unshade.unfocus.pixmap, window.unshade.pressed.pixmap
etc.
- MenuIcon - click on it provides the windowmenu, if the app
contains a pixmap (gvim, konqueror etc etc) the pixmap is displayed, a
little menu otherwise.
Styleresources:
windowmenu.pixmap, windowmenu.unfocus.pixmap windowmenu.pressed.pixmap
etc.
Example ~/.fluxbox/init - entry:
session.titlebar.left: MenuIcon Stick
session.titlebar.right: Shade Minimize Maximize Close
hint: if the app HAS a pixmap i use window.title.focus.pixmap (look
WinButtonTheme for reference)in pixmap-based-styles. this looks excellent and dont need
much extra-code to pipe that info into WinButtons.
Diffstat (limited to 'src/WinButtonTheme.hh')
-rw-r--r-- | src/WinButtonTheme.hh | 85 |
1 files changed, 53 insertions, 32 deletions
diff --git a/src/WinButtonTheme.hh b/src/WinButtonTheme.hh index 9a26a26..acd1785 100644 --- a/src/WinButtonTheme.hh +++ b/src/WinButtonTheme.hh | |||
@@ -36,38 +36,55 @@ public: | |||
36 | 36 | ||
37 | void reconfigTheme(); | 37 | void reconfigTheme(); |
38 | 38 | ||
39 | inline const FbTk::PixmapWithMask &closePixmap() const { return *m_close_pm; } | 39 | const FbTk::PixmapWithMask &closePixmap() const { return *m_close_pm; } |
40 | inline FbTk::PixmapWithMask &closePixmap() { return *m_close_pm; } | 40 | FbTk::PixmapWithMask &closePixmap() { return *m_close_pm; } |
41 | inline FbTk::PixmapWithMask &closeUnfocusPixmap() { return *m_close_unfocus_pm; } | 41 | FbTk::PixmapWithMask &closeUnfocusPixmap() { return *m_close_unfocus_pm; } |
42 | inline const FbTk::PixmapWithMask &closePressedPixmap() const { return *m_close_pressed_pm; } | 42 | const FbTk::PixmapWithMask &closePressedPixmap() const { return *m_close_pressed_pm; } |
43 | inline FbTk::PixmapWithMask &closePressedPixmap() { return *m_close_pressed_pm; } | 43 | FbTk::PixmapWithMask &closePressedPixmap() { return *m_close_pressed_pm; } |
44 | 44 | ||
45 | inline const FbTk::PixmapWithMask &maximizePixmap() const { return *m_maximize_pm; } | 45 | const FbTk::PixmapWithMask &maximizePixmap() const { return *m_maximize_pm; } |
46 | inline FbTk::PixmapWithMask &maximizePixmap() { return *m_maximize_pm; } | 46 | FbTk::PixmapWithMask &maximizePixmap() { return *m_maximize_pm; } |
47 | inline FbTk::PixmapWithMask &maximizeUnfocusPixmap() { return *m_maximize_unfocus_pm; } | 47 | FbTk::PixmapWithMask &maximizeUnfocusPixmap() { return *m_maximize_unfocus_pm; } |
48 | inline const FbTk::PixmapWithMask &maximizePressedPixmap() const { return *m_maximize_pressed_pm; } | 48 | const FbTk::PixmapWithMask &maximizePressedPixmap() const { return *m_maximize_pressed_pm; } |
49 | inline FbTk::PixmapWithMask &maximizePressedPixmap() { return *m_maximize_pressed_pm; } | 49 | FbTk::PixmapWithMask &maximizePressedPixmap() { return *m_maximize_pressed_pm; } |
50 | 50 | ||
51 | inline const FbTk::PixmapWithMask &iconifyPixmap() const { return *m_iconify_pm; } | 51 | const FbTk::PixmapWithMask &iconifyPixmap() const { return *m_iconify_pm; } |
52 | inline FbTk::PixmapWithMask &iconifyPixmap() { return *m_iconify_pm; } | 52 | FbTk::PixmapWithMask &iconifyPixmap() { return *m_iconify_pm; } |
53 | inline FbTk::PixmapWithMask &iconifyUnfocusPixmap() { return *m_iconify_unfocus_pm; } | 53 | FbTk::PixmapWithMask &iconifyUnfocusPixmap() { return *m_iconify_unfocus_pm; } |
54 | inline const FbTk::PixmapWithMask &iconifyPressedPixmap() const { return *m_iconify_pressed_pm; } | 54 | const FbTk::PixmapWithMask &iconifyPressedPixmap() const { return *m_iconify_pressed_pm; } |
55 | inline FbTk::PixmapWithMask &iconifyPressedPixmap() { return *m_iconify_pressed_pm; } | 55 | FbTk::PixmapWithMask &iconifyPressedPixmap() { return *m_iconify_pressed_pm; } |
56 | 56 | ||
57 | inline const FbTk::PixmapWithMask &stickPixmap() const { return *m_stick_pm; } | 57 | const FbTk::PixmapWithMask &stickPixmap() const { return *m_stick_pm; } |
58 | inline FbTk::PixmapWithMask &stickPixmap() { return *m_stick_pm; } | 58 | FbTk::PixmapWithMask &stickPixmap() { return *m_stick_pm; } |
59 | inline FbTk::PixmapWithMask &stickUnfocusPixmap() { return *m_stick_unfocus_pm; } | 59 | FbTk::PixmapWithMask &stickUnfocusPixmap() { return *m_stick_unfocus_pm; } |
60 | inline const FbTk::PixmapWithMask &stickPressedPixmap() const { return *m_stick_pressed_pm; } | 60 | const FbTk::PixmapWithMask &stickPressedPixmap() const { return *m_stick_pressed_pm; } |
61 | inline FbTk::PixmapWithMask &stickPressedPixmap() { return *m_stick_pressed_pm; } | 61 | FbTk::PixmapWithMask &stickPressedPixmap() { return *m_stick_pressed_pm; } |
62 | 62 | ||
63 | inline FbTk::PixmapWithMask &stuckPixmap() { return *m_stuck_pm; } | 63 | FbTk::PixmapWithMask &stuckPixmap() { return *m_stuck_pm; } |
64 | inline FbTk::PixmapWithMask &stuckUnfocusPixmap() { return *m_stuck_unfocus_pm; } | 64 | FbTk::PixmapWithMask &stuckUnfocusPixmap() { return *m_stuck_unfocus_pm; } |
65 | 65 | ||
66 | inline const FbTk::PixmapWithMask &shadePixmap() const { return *m_shade_pm; } | 66 | const FbTk::PixmapWithMask &shadePixmap() const { return *m_shade_pm; } |
67 | inline FbTk::PixmapWithMask &shadePixmap() { return *m_shade_pm; } | 67 | FbTk::PixmapWithMask &shadePixmap() { return *m_shade_pm; } |
68 | inline FbTk::PixmapWithMask &shadeUnfocusPixmap() { return *m_shade_unfocus_pm; } | 68 | FbTk::PixmapWithMask &shadeUnfocusPixmap() { return *m_shade_unfocus_pm; } |
69 | inline const FbTk::PixmapWithMask &shadePressedPixmap() const { return *m_shade_pressed_pm; } | 69 | const FbTk::PixmapWithMask &shadePressedPixmap() const { return *m_shade_pressed_pm; } |
70 | inline FbTk::PixmapWithMask &shadePressedPixmap() { return *m_shade_pressed_pm; } | 70 | FbTk::PixmapWithMask &shadePressedPixmap() { return *m_shade_pressed_pm; } |
71 | |||
72 | const FbTk::PixmapWithMask &unshadePixmap() const { return *m_unshade_pm; } | ||
73 | 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 | |||
78 | const FbTk::PixmapWithMask &menuiconPixmap() const { return *m_menuicon_pm; } | ||
79 | 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 | |||
84 | FbTk::PixmapWithMask &titleFocusPixmap() { return *m_title_focus_pm; } | ||
85 | const FbTk::PixmapWithMask &titleFocusPixmap() const { return *m_title_focus_pm; } | ||
86 | FbTk::PixmapWithMask &titleUnfocusPixmap() { return *m_title_unfocus_pm; } | ||
87 | const FbTk::PixmapWithMask &titleUnfocusPixmap() const { return *m_title_unfocus_pm; } | ||
71 | 88 | ||
72 | private: | 89 | private: |
73 | 90 | ||
@@ -75,6 +92,10 @@ private: | |||
75 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_maximize_pm, m_maximize_unfocus_pm, m_maximize_pressed_pm; | 92 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_maximize_pm, m_maximize_unfocus_pm, m_maximize_pressed_pm; |
76 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_iconify_pm, m_iconify_unfocus_pm, m_iconify_pressed_pm; | 93 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_iconify_pm, m_iconify_unfocus_pm, m_iconify_pressed_pm; |
77 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_shade_pm, m_shade_unfocus_pm, m_shade_pressed_pm; | 94 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_shade_pm, m_shade_unfocus_pm, m_shade_pressed_pm; |
95 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_unshade_pm, m_unshade_unfocus_pm, m_unshade_pressed_pm; | ||
96 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_menuicon_pm, m_menuicon_unfocus_pm, m_menuicon_pressed_pm; | ||
97 | // why this? we need this for the background of the appicon in WinButtons | ||
98 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_title_focus_pm, m_title_unfocus_pm; | ||
78 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_stick_pm, m_stick_unfocus_pm, m_stick_pressed_pm; | 99 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_stick_pm, m_stick_unfocus_pm, m_stick_pressed_pm; |
79 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_stuck_pm, m_stuck_unfocus_pm; | 100 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_stuck_pm, m_stuck_unfocus_pm; |
80 | 101 | ||