All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TrajectoryDialog.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/charts/TrajectoryDialog.cpp
22 
23  \brief A dialog used to define the basic parameters of a new TrajectoryLayer.
24 */
25 
26 //Terralib
27 #include "TrajectoryDialog.h"
30 #include "ui_TrajectoryDialogForm.h"
31 #include "ui_TemporalPropertiesWidgetForm.h"
32 
34  : QDialog(parent, f),
35  m_ui(new Ui::TrajectoryDialogForm)
36 {
37  m_ui->setupUi(this);
38 
39  // Time Properties Widgets
40  te::da::DataSet* dataset = layer->getData().release();
41 
44 
45  // Adjusting...
46  QGridLayout* layout = new QGridLayout(m_ui->m_propertiesWidgetFrame);
47  layout->addWidget(m_propertiesWidget.get());
48  layout->addWidget(m_uniquePropWidget.get());
49  this->layout()->setSizeConstraint(QLayout::SetFixedSize);
50 
51  //connect signal and slots
52  connect(m_ui->m_okPushButton, SIGNAL(clicked()), this, SLOT(onOkPushButtonClicked()));
53  connect(m_ui->m_helpPushButton, SIGNAL(clicked()), this, SLOT(onHelpPushButtonClicked()));
54 }
55 
57 {
58 }
59 
61 
63 {
64 
65 }
A widget used to adjust a temporal layer's properties.
A widget used to adjust a Trajectory layer's properties.
std::auto_ptr< TemporalPropertiesWidget > m_propertiesWidget
The widget used to configure the general TrajectoryLayer's properties.
std::auto_ptr< Ui::TrajectoryDialogForm > m_ui
The dialog form.
A dataset is the unit of information manipulated by the data access module of TerraLib.
Definition: DataSet.h:112
TrajectoryDialog(te::map::AbstractLayerPtr layer, QWidget *parent=0, Qt::WindowFlags f=0)
Constructor.
std::auto_ptr< TrajectoryPropertiesWidget > m_uniquePropWidget
The widget used to configure the unique TrajectoryLayer's properties.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr