33class VRuler : public TQFrame {
36 typedef TQFrame super;
39 VRuler(TQt::Orientation, TQWidget *parent = 0, const char *name = 0);
43 KoUnit::Unit unit() const;
46 void setZoom( double zoom);
47 void updatePointer(TQ_INT32 x, TQ_INT32 y);
48 void updateVisibleArea(TQ_INT32 xpos, TQ_INT32 ypos);
49 void setUnit(KoUnit::Unit u);
54 virtual void paintEvent(TQPaintEvent *e);
55 virtual void resizeEvent(TQResizeEvent *e);
58 void recalculateSize();
60 void initMarker(TQ_INT32 w, TQ_INT32 h);
61 void drawNums(TQPainter *gc, TQ_INT32 x, TQ_INT32 y, TQString& num, bool orientationHoriz);
65 TQt::Orientation m_orientation;
66 TQ_INT32 m_firstVisible;
67 TQ_INT32 m_currentPosition;
68 TQPixmap *m_pixmapBuffer;
69 TQPixmap m_pixmapMarker;
70 TQPixmap m_pixmapNums;
74 static const char *m_nums[];
|