/***************************************************************************
g_toggle.h - description
-------------------
begin : Do Okt 21 2004
copyright : (C) 2004 by Ch. Klippel
email :
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef G_TOGGLE_H
#define G_TOGGLE_H
#include "karma_pnpd.h"
/**
*@author Ch. Klippel
*/
class cl_pnpd : public KarmaClass {
public:
cl_pnpd(KarmaObject *o = 0);
~cl_pnpd();
virtual void mousePressEvent (QMouseEvent *, QPoint *where);
void initToggle();
void toggle(bool t);
private:
bool toggled;
QBrush myToggleBrush;
};
#endif