diff options
author | fluxgen <fluxgen> | 2003-04-28 22:39:12 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-04-28 22:39:12 (GMT) |
commit | a61595347703bc21f8edefa7ca9c9d0453fef8f8 (patch) | |
tree | 2c2c70e86c06106107c34907721b0fdeb015f190 | |
parent | 64469e79828b38689a3d973fe2348b61b3efe423 (diff) | |
download | fluxbox_lack-a61595347703bc21f8edefa7ca9c9d0453fef8f8.zip fluxbox_lack-a61595347703bc21f8edefa7ca9c9d0453fef8f8.tar.bz2 |
added WinButtonTheme
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/WinButton.hh | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 75610c0..a70b621 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -67,6 +67,7 @@ fluxbox_SOURCES = AtomHandler.hh ArrowButton.hh ArrowButton.cc \ | |||
67 | ToolbarHandler.cc ToolbarHandler.hh \ | 67 | ToolbarHandler.cc ToolbarHandler.hh \ |
68 | ToolbarTheme.hh ToolbarTheme.cc \ | 68 | ToolbarTheme.hh ToolbarTheme.cc \ |
69 | WinButton.hh WinButton.cc \ | 69 | WinButton.hh WinButton.cc \ |
70 | WinButtonTheme.hh WinButtonTheme.cc \ | ||
70 | Window.cc Window.hh \ | 71 | Window.cc Window.hh \ |
71 | Workspace.cc Workspace.hh \ | 72 | Workspace.cc Workspace.hh \ |
72 | XrmDatabaseHelper.hh FbCommands.hh FbCommands.cc LayerMenu.hh \ | 73 | XrmDatabaseHelper.hh FbCommands.hh FbCommands.cc LayerMenu.hh \ |
diff --git a/src/WinButton.hh b/src/WinButton.hh index 207ecb9..0cbc4c1 100644 --- a/src/WinButton.hh +++ b/src/WinButton.hh | |||
@@ -19,12 +19,13 @@ | |||
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: WinButton.hh,v 1.3 2003/04/25 17:29:58 fluxgen Exp $ | 22 | /// $Id: WinButton.hh,v 1.4 2003/04/28 22:39:12 fluxgen Exp $ |
23 | 23 | ||
24 | #include "Button.hh" | 24 | #include "Button.hh" |
25 | #include "Observer.hh" | 25 | #include "Observer.hh" |
26 | 26 | ||
27 | class FluxboxWindow; | 27 | class FluxboxWindow; |
28 | class WinButtonTheme; | ||
28 | 29 | ||
29 | /// draws and handles basic window button graphic | 30 | /// draws and handles basic window button graphic |
30 | class WinButton:public FbTk::Button, public FbTk::Observer { | 31 | class WinButton:public FbTk::Button, public FbTk::Observer { |
@@ -32,6 +33,7 @@ public: | |||
32 | /// draw type for the button | 33 | /// draw type for the button |
33 | enum Type {MAXIMIZE, MINIMIZE, SHADE, STICK, CLOSE}; | 34 | enum Type {MAXIMIZE, MINIMIZE, SHADE, STICK, CLOSE}; |
34 | WinButton(const FluxboxWindow &listen_to, | 35 | WinButton(const FluxboxWindow &listen_to, |
36 | WinButtonTheme &theme, | ||
35 | Type buttontype, const FbTk::FbWindow &parent, int x, int y, | 37 | Type buttontype, const FbTk::FbWindow &parent, int x, int y, |
36 | unsigned int width, unsigned int height); | 38 | unsigned int width, unsigned int height); |
37 | /// override for drawing | 39 | /// override for drawing |
@@ -44,4 +46,6 @@ private: | |||
44 | void drawType(); | 46 | void drawType(); |
45 | Type m_type; ///< the button type | 47 | Type m_type; ///< the button type |
46 | const FluxboxWindow &m_listen_to; | 48 | const FluxboxWindow &m_listen_to; |
49 | WinButtonTheme &m_theme; | ||
50 | |||
47 | }; | 51 | }; |