26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_TIMESLIDERWIDGET_H
27 #define __TERRALIB_QT_WIDGETS_INTERNAL_TIMESLIDERWIDGET_H
30 #include "../Config.h"
31 #include "../../../geometry.h"
32 #include "../../../datatype.h"
36 #include <QAbstractAnimation>
43 namespace Ui {
class TimeSliderWidgetForm; }
46 class QParallelAnimationGroup;
101 void addTemporalImages(
const QString& filePath);
135 void calculateSpatialExtent();
140 void calculateTemporalExtent();
145 void changeDirection();
151 void setGoAndBack(
bool t);
157 void setDirection(
const QAbstractAnimation::Direction& direction);
163 void setDuration(
const unsigned int& duration);
170 void setAutomaticPan(
const QString& title);
175 void createNewPixmap();
227 bool eventFilter(QObject*, QEvent*);
232 void updateTimeTextEdit();
237 void updateSliderPos();
247 void createAnimations();
270 void erase(
const unsigned int& curTime);
277 void setErasePerfectly(
bool b);
286 QDateTime fixDateTimeEdit(QDateTimeEdit* dte,
const QDateTime& t);
296 void drawPixmapItem(
PixmapItem* pi,
const QRectF& dwrect, QPainter* painter);
308 void drawTrajectoryIcon(
const TrajectoryItem* t,
const QPoint& pos, QPainter* painter);
310 void openTrajectory(
const QString file,
const QString& leao);
312 bool alreadyExists(QPair<QString, QString>& item);
324 void showPropertySection(
bool b);
331 bool isSettingChanged();
340 void dragEnterEvent(QDragEnterEvent*);
342 void dropEvent(QDropEvent*);
349 void onDisplayPaintEvent(QPainter*);
354 void onSettingsToolButtonnClicked();
359 void onPlayToolButtonnClicked();
364 void onStopToolButtonnClicked();
369 void onSliderMoved(
int value);
374 void onExtentChanged();
379 void onSridChanged();
384 void onFinishAnimation();
390 void onDurationValueChanged(
int v);
396 void onOpacityValueChanged(
int v);
403 void onDateTimeEditChanged(
const QDateTime& t);
405 void onAddEtaPushButtonClicked(
bool);
406 void onAddHidroPushButtonClicked(
bool);
407 void onAutoPanCheckBoxClicked(
bool);
408 void onAddPushButtonClicked(
bool b);
409 void onRemovePushButtonClicked(
bool b);
410 void onFrontPushButtonClicked(
bool b);
411 void onBackPushButtonClicked(
bool b);
433 void onForwardRadioButtonClicked(
bool b);
440 void onBackwardRadioButtonClicked(
bool b);
447 void onLoopCheckBoxClicked(
bool b);
454 void onGoAndBackCheckBoxClicked(
bool b);
461 void onApplyTimeIntervalPushButtonClicked(
bool b);
468 void onTrajectoryColorComboBoxActivated(
int i);
475 void onOpacityComboBoxActivated(
int i);
480 void onResetInitialTimePushButtonClicked();
485 void onResetFinalTimePushButtonClicked();
494 void deleteTimeSliderWidget();
512 std::auto_ptr<Ui::TimeSliderWidgetForm>
m_ui;
531 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_TIMESLIDERWIDGET_H
A class to represent time instant.
An Envelope defines a 2D rectangular region.
A class to represent a trajectory data set.
A class to represent time period.