A dialog used to configure the behaviour of the SliderSliderWidget. More...
#include <SliderPropertiesDialog.h>
Public Member Functions | |
QDateTime | getFinalQDate () |
It gets the final time as QDateTime. More... | |
te::dt::TimeInstant | getFinalTime () |
It gets the final time. More... | |
QDateTime | getInitialQDate () |
It gets the initial time as QDateTime. More... | |
te::dt::TimeInstant | getInitialTime () |
It gets the initial time. More... | |
bool | isForwardChecked () |
It returns a boolean that indicates if animation is going forward or backward. More... | |
bool | isGoBackChecked () |
It returns a boolean that indicates if the time slider animation is to reverse it's direction on ce a loop is finished. More... | |
bool | isLoopChecked () |
It returns a boolean that indicates if the time slider animation is supposed to be displayed looping or not. More... | |
void | populateUi () |
It initialize a property animation dialog. More... | |
SliderPropertiesDialog (QWidget *parent, Qt::WindowFlags f=0) | |
Constructor. More... | |
~SliderPropertiesDialog () | |
Destructor. More... | |
Protected Slots | |
void | onDrawTrackCheckBoxClicked (bool b) |
AutoPan radio button clicked. More... | |
void | onHelpPushButtonClicked () |
Private Attributes | |
TimeSliderWidget * | m_tsw |
The Timer Slider Widget pointer. More... | |
std::auto_ptr< Ui::SliderPropertiesDialogForm > | m_ui |
It takes the necessary steps after changing the duration. More... | |
Friends | |
class | TimeSliderWidget |
A dialog used to configure the behaviour of the SliderSliderWidget.
Definition at line 58 of file SliderPropertiesDialog.h.
te::qt::widgets::SliderPropertiesDialog::SliderPropertiesDialog | ( | QWidget * | parent, |
Qt::WindowFlags | f = 0 |
||
) |
Constructor.
It constructs a Slider Slider Dialog
Definition at line 55 of file SliderPropertiesDialog.cpp.
References m_tsw, m_ui, and onHelpPushButtonClicked().
te::qt::widgets::SliderPropertiesDialog::~SliderPropertiesDialog | ( | ) |
Destructor.
It destructs a Slider Slider Dialog
Definition at line 103 of file SliderPropertiesDialog.cpp.
QDateTime te::qt::widgets::SliderPropertiesDialog::getFinalQDate | ( | ) |
It gets the final time as QDateTime.
Definition at line 166 of file SliderPropertiesDialog.cpp.
te::dt::TimeInstant te::qt::widgets::SliderPropertiesDialog::getFinalTime | ( | ) |
It gets the final time.
Definition at line 176 of file SliderPropertiesDialog.cpp.
References qdate2TimeInstant().
QDateTime te::qt::widgets::SliderPropertiesDialog::getInitialQDate | ( | ) |
It gets the initial time as QDateTime.
Definition at line 161 of file SliderPropertiesDialog.cpp.
te::dt::TimeInstant te::qt::widgets::SliderPropertiesDialog::getInitialTime | ( | ) |
It gets the initial time.
Definition at line 171 of file SliderPropertiesDialog.cpp.
References qdate2TimeInstant().
bool te::qt::widgets::SliderPropertiesDialog::isForwardChecked | ( | ) |
It returns a boolean that indicates if animation is going forward or backward.
Definition at line 146 of file SliderPropertiesDialog.cpp.
bool te::qt::widgets::SliderPropertiesDialog::isGoBackChecked | ( | ) |
It returns a boolean that indicates if the time slider animation is to reverse it's direction on ce a loop is finished.
Definition at line 156 of file SliderPropertiesDialog.cpp.
bool te::qt::widgets::SliderPropertiesDialog::isLoopChecked | ( | ) |
It returns a boolean that indicates if the time slider animation is supposed to be displayed looping or not.
Definition at line 151 of file SliderPropertiesDialog.cpp.
|
protectedslot |
AutoPan radio button clicked.
b | True if the button is checked, or false if the button is unchecked |
Draw track radio button clicked.
b | True if the button is checked, or false if the button is unchecked |
Definition at line 181 of file SliderPropertiesDialog.cpp.
|
protectedslot |
Definition at line 185 of file SliderPropertiesDialog.cpp.
Referenced by SliderPropertiesDialog().
void te::qt::widgets::SliderPropertiesDialog::populateUi | ( | ) |
It initialize a property animation dialog.
Definition at line 107 of file SliderPropertiesDialog.cpp.
References te::dt::TimeInstant::getDate(), te::dt::Date::getDay(), te::dt::TimePeriod::getFinalTimeInstant(), te::dt::TimeDuration::getHours(), te::dt::TimePeriod::getInitialTimeInstant(), te::dt::TimeDuration::getMinutes(), te::dt::Date::getMonth(), te::dt::TimeDuration::getSeconds(), te::dt::TimeInstant::getTime(), te::dt::Date::getYear(), te::qt::widgets::TimeSliderWidget::m_direction, te::qt::widgets::TimeSliderWidget::m_goAndBack, te::qt::widgets::TimeSliderWidget::m_loop, te::qt::widgets::TimeSliderWidget::m_temporalAnimationExtent, and te::qt::widgets::TimeSliderWidget::m_temporalExtent.
|
friend |
Definition at line 62 of file SliderPropertiesDialog.h.
|
private |
The Timer Slider Widget pointer.
Definition at line 189 of file SliderPropertiesDialog.h.
Referenced by SliderPropertiesDialog().
|
private |
It takes the necessary steps after changing the duration.
v | Value of opacity (0 - 255). |
Trajectory color combo box activated.
i | The index of combo box. |
Opacity combo box activated.
i | The index of combo box. |
Reset initial time button clicked.
Reset final time button clicked.The widget form.
Definition at line 188 of file SliderPropertiesDialog.h.
Referenced by SliderPropertiesDialog(), and te::qt::widgets::TimeSliderWidget::TimeSliderWidget().