From a61595347703bc21f8edefa7ca9c9d0453fef8f8 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 28 Apr 2003 22:39:12 +0000 Subject: added WinButtonTheme --- src/Makefile.am | 1 + src/WinButton.hh | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 \ ToolbarHandler.cc ToolbarHandler.hh \ ToolbarTheme.hh ToolbarTheme.cc \ WinButton.hh WinButton.cc \ + WinButtonTheme.hh WinButtonTheme.cc \ Window.cc Window.hh \ Workspace.cc Workspace.hh \ 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -/// $Id: WinButton.hh,v 1.3 2003/04/25 17:29:58 fluxgen Exp $ +/// $Id: WinButton.hh,v 1.4 2003/04/28 22:39:12 fluxgen Exp $ #include "Button.hh" #include "Observer.hh" class FluxboxWindow; +class WinButtonTheme; /// draws and handles basic window button graphic class WinButton:public FbTk::Button, public FbTk::Observer { @@ -32,6 +33,7 @@ public: /// draw type for the button enum Type {MAXIMIZE, MINIMIZE, SHADE, STICK, CLOSE}; WinButton(const FluxboxWindow &listen_to, + WinButtonTheme &theme, Type buttontype, const FbTk::FbWindow &parent, int x, int y, unsigned int width, unsigned int height); /// override for drawing @@ -44,4 +46,6 @@ private: void drawType(); Type m_type; ///< the button type const FluxboxWindow &m_listen_to; + WinButtonTheme &m_theme; + }; -- cgit v0.11.2