All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TimePropertiesDialog.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2010-2013 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20  /*!
21  \file terralib/qt/widgets/slider/TimePropertiesDialog.h
22 
23  \brief A widget used to alow the user to control the visualization of temporal data
24 */
25 
26 
27 //Terralib
28 #include "TimePropertiesDialog.h"
29 #include "ui_TimePropertiesDialogForm.h"
30 
31 te::qt::widgets::TimePropertiesDialog::TimePropertiesDialog(QWidget* parent, Qt::WindowFlags f, int minimum, int maximum)
32  : QDialog(parent, f),
33  m_ui(new Ui::TimePropertiesDialogForm)
34 {
35  m_ui->setupUi(this);
36 
37  //Adjusting the slider's range
38  m_ui->m_speedHorizontalSlider->setMinimum(minimum);
39  m_ui->m_speedHorizontalSlider->setMaximum(maximum);
40 
41 // connect signal and slots
42  connect(m_ui->m_okPushButton, SIGNAL(clicked()), this, SLOT(onOkPushButtonClicked()));
43  connect(m_ui->m_helpPushButton, SIGNAL(clicked()), this, SLOT(onHelpPushButtonClicked()));
44 }
45 
47 {
48 }
49 
51 {
52  return m_ui->m_speedHorizontalSlider->value();
53 }
54 
56 {
57  return m_ui->m_loopCheckBox->isChecked();
58 }
59 
61 {
62 }
63 
65 {
66  this->accept();
67 }
std::auto_ptr< Ui::TimePropertiesDialogForm > m_ui
The widget form.
int getValue()
It returns the speed&#39;s value.
TimePropertiesDialog(QWidget *parent=0, Qt::WindowFlags f=0, int minimum=10, int maximum=500)
Constructor.
bool isLoopChecked()
It returns a boolean that indicates if the time slider animation is supposed to be displayed looping ...
A widget used to alow the user to control the visualization of temporal data.