10 #ifndef QWT_SCALE_WIDGET_H
11 #define QWT_SCALE_WIDGET_H
49 Q_DECLARE_FLAGS( LayoutFlags, LayoutFlag )
57 void scaleDivChanged();
60 void setTitle(
const QString& title );
61 void setTitle(
const QwtText& title );
64 void setLayoutFlag( LayoutFlag,
bool on );
65 bool testLayoutFlag( LayoutFlag )
const;
67 void setBorderDist(
int dist1,
int dist2 );
68 int startBorderDist()
const;
69 int endBorderDist()
const;
71 void getBorderDistHint(
int& start,
int& end )
const;
73 void getMinBorderDist(
int& start,
int& end )
const;
74 void setMinBorderDist(
int start,
int end );
76 void setMargin(
int );
79 void setSpacing(
int );
89 void setLabelAlignment( Qt::Alignment );
90 void setLabelRotation(
double rotation );
92 void setColorBarEnabled(
bool );
93 bool isColorBarEnabled()
const;
95 void setColorBarWidth(
int );
96 int colorBarWidth()
const;
106 int titleHeightForWidth(
int width ) const;
107 int dimForLength(
int length, const QFont& scaleFont ) const;
109 void drawColorBar( QPainter*, const QRectF& ) const;
111 const QRectF& rect ) const;
116 QRectF colorBarRect( const QRectF& ) const;
123 void draw( QPainter* ) const;
126 void layoutScale(
bool update_geometry = true );