~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to src/plugins/evis/databaseconnection/evisdatabaselayerfieldselectiongui.h

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
** File: evisdatabaselayerfieldselectiongui.h
 
3
** Author: Peter J. Ersts ( ersts at amnh.org )
 
4
** Creation Date: 2007-03-07
 
5
**
 
6
** Copyright ( c ) 2007, American Museum of Natural History. All rights reserved.
 
7
**
 
8
** This library/program is free software; you can redistribute it
 
9
** and/or modify it under the terms of the GNU Library General Public
 
10
** License as published by the Free Software Foundation; either
 
11
** version 2 of the License, or ( at your option ) any later version.
 
12
**
 
13
** This library/program is distributed in the hope that it will be useful,
 
14
** but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
16
** Library General Public License for more details.
 
17
**
 
18
** This work was made possible through a grant by the the John D. and
 
19
** Catherine T. MacArthur Foundation. Additionally, this program was prepared by
 
20
** the American Museum of Natural History under award No. NA05SEC46391002
 
21
** from the National Oceanic and Atmospheric Administration, U.S. Department
 
22
** of Commerce.  The statements, findings, conclusions, and recommendations
 
23
** are those of the author( s ) and do not necessarily reflect the views of the
 
24
** National Oceanic and Atmospheric Administration or the Department of Commerce.
 
25
**
 
26
**/
 
27
/*  $Id: $ */
 
28
#ifndef eVisDatabaseLayerFieldSelectionGui_H
 
29
#define eVisDatabaseLayerFieldSelectionGui_H
 
30
 
 
31
#include <QDialog>
 
32
#include <ui_evisdatabaselayerfieldselectionguibase.h>
 
33
 
 
34
/**
 
35
* \class eVisDatabaseLayerFieldSelectionGui
 
36
* \brief GUI component that allows user to select field names that hold the x, y coordinates for the feature
 
37
* This class provides the GUI component that allows the user to enter a name for a newly created layer and also
 
38
* select the field names that hold the x, y coordinates for the features in this layer.
 
39
*/
 
40
class eVisDatabaseLayerFieldSelectionGui : public QDialog, private Ui::eVisDatabaseLayerFieldSelectionGuiBase
 
41
{
 
42
    Q_OBJECT
 
43
 
 
44
  public:
 
45
    /** \brief Constructor */
 
46
    eVisDatabaseLayerFieldSelectionGui( QWidget* parent, Qt::WFlags fl );
 
47
 
 
48
    /** \brief Public method that sets the contents of the combo boxes with the available field names */
 
49
    void setFieldList( QStringList* );
 
50
 
 
51
  public slots:
 
52
    void on_buttonBox_accepted( );
 
53
    void on_buttonBox_rejected( );
 
54
 
 
55
  signals:
 
56
    /** \brief Signal emitted when the user has entered the layername, selected the field names, and pressed the accept button */
 
57
    void eVisDatabaseLayerFieldsSelected( QString, QString, QString );
 
58
};
 
59
#endif