diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-27 04:42:10 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-27 04:42:10 (GMT) |
commit | 1f5cd12facc662de240b36bf3c5c14f40adf391b (patch) | |
tree | d468908abf2e988265b0c2295dbd265d82ef89b6 /src/FbWinFrame.hh | |
parent | f5024351e79e92d551d561e9756f0869e51af505 (diff) | |
download | fluxbox_pavel-1f5cd12facc662de240b36bf3c5c14f40adf391b.zip fluxbox_pavel-1f5cd12facc662de240b36bf3c5c14f40adf391b.tar.bz2 |
simplify the window transparency menu and handling a bit
Diffstat (limited to 'src/FbWinFrame.hh')
-rw-r--r-- | src/FbWinFrame.hh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/FbWinFrame.hh b/src/FbWinFrame.hh index 5af852e..ea0a179 100644 --- a/src/FbWinFrame.hh +++ b/src/FbWinFrame.hh | |||
@@ -32,6 +32,7 @@ | |||
32 | #include "FbTk/FbPixmap.hh" | 32 | #include "FbTk/FbPixmap.hh" |
33 | #include "FbTk/XLayerItem.hh" | 33 | #include "FbTk/XLayerItem.hh" |
34 | #include "FbTk/TextButton.hh" | 34 | #include "FbTk/TextButton.hh" |
35 | #include "FbTk/DefaultValue.hh" | ||
35 | #include "Container.hh" | 36 | #include "Container.hh" |
36 | #include "Shape.hh" | 37 | #include "Shape.hh" |
37 | 38 | ||
@@ -153,10 +154,11 @@ public: | |||
153 | 154 | ||
154 | /// Alpha settings | 155 | /// Alpha settings |
155 | void setAlpha(bool focused, unsigned char value); | 156 | void setAlpha(bool focused, unsigned char value); |
157 | void applyAlpha(); | ||
156 | unsigned char getAlpha(bool focused) const; | 158 | unsigned char getAlpha(bool focused) const; |
157 | 159 | ||
158 | void setUseDefaultAlpha(bool use_default); | 160 | void setDefaultAlpha(); |
159 | bool getUseDefaultAlpha() const { return m_use_default_alpha; } | 161 | bool getUseDefaultAlpha() const; |
160 | 162 | ||
161 | /// add a button to the left of the label | 163 | /// add a button to the left of the label |
162 | void addLeftButton(FbTk::Button *btn); | 164 | void addLeftButton(FbTk::Button *btn); |
@@ -349,7 +351,6 @@ private: | |||
349 | bool m_use_handle; ///< if we should use handle | 351 | bool m_use_handle; ///< if we should use handle |
350 | bool m_focused; ///< focused/unfocused mode | 352 | bool m_focused; ///< focused/unfocused mode |
351 | bool m_visible; ///< if we are currently showing | 353 | bool m_visible; ///< if we are currently showing |
352 | unsigned char m_use_default_alpha; | ||
353 | ///< do we use screen or window alpha settings ? (0 = window, 1 = default, 2 = default and window never set) | 354 | ///< do we use screen or window alpha settings ? (0 = window, 1 = default, 2 = default and window never set) |
354 | 355 | ||
355 | /** | 356 | /** |
@@ -398,8 +399,9 @@ private: | |||
398 | int m_button_size; ///< size for all titlebar buttons | 399 | int m_button_size; ///< size for all titlebar buttons |
399 | unsigned int m_height_before_shade; ///< height before shade, so we can restore it when we unshade | 400 | unsigned int m_height_before_shade; ///< height before shade, so we can restore it when we unshade |
400 | bool m_shaded; ///< wheter we're shaded or not | 401 | bool m_shaded; ///< wheter we're shaded or not |
401 | unsigned char m_focused_alpha; ///< focused alpha value | 402 | /// alpha values |
402 | unsigned char m_unfocused_alpha; ///< unfocused alpha value | 403 | FbTk::DefaultAccessor<unsigned char, FbWinFrameTheme> m_focused_alpha; |
404 | FbTk::DefaultAccessor<unsigned char, FbWinFrameTheme> m_unfocused_alpha; | ||
403 | 405 | ||
404 | class ThemeListener: public FbTk::Observer { | 406 | class ThemeListener: public FbTk::Observer { |
405 | public: | 407 | public: |