19#ifndef STENCILBARBUTTON_H
20#define STENCILBARBUTTON_H
22#include <tqpushbutton.h>
27class DragBarButton : public TQPushButton
32 DragBarButton( const TQString&, TQWidget* parent, const char* name = 0 );
35 void setIcon( const TQString& );
36 void setPixmap( const TQPixmap& );
38 TQSize sizeHint() const;
40 TQt::Orientation orientation() const { return m_orientation; }
45 void closeRequired(DragBarButton *);
48 void setOrientation(TQt::Orientation orientation);
51 void drawButton( TQPainter* );
52 void mousePressEvent( TQMouseEvent* );
53 void mouseReleaseEvent( TQMouseEvent* );
54 void mouseMoveEvent( TQMouseEvent* );
56 void enterEvent( TQEvent* );
57 void leaveEvent( TQEvent* );
60 TQPixmap* m_pClosePix;
67 TQt::Orientation m_orientation;
|