26 #ifndef QTXCOLORSCALE_H
27 #define QTXCOLORSCALE_H
37 #pragma warning( disable:4251 )
70 PreciseFormat = 0x010,
79 double minimum()
const;
80 double maximum()
const;
81 void range(
double&,
double& )
const;
83 int labelMode()
const;
84 int colorMode()
const;
85 int intervalsNumber()
const;
87 QString title()
const;
88 QString format()
const;
89 QString label(
const int )
const;
90 QColor
color(
const int )
const;
91 void labels( QStringList& )
const;
94 int labelPosition()
const;
95 int titlePosition()
const;
97 void setMinimum(
const double );
98 void setMaximum(
const double );
99 void setRange(
const double,
const double );
100 void setDumpMode(
const int );
101 void setColorMode(
const int );
102 void setLabelMode(
const int );
103 void setIntervalsNumber(
const int );
105 void setTitle(
const QString& );
106 void setFormat(
const QString& );
107 void setLabel(
const QString&,
const int = -1 );
108 void setColor(
const QColor&,
const int = -1 );
109 void setLabels(
const QStringList& );
112 void setLabelPosition(
const int );
113 void setTitlePosition(
const int );
115 void setFlags(
const int );
116 bool testFlags(
const int )
const;
117 void clearFlags(
const int );
119 QPixmap dump()
const;
120 QPixmap dump(
const int = -1,
const int = -1 )
const;
121 QPixmap dump(
const QColor&,
const int = -1,
const int = -1 )
const;
123 virtual QSize minimumSizeHint()
const;
124 virtual QSize sizeHint()
const;
130 virtual void paintEvent( QPaintEvent* );
131 virtual void drawContents( QPainter* );
135 QString getFormat()
const;
136 QString getLabel(
const int )
const;
137 QColor getColor(
const int )
const;
138 double getNumber(
const int )
const;
139 QTextDocument* textDocument(
const int )
const;
140 void drawScale( QPainter*,
const bool,
const int,
const int,
141 const int,
const int,
const bool,
const bool,
const bool )
const;
142 void drawScale( QPainter*,
const QColor&,
const bool,
143 const int,
const int,
const int,
const int,
144 const bool,
const bool,
const bool )
const;
145 QSize calculateSize(
const bool,
const int,
146 const bool,
const bool,
const bool )
const;
168 #pragma warning( default:4251 )
171 #endif // QTXCOLORSCALE_H