QGIS API Documentation
2.2.0-Valmiera
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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 : marco.hugentobler@autoform.ch
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. Return file name if the creation was successful
33
static
QString runAndCreateLayer( QWidget* parent = 0, QString* enc = 0 );
34
35
QgsNewVectorLayerDialog
( QWidget *parent = 0, Qt::WFlags fl =
QgisGui::ModalDialogFlags
);
36
~
QgsNewVectorLayerDialog
();
38
QGis::WkbType
selectedType()
const
;
40
void
attributes( QList< QPair<QString, QString> >& at )
const
;
42
QString selectedFileFormat()
const
;
44
int
selectedCrsId()
const
;
45
46
protected
slots:
47
void
on_mAddAttributeButton_clicked();
48
void
on_mRemoveAttributeButton_clicked();
49
void
on_mTypeBox_currentIndexChanged(
int
index
);
50
void
on_pbnChangeSpatialRefSys_clicked();
51
void
on_buttonBox_helpRequested
() {
QgsContextHelp::run
( metaObject()->className() ); }
52
void
nameChanged( QString );
53
void
selectionChanged();
54
55
private
:
56
QPushButton *
mOkButton
;
57
int
mCrsId
;
58
};
59
60
#endif //qgsnewvectorlayerdialog_H
index
static unsigned index
Definition:
mersenne-twister.cpp:36
QgsNewVectorLayerDialog::mCrsId
int mCrsId
Definition:
qgsnewvectorlayerdialog.h:57
qgscontexthelp.h
QgsNewVectorLayerDialog::on_buttonBox_helpRequested
void on_buttonBox_helpRequested()
Definition:
qgsnewvectorlayerdialog.h:51
QGis::WkbType
WkbType
Used for symbology operations.
Definition:
qgis.h:53
QgsNewVectorLayerDialog
Definition:
qgsnewvectorlayerdialog.h:26
QgisGui::ModalDialogFlags
static const Qt::WFlags ModalDialogFlags
Definition:
qgisgui.h:47
QgsNewVectorLayerDialog::mOkButton
QPushButton * mOkButton
Definition:
qgsnewvectorlayerdialog.h:56
qgis.h
qgisgui.h
QgsContextHelp::run
static void run(QString context)
Definition:
qgscontexthelp.cpp:32
Generated on Fri Mar 21 2014 14:01:20 for QGIS API Documentation by
1.8.6