QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
src
gui
qgsnewvectorlayerdialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsnewvectorlayerdialog.h - description
3
-------------------
4
begin : October 2004
5
copyright : (C) 2004 by Marco Hugentobler
6
email :
[email protected]
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 qgsnewvectorlayerdialog_H
18
#define qgsnewvectorlayerdialog_H
19
20
#include "ui_qgsnewvectorlayerdialogbase.h"
21
#include "
qgisgui.h
"
22
#include "
qgscontexthelp.h
"
23
24
#include "
qgis.h
"
25
29
class
GUI_EXPORT
QgsNewVectorLayerDialog
:
public
QDialog
,
private
Ui::QgsNewVectorLayerDialogBase
30
{
31
Q_OBJECT
32
33
public
:
34
35
// run the dialog, create the layer.
36
// @return fileName on success, empty string use aborted, QString::null if creation failed
37
static
QString
runAndCreateLayer(
QWidget
* parent =
nullptr
,
QString
* enc =
nullptr
);
38
39
QgsNewVectorLayerDialog
(
QWidget
*parent =
nullptr
,
const
Qt::WindowFlags
& fl =
QgisGui::ModalDialogFlags
);
40
~
QgsNewVectorLayerDialog
();
42
QGis::WkbType
selectedType()
const
;
44
void
attributes(
QList
<
QPair<QString, QString>
>& at )
const
;
46
QString
selectedFileFormat()
const
;
48
QString
selectedFileEncoding()
const
;
50
int
selectedCrsId()
const
;
51
52
protected
slots:
53
void
on_mAddAttributeButton_clicked();
54
void
on_mRemoveAttributeButton_clicked();
55
void
on_mFileFormatComboBox_currentIndexChanged(
int
index
);
56
void
on_mTypeBox_currentIndexChanged(
int
index );
57
void
on_buttonBox_helpRequested
() {
QgsContextHelp::run
(
metaObject
()->
className
() ); }
58
void
nameChanged(
const
QString
& );
59
void
selectionChanged();
60
61
private
:
62
QPushButton
*mOkButton;
63
};
64
65
#endif //qgsnewvectorlayerdialog_H
QObject::className
const char * className() const
QgisGui::ModalDialogFlags
static const Qt::WindowFlags ModalDialogFlags
Definition:
qgisgui.h:50
index
static unsigned index
Definition:
mersenne-twister.cpp:36
QWidget
qgscontexthelp.h
QgsNewVectorLayerDialog::on_buttonBox_helpRequested
void on_buttonBox_helpRequested()
Definition:
qgsnewvectorlayerdialog.h:57
QObject::metaObject
virtual const QMetaObject * metaObject() const
QGis::WkbType
WkbType
Used for symbology operations.
Definition:
qgis.h:61
QgsNewVectorLayerDialog
Definition:
qgsnewvectorlayerdialog.h:29
QgsContextHelp::run
static void run(const QString &context)
Definition:
qgscontexthelp.cpp:31
QString
QList
QPair< QString, QString >
QDialog
QPushButton
Qt::WindowFlags
typedef WindowFlags
qgis.h
qgisgui.h
Generated on Sun Jun 24 2018 11:42:48 for QGIS API Documentation by
1.8.13