2
** File: evisdatabaselayerfieldselectiongui.h
3
** Author: Peter J. Ersts ( ersts at amnh.org )
4
** Creation Date: 2007-03-07
6
** Copyright ( c ) 2007, American Museum of Natural History. All rights reserved.
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.
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.
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.
28
#ifndef eVisDatabaseLayerFieldSelectionGui_H
29
#define eVisDatabaseLayerFieldSelectionGui_H
32
#include <ui_evisdatabaselayerfieldselectionguibase.h>
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.
40
class eVisDatabaseLayerFieldSelectionGui : public QDialog, private Ui::eVisDatabaseLayerFieldSelectionGuiBase
45
/** \brief Constructor */
46
eVisDatabaseLayerFieldSelectionGui( QWidget* parent, Qt::WFlags fl );
48
/** \brief Public method that sets the contents of the combo boxes with the available field names */
49
void setFieldList( QStringList* );
52
void on_buttonBox_accepted( );
53
void on_buttonBox_rejected( );
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 );