QGIS API Documentation
2.12.0-Lyon
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
26
class
GUI_EXPORT
QgsNewVectorLayerDialog
:
public
QDialog
,
private
Ui::QgsNewVectorLayerDialogBase
27
{
28
Q_OBJECT
29
30
public
:
31
32
// run the dialog, create the layer.
33
// @return fileName on success, empty string use aborted, QString::null if creation failed
34
static
QString
runAndCreateLayer(
QWidget
* parent = 0,
QString
* enc = 0 );
35
36
QgsNewVectorLayerDialog
(
QWidget
*parent = 0,
const
Qt::WindowFlags
& fl =
QgisGui::ModalDialogFlags
);
37
~
QgsNewVectorLayerDialog
();
39
QGis::WkbType
selectedType()
const
;
41
void
attributes(
QList
<
QPair<QString, QString>
>& at )
const
;
43
QString
selectedFileFormat()
const
;
45
QString
selectedFileEncoding()
const
;
47
int
selectedCrsId()
const
;
48
49
protected
slots:
50
void
on_mAddAttributeButton_clicked();
51
void
on_mRemoveAttributeButton_clicked();
52
void
on_mFileFormatComboBox_currentIndexChanged(
int
index
);
53
void
on_mTypeBox_currentIndexChanged(
int
index );
54
void
on_buttonBox_helpRequested
() {
QgsContextHelp::run
(
metaObject
()->
className
() ); }
55
void
nameChanged(
const
QString
& );
56
void
selectionChanged();
57
58
private
:
59
QPushButton
*mOkButton;
60
};
61
62
#endif //qgsnewvectorlayerdialog_H
QObject::className
const char * className() const
QgisGui::ModalDialogFlags
static const Qt::WindowFlags ModalDialogFlags
Definition:
qgisgui.h:49
index
static unsigned index
Definition:
mersenne-twister.cpp:36
QWidget
qgscontexthelp.h
QgsNewVectorLayerDialog::on_buttonBox_helpRequested
void on_buttonBox_helpRequested()
Definition:
qgsnewvectorlayerdialog.h:54
QObject::metaObject
virtual const QMetaObject * metaObject() const
QGis::WkbType
WkbType
Used for symbology operations.
Definition:
qgis.h:56
QgsNewVectorLayerDialog
Definition:
qgsnewvectorlayerdialog.h:26
QgsContextHelp::run
static void run(const QString &context)
Definition:
qgscontexthelp.cpp:32
QString
QList
QPair< QString, QString >
QDialog
QPushButton
Qt::WindowFlags
typedef WindowFlags
qgis.h
qgisgui.h
Generated on Sat Oct 24 2015 04:11:26 for QGIS API Documentation by
1.8.9.1