QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
qgsnewgeopackagelayerdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsnewgeopackagelayerdialog.h
3  -------------------
4  begin : April 2016
5  copyright : (C) 2016 by Even Rouault
6  email : even.rouault at spatialys.com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 #ifndef QGSNEWGEOPACKAGELAYERDIALOG_H
18 #define QGSNEWGEOPACKAGELAYERDIALOG_H
19 
20 #include "ui_qgsnewgeopackagelayerdialogbase.h"
21 #include "qgisgui.h"
22 #include "qgscontexthelp.h"
23 
24 #include "qgis.h"
25 
28 class GUI_EXPORT QgsNewGeoPackageLayerDialog: public QDialog, private Ui::QgsNewGeoPackageLayerDialogBase
29 {
30  Q_OBJECT
31 
32  public:
36 
37  private slots:
38  void on_mAddAttributeButton_clicked();
39  void on_mRemoveAttributeButton_clicked();
40  void on_mFieldTypeBox_currentIndexChanged( int index );
41  void on_mGeometryTypeBox_currentIndexChanged( int index );
42  void on_mSelectDatabaseButton_clicked();
43  void on_mDatabaseEdit_textChanged( const QString& text );
44  void on_mTableNameEdit_textChanged( const QString& text );
45  void on_mTableNameEdit_textEdited( const QString& text );
46  void on_mLayerIdentifierEdit_textEdited( const QString& text );
47  void fieldNameChanged( const QString& );
48  void selectionChanged();
49  void checkOk();
50 
51  void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); }
52  void on_buttonBox_accepted();
53  void on_buttonBox_rejected();
54 
55  private:
56  bool apply();
57 
58  QPushButton *mOkButton;
59  QString mCrsId;
60  bool mTableNameEdited;
61  bool mLayerIdentifierEdited;
62 };
63 
64 #endif // QGSNEWVECTORLAYERDIALOG_H
const char * className() const
static const Qt::WindowFlags ModalDialogFlags
Definition: qgisgui.h:50
static unsigned index
Dialog to set up parameters to create a new GeoPackage layer, and on accept() to create it and add it...
virtual const QMetaObject * metaObject() const
static void run(const QString &context)
typedef WindowFlags