20#ifndef __VSTATEBUTTON_H__
21#define __VSTATEBUTTON_H__
23#include <tqpushbutton.h>
27class VStateButton : public TQPushButton
30 VStateButton( TQWidget* parent = 0L, const char* name = 0L );
33 void addState( TQPixmap *state ) { m_pixmaps.append( state ); }
34 void setState( unsigned int index );
35 unsigned int getState() const { return m_index; }
38 void mouseReleaseEvent( TQMouseEvent * );
40 TQPtrList<TQPixmap> m_pixmaps;
|