21 #ifndef SPINBOX2PRIVATE_H
22 #define SPINBOX2PRIVATE_H
34 class ExtraSpinBox : public SpinBox
39 explicit ExtraSpinBox(TQWidget* parent, const char* name = 0)
40 : SpinBox(parent, name), mNewStylePending(false) { }
41 ExtraSpinBox( int minValue, int maxValue, int step, TQWidget* parent, const char* name = 0)
42 : SpinBox(minValue, maxValue, step, parent, name), mNewStylePending(false) { }
46 virtual void paintEvent(TQPaintEvent*);
47 virtual void styleChange(TQStyle&) { mNewStylePending = true; }
49 bool mNewStylePending;
61 class SpinMirror : public TQCanvasView
66 explicit SpinMirror( SpinBox*, TQFrame* spinFrame, TQWidget* parent = 0, const char* name = 0);
67 void setReadOnly( bool ro) { mReadOnly = ro; }
68 bool isReadOnly() const { return mReadOnly; }
69 void setNormalButtons( const TQPixmap&);
70 void redraw( const TQPixmap&);
73 virtual void resize( int w, int h);
77 virtual void contentsMousePressEvent(TQMouseEvent* e) { contentsMouseEvent(e); }
78 virtual void contentsMouseReleaseEvent(TQMouseEvent* e) { contentsMouseEvent(e); }
79 virtual void contentsMouseMoveEvent(TQMouseEvent* e) { contentsMouseEvent(e); }
80 virtual void contentsMouseDoubleClickEvent(TQMouseEvent* e) { contentsMouseEvent(e); }
81 virtual void contentsWheelEvent(TQWheelEvent*);
82 virtual bool event(TQEvent*);
85 void contentsMouseEvent(TQMouseEvent*);
89 TQWidget* mSpinWidget;
90 TQPixmap mNormalButtons;
Spin box with accelerated shift key stepping and read-only option.
|