2016-08-06 11:01:42 +02:00
|
|
|
class QgsStyleExportImportDialog : QDialog
|
2013-06-22 19:37:41 +02:00
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
2016-08-07 17:33:22 +02:00
|
|
|
#include <qgsstyleexportimportdialog.h>
|
2013-06-22 19:37:41 +02:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
enum Mode
|
|
|
|
{
|
|
|
|
Export,
|
|
|
|
Import
|
|
|
|
};
|
|
|
|
|
|
|
|
// constructor
|
|
|
|
// mode argument must be 0 for saving and 1 for loading
|
2016-08-06 11:01:42 +02:00
|
|
|
QgsStyleExportImportDialog( QgsStyle* style, QWidget *parent /TransferThis/ = NULL, Mode mode = Export );
|
|
|
|
~QgsStyleExportImportDialog();
|
2013-06-22 19:37:41 +02:00
|
|
|
|
2015-10-28 17:31:21 +01:00
|
|
|
/**
|
|
|
|
* @brief selectSymbols select symbols by name
|
|
|
|
* @param symbolNames list of symbol names
|
|
|
|
*/
|
2016-02-14 03:50:23 +01:00
|
|
|
void selectSymbols( const QStringList& symbolNames );
|
2015-10-28 17:31:21 +01:00
|
|
|
/**
|
|
|
|
* @brief deselectSymbols deselect symbols by name
|
|
|
|
* @param symbolNames list of symbol names
|
|
|
|
*/
|
2016-02-14 03:50:23 +01:00
|
|
|
void deselectSymbols( const QStringList& symbolNames );
|
2015-10-28 17:31:21 +01:00
|
|
|
|
2013-06-22 19:37:41 +02:00
|
|
|
public slots:
|
|
|
|
void doExportImport();
|
2015-10-28 17:31:21 +01:00
|
|
|
/**
|
|
|
|
* @brief selectByGroup open select by group dialog
|
|
|
|
*/
|
|
|
|
void selectByGroup();
|
|
|
|
/**
|
|
|
|
* @brief selectAll selects all symbols
|
|
|
|
*/
|
2013-06-22 19:37:41 +02:00
|
|
|
void selectAll();
|
2015-10-28 17:31:21 +01:00
|
|
|
/**
|
|
|
|
* @brief clearSelection deselects all symbols
|
|
|
|
*/
|
2013-06-22 19:37:41 +02:00
|
|
|
void clearSelection();
|
2015-10-28 17:31:21 +01:00
|
|
|
/**
|
|
|
|
* Select the symbols belonging to the given group
|
|
|
|
* @param groupName the name of the group to be selected
|
|
|
|
*/
|
2015-11-16 09:10:26 +11:00
|
|
|
void selectGroup( const QString& groupName );
|
2015-10-28 17:31:21 +01:00
|
|
|
/**
|
2016-02-02 13:23:26 +11:00
|
|
|
* Deselect the symbols belonging to the given group
|
2015-10-28 17:31:21 +01:00
|
|
|
* @param groupName the name of the group to be deselected
|
|
|
|
*/
|
2016-02-14 03:50:23 +01:00
|
|
|
void deselectGroup( const QString& groupName );
|
2015-10-28 17:31:21 +01:00
|
|
|
/**
|
|
|
|
* @brief selectSmartgroup selects all symbols from a smart group
|
|
|
|
* @param groupName
|
|
|
|
*/
|
2016-02-14 03:50:23 +01:00
|
|
|
void selectSmartgroup( const QString& groupName );
|
2015-10-28 17:31:21 +01:00
|
|
|
/**
|
|
|
|
* @brief deselectSmartgroup deselects all symbols from a smart group
|
|
|
|
* @param groupName
|
|
|
|
*/
|
2016-02-14 03:50:23 +01:00
|
|
|
void deselectSmartgroup( const QString& groupName );
|
2013-06-22 19:37:41 +02:00
|
|
|
|
|
|
|
void importTypeChanged( int );
|
|
|
|
void browse();
|
|
|
|
};
|