QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Types | Public Slots | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
QgsStyleV2ExportImportDialog Class Reference

#include <qgsstylev2exportimportdialog.h>

Inheritance diagram for QgsStyleV2ExportImportDialog:
Inheritance graph
[legend]
Collaboration diagram for QgsStyleV2ExportImportDialog:
Collaboration graph
[legend]

Public Types

enum  Mode { Export, Import }
 

Public Slots

void doExportImport ()
 
void selectAll ()
 
void clearSelection ()
 
void importTypeChanged (int)
 
void browse ()
 

Public Member Functions

 QgsStyleV2ExportImportDialog (QgsStyleV2 *style, QWidget *parent=NULL, Mode mode=Export)
 
 ~QgsStyleV2ExportImportDialog ()
 

Private Slots

void httpFinished ()
 
void fileReadyRead ()
 
void updateProgress (qint64, qint64)
 
void downloadCanceled ()
 

Private Member Functions

void downloadStyleXML (QUrl url)
 
bool populateStyles (QgsStyleV2 *style)
 
void moveStyles (QModelIndexList *selection, QgsStyleV2 *src, QgsStyleV2 *dst)
 

Private Attributes

QProgressDialog * mProgressDlg
 
QTemporaryFile * mTempFile
 
QNetworkAccessManager * mNetManager
 
QNetworkReply * mNetReply
 
QString mFileName
 
Mode mDialogMode
 
QgsStyleV2mQgisStyle
 
QgsStyleV2mTempStyle
 

Detailed Description

Definition at line 31 of file qgsstylev2exportimportdialog.h.

Member Enumeration Documentation

Enumerator
Export 
Import 

Definition at line 36 of file qgsstylev2exportimportdialog.h.

Constructor & Destructor Documentation

QgsStyleV2ExportImportDialog::QgsStyleV2ExportImportDialog ( QgsStyleV2 style,
QWidget *  parent = NULL,
Mode  mode = Export 
)
QgsStyleV2ExportImportDialog::~QgsStyleV2ExportImportDialog ( )

Definition at line 369 of file qgsstylev2exportimportdialog.cpp.

References mTempFile, and mTempStyle.

Member Function Documentation

void QgsStyleV2ExportImportDialog::browse ( )
slot
void QgsStyleV2ExportImportDialog::clearSelection ( )
slot

Definition at line 380 of file qgsstylev2exportimportdialog.cpp.

Referenced by QgsStyleV2ExportImportDialog().

void QgsStyleV2ExportImportDialog::doExportImport ( )
slot
void QgsStyleV2ExportImportDialog::downloadCanceled ( )
privateslot

Definition at line 504 of file qgsstylev2exportimportdialog.cpp.

References mFileName, mNetReply, and mTempFile.

Referenced by downloadStyleXML().

void QgsStyleV2ExportImportDialog::downloadStyleXML ( QUrl  url)
private
void QgsStyleV2ExportImportDialog::fileReadyRead ( )
privateslot

Definition at line 493 of file qgsstylev2exportimportdialog.cpp.

References mNetReply, and mTempFile.

Referenced by downloadStyleXML().

void QgsStyleV2ExportImportDialog::httpFinished ( )
privateslot
void QgsStyleV2ExportImportDialog::importTypeChanged ( int  index)
slot

Definition at line 385 of file qgsstylev2exportimportdialog.cpp.

Referenced by QgsStyleV2ExportImportDialog().

void QgsStyleV2ExportImportDialog::moveStyles ( QModelIndexList *  selection,
QgsStyleV2 src,
QgsStyleV2 dst 
)
private
bool QgsStyleV2ExportImportDialog::populateStyles ( QgsStyleV2 style)
private
void QgsStyleV2ExportImportDialog::selectAll ( )
slot

Definition at line 375 of file qgsstylev2exportimportdialog.cpp.

Referenced by QgsStyleV2ExportImportDialog().

void QgsStyleV2ExportImportDialog::updateProgress ( qint64  bytesRead,
qint64  bytesTotal 
)
privateslot

Definition at line 498 of file qgsstylev2exportimportdialog.cpp.

References mProgressDlg.

Referenced by downloadStyleXML().

Member Data Documentation

Mode QgsStyleV2ExportImportDialog::mDialogMode
private
QString QgsStyleV2ExportImportDialog::mFileName
private
QNetworkAccessManager* QgsStyleV2ExportImportDialog::mNetManager
private
QNetworkReply* QgsStyleV2ExportImportDialog::mNetReply
private
QProgressDialog* QgsStyleV2ExportImportDialog::mProgressDlg
private
QgsStyleV2* QgsStyleV2ExportImportDialog::mQgisStyle
private

Definition at line 74 of file qgsstylev2exportimportdialog.h.

Referenced by doExportImport(), and QgsStyleV2ExportImportDialog().

QTemporaryFile* QgsStyleV2ExportImportDialog::mTempFile
private
QgsStyleV2* QgsStyleV2ExportImportDialog::mTempStyle
private

The documentation for this class was generated from the following files: