QGIS/python/gui/symbology-ng/qgsstyleexportimportdialog.sip
nirvn 5e487cfea4 [FEATURE] Style management re-work and upgrade
- A new favorite grouping system was added, which the symbols list
widget defaults to
- The selected tag / smartgroup in the symbols list widget now
persists when switching layers (and across sessions)
- The symbols list widget will update the tag / smartgroup combo
box when users add / rename / remove categories
- Users can now directly tag, as well as add to favorites, symbols
while saving those to the style database
- To streamline style management, groups have been removed and
fully replaced by tags
- Tags have been integrated into the import/export user interface
2016-11-16 14:12:19 +07:00

67 lines
1.8 KiB
Plaintext

class QgsStyleExportImportDialog : QDialog
{
%TypeHeaderCode
#include <qgsstyleexportimportdialog.h>
%End
public:
enum Mode
{
Export,
Import
};
// constructor
// mode argument must be 0 for saving and 1 for loading
QgsStyleExportImportDialog( QgsStyle* style, QWidget *parent /TransferThis/ = NULL, Mode mode = Export );
~QgsStyleExportImportDialog();
/**
* @brief selectSymbols select symbols by name
* @param symbolNames list of symbol names
*/
void selectSymbols( const QStringList& symbolNames );
/**
* @brief deselectSymbols deselect symbols by name
* @param symbolNames list of symbol names
*/
void deselectSymbols( const QStringList& symbolNames );
public slots:
void doExportImport();
/**
* @brief selectByGroup open select by group dialog
*/
void selectByGroup();
/**
* @brief selectAll selects all symbols
*/
void selectAll();
/**
* @brief clearSelection deselects all symbols
*/
void clearSelection();
/**
* Select the symbols belonging to the given tag
* @param tagName the name of the tag to be selected
*/
void selectTag( const QString& tagName );
/**
* Deselect the symbols belonging to the given tag
* @param tagName the name of the tag to be deselected
*/
void deselectTag( const QString& tagName );
/**
* @brief selectSmartgroup selects all symbols from a smart group
* @param groupName
*/
void selectSmartgroup( const QString& groupName );
/**
* @brief deselectSmartgroup deselects all symbols from a smart group
* @param groupName
*/
void deselectSmartgroup( const QString& groupName );
void importTypeChanged( int );
void browse();
};