All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
WCSConnectorDialog.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2011-2012 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/plugins/datasource/wcs/WCSConnectorDialog.cpp
22 
23  \brief A dialog window for showing the WCS connector widget.
24 */
25 
26 // TerraLib
27 #include "../../../../common/Translator.h"
28 #include "../../../../dataaccess/datasource/DataSource.h"
29 #include "../../../../dataaccess/datasource/DataSourceFactory.h"
30 #include "../../../../dataaccess/datasource/DataSourceInfo.h"
31 #include "../../../../dataaccess/datasource/DataSourceManager.h"
32 #include "../../../widgets/Exception.h"
33 #include "WCSConnectorDialog.h"
34 #include "ui_WCSConnectorDialogForm.h"
35 
36 // Qt
37 #include <QtGui/QMessageBox>
38 
40  : QDialog(parent, f),
41  m_ui(new Ui::WCSConnectorDialogForm)
42 {
43 // add controls
44  m_ui->setupUi(this);
45 
46 // connect signal and slots
47  connect(m_ui->m_openPushButton, SIGNAL(pressed()), this, SLOT(openPushButtonPressed()));
48  connect(m_ui->m_testPushButton, SIGNAL(pressed()), this, SLOT(testPushButtonPressed()));
49  connect(m_ui->m_helpPushButton, SIGNAL(pressed()), this, SLOT(helpPushButtonPressed()));
50 }
51 
53 {
54 }
55 
57 {
58  return m_datasource;
59 }
60 
62 {
63  m_datasource = ds;
64 }
65 
67 {
68  QMessageBox::warning(this,
69  tr("TerraLib Qt Components"),
70  tr("Not implemented yet!\nWe will provide it soon!"));
71 }
72 
74 {
75  QMessageBox::warning(this,
76  tr("TerraLib Qt Components"),
77  tr("Not implemented yet!\nWe will provide it soon!"));
78 }
79 
81 {
82  QMessageBox::warning(this,
83  tr("TerraLib Qt Components"),
84  tr("Not implemented yet!\nWe will provide it soon!"));
85 }
86 
std::auto_ptr< Ui::WCSConnectorDialogForm > m_ui
A dialog window for showing the WCS connector widget.
WCSConnectorDialog(QWidget *parent=0, Qt::WindowFlags f=0)
const te::da::DataSourceInfoPtr & getDataSource() const
void set(const te::da::DataSourceInfoPtr &ds)
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr