26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_SCALEWIDGET_H 27 #define __TERRALIB_QT_WIDGETS_INTERNAL_SCALEWIDGET_H 30 #include "../Config.h" 49 void GetScalesIcons(QMap<int, QIcon>& icons, QStringList& typesNames,
const QPaintDevice* device,
const QColor& color);
145 bool getInteractionHandle()
const;
151 QColor getHeaderColor()
const;
157 QColor getRulerColor()
const;
163 QColor getFooterColor()
const;
169 QFont getHeaderFont()
const;
175 QFont getFooterFont()
const;
181 QString getUnit()
const;
187 int getScaleType()
const;
193 bool getNumericScaleIsVisible()
const;
199 bool getAllHeaderIsVisible()
const;
205 int getUnitsPerGap()
const;
211 int getRulerHeightMM()
const;
217 int getNumberOfIntervals()
const;
222 void updateScalePosition();
228 void setUnit(
const int& SRID);
245 void setInteractionHandle(
const bool& state);
252 void updateScaleFactor();
258 void setHeaderColor(
const QColor& color);
264 void setRulerColor(
const QColor& color);
270 void setFooterColor(
const QColor& color);
279 void setBackgroundColor(
const QColor& color);
285 void setHeaderFont(
const QFont& font);
291 void setFooterFont(
const QFont& font);
307 void setUnit(
const QString& unit);
316 void setScaleType(
const int& type);
322 void setNumericScaleVisble(
const bool& visible);
331 void setAllHeaderVisible(
const bool& visible);
341 void setUnitsPerGap(
const int& units);
348 void setRulerHeightMM(
const int& hMM);
354 void setNumberOfIntervals(
const int& v);
367 void aboutToBeclosed();
386 void paintEvent(QPaintEvent* event);
393 void closeEvent(QCloseEvent *event);
420 #endif //__TERRALIB_QT_WIDGETS_INTERNAL_SCALEWIDGET_H