28 #include "../../../datatype/TimeInstant.h" 
   29 #include "../../../datatype/TimePeriod.h" 
   31 #include "ui_SliderPropertiesDialogForm.h" 
   35 #include <QMessageBox> 
   43   QDateTime qdate(qdatei, qtimei);
 
   49   te::dt::Date date(qdate.date().year(), qdate.date().month(), qdate.date().day());
 
   50   te::dt::TimeDuration duration(qdate.time().hour(), qdate.time().minute(), qdate.time().second());
 
   57     m_ui(new Ui::SliderPropertiesDialogForm)
 
   62   m_ui->m_opacitySpinBox->setMinimum(0);
 
   63   m_ui->m_opacitySpinBox->setMaximum(255);
 
   64   m_ui->m_opacitySpinBox->setValue(255);
 
   65   m_ui->m_opacitySpinBox->setSingleStep(5);
 
   66   m_ui->m_forwardRadioButton->setCheckable(
true);
 
   68   m_ui->m_initialAnimationDateTimeEdit->installEventFilter(
m_tsw);
 
   69   m_ui->m_finalAnimationDateTimeEdit->installEventFilter(
m_tsw);
 
   70   m_ui->m_initialAnimationDateTimeEdit->setDisplayFormat(
"dd/MMM/yyyy hh:mm:ss");
 
   71   m_ui->m_finalAnimationDateTimeEdit->setDisplayFormat(
"dd/MMM/yyyy hh:mm:ss");
 
   73   m_ui->m_widthSpinBox->setMinimum(1);
 
   74   m_ui->m_widthSpinBox->setMaximum(1000);
 
   75   m_ui->m_heightSpinBox->setMinimum(1);
 
   76   m_ui->m_heightSpinBox->setMaximum(1000);
 
   78   connect(
m_ui->m_drawTrailCheckBox, SIGNAL(clicked(
bool) ), 
m_tsw, SLOT(onDrawTrailCheckBoxClicked(
bool)));
 
   80   connect(
m_ui->m_autoPanCheckBox, SIGNAL(clicked(
bool) ), 
m_tsw, SLOT(onAutoPanCheckBoxClicked(
bool)));
 
   81   connect(
m_ui->m_panFactorDoubleSpinBox, SIGNAL(valueChanged(
double) ), 
m_tsw, SLOT(onPanFactorValueChanged(
double)));
 
   82   connect(
m_ui->m_opacitySpinBox, SIGNAL(valueChanged(
int)), 
m_tsw, SLOT(onOpacityValueChanged(
int)));
 
   83   connect(
m_ui->m_widthSpinBox, SIGNAL(valueChanged(
int)), 
m_tsw, SLOT(onWidthValueChanged(
int)));
 
   84   connect(
m_ui->m_heightSpinBox, SIGNAL(valueChanged(
int)), 
m_tsw, SLOT(onHeightValueChanged(
int)));
 
   85   connect(
m_ui->m_forwardRadioButton, SIGNAL(clicked(
bool) ), 
m_tsw, SLOT(onForwardRadioButtonClicked(
bool)));
 
   86   connect(
m_ui->m_backwardRadioButton, SIGNAL(clicked(
bool) ), 
m_tsw, SLOT(onBackwardRadioButtonClicked(
bool)));
 
   87   connect(
m_ui->m_loopCheckBox, SIGNAL(clicked(
bool) ), 
m_tsw, SLOT(onLoopCheckBoxClicked(
bool)));
 
   88   connect(
m_ui->m_goAndBackCheckBox, SIGNAL(clicked(
bool) ), 
m_tsw, SLOT(onGoAndBackCheckBoxClicked(
bool)));
 
   89   connect(
m_ui->m_applyTimeIntervalPushButton, SIGNAL(clicked(
bool) ), 
m_tsw, SLOT(onApplyTimeIntervalPushButtonClicked(
bool)));
 
   90   connect(
m_ui->m_frontPushButton, SIGNAL(clicked(
bool)), 
m_tsw, SLOT(onFrontPushButtonClicked(
bool)));
 
   91   connect(
m_ui->m_backPushButton, SIGNAL(clicked(
bool)), 
m_tsw, SLOT(onBackPushButtonClicked(
bool)));
 
   92   connect(
m_ui->m_animationComboBox, SIGNAL(activated(
int) ), 
m_tsw, SLOT(onAnimationComboBoxActivated(
int)));
 
   93   connect(
m_ui->m_removePushButton, SIGNAL(clicked(
bool) ), 
m_tsw, SLOT(onRemovePushButtonClicked(
bool)));
 
   94   connect(
m_ui->m_removeAllPushButton, SIGNAL(clicked(
bool) ), 
m_tsw, SLOT(onRemoveAllPushButtonClicked(
bool)));
 
   95   connect(
m_ui->m_resetInitialTimePushButton, SIGNAL(clicked()), 
m_tsw, SLOT(onResetInitialTimePushButtonClicked()));
 
   96   connect(
m_ui->m_resetFinalTimePushButton, SIGNAL(clicked()), 
m_tsw, SLOT(onResetFinalTimePushButtonClicked()));
 
  112   QDateTime qdatetimei(qdatei, qtimei);
 
  113   m_ui->m_initialAnimationDateTimeEdit->setDateTime(qdatetimei);
 
  118   QDateTime qdatetimef(qdatef, qtimef);
 
  119   m_ui->m_finalAnimationDateTimeEdit->setDateTime(qdatetimef);
 
  125   m_ui->m_initialAnimationDateTimeEdit->setMinimumDateTime(minimum);
 
  131   m_ui->m_finalAnimationDateTimeEdit->setMaximumDateTime(maximum);
 
  133   if(tsw->
m_direction == QAbstractAnimation::Forward)
 
  135     if(m_ui->m_forwardRadioButton->isChecked() == 
false)
 
  136       m_ui->m_forwardRadioButton->toggle();
 
  140     m_ui->m_loopCheckBox->setChecked(
true);
 
  142     m_ui->m_goAndBackCheckBox->setChecked(
true);
 
  147   return m_ui->m_forwardRadioButton->isChecked();
 
  152   return m_ui->m_loopCheckBox->isChecked();
 
  157   return m_ui->m_goAndBackCheckBox->isChecked();
 
  162   return m_ui->m_initialAnimationDateTimeEdit->dateTime();
 
  167   return m_ui->m_finalAnimationDateTimeEdit->dateTime();
 
QDateTime timeInstant2QDate(te::dt::TimeInstant time)
 
long getSeconds() const 
It returns the seconds of a minute - from 0 to 59. 
 
boost::gregorian::greg_year getYear() const 
It returns the gregorian year. 
 
boost::gregorian::greg_day getDay() const 
It returns the gregorian day - from 1 to 31. 
 
A class to represent time instant. 
 
Date getDate() const 
It returns the date associated to time instant. 
 
A base class for date data types. 
 
TimeInstant getFinalTimeInstant() const 
It gets the final time instant. 
 
TimeInstant getInitialTimeInstant() const 
It gets the initial time instant. 
 
A class to represent time duration with nano-second/micro-second resolution. 
 
TimeDuration getTime() const 
It returns the time duration associated to time instant. 
 
long getMinutes() const 
It returns the minutes of a hour - from 0 to 59. 
 
te::dt::TimeInstant qdate2TimeInstant(QDateTime qdate)
 
boost::gregorian::greg_month getMonth() const 
It returns the gregorian month - from 1 to 12. 
 
long getHours() const 
It returns the hours of a day - from 0 to 23.