all repos — fluxbox @ a61595347703bc21f8edefa7ca9c9d0453fef8f8

custom fork of the fluxbox windowmanager

added WinButtonTheme
fluxgen fluxgen
commit

a61595347703bc21f8edefa7ca9c9d0453fef8f8

parent

64469e79828b38689a3d973fe2348b61b3efe423

2 files changed, 6 insertions(+), 1 deletions(-)

jump to
M src/Makefile.amsrc/Makefile.am

@@ -67,6 +67,7 @@ Toolbar.cc Toolbar.hh \

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 \
M src/WinButton.hhsrc/WinButton.hh

@@ -19,12 +19,13 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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; + };