mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
sipiy gui symbology
This commit is contained in:
parent
58674146af
commit
00b2d24247
@ -41,38 +41,6 @@ core/composer/qgspaperitem.sip
|
|||||||
core/composer/qgsscalebarstyle.sip
|
core/composer/qgsscalebarstyle.sip
|
||||||
core/composer/qgssingleboxscalebarstyle.sip
|
core/composer/qgssingleboxscalebarstyle.sip
|
||||||
core/composer/qgsticksscalebarstyle.sip
|
core/composer/qgsticksscalebarstyle.sip
|
||||||
gui/symbology-ng/qgs25drendererwidget.sip
|
|
||||||
gui/symbology-ng/qgsarrowsymbollayerwidget.sip
|
|
||||||
gui/symbology-ng/qgsbrushstylecombobox.sip
|
|
||||||
gui/symbology-ng/qgscategorizedsymbolrendererwidget.sip
|
|
||||||
gui/symbology-ng/qgscptcitycolorrampdialog.sip
|
|
||||||
gui/symbology-ng/qgsdashspacedialog.sip
|
|
||||||
gui/symbology-ng/qgsellipsesymbollayerwidget.sip
|
|
||||||
gui/symbology-ng/qgsgraduatedhistogramwidget.sip
|
|
||||||
gui/symbology-ng/qgsgraduatedsymbolrendererwidget.sip
|
|
||||||
gui/symbology-ng/qgsheatmaprendererwidget.sip
|
|
||||||
gui/symbology-ng/qgsinvertedpolygonrendererwidget.sip
|
|
||||||
gui/symbology-ng/qgslayerpropertieswidget.sip
|
|
||||||
gui/symbology-ng/qgsnullsymbolrendererwidget.sip
|
|
||||||
gui/symbology-ng/qgspenstylecombobox.sip
|
|
||||||
gui/symbology-ng/qgspointclusterrendererwidget.sip
|
|
||||||
gui/symbology-ng/qgspointdisplacementrendererwidget.sip
|
|
||||||
gui/symbology-ng/qgsrendererpropertiesdialog.sip
|
|
||||||
gui/symbology-ng/qgsrendererwidget.sip
|
|
||||||
gui/symbology-ng/qgsrulebasedrendererwidget.sip
|
|
||||||
gui/symbology-ng/qgssinglesymbolrendererwidget.sip
|
|
||||||
gui/symbology-ng/qgssmartgroupeditordialog.sip
|
|
||||||
gui/symbology-ng/qgsstyleexportimportdialog.sip
|
|
||||||
gui/symbology-ng/qgsstylegroupselectiondialog.sip
|
|
||||||
gui/symbology-ng/qgsstylemanagerdialog.sip
|
|
||||||
gui/symbology-ng/qgsstylesavedialog.sip
|
|
||||||
gui/symbology-ng/qgssvgselectorwidget.sip
|
|
||||||
gui/symbology-ng/qgssymbollayerwidget.sip
|
|
||||||
gui/symbology-ng/qgssymbollevelsdialog.sip
|
|
||||||
gui/symbology-ng/qgssymbolslistwidget.sip
|
|
||||||
gui/symbology-ng/qgssymbolselectordialog.sip
|
|
||||||
gui/symbology-ng/qgssymbolwidgetcontext.sip
|
|
||||||
gui/symbology-ng/qgsvectorfieldsymbollayerwidget.sip
|
|
||||||
analysis/vector/qgsgeometryanalyzer.sip
|
analysis/vector/qgsgeometryanalyzer.sip
|
||||||
analysis/vector/qgsgeometrysnapper.sip
|
analysis/vector/qgsgeometrysnapper.sip
|
||||||
analysis/vector/qgspointsample.sip
|
analysis/vector/qgspointsample.sip
|
||||||
|
@ -89,8 +89,12 @@ Logs the message passed in to the logfile defined in QGIS_LOG_FILE if any. *
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class QgsScopeLogger // clazy:exclude=rule-of-three
|
class QgsScopeLogger
|
||||||
{
|
{
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgslogger.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsScopeLogger( const char *file, const char *func, int line );
|
QgsScopeLogger( const char *file, const char *func, int line );
|
||||||
~QgsScopeLogger();
|
~QgsScopeLogger();
|
||||||
|
@ -54,8 +54,8 @@ class QgsTextPreview : QLabel
|
|||||||
|
|
||||||
void setScale( double scale );
|
void setScale( double scale );
|
||||||
%Docstring
|
%Docstring
|
||||||
Sets the scale to use for previewing format sizes in map units.
|
Sets the ``scale`` to use for previewing format sizes in map units.
|
||||||
\param scale preview map scale
|
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
|
||||||
.. seealso:: scale()
|
.. seealso:: scale()
|
||||||
.. seealso:: setMapUnits()
|
.. seealso:: setMapUnits()
|
||||||
%End
|
%End
|
||||||
@ -63,6 +63,7 @@ class QgsTextPreview : QLabel
|
|||||||
double scale() const;
|
double scale() const;
|
||||||
%Docstring
|
%Docstring
|
||||||
Returns the scale used for previewing format sizes in map units.
|
Returns the scale used for previewing format sizes in map units.
|
||||||
|
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
|
||||||
.. seealso:: setScale()
|
.. seealso:: setScale()
|
||||||
.. seealso:: mapUnits()
|
.. seealso:: mapUnits()
|
||||||
:rtype: float
|
:rtype: float
|
||||||
|
@ -1,42 +1,50 @@
|
|||||||
/***************************************************************************
|
/************************************************************************
|
||||||
qgs25drendererwidget.sip - Qgs25DRendererWidget
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgs25drendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
---------------------
|
|
||||||
begin : 14.1.2016
|
|
||||||
copyright : (C) 2016 by Matthias Kuhn
|
|
||||||
email : matthias@opengis.ch
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* This program is free software; you can redistribute it and/or modify *
|
|
||||||
* it under the terms of the GNU General Public License as published by *
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or *
|
|
||||||
* (at your option) any later version. *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
|
||||||
|
|
||||||
class Qgs25DRendererWidget : QgsRendererWidget
|
|
||||||
|
class Qgs25DRendererWidget : QgsRendererWidget, protected Ui::Qgs25DRendererWidgetBase
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include "qgs25drendererwidget.h"
|
#include "qgs25drendererwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
/** Static creation method
|
|
||||||
* @param layer the layer where this renderer is applied
|
|
||||||
* @param style
|
|
||||||
* @param renderer the mask renderer (will take ownership)
|
|
||||||
*/
|
|
||||||
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer /Transfer/ ) /Factory/;
|
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer /Transfer/ ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
Static creation method
|
||||||
|
\param layer the layer where this renderer is applied
|
||||||
|
\param style
|
||||||
|
\param renderer the mask renderer (will not take ownership)
|
||||||
|
:rtype: QgsRendererWidget
|
||||||
|
%End
|
||||||
|
|
||||||
/** Constructor
|
|
||||||
* @param layer the layer where this renderer is applied
|
|
||||||
* @param style
|
|
||||||
* @param renderer the mask renderer (will take ownership)
|
|
||||||
*/
|
|
||||||
Qgs25DRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer /Transfer/ );
|
Qgs25DRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer /Transfer/ );
|
||||||
|
%Docstring
|
||||||
|
Constructor
|
||||||
|
\param layer the layer where this renderer is applied
|
||||||
|
\param style
|
||||||
|
\param renderer the mask renderer (will not take ownership)
|
||||||
|
%End
|
||||||
|
|
||||||
|
virtual QgsFeatureRenderer *renderer();
|
||||||
|
|
||||||
QgsFeatureRenderer *renderer();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void apply();
|
virtual void apply() ;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgs25drendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,22 +1,44 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsarrowsymbollayerwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsArrowSymbolLayerWidget: QgsSymbolLayerWidget
|
class QgsArrowSymbolLayerWidget: QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgsarrowsymbollayerwidget.h>
|
#include "qgsarrowsymbollayerwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
/** Constructor
|
|
||||||
* @param layer the layer where this symbol layer is applied
|
|
||||||
* @param parent the parent widget
|
|
||||||
*/
|
|
||||||
QgsArrowSymbolLayerWidget( const QgsVectorLayer *layer, QWidget *parent /TransferThis/ = 0 );
|
QgsArrowSymbolLayerWidget( const QgsVectorLayer *layer, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
%Docstring
|
||||||
|
Constructor
|
||||||
|
\param layer the layer where this symbol layer is applied
|
||||||
|
\param parent the parent widget
|
||||||
|
%End
|
||||||
|
|
||||||
/** Static creation method
|
|
||||||
* @param layer the layer where this symbol layer is applied
|
|
||||||
*/
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *layer ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *layer ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
Static creation method
|
||||||
|
\param layer the layer where this symbol layer is applied
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
/** Set the symbol layer */
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
/** Get the current symbol layer */
|
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsarrowsymbollayerwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,17 +1,41 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsbrushstylecombobox.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsBrushStyleComboBox : QComboBox
|
class QgsBrushStyleComboBox : QComboBox
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgsbrushstylecombobox.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgsbrushstylecombobox.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsBrushStyleComboBox( QWidget *parent /TransferThis/ = NULL );
|
QgsBrushStyleComboBox( QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
Qt::BrushStyle brushStyle() const;
|
Qt::BrushStyle brushStyle() const;
|
||||||
|
%Docstring
|
||||||
|
:rtype: Qt.BrushStyle
|
||||||
|
%End
|
||||||
|
|
||||||
void setBrushStyle( Qt::BrushStyle style );
|
void setBrushStyle( Qt::BrushStyle style );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QIcon iconForBrush( Qt::BrushStyle style );
|
QIcon iconForBrush( Qt::BrushStyle style );
|
||||||
|
%Docstring
|
||||||
|
:rtype: QIcon
|
||||||
|
%End
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsbrushstylecombobox.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,26 +1,44 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgscategorizedsymbolrendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsCategorizedSymbolRendererWidget : QgsRendererWidget
|
class QgsCategorizedSymbolRendererWidget : QgsRendererWidget
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgscategorizedsymbolrendererwidget.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgscategorizedsymbolrendererwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsRendererWidget
|
||||||
|
%End
|
||||||
|
|
||||||
QgsCategorizedSymbolRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
QgsCategorizedSymbolRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
||||||
~QgsCategorizedSymbolRendererWidget();
|
~QgsCategorizedSymbolRendererWidget();
|
||||||
|
|
||||||
virtual QgsFeatureRenderer *renderer();
|
virtual QgsFeatureRenderer *renderer();
|
||||||
|
|
||||||
/** Replaces category symbols with the symbols from a style that have a matching
|
|
||||||
* name.
|
|
||||||
* @param style style containing symbols to match with
|
|
||||||
* @return number of symbols matched
|
|
||||||
* @see matchToSymbolsFromLibrary
|
|
||||||
* @see matchToSymbolsFromXml
|
|
||||||
* @note added in QGIS 2.9
|
|
||||||
*/
|
|
||||||
int matchToSymbols( QgsStyle *style );
|
int matchToSymbols( QgsStyle *style );
|
||||||
|
%Docstring
|
||||||
|
Replaces category symbols with the symbols from a style that have a matching
|
||||||
|
name.
|
||||||
|
\param style style containing symbols to match with
|
||||||
|
:return: number of symbols matched
|
||||||
|
.. seealso:: matchToSymbolsFromLibrary
|
||||||
|
.. seealso:: matchToSymbolsFromXml
|
||||||
|
.. versionadded:: 2.9
|
||||||
|
:rtype: int
|
||||||
|
%End
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void changeCategorizedSymbol();
|
void changeCategorizedSymbol();
|
||||||
@ -28,7 +46,12 @@ class QgsCategorizedSymbolRendererWidget : QgsRendererWidget
|
|||||||
void categoriesDoubleClicked( const QModelIndex &idx );
|
void categoriesDoubleClicked( const QModelIndex &idx );
|
||||||
void addCategory();
|
void addCategory();
|
||||||
void addCategories();
|
void addCategories();
|
||||||
|
|
||||||
void applyColorRamp();
|
void applyColorRamp();
|
||||||
|
%Docstring
|
||||||
|
Applies the color ramp passed on by the color ramp button
|
||||||
|
%End
|
||||||
|
|
||||||
void deleteCategories();
|
void deleteCategories();
|
||||||
void deleteAllCategories();
|
void deleteAllCategories();
|
||||||
|
|
||||||
@ -36,21 +59,23 @@ class QgsCategorizedSymbolRendererWidget : QgsRendererWidget
|
|||||||
|
|
||||||
void rowsMoved();
|
void rowsMoved();
|
||||||
|
|
||||||
/** Replaces category symbols with the symbols from the users' symbol library that have a
|
|
||||||
* matching name.
|
|
||||||
* @see matchToSymbolsFromXml
|
|
||||||
* @see matchToSymbols
|
|
||||||
* @note added in QGIS 2.9
|
|
||||||
*/
|
|
||||||
void matchToSymbolsFromLibrary();
|
void matchToSymbolsFromLibrary();
|
||||||
|
%Docstring
|
||||||
|
Replaces category symbols with the symbols from the users' symbol library that have a
|
||||||
|
matching name.
|
||||||
|
.. seealso:: matchToSymbolsFromXml
|
||||||
|
.. seealso:: matchToSymbols
|
||||||
|
.. versionadded:: 2.9
|
||||||
|
%End
|
||||||
|
|
||||||
/** Prompts for selection of an xml file, then replaces category symbols with the symbols
|
|
||||||
* from the XML file with a matching name.
|
|
||||||
* @see matchToSymbolsFromLibrary
|
|
||||||
* @see matchToSymbols
|
|
||||||
* @note added in QGIS 2.9
|
|
||||||
*/
|
|
||||||
void matchToSymbolsFromXml();
|
void matchToSymbolsFromXml();
|
||||||
|
%Docstring
|
||||||
|
Prompts for selection of an xml file, then replaces category symbols with the symbols
|
||||||
|
from the XML file with a matching name.
|
||||||
|
.. seealso:: matchToSymbolsFromLibrary
|
||||||
|
.. seealso:: matchToSymbols
|
||||||
|
.. versionadded:: 2.9
|
||||||
|
%End
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
@ -58,22 +83,48 @@ class QgsCategorizedSymbolRendererWidget : QgsRendererWidget
|
|||||||
|
|
||||||
void updateCategorizedSymbolIcon();
|
void updateCategorizedSymbolIcon();
|
||||||
|
|
||||||
// Called by virtual refreshSymbolView()
|
|
||||||
void populateCategories();
|
void populateCategories();
|
||||||
|
|
||||||
//! return row index for the currently selected category (-1 if on no selection)
|
|
||||||
int currentCategoryRow();
|
int currentCategoryRow();
|
||||||
|
%Docstring
|
||||||
|
return row index for the currently selected category (-1 if on no selection)
|
||||||
|
:rtype: int
|
||||||
|
%End
|
||||||
|
|
||||||
//! return a list of indexes for the categories unders selection
|
|
||||||
QList<int> selectedCategories();
|
QList<int> selectedCategories();
|
||||||
|
%Docstring
|
||||||
|
return a list of indexes for the categories unders selection
|
||||||
|
:rtype: list of int
|
||||||
|
%End
|
||||||
|
|
||||||
//! change the selected symbols alone for the change button, if there is a selection
|
|
||||||
void changeSelectedSymbols();
|
void changeSelectedSymbols();
|
||||||
|
%Docstring
|
||||||
|
change the selected symbols alone for the change button, if there is a selection
|
||||||
|
%End
|
||||||
|
|
||||||
void changeCategorySymbol();
|
void changeCategorySymbol();
|
||||||
|
|
||||||
QList<QgsSymbol*> selectedSymbols();
|
virtual QList<QgsSymbol *> selectedSymbols();
|
||||||
|
|
||||||
QgsCategoryList selectedCategoryList();
|
QgsCategoryList selectedCategoryList();
|
||||||
void refreshSymbolView();
|
%Docstring
|
||||||
void keyPressEvent( QKeyEvent *event );
|
:rtype: QgsCategoryList
|
||||||
|
%End
|
||||||
|
virtual void refreshSymbolView();
|
||||||
|
|
||||||
|
virtual void keyPressEvent( QKeyEvent *event );
|
||||||
|
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgscategorizedsymbolrendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,46 +1,79 @@
|
|||||||
/** \ingroup gui
|
/************************************************************************
|
||||||
* \class QgsCptCityColorRampDialog
|
* This file has been generated automatically from *
|
||||||
* A dialog which allows users to modify the properties of a QgsCptCityColorRamp.
|
* *
|
||||||
* \note added in QGIS 3.0
|
* src/gui/symbology-ng/qgscptcitycolorrampdialog.h *
|
||||||
*/
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsCptCityColorRampDialog : QDialog
|
class QgsCptCityColorRampDialog : QDialog
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
%Docstring
|
||||||
#include <qgscptcitycolorrampdialog.h>
|
A dialog which allows users to modify the properties of a QgsCptCityColorRamp.
|
||||||
|
.. versionadded:: 3.0
|
||||||
%End
|
%End
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgscptcitycolorrampdialog.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/** Constructor for QgsCptCityColorRampDialog.
|
|
||||||
* @param ramp initial ramp to show in dialog
|
|
||||||
* @param parent parent widget
|
|
||||||
*/
|
|
||||||
QgsCptCityColorRampDialog( const QgsCptCityColorRamp &ramp, QWidget *parent /TransferThis/ = 0 );
|
QgsCptCityColorRampDialog( const QgsCptCityColorRamp &ramp, QWidget *parent /TransferThis/ = 0 );
|
||||||
~QgsCptCityColorRampDialog();
|
%Docstring
|
||||||
|
Constructor for QgsCptCityColorRampDialog.
|
||||||
|
\param ramp initial ramp to show in dialog
|
||||||
|
\param parent parent widget
|
||||||
|
%End
|
||||||
|
|
||||||
/** Returns a color ramp representing the current settings from the dialog.
|
|
||||||
* @see setRamp()
|
|
||||||
*/
|
|
||||||
QgsCptCityColorRamp ramp() const;
|
QgsCptCityColorRamp ramp() const;
|
||||||
|
%Docstring
|
||||||
|
Returns a color ramp representing the current settings from the dialog.
|
||||||
|
.. seealso:: setRamp()
|
||||||
|
:rtype: QgsCptCityColorRamp
|
||||||
|
%End
|
||||||
|
|
||||||
/** Sets the color ramp to show in the dialog.
|
|
||||||
* @param ramp color ramp
|
|
||||||
* @see ramp()
|
|
||||||
*/
|
|
||||||
void setRamp( const QgsCptCityColorRamp &ramp );
|
void setRamp( const QgsCptCityColorRamp &ramp );
|
||||||
|
%Docstring
|
||||||
|
Sets the color ramp to show in the dialog.
|
||||||
|
\param ramp color ramp
|
||||||
|
.. seealso:: ramp()
|
||||||
|
%End
|
||||||
|
|
||||||
/** Returns the name of the ramp currently selected in the dialog.
|
|
||||||
*/
|
|
||||||
QString selectedName() const;
|
QString selectedName() const;
|
||||||
|
%Docstring
|
||||||
|
Returns the name of the ramp currently selected in the dialog.
|
||||||
|
:rtype: str
|
||||||
|
%End
|
||||||
|
|
||||||
/** Returns true if the ramp should be converted to a QgsGradientColorRamp.
|
|
||||||
*/
|
|
||||||
bool saveAsGradientRamp() const;
|
bool saveAsGradientRamp() const;
|
||||||
|
%Docstring
|
||||||
|
Returns true if the ramp should be converted to a QgsGradientColorRamp.
|
||||||
|
:rtype: bool
|
||||||
|
%End
|
||||||
|
|
||||||
|
virtual bool eventFilter( QObject *obj, QEvent *event );
|
||||||
|
|
||||||
bool eventFilter( QObject *obj, QEvent *event );
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
//! Emitted when the dialog settings change
|
|
||||||
void changed();
|
void changed();
|
||||||
|
%Docstring
|
||||||
|
Emitted when the dialog settings change
|
||||||
|
%End
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgscptcitycolorrampdialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,11 +1,36 @@
|
|||||||
class QgsDashSpaceDialog : QDialog
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsdashspacedialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class QgsDashSpaceDialog: QDialog
|
||||||
{
|
{
|
||||||
|
%Docstring
|
||||||
|
A dialog to enter a custom dash space pattern for lines
|
||||||
|
%End
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgsdashspacedialog.h>
|
#include "qgsdashspacedialog.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
QgsDashSpaceDialog( const QVector<qreal> &v, QWidget *parent /TransferThis/ = 0, const Qt::WindowFlags &f = 0 );
|
QgsDashSpaceDialog( const QVector<qreal> &v, QWidget *parent /TransferThis/ = 0, Qt::WindowFlags f = 0 );
|
||||||
~QgsDashSpaceDialog();
|
|
||||||
|
|
||||||
QVector<qreal> dashDotVector() const;
|
QVector<qreal> dashDotVector() const;
|
||||||
|
%Docstring
|
||||||
|
:rtype: list of qreal
|
||||||
|
%End
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsdashspacedialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,14 +1,38 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsellipsesymbollayerwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsEllipseSymbolLayerWidget: QgsSymbolLayerWidget
|
class QgsEllipseSymbolLayerWidget: QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgsellipsesymbollayerwidget.h>
|
#include "qgsellipsesymbollayerwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
QgsEllipseSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
QgsEllipseSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
// from base class
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsellipsesymbollayerwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,42 +1,63 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsgraduatedhistogramwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
/** \ingroup gui
|
|
||||||
* \class QgsGraduatedHistogramWidget
|
|
||||||
* \brief Graphical histogram for displaying distribution of field values and
|
|
||||||
* editing range breaks for a QgsGraduatedSymbolRenderer renderer.
|
|
||||||
*
|
|
||||||
* \note Added in version 2.9
|
|
||||||
*/
|
|
||||||
|
|
||||||
class QgsGraduatedHistogramWidget : QWidget
|
|
||||||
|
|
||||||
|
|
||||||
|
class QgsGraduatedHistogramWidget : QgsHistogramWidget
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
%Docstring
|
||||||
#include <qgsgraduatedhistogramwidget.h>
|
Graphical histogram for displaying distribution of field values and
|
||||||
|
editing range breaks for a QgsGraduatedSymbolRenderer renderer.
|
||||||
|
|
||||||
|
.. versionadded:: 2.9
|
||||||
%End
|
%End
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgsgraduatedhistogramwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/** QgsGraduatedHistogramWidget constructor
|
|
||||||
* @param parent parent widget
|
|
||||||
*/
|
|
||||||
QgsGraduatedHistogramWidget( QWidget *parent /TransferThis/ = 0 );
|
QgsGraduatedHistogramWidget( QWidget *parent /TransferThis/ = 0 );
|
||||||
~QgsGraduatedHistogramWidget();
|
%Docstring
|
||||||
|
QgsGraduatedHistogramWidget constructor
|
||||||
|
\param parent parent widget
|
||||||
|
%End
|
||||||
|
|
||||||
/** Sets the QgsGraduatedSymbolRenderer renderer associated with the histogram.
|
|
||||||
* The histogram will fetch the ranges from the renderer before every refresh.
|
|
||||||
* @param renderer associated QgsGraduatedSymbolRenderer
|
|
||||||
*/
|
|
||||||
void setRenderer( QgsGraduatedSymbolRenderer *renderer );
|
void setRenderer( QgsGraduatedSymbolRenderer *renderer );
|
||||||
|
%Docstring
|
||||||
|
Sets the QgsGraduatedSymbolRenderer renderer associated with the histogram.
|
||||||
|
The histogram will fetch the ranges from the renderer before every refresh.
|
||||||
|
\param renderer associated QgsGraduatedSymbolRenderer
|
||||||
|
%End
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
/** Emitted when the user modifies the graduated ranges using the histogram widget.
|
|
||||||
* @param rangesAdded true if the user has added ranges, false if the user has just
|
|
||||||
* modified existing range breaks
|
|
||||||
*/
|
|
||||||
void rangesModified( bool rangesAdded );
|
void rangesModified( bool rangesAdded );
|
||||||
|
%Docstring
|
||||||
|
Emitted when the user modifies the graduated ranges using the histogram widget.
|
||||||
|
\param rangesAdded true if the user has added ranges, false if the user has just
|
||||||
|
modified existing range breaks
|
||||||
|
%End
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
virtual void drawHistogram();
|
virtual void drawHistogram();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsgraduatedhistogramwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,10 +1,26 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsgraduatedsymbolrendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsGraduatedSymbolRendererWidget : QgsRendererWidget
|
class QgsGraduatedSymbolRendererWidget : QgsRendererWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgsgraduatedsymbolrendererwidget.h>
|
#include "qgsgraduatedsymbolrendererwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsRendererWidget
|
||||||
|
%End
|
||||||
|
|
||||||
QgsGraduatedSymbolRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
QgsGraduatedSymbolRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
||||||
~QgsGraduatedSymbolRendererWidget();
|
~QgsGraduatedSymbolRendererWidget();
|
||||||
@ -21,14 +37,22 @@ class QgsGraduatedSymbolRendererWidget : QgsRendererWidget
|
|||||||
void rangesClicked( const QModelIndex &idx );
|
void rangesClicked( const QModelIndex &idx );
|
||||||
void changeCurrentValue( QStandardItem *item );
|
void changeCurrentValue( QStandardItem *item );
|
||||||
|
|
||||||
/** Adds a class manually to the classification*/
|
|
||||||
void addClass();
|
void addClass();
|
||||||
/** Removes currently selected classes */
|
%Docstring
|
||||||
|
Adds a class manually to the classification
|
||||||
|
%End
|
||||||
void deleteClasses();
|
void deleteClasses();
|
||||||
/** Removes all classes from the classification*/
|
%Docstring
|
||||||
|
Removes currently selected classes
|
||||||
|
%End
|
||||||
void deleteAllClasses();
|
void deleteAllClasses();
|
||||||
/** Toggle the link between classes boundaries */
|
%Docstring
|
||||||
|
Removes all classes from the classification
|
||||||
|
%End
|
||||||
void toggleBoundariesLink( bool linked );
|
void toggleBoundariesLink( bool linked );
|
||||||
|
%Docstring
|
||||||
|
Toggle the link between classes boundaries
|
||||||
|
%End
|
||||||
|
|
||||||
void labelFormatChanged();
|
void labelFormatChanged();
|
||||||
|
|
||||||
@ -36,7 +60,6 @@ class QgsGraduatedSymbolRendererWidget : QgsRendererWidget
|
|||||||
|
|
||||||
void rowsMoved();
|
void rowsMoved();
|
||||||
void modelDataChanged();
|
void modelDataChanged();
|
||||||
|
|
||||||
void on_mSizeUnitWidget_changed();
|
void on_mSizeUnitWidget_changed();
|
||||||
void on_methodComboBox_currentIndexChanged( int );
|
void on_methodComboBox_currentIndexChanged( int );
|
||||||
void refreshRanges( bool reset = false );
|
void refreshRanges( bool reset = false );
|
||||||
@ -46,21 +69,46 @@ class QgsGraduatedSymbolRendererWidget : QgsRendererWidget
|
|||||||
void connectUpdateHandlers();
|
void connectUpdateHandlers();
|
||||||
void disconnectUpdateHandlers();
|
void disconnectUpdateHandlers();
|
||||||
bool rowsOrdered();
|
bool rowsOrdered();
|
||||||
|
%Docstring
|
||||||
|
:rtype: bool
|
||||||
|
%End
|
||||||
|
|
||||||
void updateGraduatedSymbolIcon();
|
void updateGraduatedSymbolIcon();
|
||||||
|
|
||||||
//! return a list of indexes for the classes under selection
|
|
||||||
QList<int> selectedClasses();
|
QList<int> selectedClasses();
|
||||||
|
%Docstring
|
||||||
|
return a list of indexes for the classes under selection
|
||||||
|
:rtype: list of int
|
||||||
|
%End
|
||||||
QgsRangeList selectedRanges();
|
QgsRangeList selectedRanges();
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsRangeList
|
||||||
|
%End
|
||||||
|
|
||||||
void changeRangeSymbol( int rangeIdx );
|
void changeRangeSymbol( int rangeIdx );
|
||||||
void changeRange( int rangeIdx );
|
void changeRange( int rangeIdx );
|
||||||
|
|
||||||
void changeSelectedSymbols();
|
void changeSelectedSymbols();
|
||||||
|
|
||||||
QList<QgsSymbol*> selectedSymbols();
|
virtual QList<QgsSymbol *> selectedSymbols();
|
||||||
QgsSymbol *findSymbolForRange( double lowerBound, double upperBound, const QgsRangeList &ranges ) const;
|
|
||||||
void refreshSymbolView();
|
QgsSymbol *findSymbolForRange( double lowerBound, double upperBound, const QgsRangeList &ranges ) const;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbol
|
||||||
|
%End
|
||||||
|
virtual void refreshSymbolView();
|
||||||
|
|
||||||
|
|
||||||
|
virtual void keyPressEvent( QKeyEvent *event );
|
||||||
|
|
||||||
|
|
||||||
void keyPressEvent( QKeyEvent *event );
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsgraduatedsymbolrendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,25 +1,48 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsheatmaprendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsHeatmapRendererWidget : QgsRendererWidget
|
class QgsHeatmapRendererWidget : QgsRendererWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgsheatmaprendererwidget.h>
|
#include "qgsheatmaprendererwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
/** Static creation method
|
|
||||||
* @param layer the layer where this renderer is applied
|
|
||||||
* @param style
|
|
||||||
* @param renderer the mask renderer (will take ownership)
|
|
||||||
*/
|
|
||||||
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
Static creation method
|
||||||
|
\param layer the layer where this renderer is applied
|
||||||
|
\param style
|
||||||
|
\param renderer the mask renderer (will not take ownership)
|
||||||
|
:rtype: QgsRendererWidget
|
||||||
|
%End
|
||||||
|
|
||||||
/** Constructor
|
|
||||||
* @param layer the layer where this renderer is applied
|
|
||||||
* @param style
|
|
||||||
* @param renderer the mask renderer (will take ownership)
|
|
||||||
*/
|
|
||||||
QgsHeatmapRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
QgsHeatmapRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
||||||
|
%Docstring
|
||||||
|
Constructor
|
||||||
|
\param layer the layer where this renderer is applied
|
||||||
|
\param style
|
||||||
|
\param renderer the mask renderer (will not take ownership)
|
||||||
|
%End
|
||||||
|
|
||||||
/** @returns the current feature renderer */
|
|
||||||
virtual QgsFeatureRenderer *renderer();
|
virtual QgsFeatureRenderer *renderer();
|
||||||
|
|
||||||
virtual void setContext( const QgsSymbolWidgetContext &context );
|
virtual void setContext( const QgsSymbolWidgetContext &context );
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsheatmaprendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,24 +1,57 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsinvertedpolygonrendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsInvertedPolygonRendererWidget : QgsRendererWidget
|
class QgsInvertedPolygonRendererWidget : QgsRendererWidget
|
||||||
{
|
{
|
||||||
|
%Docstring
|
||||||
|
A widget used represent options of a QgsInvertedPolygonRenderer
|
||||||
|
|
||||||
|
.. versionadded:: 2.4
|
||||||
|
%End
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgsinvertedpolygonrendererwidget.h>
|
#include "qgsinvertedpolygonrendererwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
/** Static creation method
|
|
||||||
* @param layer the layer where this renderer is applied
|
|
||||||
* @param style
|
|
||||||
* @param renderer the mask renderer (will take ownership)
|
|
||||||
*/
|
|
||||||
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
Static creation method
|
||||||
|
\param layer the layer where this renderer is applied
|
||||||
|
\param style
|
||||||
|
\param renderer the mask renderer (will not take ownership)
|
||||||
|
:rtype: QgsRendererWidget
|
||||||
|
%End
|
||||||
|
|
||||||
/** Constructor
|
|
||||||
* @param layer the layer where this renderer is applied
|
|
||||||
* @param style
|
|
||||||
* @param renderer the mask renderer (will take ownership)
|
|
||||||
*/
|
|
||||||
QgsInvertedPolygonRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
QgsInvertedPolygonRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
||||||
|
%Docstring
|
||||||
|
Constructor
|
||||||
|
\param layer the layer where this renderer is applied
|
||||||
|
\param style
|
||||||
|
\param renderer the mask renderer (will not take ownership)
|
||||||
|
%End
|
||||||
|
|
||||||
/** @returns the current feature renderer */
|
|
||||||
virtual QgsFeatureRenderer *renderer();
|
virtual QgsFeatureRenderer *renderer();
|
||||||
|
|
||||||
virtual void setContext( const QgsSymbolWidgetContext &context );
|
virtual void setContext( const QgsSymbolWidgetContext &context );
|
||||||
|
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsinvertedpolygonrendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,25 +1,47 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgslayerpropertieswidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsLayerPropertiesWidget : QgsPanelWidget, QgsExpressionContextGenerator
|
class QgsLayerPropertiesWidget : QgsPanelWidget, QgsExpressionContextGenerator
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgslayerpropertieswidget.h>
|
#include "qgslayerpropertieswidget.h"
|
||||||
|
%End
|
||||||
|
public:
|
||||||
|
QgsLayerPropertiesWidget( QgsSymbolLayer *layer, const QgsSymbol *symbol, const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
|
void setContext( const QgsSymbolWidgetContext &context );
|
||||||
|
%Docstring
|
||||||
|
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
||||||
|
\param context symbol widget context
|
||||||
|
.. seealso:: context()
|
||||||
|
.. versionadded:: 3.0
|
||||||
%End
|
%End
|
||||||
|
|
||||||
public:
|
|
||||||
QgsLayerPropertiesWidget( QgsSymbolLayer *layer, const QgsSymbol *symbol, const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = NULL );
|
|
||||||
|
|
||||||
/** Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
|
||||||
* @param context symbol widget context
|
|
||||||
* @see context()
|
|
||||||
* @note added in QGIS 3.0
|
|
||||||
*/
|
|
||||||
void setContext( const QgsSymbolWidgetContext &context );
|
|
||||||
|
|
||||||
/** Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
|
||||||
* @see setContext()
|
|
||||||
* @note added in QGIS 3.0
|
|
||||||
*/
|
|
||||||
QgsSymbolWidgetContext context() const;
|
QgsSymbolWidgetContext context() const;
|
||||||
|
%Docstring
|
||||||
|
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
||||||
|
.. seealso:: setContext()
|
||||||
|
.. versionadded:: 3.0
|
||||||
|
:rtype: QgsSymbolWidgetContext
|
||||||
|
%End
|
||||||
|
|
||||||
|
virtual void setDockMode( bool dockMode );
|
||||||
|
%Docstring
|
||||||
|
Set the widget in dock mode which tells the widget to emit panel
|
||||||
|
widgets and not open dialogs
|
||||||
|
\param dockMode True to enable dock mode.
|
||||||
|
%End
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void layerTypeChanged();
|
void layerTypeChanged();
|
||||||
@ -27,11 +49,32 @@ class QgsLayerPropertiesWidget : QgsPanelWidget, QgsExpressionContextGenerator
|
|||||||
|
|
||||||
signals:
|
signals:
|
||||||
void changed();
|
void changed();
|
||||||
void changeLayer( QgsSymbolLayer* );
|
void changeLayer( QgsSymbolLayer * );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void populateLayerTypes();
|
void populateLayerTypes();
|
||||||
void updateSymbolLayerWidget( QgsSymbolLayer *layer );
|
void updateSymbolLayerWidget( QgsSymbolLayer *layer );
|
||||||
|
|
||||||
|
virtual QgsExpressionContext createExpressionContext() const;
|
||||||
|
|
||||||
|
|
||||||
void registerDataDefinedButton( QgsPropertyOverrideButton *button, QgsSymbolLayer::Property key );
|
void registerDataDefinedButton( QgsPropertyOverrideButton *button, QgsSymbolLayer::Property key );
|
||||||
|
%Docstring
|
||||||
|
Registers a data defined override button. Handles setting up connections
|
||||||
|
for the button and initializing the button to show the correct descriptions
|
||||||
|
and help text for the associated property.
|
||||||
|
.. versionadded:: 3.0
|
||||||
|
%End
|
||||||
|
|
||||||
|
protected: // data
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgslayerpropertieswidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,24 +1,55 @@
|
|||||||
/** \ingroup gui
|
/************************************************************************
|
||||||
* \class QgsNullSymbolRendererWidget
|
* This file has been generated automatically from *
|
||||||
* \brief Blank widget for customising QgsNullSymbolRenderer.
|
* *
|
||||||
* \note Added in version 2.16
|
* src/gui/symbology-ng/qgsnullsymbolrendererwidget.h *
|
||||||
*/
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsNullSymbolRendererWidget : QgsRendererWidget
|
class QgsNullSymbolRendererWidget : QgsRendererWidget
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
%Docstring
|
||||||
#include <qgsnullsymbolrendererwidget.h>
|
Blank widget for customising QgsNullSymbolRenderer.
|
||||||
|
.. versionadded:: 2.16
|
||||||
%End
|
%End
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgsnullsymbolrendererwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//! Creates a new QgsNullSymbolRendererWidget object
|
|
||||||
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
Creates a new QgsNullSymbolRendererWidget object
|
||||||
|
:rtype: QgsRendererWidget
|
||||||
|
%End
|
||||||
|
|
||||||
//! Constructor for QgsNullSymbolRendererWidget
|
|
||||||
QgsNullSymbolRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
QgsNullSymbolRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
||||||
|
%Docstring
|
||||||
|
Constructor for QgsNullSymbolRendererWidget
|
||||||
|
%End
|
||||||
~QgsNullSymbolRendererWidget();
|
~QgsNullSymbolRendererWidget();
|
||||||
|
|
||||||
//! Returns a pointer to the configured renderer
|
|
||||||
virtual QgsFeatureRenderer *renderer();
|
virtual QgsFeatureRenderer *renderer();
|
||||||
|
%Docstring
|
||||||
|
Returns a pointer to the configured renderer
|
||||||
|
:rtype: QgsFeatureRenderer
|
||||||
|
%End
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsnullsymbolrendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,45 +1,75 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgspenstylecombobox.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsPenStyleComboBox : QComboBox
|
class QgsPenStyleComboBox : QComboBox
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgspenstylecombobox.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgspenstylecombobox.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsPenStyleComboBox( QWidget *parent /TransferThis/ = NULL );
|
QgsPenStyleComboBox( QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
Qt::PenStyle penStyle() const;
|
Qt::PenStyle penStyle() const;
|
||||||
|
%Docstring
|
||||||
|
:rtype: Qt.PenStyle
|
||||||
|
%End
|
||||||
|
|
||||||
void setPenStyle( Qt::PenStyle style );
|
void setPenStyle( Qt::PenStyle style );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QIcon iconForPen( Qt::PenStyle style );
|
QIcon iconForPen( Qt::PenStyle style );
|
||||||
|
%Docstring
|
||||||
|
:rtype: QIcon
|
||||||
|
%End
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class QgsPenJoinStyleComboBox : QComboBox
|
class QgsPenJoinStyleComboBox : QComboBox
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgspenstylecombobox.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgspenstylecombobox.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsPenJoinStyleComboBox( QWidget *parent /TransferThis/ = NULL );
|
QgsPenJoinStyleComboBox( QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
Qt::PenJoinStyle penJoinStyle() const;
|
Qt::PenJoinStyle penJoinStyle() const;
|
||||||
|
%Docstring
|
||||||
|
:rtype: Qt.PenJoinStyle
|
||||||
|
%End
|
||||||
|
|
||||||
void setPenJoinStyle( Qt::PenJoinStyle style );
|
void setPenJoinStyle( Qt::PenJoinStyle style );
|
||||||
};
|
};
|
||||||
|
|
||||||
class QgsPenCapStyleComboBox : QComboBox
|
class QgsPenCapStyleComboBox : QComboBox
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgspenstylecombobox.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgspenstylecombobox.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsPenCapStyleComboBox( QWidget *parent /TransferThis/ = NULL );
|
QgsPenCapStyleComboBox( QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
Qt::PenCapStyle penCapStyle() const;
|
Qt::PenCapStyle penCapStyle() const;
|
||||||
|
%Docstring
|
||||||
|
:rtype: Qt.PenCapStyle
|
||||||
|
%End
|
||||||
|
|
||||||
void setPenCapStyle( Qt::PenCapStyle style );
|
void setPenCapStyle( Qt::PenCapStyle style );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgspenstylecombobox.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,33 +1,59 @@
|
|||||||
/** \class QgsPointClusterRendererWidget
|
/************************************************************************
|
||||||
* \ingroup gui
|
* This file has been generated automatically from *
|
||||||
* A widget which allows configuration of the properties for a QgsPointClusterRenderer.
|
* *
|
||||||
* \note added in QGIS 3.0
|
* src/gui/symbology-ng/qgspointclusterrendererwidget.h *
|
||||||
*/
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsPointClusterRendererWidget: QgsRendererWidget
|
class QgsPointClusterRendererWidget: QgsRendererWidget
|
||||||
{
|
{
|
||||||
|
%Docstring
|
||||||
|
A widget which allows configuration of the properties for a QgsPointClusterRenderer.
|
||||||
|
.. versionadded:: 3.0
|
||||||
|
%End
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgspointclusterrendererwidget.h>
|
#include "qgspointclusterrendererwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/** Returns a new QgsPointClusterRendererWidget.
|
|
||||||
* @param layer associated vector layer
|
|
||||||
* @param style style collection
|
|
||||||
* @param renderer source QgsPointClusterRenderer renderer
|
|
||||||
* @returns new QgsRendererWidget
|
|
||||||
*/
|
|
||||||
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
Returns a new QgsPointClusterRendererWidget.
|
||||||
|
\param layer associated vector layer
|
||||||
|
\param style style collection
|
||||||
|
\param renderer source QgsPointClusterRenderer renderer
|
||||||
|
:return: new QgsRendererWidget
|
||||||
|
:rtype: QgsRendererWidget
|
||||||
|
%End
|
||||||
|
|
||||||
/** Constructor for QgsPointClusterRendererWidget.
|
|
||||||
* @param layer associated vector layer
|
|
||||||
* @param style style collection
|
|
||||||
* @param renderer source QgsPointClusterRenderer renderer
|
|
||||||
*/
|
|
||||||
QgsPointClusterRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
QgsPointClusterRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
||||||
|
%Docstring
|
||||||
|
Constructor for QgsPointClusterRendererWidget.
|
||||||
|
\param layer associated vector layer
|
||||||
|
\param style style collection
|
||||||
|
\param renderer source QgsPointClusterRenderer renderer
|
||||||
|
%End
|
||||||
|
|
||||||
~QgsPointClusterRendererWidget();
|
~QgsPointClusterRendererWidget();
|
||||||
|
|
||||||
QgsFeatureRenderer *renderer();
|
virtual QgsFeatureRenderer *renderer();
|
||||||
void setContext( const QgsSymbolWidgetContext &context );
|
|
||||||
|
virtual void setContext( const QgsSymbolWidgetContext &context );
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgspointclusterrendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,13 +1,40 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgspointdisplacementrendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsPointDisplacementRendererWidget: QgsRendererWidget
|
class QgsPointDisplacementRendererWidget: QgsRendererWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgspointdisplacementrendererwidget.h>
|
#include "qgspointdisplacementrendererwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsRendererWidget
|
||||||
|
%End
|
||||||
QgsPointDisplacementRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
QgsPointDisplacementRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
||||||
~QgsPointDisplacementRendererWidget();
|
~QgsPointDisplacementRendererWidget();
|
||||||
|
|
||||||
QgsFeatureRenderer *renderer();
|
virtual QgsFeatureRenderer *renderer();
|
||||||
void setContext( const QgsSymbolWidgetContext &context );
|
|
||||||
|
virtual void setContext( const QgsSymbolWidgetContext &context );
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgspointdisplacementrendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,93 +1,132 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsrendererpropertiesdialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsRendererPropertiesDialog : QDialog
|
class QgsRendererPropertiesDialog : QDialog
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgsrendererpropertiesdialog.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgsrendererpropertiesdialog.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/** Constructor for QgsRendererPropertiesDialog.
|
|
||||||
* @param layer associated layer
|
|
||||||
* @param style style collection
|
|
||||||
* @param embedded set to true to indicate that the dialog will be embedded in another widget, rather
|
|
||||||
* than shown as a dialog by itself
|
|
||||||
* @param parent parent widget
|
|
||||||
*/
|
|
||||||
QgsRendererPropertiesDialog( QgsVectorLayer *layer, QgsStyle *style, bool embedded = false, QWidget *parent /TransferThis/ = 0 );
|
QgsRendererPropertiesDialog( QgsVectorLayer *layer, QgsStyle *style, bool embedded = false, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
%Docstring
|
||||||
|
Constructor for QgsRendererPropertiesDialog.
|
||||||
|
\param layer associated layer
|
||||||
|
\param style style collection
|
||||||
|
\param embedded set to true to indicate that the dialog will be embedded in another widget, rather
|
||||||
|
than shown as a dialog by itself
|
||||||
|
\param parent parent widget
|
||||||
|
%End
|
||||||
~QgsRendererPropertiesDialog();
|
~QgsRendererPropertiesDialog();
|
||||||
|
|
||||||
/** Sets the map canvas associated with the dialog. This allows the widget to retrieve the current
|
|
||||||
* map scale and other properties from the canvas.
|
|
||||||
* @param canvas map canvas
|
|
||||||
* @note added in QGIS 2.12
|
|
||||||
*/
|
|
||||||
void setMapCanvas( QgsMapCanvas *canvas );
|
void setMapCanvas( QgsMapCanvas *canvas );
|
||||||
|
%Docstring
|
||||||
|
Sets the map canvas associated with the dialog. This allows the widget to retrieve the current
|
||||||
|
map scale and other properties from the canvas.
|
||||||
|
\param canvas map canvas
|
||||||
|
.. versionadded:: 2.12
|
||||||
|
%End
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the widget in dock mode which tells the widget to emit panel
|
|
||||||
* widgets and not open dialogs
|
|
||||||
* @param dockMode True to enable dock mode.
|
|
||||||
*/
|
|
||||||
void setDockMode( bool dockMode );
|
void setDockMode( bool dockMode );
|
||||||
|
%Docstring
|
||||||
|
Set the widget in dock mode which tells the widget to emit panel
|
||||||
|
widgets and not open dialogs
|
||||||
|
\param dockMode True to enable dock mode.
|
||||||
|
%End
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
/**
|
|
||||||
* Emitted when expression context variables on the associated
|
|
||||||
* vector layers have been changed. Will request the parent dialog
|
|
||||||
* to re-synchronize with the variables.
|
|
||||||
*/
|
|
||||||
void layerVariablesChanged();
|
void layerVariablesChanged();
|
||||||
|
%Docstring
|
||||||
|
Emitted when expression context variables on the associated
|
||||||
|
vector layers have been changed. Will request the parent dialog
|
||||||
|
to re-synchronize with the variables.
|
||||||
|
%End
|
||||||
|
|
||||||
/**
|
|
||||||
* Emitted when something on the widget has changed.
|
|
||||||
* All widgets will fire this event to notify of an internal change.
|
|
||||||
*/
|
|
||||||
void widgetChanged();
|
void widgetChanged();
|
||||||
|
%Docstring
|
||||||
|
Emitted when something on the widget has changed.
|
||||||
|
All widgets will fire this event to notify of an internal change.
|
||||||
|
%End
|
||||||
|
|
||||||
/**
|
|
||||||
* Emit when you require a panel to be show in the interface.
|
|
||||||
* @param panel The panel widget to show.
|
|
||||||
* @note If you are connected to this signal you should also connect
|
|
||||||
* given panels showPanel signal as they can be nested.
|
|
||||||
*/
|
|
||||||
void showPanel( QgsPanelWidget *panel );
|
void showPanel( QgsPanelWidget *panel );
|
||||||
|
%Docstring
|
||||||
|
Emit when you require a panel to be show in the interface.
|
||||||
|
\param panel The panel widget to show.
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
If you are connected to this signal you should also connect
|
||||||
|
given panels showPanel signal as they can be nested.
|
||||||
|
%End
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
//! called when user changes renderer type
|
|
||||||
void rendererChanged();
|
void rendererChanged();
|
||||||
|
%Docstring
|
||||||
|
called when user changes renderer type
|
||||||
|
%End
|
||||||
|
|
||||||
//! Apply the changes from the dialog to the layer.
|
|
||||||
void apply();
|
void apply();
|
||||||
|
%Docstring
|
||||||
|
Apply the changes from the dialog to the layer.
|
||||||
|
%End
|
||||||
|
|
||||||
//! Apply and accept the changes for the dialog.
|
|
||||||
void onOK();
|
void onOK();
|
||||||
|
%Docstring
|
||||||
|
Apply and accept the changes for the dialog.
|
||||||
|
%End
|
||||||
|
|
||||||
/**
|
|
||||||
* Open a panel or dialog depending on dock mode setting
|
|
||||||
* If dock mode is true this method will emit the showPanel signal
|
|
||||||
* for connected slots to handle the open event.
|
|
||||||
*
|
|
||||||
* If dock mode is false this method will open a dialog
|
|
||||||
* and block the user.
|
|
||||||
*
|
|
||||||
* @param panel The panel widget to open.
|
|
||||||
*/
|
|
||||||
void openPanel( QgsPanelWidget *panel );
|
void openPanel( QgsPanelWidget *panel );
|
||||||
|
%Docstring
|
||||||
|
Open a panel or dialog depending on dock mode setting
|
||||||
|
If dock mode is true this method will emit the showPanel signal
|
||||||
|
for connected slots to handle the open event.
|
||||||
|
|
||||||
|
If dock mode is false this method will open a dialog
|
||||||
|
and block the user.
|
||||||
|
|
||||||
|
\param panel The panel widget to open.
|
||||||
|
%End
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
|
||||||
* Connect the given slot to the value changed event for the set of widgets
|
|
||||||
* Each widget is checked for type and the common type of signal is connected
|
|
||||||
* to the slot.
|
|
||||||
*
|
|
||||||
* @param widgets The list of widgets to check.
|
|
||||||
* @param slot The slot to connect to the signals.
|
|
||||||
*/
|
|
||||||
void connectValueChanged( const QList<QWidget *> &widgets, const char *slot );
|
void connectValueChanged( const QList<QWidget *> &widgets, const char *slot );
|
||||||
|
%Docstring
|
||||||
|
Connect the given slot to the value changed event for the set of widgets
|
||||||
|
Each widget is checked for type and the common type of signal is connected
|
||||||
|
to the slot.
|
||||||
|
|
||||||
|
\param widgets The list of widgets to check.
|
||||||
|
\param slot The slot to connect to the signals.
|
||||||
|
%End
|
||||||
|
|
||||||
|
virtual void keyPressEvent( QKeyEvent *event );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//! Reimplements dialog keyPress event so we can ignore it
|
|
||||||
void keyPressEvent( QKeyEvent *event );
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsrendererpropertiesdialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,187 +1,267 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsrendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsRendererWidget : QgsPanelWidget
|
class QgsRendererWidget : QgsPanelWidget
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
%Docstring
|
||||||
#include <qgsrendererwidget.h>
|
Base class for renderer settings widgets
|
||||||
|
|
||||||
|
WORKFLOW:
|
||||||
|
- open renderer dialog with some RENDERER (never null!)
|
||||||
|
- find out which widget to use
|
||||||
|
- instantiate it and set in stacked widget
|
||||||
|
- on any change of renderer type, create some default (dummy?) version and change the stacked widget
|
||||||
|
- when clicked ok/apply, get the renderer from active widget and clone it for the layer
|
||||||
%End
|
%End
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgsrendererwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsRendererWidget( QgsVectorLayer *layer, QgsStyle *style );
|
QgsRendererWidget( QgsVectorLayer *layer, QgsStyle *style );
|
||||||
|
|
||||||
virtual ~QgsRendererWidget();
|
|
||||||
|
|
||||||
//! return pointer to the renderer (no transfer of ownership)
|
|
||||||
virtual QgsFeatureRenderer *renderer() = 0;
|
virtual QgsFeatureRenderer *renderer() = 0;
|
||||||
|
%Docstring
|
||||||
|
return pointer to the renderer (no transfer of ownership)
|
||||||
|
:rtype: QgsFeatureRenderer
|
||||||
|
%End
|
||||||
|
|
||||||
//! show a dialog with renderer's symbol level settings
|
|
||||||
void showSymbolLevelsDialog( QgsFeatureRenderer *r );
|
void showSymbolLevelsDialog( QgsFeatureRenderer *r );
|
||||||
|
%Docstring
|
||||||
|
show a dialog with renderer's symbol level settings
|
||||||
|
%End
|
||||||
|
|
||||||
/** Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
virtual void setContext( const QgsSymbolWidgetContext &context );
|
||||||
* @param context symbol widget context
|
%Docstring
|
||||||
* @see context()
|
Sets the context in which the renderer widget is shown, e.g., the associated map canvas and expression contexts.
|
||||||
* @note added in QGIS 3.0
|
\param context symbol widget context
|
||||||
*/
|
.. seealso:: context()
|
||||||
void setContext( const QgsSymbolWidgetContext &context );
|
.. versionadded:: 3.0
|
||||||
|
%End
|
||||||
|
|
||||||
/** Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
|
||||||
* @see setContext()
|
|
||||||
* @note added in QGIS 3.0
|
|
||||||
*/
|
|
||||||
QgsSymbolWidgetContext context() const;
|
QgsSymbolWidgetContext context() const;
|
||||||
|
%Docstring
|
||||||
|
Returns the context in which the renderer widget is shown, e.g., the associated map canvas and expression contexts.
|
||||||
|
.. seealso:: setContext()
|
||||||
|
.. versionadded:: 3.0
|
||||||
|
:rtype: QgsSymbolWidgetContext
|
||||||
|
%End
|
||||||
|
|
||||||
/** Returns the vector layer associated with the widget.
|
|
||||||
* @note added in QGIS 2.12
|
|
||||||
*/
|
|
||||||
const QgsVectorLayer *vectorLayer() const;
|
const QgsVectorLayer *vectorLayer() const;
|
||||||
|
%Docstring
|
||||||
|
Returns the vector layer associated with the widget.
|
||||||
|
.. versionadded:: 2.12
|
||||||
|
:rtype: QgsVectorLayer
|
||||||
|
%End
|
||||||
|
|
||||||
/**
|
|
||||||
* This method should be called whenever the renderer is actually set on the layer.
|
|
||||||
*/
|
|
||||||
void applyChanges();
|
void applyChanges();
|
||||||
|
%Docstring
|
||||||
|
This method should be called whenever the renderer is actually set on the layer.
|
||||||
|
%End
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
/**
|
|
||||||
* Emitted when expression context variables on the associated
|
|
||||||
* vector layers have been changed. Will request the parent dialog
|
|
||||||
* to re-synchronize with the variables.
|
|
||||||
*/
|
|
||||||
void layerVariablesChanged();
|
void layerVariablesChanged();
|
||||||
|
%Docstring
|
||||||
|
Emitted when expression context variables on the associated
|
||||||
|
vector layers have been changed. Will request the parent dialog
|
||||||
|
to re-synchronize with the variables.
|
||||||
|
%End
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/** Subclasses may provide the capability of changing multiple symbols at once by implementing the following two methods
|
|
||||||
and by connecting the slot contextMenuViewCategories(const QPoint&)*/
|
|
||||||
virtual QList<QgsSymbol*> selectedSymbols();
|
virtual QList<QgsSymbol *> selectedSymbols();
|
||||||
|
%Docstring
|
||||||
|
Subclasses may provide the capability of changing multiple symbols at once by implementing the following two methods
|
||||||
|
and by connecting the slot contextMenuViewCategories(const QPoint&)*
|
||||||
|
:rtype: list of QgsSymbol
|
||||||
|
%End
|
||||||
virtual void refreshSymbolView();
|
virtual void refreshSymbolView();
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
void contextMenuViewCategories( QPoint p );
|
void contextMenuViewCategories( QPoint p );
|
||||||
/** Change color of selected symbols*/
|
|
||||||
void changeSymbolColor();
|
void changeSymbolColor();
|
||||||
/** Change opacity of selected symbols*/
|
%Docstring
|
||||||
|
Change color of selected symbols
|
||||||
|
%End
|
||||||
void changeSymbolOpacity();
|
void changeSymbolOpacity();
|
||||||
/** Change units mm/map units of selected symbols*/
|
%Docstring
|
||||||
|
Change opacity of selected symbols
|
||||||
|
%End
|
||||||
void changeSymbolUnit();
|
void changeSymbolUnit();
|
||||||
/** Change line widths of selected symbols*/
|
%Docstring
|
||||||
|
Change units mm/map units of selected symbols
|
||||||
|
%End
|
||||||
void changeSymbolWidth();
|
void changeSymbolWidth();
|
||||||
/** Change marker sizes of selected symbols*/
|
%Docstring
|
||||||
|
Change line widths of selected symbols
|
||||||
|
%End
|
||||||
void changeSymbolSize();
|
void changeSymbolSize();
|
||||||
/** Change marker angles of selected symbols*/
|
%Docstring
|
||||||
|
Change marker sizes of selected symbols
|
||||||
|
%End
|
||||||
void changeSymbolAngle();
|
void changeSymbolAngle();
|
||||||
|
%Docstring
|
||||||
|
Change marker angles of selected symbols
|
||||||
|
%End
|
||||||
|
|
||||||
virtual void copy();
|
virtual void copy();
|
||||||
virtual void paste();
|
virtual void paste();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/**
|
virtual void apply() ;
|
||||||
* This will be called whenever the renderer is set on a layer.
|
%Docstring
|
||||||
* This can be overwritten in subclasses.
|
This will be called whenever the renderer is set on a layer.
|
||||||
*/
|
This can be overwritten in subclasses.
|
||||||
virtual void apply();
|
%End
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
Utility classes for "en masse" size definition
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
class QgsDataDefinedValueDialog : QDialog
|
class QgsDataDefinedValueDialog : QDialog
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
%Docstring
|
||||||
#include <qgsrendererwidget.h>
|
Utility classes for "en masse" size definition
|
||||||
%End
|
%End
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgsrendererwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
/** Constructor
|
|
||||||
* @param symbolList must not be empty
|
|
||||||
* @param layer must not be null
|
|
||||||
* @param label value label
|
|
||||||
*/
|
|
||||||
QgsDataDefinedValueDialog( const QList<QgsSymbol*> &symbolList, QgsVectorLayer *layer, const QString &label );
|
|
||||||
virtual ~QgsDataDefinedValueDialog();
|
|
||||||
|
|
||||||
/** Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
QgsDataDefinedValueDialog( const QList<QgsSymbol *> &symbolList, QgsVectorLayer *layer, const QString &label );
|
||||||
* @param context symbol widget context
|
%Docstring
|
||||||
* @see context()
|
Constructor
|
||||||
* @note added in QGIS 3.0
|
\param symbolList must not be empty
|
||||||
*/
|
\param layer must not be null
|
||||||
|
\param label value label
|
||||||
|
%End
|
||||||
|
|
||||||
void setContext( const QgsSymbolWidgetContext &context );
|
void setContext( const QgsSymbolWidgetContext &context );
|
||||||
|
%Docstring
|
||||||
|
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
||||||
|
\param context symbol widget context
|
||||||
|
.. seealso:: context()
|
||||||
|
.. versionadded:: 3.0
|
||||||
|
%End
|
||||||
|
|
||||||
/** Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
|
||||||
* @see setContext()
|
|
||||||
* @note added in QGIS 3.0
|
|
||||||
*/
|
|
||||||
QgsSymbolWidgetContext context() const;
|
QgsSymbolWidgetContext context() const;
|
||||||
|
%Docstring
|
||||||
|
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
||||||
|
.. seealso:: setContext()
|
||||||
|
.. versionadded:: 3.0
|
||||||
|
:rtype: QgsSymbolWidgetContext
|
||||||
|
%End
|
||||||
|
|
||||||
/** Returns the vector layer associated with the widget.
|
|
||||||
* @note added in QGIS 2.12
|
|
||||||
*/
|
|
||||||
const QgsVectorLayer *vectorLayer() const;
|
const QgsVectorLayer *vectorLayer() const;
|
||||||
|
%Docstring
|
||||||
|
Returns the vector layer associated with the widget.
|
||||||
|
.. versionadded:: 2.12
|
||||||
|
:rtype: QgsVectorLayer
|
||||||
|
%End
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void dataDefinedChanged();
|
void dataDefinedChanged();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
|
||||||
* Should be called in the constructor of child classes.
|
|
||||||
*
|
|
||||||
* @note May be missing Python bindings depending on the platform.
|
|
||||||
*/
|
|
||||||
void init( int propertyKey ); // needed in children ctor to call virtual
|
void init( int propertyKey ); // needed in children ctor to call virtual
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QgsProperty symbolDataDefined() const;
|
QgsProperty symbolDataDefined() const ;
|
||||||
virtual QgsProperty symbolDataDefined( const QgsSymbol* ) const = 0;
|
%Docstring
|
||||||
virtual double value( const QgsSymbol* ) const = 0;
|
:rtype: QgsProperty
|
||||||
virtual void setDataDefined( QgsSymbol *symbol, const QgsProperty &dd ) = 0;
|
%End
|
||||||
|
private:
|
||||||
|
virtual QgsProperty symbolDataDefined( const QgsSymbol * ) const = 0 ;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsProperty
|
||||||
|
%End
|
||||||
|
private:
|
||||||
|
virtual double value( const QgsSymbol * ) const = 0 ;
|
||||||
|
%Docstring
|
||||||
|
:rtype: float
|
||||||
|
%End
|
||||||
|
private:
|
||||||
|
virtual void setDataDefined( QgsSymbol *symbol, const QgsProperty &dd ) = 0 ;
|
||||||
};
|
};
|
||||||
|
|
||||||
class QgsDataDefinedSizeDialog : QgsDataDefinedValueDialog
|
class QgsDataDefinedSizeDialog : QgsDataDefinedValueDialog
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgsrendererwidget.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgsrendererwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsDataDefinedSizeDialog( const QList<QgsSymbol*> &symbolList, QgsVectorLayer *layer );
|
QgsDataDefinedSizeDialog( const QList<QgsSymbol *> &symbolList, QgsVectorLayer *layer );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual QgsProperty symbolDataDefined( const QgsSymbol* ) const;
|
virtual QgsProperty symbolDataDefined( const QgsSymbol *symbol ) const;
|
||||||
|
|
||||||
|
|
||||||
|
virtual double value( const QgsSymbol *symbol ) const;
|
||||||
|
|
||||||
|
virtual void setDataDefined( QgsSymbol *symbol, const QgsProperty &dd );
|
||||||
|
|
||||||
double value( const QgsSymbol *symbol ) const;
|
|
||||||
|
|
||||||
void setDataDefined( QgsSymbol *symbol, const QgsProperty &dd );
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class QgsDataDefinedRotationDialog : QgsDataDefinedValueDialog
|
class QgsDataDefinedRotationDialog : QgsDataDefinedValueDialog
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgsrendererwidget.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgsrendererwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsDataDefinedRotationDialog( const QList<QgsSymbol*> &symbolList, QgsVectorLayer *layer );
|
QgsDataDefinedRotationDialog( const QList<QgsSymbol *> &symbolList, QgsVectorLayer *layer );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual QgsProperty symbolDataDefined( const QgsSymbol* ) const;
|
virtual QgsProperty symbolDataDefined( const QgsSymbol *symbol ) const;
|
||||||
|
|
||||||
double value( const QgsSymbol *symbol ) const;
|
|
||||||
|
|
||||||
void setDataDefined( QgsSymbol *symbol, const QgsProperty &dd );
|
virtual double value( const QgsSymbol *symbol ) const;
|
||||||
|
|
||||||
|
virtual void setDataDefined( QgsSymbol *symbol, const QgsProperty &dd );
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class QgsDataDefinedWidthDialog : QgsDataDefinedValueDialog
|
class QgsDataDefinedWidthDialog : QgsDataDefinedValueDialog
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgsrendererwidget.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgsrendererwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsDataDefinedWidthDialog( const QList<QgsSymbol*> &symbolList, QgsVectorLayer *layer );
|
QgsDataDefinedWidthDialog( const QList<QgsSymbol *> &symbolList, QgsVectorLayer *layer );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual QgsProperty symbolDataDefined( const QgsSymbol* ) const;
|
virtual QgsProperty symbolDataDefined( const QgsSymbol *symbol ) const;
|
||||||
|
|
||||||
double value( const QgsSymbol *symbol ) const;
|
|
||||||
|
|
||||||
void setDataDefined( QgsSymbol *symbol, const QgsProperty &dd );
|
virtual double value( const QgsSymbol *symbol ) const;
|
||||||
|
|
||||||
|
virtual void setDataDefined( QgsSymbol *symbol, const QgsProperty &dd );
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsrendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,9 +1,30 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsrulebasedrendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsRuleBasedRendererModel : QAbstractItemModel
|
class QgsRuleBasedRendererModel : QAbstractItemModel
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
%Docstring
|
||||||
#include <qgsrulebasedrendererwidget.h>
|
Tree model for the rules:
|
||||||
|
|
||||||
|
(invalid) == root node
|
||||||
|
+--- top level rule
|
||||||
|
+--- top level rule
|
||||||
%End
|
%End
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgsrulebasedrendererwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsRuleBasedRendererModel( QgsRuleBasedRenderer *r );
|
QgsRuleBasedRendererModel( QgsRuleBasedRenderer *r );
|
||||||
|
|
||||||
@ -13,50 +34,57 @@ class QgsRuleBasedRendererModel : QAbstractItemModel
|
|||||||
int role = Qt::DisplayRole ) const;
|
int role = Qt::DisplayRole ) const;
|
||||||
virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const;
|
virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const;
|
||||||
virtual int columnCount( const QModelIndex & = QModelIndex() ) const;
|
virtual int columnCount( const QModelIndex & = QModelIndex() ) const;
|
||||||
//! provide model index for parent's child item
|
|
||||||
virtual QModelIndex index( int row, int column, const QModelIndex &parent = QModelIndex() ) const;
|
virtual QModelIndex index( int row, int column, const QModelIndex &parent = QModelIndex() ) const;
|
||||||
//! provide parent model index
|
|
||||||
virtual QModelIndex parent( const QModelIndex &index ) const;
|
virtual QModelIndex parent( const QModelIndex &index ) const;
|
||||||
|
|
||||||
// editing support
|
|
||||||
virtual bool setData( const QModelIndex &index, const QVariant &value, int role = Qt::EditRole );
|
virtual bool setData( const QModelIndex &index, const QVariant &value, int role = Qt::EditRole );
|
||||||
|
|
||||||
// drag'n'drop support
|
virtual Qt::DropActions supportedDropActions() const;
|
||||||
Qt::DropActions supportedDropActions() const;
|
|
||||||
QStringList mimeTypes() const;
|
virtual QStringList mimeTypes() const;
|
||||||
QMimeData *mimeData( const QModelIndexList &indexes ) const;
|
|
||||||
bool dropMimeData( const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent );
|
virtual QMimeData *mimeData( const QModelIndexList &indexes ) const;
|
||||||
|
|
||||||
|
virtual bool dropMimeData( const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent );
|
||||||
|
|
||||||
|
|
||||||
|
virtual bool removeRows( int row, int count, const QModelIndex &parent = QModelIndex() );
|
||||||
|
|
||||||
bool removeRows( int row, int count, const QModelIndex &parent = QModelIndex() );
|
|
||||||
|
|
||||||
// new methods
|
|
||||||
|
|
||||||
QgsRuleBasedRenderer::Rule *ruleForIndex( const QModelIndex &index ) const;
|
QgsRuleBasedRenderer::Rule *ruleForIndex( const QModelIndex &index ) const;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsRuleBasedRenderer.Rule
|
||||||
|
%End
|
||||||
|
|
||||||
void insertRule( const QModelIndex &parent, int before, QgsRuleBasedRenderer::Rule *newrule );
|
void insertRule( const QModelIndex &parent, int before, QgsRuleBasedRenderer::Rule *newrule );
|
||||||
void updateRule( const QModelIndex &parent, int row );
|
void updateRule( const QModelIndex &parent, int row );
|
||||||
// update rule and all its descendants
|
|
||||||
void updateRule( const QModelIndex &index );
|
void updateRule( const QModelIndex &index );
|
||||||
void removeRule( const QModelIndex &index );
|
void removeRule( const QModelIndex &index );
|
||||||
|
|
||||||
void willAddRules( const QModelIndex &parent, int count );
|
void willAddRules( const QModelIndex &parent, int count ); // call beginInsertRows
|
||||||
void finishedAddingRules(); // call endInsertRows
|
void finishedAddingRules(); // call endInsertRows
|
||||||
|
|
||||||
//! @note not available in python bindungs
|
|
||||||
// void setFeatureCounts( QMap<QgsRuleBasedRenderer::Rule*, QgsRuleBasedRendererCount> countMap );
|
|
||||||
void clearFeatureCounts();
|
void clearFeatureCounts();
|
||||||
|
|
||||||
|
protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsRuleBasedRendererWidget : QgsRendererWidget
|
class QgsRuleBasedRendererWidget : QgsRendererWidget
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgsrulebasedrendererwidget.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgsrulebasedrendererwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
|
|
||||||
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsRendererWidget
|
||||||
|
%End
|
||||||
|
|
||||||
QgsRuleBasedRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
QgsRuleBasedRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
||||||
~QgsRuleBasedRendererWidget();
|
~QgsRuleBasedRendererWidget();
|
||||||
@ -86,65 +114,141 @@ class QgsRuleBasedRendererWidget : QgsRendererWidget
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
void refineRule( int type );
|
void refineRule( int type );
|
||||||
//! Opens the dialog for refining a rule using categories
|
|
||||||
void refineRuleCategoriesGui();
|
void refineRuleCategoriesGui();
|
||||||
//! Opens the dialog for refining a rule using ranges
|
%Docstring
|
||||||
|
Opens the dialog for refining a rule using categories
|
||||||
|
%End
|
||||||
void refineRuleRangesGui();
|
void refineRuleRangesGui();
|
||||||
|
%Docstring
|
||||||
|
Opens the dialog for refining a rule using ranges
|
||||||
|
%End
|
||||||
void refineRuleScalesGui( const QModelIndexList &index );
|
void refineRuleScalesGui( const QModelIndexList &index );
|
||||||
|
|
||||||
QgsRuleBasedRenderer::Rule *currentRule();
|
QgsRuleBasedRenderer::Rule *currentRule();
|
||||||
|
%Docstring
|
||||||
QList<QgsSymbol*> selectedSymbols();
|
:rtype: QgsRuleBasedRenderer.Rule
|
||||||
QList<QgsRuleBasedRenderer::Rule*> selectedRules();
|
|
||||||
void refreshSymbolView();
|
|
||||||
void keyPressEvent( QKeyEvent *event );
|
|
||||||
};
|
|
||||||
|
|
||||||
///////
|
|
||||||
|
|
||||||
class QgsRendererRulePropsWidget: QgsPanelWidget
|
|
||||||
{
|
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgsrulebasedrendererwidget.h>
|
|
||||||
%End
|
%End
|
||||||
|
|
||||||
public:
|
virtual QList<QgsSymbol *> selectedSymbols();
|
||||||
/**
|
|
||||||
* Widget to edit the details of a rule based renderer rule.
|
QgsRuleBasedRenderer::RuleList selectedRules();
|
||||||
* @param rule The rule to edit.
|
%Docstring
|
||||||
* @param layer The layer used to pull layer related information.
|
:rtype: QgsRuleBasedRenderer.RuleList
|
||||||
* @param style The active QGIS style.
|
%End
|
||||||
* @param parent The parent widget.
|
virtual void refreshSymbolView();
|
||||||
* @param context the symbol widget context
|
|
||||||
*/
|
virtual void keyPressEvent( QKeyEvent *event );
|
||||||
QgsRendererRulePropsWidget( QgsRuleBasedRenderer::Rule *rule, QgsVectorLayer *layer, QgsStyle *style, QWidget *parent /TransferThis/ = 0, const QgsSymbolWidgetContext &context= QgsSymbolWidgetContext() );
|
|
||||||
~QgsRendererRulePropsWidget();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
protected slots:
|
||||||
|
virtual void copy();
|
||||||
|
|
||||||
|
virtual void paste();
|
||||||
|
|
||||||
QgsRuleBasedRenderer::Rule *rule();
|
|
||||||
|
|
||||||
public slots:
|
|
||||||
void testFilter();
|
|
||||||
void buildExpression();
|
|
||||||
void apply();
|
|
||||||
virtual void setDockMode( bool dockMode);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class QgsRendererRulePropsWidget : QgsPanelWidget
|
||||||
|
{
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgsrulebasedrendererwidget.h"
|
||||||
|
%End
|
||||||
|
public:
|
||||||
|
|
||||||
|
QgsRendererRulePropsWidget( QgsRuleBasedRenderer::Rule *rule,
|
||||||
|
QgsVectorLayer *layer,
|
||||||
|
QgsStyle *style,
|
||||||
|
QWidget *parent /TransferThis/ = 0,
|
||||||
|
const QgsSymbolWidgetContext &context = QgsSymbolWidgetContext() );
|
||||||
|
%Docstring
|
||||||
|
Widget to edit the details of a rule based renderer rule.
|
||||||
|
\param rule The rule to edit.
|
||||||
|
\param layer The layer used to pull layer related information.
|
||||||
|
\param style The active QGIS style.
|
||||||
|
\param parent The parent widget.
|
||||||
|
\param context the symbol widget context
|
||||||
|
%End
|
||||||
|
|
||||||
|
QgsRuleBasedRenderer::Rule *rule();
|
||||||
|
%Docstring
|
||||||
|
Return the current set rule.
|
||||||
|
:return: The current rule.
|
||||||
|
:rtype: QgsRuleBasedRenderer.Rule
|
||||||
|
%End
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
|
||||||
|
void testFilter();
|
||||||
|
%Docstring
|
||||||
|
Test the filter that is set in the widget
|
||||||
|
%End
|
||||||
|
|
||||||
|
void buildExpression();
|
||||||
|
%Docstring
|
||||||
|
Open the expression builder widget to check if the
|
||||||
|
%End
|
||||||
|
|
||||||
|
void apply();
|
||||||
|
%Docstring
|
||||||
|
Apply any changes from the widget to the set rule.
|
||||||
|
%End
|
||||||
|
|
||||||
|
virtual void setDockMode( bool dockMode );
|
||||||
|
%Docstring
|
||||||
|
Set the widget in dock mode.
|
||||||
|
\param dockMode True for dock mode.
|
||||||
|
%End
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
class QgsRendererRulePropsDialog : QDialog
|
class QgsRendererRulePropsDialog : QDialog
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgsrulebasedrendererwidget.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgsrulebasedrendererwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
|
|
||||||
QgsRendererRulePropsDialog( QgsRuleBasedRenderer::Rule *rule, QgsVectorLayer *layer, QgsStyle *style, QWidget *parent /TransferThis/ = 0, const QgsSymbolWidgetContext &context = QgsSymbolWidgetContext() );
|
QgsRendererRulePropsDialog( QgsRuleBasedRenderer::Rule *rule, QgsVectorLayer *layer, QgsStyle *style, QWidget *parent /TransferThis/ = 0, const QgsSymbolWidgetContext &context = QgsSymbolWidgetContext() );
|
||||||
|
%Docstring
|
||||||
|
Constructor for QgsRendererRulePropsDialog
|
||||||
|
\param rule associated rule based renderer rule
|
||||||
|
\param layer source vector layer
|
||||||
|
\param style style collection
|
||||||
|
\param parent parent widget
|
||||||
|
\param context symbol widget context
|
||||||
|
%End
|
||||||
|
|
||||||
~QgsRendererRulePropsDialog();
|
~QgsRendererRulePropsDialog();
|
||||||
|
|
||||||
QgsRuleBasedRenderer::Rule *rule();
|
QgsRuleBasedRenderer::Rule *rule();
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsRuleBasedRenderer.Rule
|
||||||
|
%End
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void testFilter();
|
void testFilter();
|
||||||
void buildExpression();
|
void buildExpression();
|
||||||
void accept();
|
virtual void accept();
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsrulebasedrendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,10 +1,25 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgssinglesymbolrendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsSingleSymbolRendererWidget : QgsRendererWidget
|
class QgsSingleSymbolRendererWidget : QgsRendererWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgssinglesymbolrendererwidget.h>
|
#include "qgssinglesymbolrendererwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsRendererWidget
|
||||||
|
%End
|
||||||
|
|
||||||
QgsSingleSymbolRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
QgsSingleSymbolRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
||||||
~QgsSingleSymbolRendererWidget();
|
~QgsSingleSymbolRendererWidget();
|
||||||
@ -14,9 +29,26 @@ class QgsSingleSymbolRendererWidget : QgsRendererWidget
|
|||||||
virtual void setContext( const QgsSymbolWidgetContext &context );
|
virtual void setContext( const QgsSymbolWidgetContext &context );
|
||||||
|
|
||||||
virtual void setDockMode( bool dockMode );
|
virtual void setDockMode( bool dockMode );
|
||||||
|
%Docstring
|
||||||
|
Set the widget in dock mode which tells the widget to emit panel
|
||||||
|
widgets and not open dialogs
|
||||||
|
\param dockMode True to enable dock mode.
|
||||||
|
%End
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void changeSingleSymbol();
|
void changeSingleSymbol();
|
||||||
|
|
||||||
void showSymbolLevels();
|
void showSymbolLevels();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgssinglesymbolrendererwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,71 +1,117 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgssmartgroupeditordialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsSmartGroupCondition : QWidget
|
class QgsSmartGroupCondition : QWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgssmartgroupeditordialog.h>
|
#include "qgssmartgroupeditordialog.h"
|
||||||
|
%End
|
||||||
|
public:
|
||||||
|
QgsSmartGroupCondition( int id, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
|
QString constraint();
|
||||||
|
%Docstring
|
||||||
|
returns the constraint key
|
||||||
|
:rtype: str
|
||||||
%End
|
%End
|
||||||
|
|
||||||
public:
|
|
||||||
QgsSmartGroupCondition( int id, QWidget *parent /TransferThis/ = NULL );
|
|
||||||
|
|
||||||
//! returns the constraint key
|
|
||||||
QString constraint();
|
|
||||||
|
|
||||||
//! returns the parameter
|
|
||||||
QString parameter();
|
QString parameter();
|
||||||
|
%Docstring
|
||||||
|
returns the parameter
|
||||||
|
:rtype: str
|
||||||
|
%End
|
||||||
|
|
||||||
//! sets the given constraint
|
|
||||||
void setConstraint( const QString &constraint );
|
void setConstraint( const QString &constraint );
|
||||||
|
%Docstring
|
||||||
|
sets the given constraint
|
||||||
|
%End
|
||||||
|
|
||||||
//! sets the given param
|
|
||||||
void setParameter( const QString ¶m );
|
void setParameter( const QString ¶m );
|
||||||
|
%Docstring
|
||||||
|
sets the given param
|
||||||
|
%End
|
||||||
|
|
||||||
//! sets the remove button hidden state to 'hide'
|
|
||||||
void hideRemoveButton( bool hide );
|
void hideRemoveButton( bool hide );
|
||||||
|
%Docstring
|
||||||
|
sets the remove button hidden state to 'hide'
|
||||||
|
%End
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void destruct();
|
void destruct();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void removed( int );
|
void removed( int );
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsSmartGroupEditorDialog : QDialog
|
class QgsSmartGroupEditorDialog : QDialog
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgssmartgroupeditordialog.h>
|
#include "qgssmartgroupeditordialog.h"
|
||||||
|
%End
|
||||||
|
public:
|
||||||
|
QgsSmartGroupEditorDialog( QgsStyle *style, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
|
QString smartgroupName();
|
||||||
|
%Docstring
|
||||||
|
returns the value from mNameLineEdit
|
||||||
|
:rtype: str
|
||||||
%End
|
%End
|
||||||
|
|
||||||
public:
|
|
||||||
QgsSmartGroupEditorDialog( QgsStyle *style, QWidget *parent /TransferThis/ = NULL );
|
|
||||||
~QgsSmartGroupEditorDialog();
|
|
||||||
|
|
||||||
//! returns the value from mNameLineEdit
|
|
||||||
QString smartgroupName();
|
|
||||||
|
|
||||||
//! returns the condition map
|
|
||||||
//! @note not available in python bindings
|
|
||||||
// QgsSmartConditionMap conditionMap();
|
|
||||||
|
|
||||||
//! returns the AND/OR condition
|
|
||||||
QString conditionOperator();
|
QString conditionOperator();
|
||||||
|
%Docstring
|
||||||
|
returns the AND/OR condition
|
||||||
|
:rtype: str
|
||||||
|
%End
|
||||||
|
|
||||||
//! sets up the GUI for the given conditionmap
|
|
||||||
//! @note not available in python bindings
|
|
||||||
// void setConditionMap( const QgsSmartConditionMap& );
|
|
||||||
|
|
||||||
//! sets the operator AND/OR
|
void setOperator( const QString & );
|
||||||
void setOperator( const QString& );
|
%Docstring
|
||||||
|
sets the operator AND/OR
|
||||||
|
%End
|
||||||
|
|
||||||
//! sets the smart group Name
|
void setSmartgroupName( const QString & );
|
||||||
void setSmartgroupName( const QString& );
|
%Docstring
|
||||||
|
sets the smart group Name
|
||||||
|
%End
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
//! function to create a new ConditionBox and update UI
|
|
||||||
void addCondition();
|
void addCondition();
|
||||||
|
%Docstring
|
||||||
|
function to create a new ConditionBox and update UI
|
||||||
|
%End
|
||||||
|
|
||||||
//! slot to remove the condition with id int
|
|
||||||
void removeCondition( int );
|
void removeCondition( int );
|
||||||
|
%Docstring
|
||||||
|
slot to remove the condition with id int
|
||||||
|
%End
|
||||||
|
|
||||||
void on_buttonBox_accepted();
|
void on_buttonBox_accepted();
|
||||||
|
|
||||||
|
protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgssmartgroupeditordialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,7 +1,20 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsstyleexportimportdialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsStyleExportImportDialog : QDialog
|
class QgsStyleExportImportDialog : QDialog
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgsstyleexportimportdialog.h>
|
#include "qgsstyleexportimportdialog.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
enum Mode
|
enum Mode
|
||||||
@ -10,57 +23,72 @@ class QgsStyleExportImportDialog : QDialog
|
|||||||
Import
|
Import
|
||||||
};
|
};
|
||||||
|
|
||||||
// constructor
|
QgsStyleExportImportDialog( QgsStyle *style, QWidget *parent /TransferThis/ = 0, Mode mode = Export );
|
||||||
// mode argument must be 0 for saving and 1 for loading
|
|
||||||
QgsStyleExportImportDialog( QgsStyle *style, QWidget *parent /TransferThis/ = NULL, Mode mode = Export );
|
|
||||||
~QgsStyleExportImportDialog();
|
~QgsStyleExportImportDialog();
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief selectSymbols select symbols by name
|
|
||||||
* @param symbolNames list of symbol names
|
|
||||||
*/
|
|
||||||
void selectSymbols( const QStringList &symbolNames );
|
void selectSymbols( const QStringList &symbolNames );
|
||||||
/**
|
%Docstring
|
||||||
* @brief deselectSymbols deselect symbols by name
|
selectSymbols select symbols by name
|
||||||
* @param symbolNames list of symbol names
|
\param symbolNames list of symbol names
|
||||||
*/
|
%End
|
||||||
|
|
||||||
void deselectSymbols( const QStringList &symbolNames );
|
void deselectSymbols( const QStringList &symbolNames );
|
||||||
|
%Docstring
|
||||||
|
deselectSymbols deselect symbols by name
|
||||||
|
\param symbolNames list of symbol names
|
||||||
|
%End
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void doExportImport();
|
void doExportImport();
|
||||||
/**
|
|
||||||
* @brief selectByGroup open select by group dialog
|
|
||||||
*/
|
|
||||||
void selectByGroup();
|
void selectByGroup();
|
||||||
/**
|
%Docstring
|
||||||
* @brief selectAll selects all symbols
|
selectByGroup open select by group dialog
|
||||||
*/
|
%End
|
||||||
|
|
||||||
void selectAll();
|
void selectAll();
|
||||||
/**
|
%Docstring
|
||||||
* @brief clearSelection deselects all symbols
|
selectAll selects all symbols
|
||||||
*/
|
%End
|
||||||
|
|
||||||
void clearSelection();
|
void clearSelection();
|
||||||
/**
|
%Docstring
|
||||||
* Select the symbols belonging to the given tag
|
clearSelection deselects all symbols
|
||||||
* @param tagName the name of the tag to be selected
|
%End
|
||||||
*/
|
|
||||||
void selectTag( const QString &tagName );
|
void selectTag( const QString &tagName );
|
||||||
/**
|
%Docstring
|
||||||
* Deselect the symbols belonging to the given tag
|
Select the symbols belonging to the given tag
|
||||||
* @param tagName the name of the tag to be deselected
|
\param tagName the name of the group to be selected
|
||||||
*/
|
%End
|
||||||
|
|
||||||
void deselectTag( const QString &tagName );
|
void deselectTag( const QString &tagName );
|
||||||
/**
|
%Docstring
|
||||||
* @brief selectSmartgroup selects all symbols from a smart group
|
Deselect the symbols belonging to the given tag
|
||||||
* @param groupName
|
\param tagName the name of the group to be deselected
|
||||||
*/
|
%End
|
||||||
|
|
||||||
void selectSmartgroup( const QString &groupName );
|
void selectSmartgroup( const QString &groupName );
|
||||||
/**
|
%Docstring
|
||||||
* @brief deselectSmartgroup deselects all symbols from a smart group
|
selectSmartgroup selects all symbols from a smart group
|
||||||
* @param groupName
|
\param groupName
|
||||||
*/
|
%End
|
||||||
|
|
||||||
void deselectSmartgroup( const QString &groupName );
|
void deselectSmartgroup( const QString &groupName );
|
||||||
|
%Docstring
|
||||||
|
deselectSmartgroup deselects all symbols from a smart group
|
||||||
|
\param groupName
|
||||||
|
%End
|
||||||
|
|
||||||
void importTypeChanged( int );
|
void importTypeChanged( int );
|
||||||
void browse();
|
void browse();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsstyleexportimportdialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,45 +1,60 @@
|
|||||||
/***************************************************************************
|
/************************************************************************
|
||||||
qgsstylegroupselectiondialog.h
|
* This file has been generated automatically from *
|
||||||
---------------------
|
* *
|
||||||
begin : Oct 2015
|
* src/gui/symbology-ng/qgsstylegroupselectiondialog.h *
|
||||||
copyright : (C) 2015 by Alessandro Pasotti
|
* *
|
||||||
email : elpaso at itopen dot it
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* This program is free software; you can redistribute it and/or modify *
|
|
||||||
* it under the terms of the GNU General Public License as published by *
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or *
|
|
||||||
* (at your option) any later version. *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
|
||||||
|
|
||||||
|
|
||||||
class QgsStyleGroupSelectionDialog : public QDialog, private Ui::SymbolsGroupSelectionDialogBase
|
|
||||||
|
|
||||||
|
|
||||||
|
class QgsStyleGroupSelectionDialog : QDialog
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgsstylegroupselectiondialog.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgsstylegroupselectiondialog.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsStyleGroupSelectionDialog( QgsStyle *style, QWidget *parent = 0 );
|
QgsStyleGroupSelectionDialog( QgsStyle *style, QWidget *parent = 0 );
|
||||||
~QgsStyleGroupSelectionDialog();
|
|
||||||
//! Set bold font for item
|
|
||||||
void setBold( QStandardItem *item );
|
void setBold( QStandardItem *item );
|
||||||
|
%Docstring
|
||||||
|
Set bold font for item
|
||||||
|
%End
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
//! tag with tagName has been selected
|
|
||||||
void tagSelected( const QString &tagName );
|
void tagSelected( const QString &tagName );
|
||||||
//! tag with tagName has been deselected
|
%Docstring
|
||||||
|
tag with tagName has been selected
|
||||||
|
%End
|
||||||
void tagDeselected( const QString &tagName );
|
void tagDeselected( const QString &tagName );
|
||||||
//! smartgroup with groupName has been selected
|
%Docstring
|
||||||
|
tag with tagName has been deselected
|
||||||
|
%End
|
||||||
void smartgroupSelected( const QString &groupName );
|
void smartgroupSelected( const QString &groupName );
|
||||||
//! smart group with groupName has been deselected
|
%Docstring
|
||||||
|
smartgroup with groupName has been selected
|
||||||
|
%End
|
||||||
void smartgroupDeselected( const QString &groupName );
|
void smartgroupDeselected( const QString &groupName );
|
||||||
//! all deselected
|
%Docstring
|
||||||
|
smart group with groupName has been deselected
|
||||||
|
%End
|
||||||
void allDeselected();
|
void allDeselected();
|
||||||
//! all selected
|
%Docstring
|
||||||
|
all deselected
|
||||||
|
%End
|
||||||
void allSelected();
|
void allSelected();
|
||||||
|
%Docstring
|
||||||
|
all selected
|
||||||
|
%End
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsstylegroupselectiondialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,15 +1,30 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsstylemanagerdialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsStyleManagerDialog : QDialog
|
class QgsStyleManagerDialog : QDialog
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgsstylemanagerdialog.h>
|
#include "qgsstylemanagerdialog.h"
|
||||||
%End
|
%End
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsStyleManagerDialog( QgsStyle *style, QWidget *parent /TransferThis/ = NULL );
|
QgsStyleManagerDialog( QgsStyle *style, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
//! open add color ramp dialog, return color ramp's name if the ramp has been added
|
static QString addColorRampStatic( QWidget *parent, QgsStyle *style,
|
||||||
static QString addColorRampStatic( QWidget* parent, QgsStyle* style,
|
|
||||||
QString RampType = QString() );
|
QString RampType = QString() );
|
||||||
|
%Docstring
|
||||||
|
open add color ramp dialog, return color ramp's name if the ramp has been added
|
||||||
|
:rtype: str
|
||||||
|
%End
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void addItem();
|
void addItem();
|
||||||
@ -22,97 +37,195 @@ class QgsStyleManagerDialog : QDialog
|
|||||||
void importItems();
|
void importItems();
|
||||||
|
|
||||||
void on_tabItemType_currentChanged( int );
|
void on_tabItemType_currentChanged( int );
|
||||||
//! adds symbols of some type to list
|
|
||||||
void populateList();
|
void populateList();
|
||||||
|
%Docstring
|
||||||
|
adds symbols of some type to list
|
||||||
|
%End
|
||||||
|
|
||||||
//! called when the dialog is going to be closed
|
|
||||||
void onFinished();
|
void onFinished();
|
||||||
|
%Docstring
|
||||||
|
called when the dialog is going to be closed
|
||||||
|
%End
|
||||||
|
|
||||||
void on_buttonBox_helpRequested();
|
void on_buttonBox_helpRequested();
|
||||||
|
|
||||||
void itemChanged( QStandardItem *item );
|
void itemChanged( QStandardItem *item );
|
||||||
|
|
||||||
void groupChanged( const QModelIndex& );
|
void groupChanged( const QModelIndex & );
|
||||||
void groupRenamed( QStandardItem * );
|
void groupRenamed( QStandardItem * );
|
||||||
//! add a tag
|
|
||||||
int addTag();
|
int addTag();
|
||||||
//! add a smartgroup
|
%Docstring
|
||||||
|
add a tag
|
||||||
|
:rtype: int
|
||||||
|
%End
|
||||||
int addSmartgroup();
|
int addSmartgroup();
|
||||||
//! remove a tag or smartgroup
|
%Docstring
|
||||||
|
add a smartgroup
|
||||||
|
:rtype: int
|
||||||
|
%End
|
||||||
void removeGroup();
|
void removeGroup();
|
||||||
|
%Docstring
|
||||||
|
remove a tag or smartgroup
|
||||||
|
%End
|
||||||
|
|
||||||
//! carry out symbol tagging using check boxes
|
|
||||||
void tagSymbolsAction();
|
void tagSymbolsAction();
|
||||||
|
%Docstring
|
||||||
|
carry out symbol tagging using check boxes
|
||||||
|
%End
|
||||||
|
|
||||||
//! edit the selected smart group
|
|
||||||
void editSmartgroupAction();
|
void editSmartgroupAction();
|
||||||
|
%Docstring
|
||||||
|
edit the selected smart group
|
||||||
|
%End
|
||||||
|
|
||||||
//! symbol changed from one group
|
void regrouped( QStandardItem * );
|
||||||
void regrouped( QStandardItem* );
|
%Docstring
|
||||||
|
symbol changed from one group
|
||||||
|
%End
|
||||||
|
|
||||||
//! filter the symbols based on input search term
|
void filterSymbols( const QString & );
|
||||||
void filterSymbols( const QString& );
|
%Docstring
|
||||||
|
filter the symbols based on input search term
|
||||||
|
%End
|
||||||
|
|
||||||
//! Perform symbol specific tasks when selected
|
void symbolSelected( const QModelIndex & );
|
||||||
void symbolSelected( const QModelIndex& );
|
%Docstring
|
||||||
|
Perform symbol specific tasks when selected
|
||||||
|
%End
|
||||||
|
|
||||||
//! Perform tasks when the selected symbols change
|
|
||||||
void selectedSymbolsChanged( const QItemSelection &selected, const QItemSelection &deselected );
|
void selectedSymbolsChanged( const QItemSelection &selected, const QItemSelection &deselected );
|
||||||
|
%Docstring
|
||||||
|
Perform tasks when the selected symbols change
|
||||||
|
%End
|
||||||
|
|
||||||
//! Context menu for the groupTree
|
|
||||||
void grouptreeContextMenu( QPoint );
|
void grouptreeContextMenu( QPoint );
|
||||||
|
%Docstring
|
||||||
|
Context menu for the groupTree
|
||||||
|
%End
|
||||||
|
|
||||||
//! Context menu for the listItems ( symbols list )
|
|
||||||
void listitemsContextMenu( QPoint );
|
void listitemsContextMenu( QPoint );
|
||||||
|
%Docstring
|
||||||
|
Context menu for the listItems ( symbols list )
|
||||||
|
%End
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
bool addColorRamp( QAction *action );
|
bool addColorRamp( QAction *action );
|
||||||
//! Add selected symbols to favorites
|
%Docstring
|
||||||
|
:rtype: bool
|
||||||
|
%End
|
||||||
void addFavoriteSelectedSymbols();
|
void addFavoriteSelectedSymbols();
|
||||||
//! Remove selected symbols from favorites
|
%Docstring
|
||||||
|
Add selected symbols to favorites
|
||||||
|
%End
|
||||||
void removeFavoriteSelectedSymbols();
|
void removeFavoriteSelectedSymbols();
|
||||||
//! Tag selected symbols using menu item selection
|
%Docstring
|
||||||
|
Remove selected symbols from favorites
|
||||||
|
%End
|
||||||
void tagSelectedSymbols( bool newTag = false );
|
void tagSelectedSymbols( bool newTag = false );
|
||||||
//! Remove all tags from selected symbols
|
%Docstring
|
||||||
|
Tag selected symbols using menu item selection
|
||||||
|
%End
|
||||||
void detagSelectedSymbols();
|
void detagSelectedSymbols();
|
||||||
|
%Docstring
|
||||||
|
Remove all tags from selected symbols
|
||||||
|
%End
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
//! populate combo box with known style items (symbols, color ramps)
|
|
||||||
void populateTypes();
|
void populateTypes();
|
||||||
|
%Docstring
|
||||||
|
populate combo box with known style items (symbols, color ramps)
|
||||||
|
%End
|
||||||
|
|
||||||
//! populate the groups
|
|
||||||
void populateGroups();
|
void populateGroups();
|
||||||
//! to set symbols checked when in editing mode
|
%Docstring
|
||||||
void setSymbolsChecked( const QStringList& );
|
populate the groups
|
||||||
|
%End
|
||||||
|
void setSymbolsChecked( const QStringList & );
|
||||||
|
%Docstring
|
||||||
|
to set symbols checked when in editing mode
|
||||||
|
%End
|
||||||
|
|
||||||
//! populate list view with symbols of the current type with the given names
|
|
||||||
void populateSymbols( const QStringList &symbolNames, bool checkable = false );
|
void populateSymbols( const QStringList &symbolNames, bool checkable = false );
|
||||||
|
%Docstring
|
||||||
|
populate list view with symbols of the current type with the given names
|
||||||
|
%End
|
||||||
|
|
||||||
//! populate list view with color ramps
|
|
||||||
void populateColorRamps( const QStringList &colorRamps, bool checkable = false );
|
void populateColorRamps( const QStringList &colorRamps, bool checkable = false );
|
||||||
|
%Docstring
|
||||||
|
populate list view with color ramps
|
||||||
|
%End
|
||||||
|
|
||||||
int currentItemType();
|
int currentItemType();
|
||||||
|
%Docstring
|
||||||
|
:rtype: int
|
||||||
|
%End
|
||||||
QString currentItemName();
|
QString currentItemName();
|
||||||
|
%Docstring
|
||||||
|
:rtype: str
|
||||||
|
%End
|
||||||
|
|
||||||
//! add a new symbol to style
|
|
||||||
bool addSymbol();
|
bool addSymbol();
|
||||||
//! add a new color ramp to style
|
%Docstring
|
||||||
|
add a new symbol to style
|
||||||
|
:rtype: bool
|
||||||
|
%End
|
||||||
bool addColorRamp();
|
bool addColorRamp();
|
||||||
|
%Docstring
|
||||||
|
add a new color ramp to style
|
||||||
|
:rtype: bool
|
||||||
|
%End
|
||||||
|
|
||||||
bool editSymbol();
|
bool editSymbol();
|
||||||
|
%Docstring
|
||||||
|
:rtype: bool
|
||||||
|
%End
|
||||||
bool editColorRamp();
|
bool editColorRamp();
|
||||||
|
%Docstring
|
||||||
|
:rtype: bool
|
||||||
|
%End
|
||||||
|
|
||||||
bool removeSymbol();
|
bool removeSymbol();
|
||||||
|
%Docstring
|
||||||
|
:rtype: bool
|
||||||
|
%End
|
||||||
bool removeColorRamp();
|
bool removeColorRamp();
|
||||||
|
%Docstring
|
||||||
|
:rtype: bool
|
||||||
|
%End
|
||||||
|
|
||||||
//! Enables or disbables the symbol specific inputs
|
|
||||||
void enableSymbolInputs( bool );
|
void enableSymbolInputs( bool );
|
||||||
//! Enables or disables the groupTree specific inputs
|
%Docstring
|
||||||
|
Enables or disbables the symbol specific inputs
|
||||||
|
%End
|
||||||
void enableGroupInputs( bool );
|
void enableGroupInputs( bool );
|
||||||
//! Enables or disables the groupTree items for grouping mode
|
%Docstring
|
||||||
|
Enables or disables the groupTree specific inputs
|
||||||
|
%End
|
||||||
void enableItemsForGroupingMode( bool );
|
void enableItemsForGroupingMode( bool );
|
||||||
|
%Docstring
|
||||||
|
Enables or disables the groupTree items for grouping mode
|
||||||
|
%End
|
||||||
|
|
||||||
|
void setBold( QStandardItem * );
|
||||||
|
%Docstring
|
||||||
|
sets the text of the item with bold font
|
||||||
|
%End
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//! sets the text of the item with bold font
|
|
||||||
void setBold( QStandardItem* );
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsstylemanagerdialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,22 +1,60 @@
|
|||||||
class QgsStyleSaveDialog : QDialog
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsstylesavedialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class QgsStyleSaveDialog: QDialog
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
%Docstring
|
||||||
#include <qgsstylesavedialog.h>
|
a dialog for setting properties of a newly saved style.
|
||||||
|
.. versionadded:: 3.0
|
||||||
%End
|
%End
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgsstylesavedialog.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
/** Constructor for QgsSymbolSaveDialog
|
|
||||||
* @param parent parent widget
|
|
||||||
* @param type the QgsStyle entity type being saved
|
|
||||||
*/
|
|
||||||
QgsStyleSaveDialog( QWidget *parent /TransferThis/ = NULL, QgsStyle::StyleEntity type = QgsStyle::SymbolEntity );
|
|
||||||
|
|
||||||
//! returns the text value of the name element
|
QgsStyleSaveDialog( QWidget *parent /TransferThis/ = 0, QgsStyle::StyleEntity type = QgsStyle::SymbolEntity );
|
||||||
|
%Docstring
|
||||||
|
Constructor for QgsSymbolSaveDialog
|
||||||
|
\param parent parent widget
|
||||||
|
\param type the QgsStyle entity type being saved
|
||||||
|
%End
|
||||||
|
|
||||||
QString name() const;
|
QString name() const;
|
||||||
|
%Docstring
|
||||||
|
returns the text value of the name element
|
||||||
|
:rtype: str
|
||||||
|
%End
|
||||||
|
|
||||||
//! returns the text value of the tags element
|
|
||||||
QString tags() const;
|
QString tags() const;
|
||||||
|
%Docstring
|
||||||
|
returns the text value of the tags element
|
||||||
|
:rtype: str
|
||||||
|
%End
|
||||||
|
|
||||||
//! returns whether the favorite element is checked
|
|
||||||
bool isFavorite() const;
|
bool isFavorite() const;
|
||||||
|
%Docstring
|
||||||
|
returns whether the favorite element is checked
|
||||||
|
:rtype: bool
|
||||||
|
%End
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsstylesavedialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,62 +1,129 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgssvgselectorwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsSvgSelectorListModel : QAbstractListModel
|
class QgsSvgSelectorListModel : QAbstractListModel
|
||||||
{
|
{
|
||||||
|
%Docstring
|
||||||
|
A model for displaying SVG files with a preview icon. Population of the model is performed in
|
||||||
|
a background thread to ensure that initial creation of the model is responsive and does
|
||||||
|
not block the GUI.
|
||||||
|
%End
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgssvgselectorwidget.h>
|
#include "qgssvgselectorwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
|
|
||||||
QgsSvgSelectorListModel( QObject *parent /TransferThis/ );
|
QgsSvgSelectorListModel( QObject *parent /TransferThis/ );
|
||||||
|
%Docstring
|
||||||
|
Constructor for QgsSvgSelectorListModel. All SVGs in folders from the application SVG
|
||||||
|
search paths will be shown.
|
||||||
|
\param parent parent object
|
||||||
|
%End
|
||||||
|
|
||||||
// Constructor to create model for icons in a specific path
|
|
||||||
QgsSvgSelectorListModel( QObject *parent /TransferThis/, const QString &path );
|
QgsSvgSelectorListModel( QObject *parent /TransferThis/, const QString &path );
|
||||||
|
%Docstring
|
||||||
|
Constructor for creating a model for SVG files in a specific path.
|
||||||
|
\param parent parent object
|
||||||
|
\param path initial path, which is recursively searched
|
||||||
|
%End
|
||||||
|
|
||||||
int rowCount( const QModelIndex &parent = QModelIndex() ) const;
|
virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const;
|
||||||
|
|
||||||
|
virtual QVariant data( const QModelIndex &index, int role = Qt::DisplayRole ) const;
|
||||||
|
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
QVariant data( const QModelIndex &index, int role = Qt::DisplayRole ) const;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class QgsSvgSelectorGroupsModel : QStandardItemModel
|
class QgsSvgSelectorGroupsModel : QStandardItemModel
|
||||||
{
|
{
|
||||||
|
%Docstring
|
||||||
|
A model for displaying SVG search paths. Population of the model is performed in
|
||||||
|
a background thread to ensure that initial creation of the model is responsive and does
|
||||||
|
not block the GUI.
|
||||||
|
%End
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgssvgselectorwidget.h>
|
#include "qgssvgselectorwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
QgsSvgSelectorGroupsModel( QObject *parent /TransferThis/ );
|
QgsSvgSelectorGroupsModel( QObject *parent /TransferThis/ );
|
||||||
};
|
~QgsSvgSelectorGroupsModel();
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
class QgsSvgSelectorWidget : QWidget
|
class QgsSvgSelectorWidget : QWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgssvgselectorwidget.h>
|
#include "qgssvgselectorwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
QgsSvgSelectorWidget( QWidget *parent /TransferThis/ = 0 );
|
QgsSvgSelectorWidget( QWidget *parent /TransferThis/ = 0 );
|
||||||
~QgsSvgSelectorWidget();
|
~QgsSvgSelectorWidget();
|
||||||
|
|
||||||
QString currentSvgPath() const;
|
QString currentSvgPath() const;
|
||||||
|
%Docstring
|
||||||
|
:rtype: str
|
||||||
|
%End
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setSvgPath( const QString &svgPath );
|
void setSvgPath( const QString &svgPath );
|
||||||
|
%Docstring
|
||||||
|
Accepts absolute paths
|
||||||
|
%End
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void svgSelected( const QString &path );
|
void svgSelected( const QString &path );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void populateList();
|
void populateList();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class QgsSvgSelectorDialog : QDialog
|
class QgsSvgSelectorDialog : QDialog
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgssvgselectorwidget.h>
|
#include "qgssvgselectorwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
QgsSvgSelectorDialog( QWidget* parent /TransferThis/ = 0, const Qt::WindowFlags& fl = QgsGuiUtils::ModalDialogFlags,
|
|
||||||
|
QgsSvgSelectorDialog( QWidget *parent /TransferThis/ = 0,
|
||||||
|
Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags,
|
||||||
QDialogButtonBox::StandardButtons buttons = QDialogButtonBox::Close | QDialogButtonBox::Ok,
|
QDialogButtonBox::StandardButtons buttons = QDialogButtonBox::Close | QDialogButtonBox::Ok,
|
||||||
Qt::Orientation orientation = Qt::Horizontal );
|
Qt::Orientation orientation = Qt::Horizontal );
|
||||||
|
%Docstring
|
||||||
|
Constructor for QgsSvgSelectorDialog.
|
||||||
|
%End
|
||||||
~QgsSvgSelectorDialog();
|
~QgsSvgSelectorDialog();
|
||||||
|
|
||||||
//! Returns pointer to the embedded SVG selector widget
|
|
||||||
QgsSvgSelectorWidget *svgSelector();
|
QgsSvgSelectorWidget *svgSelector();
|
||||||
|
%Docstring
|
||||||
|
Returns pointer to the embedded SVG selector widget
|
||||||
|
:rtype: QgsSvgSelectorWidget
|
||||||
|
%End
|
||||||
|
|
||||||
|
protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgssvgselectorwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,71 +1,103 @@
|
|||||||
class QgsSymbolLayerWidget : QWidget
|
/************************************************************************
|
||||||
{
|
* This file has been generated automatically from *
|
||||||
%TypeHeaderCode
|
* *
|
||||||
#include <qgssymbollayerwidget.h>
|
* src/gui/symbology-ng/qgssymbollayerwidget.h *
|
||||||
%End
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class QgsSymbolLayerWidget : QWidget, protected QgsExpressionContextGenerator
|
||||||
|
{
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgssymbollayerwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsSymbolLayerWidget( QWidget *parent /TransferThis/, const QgsVectorLayer *vl = 0 );
|
QgsSymbolLayerWidget( QWidget *parent /TransferThis/, const QgsVectorLayer *vl = 0 );
|
||||||
virtual ~QgsSymbolLayerWidget();
|
|
||||||
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer ) = 0;
|
virtual void setSymbolLayer( QgsSymbolLayer *layer ) = 0;
|
||||||
virtual QgsSymbolLayer *symbolLayer() = 0;
|
virtual QgsSymbolLayer *symbolLayer() = 0;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbolLayer
|
||||||
|
%End
|
||||||
|
|
||||||
/** Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
|
||||||
* @param context symbol widget context
|
|
||||||
* @see context()
|
|
||||||
* @note added in QGIS 3.0
|
|
||||||
*/
|
|
||||||
void setContext( const QgsSymbolWidgetContext &context );
|
void setContext( const QgsSymbolWidgetContext &context );
|
||||||
|
%Docstring
|
||||||
|
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
||||||
|
\param context symbol widget context
|
||||||
|
.. seealso:: context()
|
||||||
|
.. versionadded:: 3.0
|
||||||
|
%End
|
||||||
|
|
||||||
/** Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
|
||||||
* @see setContext()
|
|
||||||
* @note added in QGIS 3.0
|
|
||||||
*/
|
|
||||||
QgsSymbolWidgetContext context() const;
|
QgsSymbolWidgetContext context() const;
|
||||||
|
%Docstring
|
||||||
|
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
||||||
|
.. seealso:: setContext()
|
||||||
|
.. versionadded:: 3.0
|
||||||
|
:rtype: QgsSymbolWidgetContext
|
||||||
|
%End
|
||||||
|
|
||||||
/** Returns the vector layer associated with the widget.
|
|
||||||
* @note added in QGIS 2.12
|
|
||||||
*/
|
|
||||||
const QgsVectorLayer *vectorLayer() const;
|
const QgsVectorLayer *vectorLayer() const;
|
||||||
|
%Docstring
|
||||||
|
Returns the vector layer associated with the widget.
|
||||||
|
.. versionadded:: 2.12
|
||||||
|
:rtype: QgsVectorLayer
|
||||||
|
%End
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void registerDataDefinedButton( QgsPropertyOverrideButton *button, QgsSymbolLayer::Property key );
|
|
||||||
|
|
||||||
QgsExpressionContext createExpressionContext() const;
|
void registerDataDefinedButton( QgsPropertyOverrideButton *button, QgsSymbolLayer::Property key );
|
||||||
|
%Docstring
|
||||||
|
Registers a data defined override button. Handles setting up connections
|
||||||
|
for the button and initializing the button to show the correct descriptions
|
||||||
|
and help text for the associated property.
|
||||||
|
.. versionadded:: 3.0
|
||||||
|
%End
|
||||||
|
|
||||||
|
virtual QgsExpressionContext createExpressionContext() const;
|
||||||
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
/**
|
|
||||||
* Should be emitted whenever configuration changes happened on this symbol layer configuration.
|
|
||||||
* If the subsymbol is changed, {@link symbolChanged()} should be emitted instead.
|
|
||||||
*/
|
|
||||||
void changed();
|
void changed();
|
||||||
/**
|
%Docstring
|
||||||
* Should be emitted whenever the sub symbol changed on this symbol layer configuration.
|
Should be emitted whenever configuration changes happened on this symbol layer configuration.
|
||||||
* Normally {@link changed()} should be preferred.
|
If the subsymbol is changed, symbolChanged() should be emitted instead.
|
||||||
*
|
%End
|
||||||
* @see {@link changed()}
|
|
||||||
*/
|
|
||||||
void symbolChanged();
|
void symbolChanged();
|
||||||
|
%Docstring
|
||||||
|
Should be emitted whenever the sub symbol changed on this symbol layer configuration.
|
||||||
|
Normally changed() should be preferred.
|
||||||
|
|
||||||
|
.. seealso:: changed()
|
||||||
|
%End
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
void updateDataDefinedProperty();
|
void updateDataDefinedProperty();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
///////////
|
|
||||||
|
|
||||||
|
|
||||||
class QgsSimpleLineSymbolLayerWidget : QgsSymbolLayerWidget
|
class QgsSimpleLineSymbolLayerWidget : QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgssymbollayerwidget.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgssymbollayerwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsSimpleLineSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = NULL );
|
QgsSimpleLineSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
// from base class
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
@ -82,29 +114,33 @@ class QgsSimpleLineSymbolLayerWidget : QgsSymbolLayerWidget
|
|||||||
void on_mDrawInsideCheckBox_stateChanged( int state );
|
void on_mDrawInsideCheckBox_stateChanged( int state );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
//creates a new icon for the 'change pattern' button
|
|
||||||
void updatePatternIcon();
|
void updatePatternIcon();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
///////////
|
|
||||||
|
|
||||||
|
|
||||||
class QgsSimpleMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
class QgsSimpleMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgssymbollayerwidget.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgssymbollayerwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsSimpleMarkerSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = NULL );
|
QgsSimpleMarkerSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
~QgsSimpleMarkerSymbolLayerWidget();
|
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
// from base class
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
void setColorStroke( const QColor &color );
|
void setColorStroke( const QColor &color );
|
||||||
void setColorFill( const QColor &color );
|
void setColorFill( const QColor &color );
|
||||||
void setSize();
|
void setSize();
|
||||||
@ -117,22 +153,28 @@ class QgsSimpleMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
|||||||
void on_mStrokeWidthSpinBox_valueChanged( double d );
|
void on_mStrokeWidthSpinBox_valueChanged( double d );
|
||||||
void on_mHorizontalAnchorComboBox_currentIndexChanged( int index );
|
void on_mHorizontalAnchorComboBox_currentIndexChanged( int index );
|
||||||
void on_mVerticalAnchorComboBox_currentIndexChanged( int index );
|
void on_mVerticalAnchorComboBox_currentIndexChanged( int index );
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
///////////
|
|
||||||
|
|
||||||
|
|
||||||
class QgsSimpleFillSymbolLayerWidget : QgsSymbolLayerWidget
|
class QgsSimpleFillSymbolLayerWidget : QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgssymbollayerwidget.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgssymbollayerwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsSimpleFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = NULL );
|
QgsSimpleFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
// from base class
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
@ -145,64 +187,76 @@ class QgsSimpleFillSymbolLayerWidget : QgsSymbolLayerWidget
|
|||||||
void offsetChanged();
|
void offsetChanged();
|
||||||
void on_mStrokeWidthUnitWidget_changed();
|
void on_mStrokeWidthUnitWidget_changed();
|
||||||
void on_mOffsetUnitWidget_changed();
|
void on_mOffsetUnitWidget_changed();
|
||||||
|
|
||||||
|
protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
///////////
|
|
||||||
|
|
||||||
/** \ingroup gui
|
|
||||||
* \class QgsFilledMarkerSymbolLayerWidget
|
|
||||||
* \brief Widget for configuring QgsFilledMarkerSymbolLayer symbol layers.
|
|
||||||
* \note Added in version 2.16
|
|
||||||
*/
|
|
||||||
class QgsFilledMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
class QgsFilledMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
%Docstring
|
||||||
#include <qgssymbollayerwidget.h>
|
Widget for configuring QgsFilledMarkerSymbolLayer symbol layers.
|
||||||
|
.. versionadded:: 2.16
|
||||||
%End
|
%End
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgssymbollayerwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/** Constructor for QgsFilledMarkerSymbolLayerWidget.
|
|
||||||
* @param vl associated vector layer
|
|
||||||
* @param parent parent widget
|
|
||||||
*/
|
|
||||||
QgsFilledMarkerSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
QgsFilledMarkerSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
%Docstring
|
||||||
|
Constructor for QgsFilledMarkerSymbolLayerWidget.
|
||||||
|
\param vl associated vector layer
|
||||||
|
\param parent parent widget
|
||||||
|
%End
|
||||||
|
|
||||||
~QgsFilledMarkerSymbolLayerWidget();
|
|
||||||
|
|
||||||
/** Creates a new QgsFilledMarkerSymbolLayerWidget.
|
|
||||||
* @param vl associated vector layer
|
|
||||||
*/
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
Creates a new QgsFilledMarkerSymbolLayerWidget.
|
||||||
|
\param vl associated vector layer
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
// from base class
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
///////////
|
|
||||||
|
|
||||||
|
|
||||||
class QgsGradientFillSymbolLayerWidget : QgsSymbolLayerWidget
|
class QgsGradientFillSymbolLayerWidget : QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgssymbollayerwidget.h>
|
#include "qgssymbollayerwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
QgsGradientFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = NULL );
|
QgsGradientFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
// from base class
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setColor( const QColor &color );
|
void setColor( const QColor &color );
|
||||||
void setColor2( const QColor &color );
|
void setColor2( const QColor &color );
|
||||||
|
|
||||||
void applyColorRamp();
|
void applyColorRamp();
|
||||||
|
%Docstring
|
||||||
|
Applies the color ramp passed on by the color ramp button
|
||||||
|
%End
|
||||||
|
|
||||||
void setGradientType( int index );
|
void setGradientType( int index );
|
||||||
void setCoordinateMode( int index );
|
void setCoordinateMode( int index );
|
||||||
void setGradientSpread( int index );
|
void setGradientSpread( int index );
|
||||||
@ -211,21 +265,27 @@ class QgsGradientFillSymbolLayerWidget : QgsSymbolLayerWidget
|
|||||||
void on_mOffsetUnitWidget_changed();
|
void on_mOffsetUnitWidget_changed();
|
||||||
void colorModeChanged();
|
void colorModeChanged();
|
||||||
void on_mSpinAngle_valueChanged( double value );
|
void on_mSpinAngle_valueChanged( double value );
|
||||||
|
|
||||||
|
protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
///////////
|
|
||||||
|
|
||||||
|
|
||||||
class QgsShapeburstFillSymbolLayerWidget : QgsSymbolLayerWidget
|
class QgsShapeburstFillSymbolLayerWidget : QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgssymbollayerwidget.h>
|
#include "qgssymbollayerwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
QgsShapeburstFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = NULL );
|
QgsShapeburstFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
// from base class
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
@ -241,21 +301,27 @@ class QgsShapeburstFillSymbolLayerWidget : QgsSymbolLayerWidget
|
|||||||
void offsetChanged();
|
void offsetChanged();
|
||||||
void on_mOffsetUnitWidget_changed();
|
void on_mOffsetUnitWidget_changed();
|
||||||
void on_mIgnoreRingsCheckBox_stateChanged( int state );
|
void on_mIgnoreRingsCheckBox_stateChanged( int state );
|
||||||
|
|
||||||
|
protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
///////////
|
|
||||||
|
|
||||||
|
|
||||||
class QgsMarkerLineSymbolLayerWidget : QgsSymbolLayerWidget
|
class QgsMarkerLineSymbolLayerWidget : QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgssymbollayerwidget.h>
|
#include "qgssymbollayerwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
QgsMarkerLineSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = NULL );
|
QgsMarkerLineSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
// from base class
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
@ -269,24 +335,29 @@ class QgsMarkerLineSymbolLayerWidget : QgsSymbolLayerWidget
|
|||||||
void on_mIntervalUnitWidget_changed();
|
void on_mIntervalUnitWidget_changed();
|
||||||
void on_mOffsetUnitWidget_changed();
|
void on_mOffsetUnitWidget_changed();
|
||||||
void on_mOffsetAlongLineUnitWidget_changed();
|
void on_mOffsetAlongLineUnitWidget_changed();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
///////////
|
|
||||||
|
|
||||||
|
|
||||||
class QgsSvgMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
class QgsSvgMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgssymbollayerwidget.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgssymbollayerwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsSvgMarkerSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = NULL );
|
QgsSvgMarkerSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
~QgsSvgMarkerSymbolLayerWidget();
|
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
// from base class
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
@ -311,104 +382,132 @@ class QgsSvgMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
|||||||
protected:
|
protected:
|
||||||
|
|
||||||
void populateList();
|
void populateList();
|
||||||
//update gui for svg file (insert new path, update activation of gui elements for svg params)
|
|
||||||
void setGuiForSvg( const QgsSvgMarkerSymbolLayer *layer );
|
void setGuiForSvg( const QgsSvgMarkerSymbolLayer *layer );
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
///////////
|
|
||||||
|
|
||||||
|
|
||||||
class QgsRasterFillSymbolLayerWidget : QgsSymbolLayerWidget
|
class QgsRasterFillSymbolLayerWidget : QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgssymbollayerwidget.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgssymbollayerwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsRasterFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = NULL );
|
QgsRasterFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
// from base class
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
///////////
|
|
||||||
|
|
||||||
|
|
||||||
class QgsSVGFillSymbolLayerWidget : QgsSymbolLayerWidget
|
class QgsSVGFillSymbolLayerWidget : QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgssymbollayerwidget.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgssymbollayerwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsSVGFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = NULL );
|
QgsSVGFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
// from base class
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void insertIcons();
|
void insertIcons();
|
||||||
/** Enables or disables svg fill color, stroke color and stroke width based on whether the
|
|
||||||
* svg file supports custom parameters.
|
|
||||||
* @param resetValues set to true to overwrite existing layer fill color, stroke color and stroke width
|
|
||||||
* with default values from svg file
|
|
||||||
*/
|
|
||||||
void updateParamGui( bool resetValues = true );
|
void updateParamGui( bool resetValues = true );
|
||||||
|
%Docstring
|
||||||
|
Enables or disables svg fill color, stroke color and stroke width based on whether the
|
||||||
|
svg file supports custom parameters.
|
||||||
|
\param resetValues set to true to overwrite existing layer fill color, stroke color and stroke width
|
||||||
|
with default values from svg file
|
||||||
|
%End
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//////////
|
|
||||||
|
|
||||||
|
|
||||||
class QgsLinePatternFillSymbolLayerWidget : QgsSymbolLayerWidget
|
class QgsLinePatternFillSymbolLayerWidget : QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgssymbollayerwidget.h>
|
#include "qgssymbollayerwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
|
|
||||||
QgsLinePatternFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = NULL );
|
QgsLinePatternFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//////////
|
|
||||||
|
|
||||||
|
|
||||||
class QgsPointPatternFillSymbolLayerWidget: QgsSymbolLayerWidget
|
class QgsPointPatternFillSymbolLayerWidget: QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgssymbollayerwidget.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgssymbollayerwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsPointPatternFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = NULL );
|
QgsPointPatternFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/////////
|
|
||||||
|
|
||||||
|
|
||||||
class QgsFontMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
class QgsFontMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgssymbollayerwidget.h>
|
#include "qgssymbollayerwidget.h"
|
||||||
%End
|
%End
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsFontMarkerSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = NULL );
|
QgsFontMarkerSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
~QgsFontMarkerSymbolLayerWidget();
|
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
// from base class
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
@ -416,9 +515,11 @@ class QgsFontMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
|||||||
void setFontFamily( const QFont &font );
|
void setFontFamily( const QFont &font );
|
||||||
void setColor( const QColor &color );
|
void setColor( const QColor &color );
|
||||||
|
|
||||||
/** Set stroke color.
|
|
||||||
* @note added in 2.16 */
|
|
||||||
void setColorStroke( const QColor &color );
|
void setColorStroke( const QColor &color );
|
||||||
|
%Docstring
|
||||||
|
Set stroke color.
|
||||||
|
.. versionadded:: 2.16
|
||||||
|
%End
|
||||||
void setSize( double size );
|
void setSize( double size );
|
||||||
void setAngle( double angle );
|
void setAngle( double angle );
|
||||||
void setCharacter( QChar chr );
|
void setCharacter( QChar chr );
|
||||||
@ -429,41 +530,63 @@ class QgsFontMarkerSymbolLayerWidget : QgsSymbolLayerWidget
|
|||||||
void on_mStrokeWidthSpinBox_valueChanged( double d );
|
void on_mStrokeWidthSpinBox_valueChanged( double d );
|
||||||
void on_mHorizontalAnchorComboBox_currentIndexChanged( int index );
|
void on_mHorizontalAnchorComboBox_currentIndexChanged( int index );
|
||||||
void on_mVerticalAnchorComboBox_currentIndexChanged( int index );
|
void on_mVerticalAnchorComboBox_currentIndexChanged( int index );
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//////////
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsCentroidFillSymbolLayerWidget : QgsSymbolLayerWidget
|
class QgsCentroidFillSymbolLayerWidget : QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgssymbollayerwidget.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgssymbollayerwidget.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsCentroidFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = NULL );
|
QgsCentroidFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
// from base class
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsGeometryGeneratorSymbolLayerWidget : QgsSymbolLayerWidget
|
class QgsGeometryGeneratorSymbolLayerWidget : QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgssymbollayerwidget.h>
|
#include "qgssymbollayerwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
QgsGeometryGeneratorSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
QgsGeometryGeneratorSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
|
||||||
/**
|
|
||||||
* Will be registered as factory
|
|
||||||
*/
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
Will be registered as factory
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
// from base class
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgssymbollayerwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,16 +1,29 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgssymbollevelsdialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsSymbolLevelsDialog : QDialog
|
class QgsSymbolLevelsDialog : QDialog
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgssymbollevelsdialog.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgssymbollevelsdialog.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
//! @note not available in python bindings
|
|
||||||
// QgsSymbolLevelsDialog( const QList< QPair<QString, QgsSymbol*> > &list, bool usingSymbolLevels, QWidget *parent = NULL );
|
~QgsSymbolLevelsDialog();
|
||||||
|
|
||||||
bool usingLevels() const;
|
bool usingLevels() const;
|
||||||
|
%Docstring
|
||||||
|
:rtype: bool
|
||||||
|
%End
|
||||||
|
|
||||||
// used by rule-based renderer (to hide checkbox to enable/disable ordering)
|
|
||||||
void setForceOrderingEnabled( bool enabled );
|
void setForceOrderingEnabled( bool enabled );
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
@ -19,11 +32,17 @@ class QgsSymbolLevelsDialog : QDialog
|
|||||||
void renderingPassChanged( int row, int column );
|
void renderingPassChanged( int row, int column );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
//! @note not available in python bindings
|
|
||||||
//void populateTable();
|
|
||||||
//! @note not available in python bindings
|
|
||||||
//void setDefaultLevels();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QgsSymbolLevelsDialog();
|
QgsSymbolLevelsDialog();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgssymbollevelsdialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,123 +1,233 @@
|
|||||||
class QgsSymbolSelectorWidget : QgsPanelWidget
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgssymbolselectordialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class QgsSymbolSelectorWidget: QgsPanelWidget
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
%Docstring
|
||||||
#include <qgssymbolselectordialog.h>
|
Symbol selector widget that cna be used to select and build a symbol
|
||||||
%End
|
%End
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgssymbolselectordialog.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsSymbolSelectorWidget( QgsSymbol *symbol, QgsStyle *style, const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0);
|
|
||||||
|
|
||||||
//! return menu for "advanced" button - create it if doesn't exist and show the advanced button
|
QgsSymbolSelectorWidget( QgsSymbol *symbol, QgsStyle *style, const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
|
%Docstring
|
||||||
|
Symbol selector widget that can be used to select and build a symbol
|
||||||
|
\param symbol The symbol to load into the widget as a start point.
|
||||||
|
\param style The style used by the widget.
|
||||||
|
\param vl The vector layer for the symbol.
|
||||||
|
\param parent
|
||||||
|
%End
|
||||||
|
|
||||||
QMenu *advancedMenu();
|
QMenu *advancedMenu();
|
||||||
|
%Docstring
|
||||||
|
return menu for "advanced" button - create it if doesn't exist and show the advanced button
|
||||||
|
:rtype: QMenu
|
||||||
|
%End
|
||||||
|
|
||||||
/** Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
|
||||||
* @param context symbol widget context
|
|
||||||
* @see context()
|
|
||||||
* @note added in QGIS 3.0
|
|
||||||
*/
|
|
||||||
void setContext( const QgsSymbolWidgetContext &context );
|
void setContext( const QgsSymbolWidgetContext &context );
|
||||||
|
%Docstring
|
||||||
|
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
||||||
|
\param context symbol widget context
|
||||||
|
.. seealso:: context()
|
||||||
|
.. versionadded:: 3.0
|
||||||
|
%End
|
||||||
|
|
||||||
/** Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
|
||||||
* @see setContext()
|
|
||||||
* @note added in QGIS 3.0
|
|
||||||
*/
|
|
||||||
QgsSymbolWidgetContext context() const;
|
QgsSymbolWidgetContext context() const;
|
||||||
|
%Docstring
|
||||||
|
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
||||||
|
.. seealso:: setContext()
|
||||||
|
.. versionadded:: 3.0
|
||||||
|
:rtype: QgsSymbolWidgetContext
|
||||||
|
%End
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Return the symbol that is currently active in the widget. Can be null.
|
|
||||||
* @return The active symbol.
|
|
||||||
*/
|
|
||||||
QgsSymbol *symbol();
|
QgsSymbol *symbol();
|
||||||
|
%Docstring
|
||||||
|
Return the symbol that is currently active in the widget. Can be null.
|
||||||
|
:return: The active symbol.
|
||||||
|
:rtype: QgsSymbol
|
||||||
|
%End
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
//! Reimplements dialog keyPress event so we can ignore it
|
|
||||||
void keyPressEvent( QKeyEvent *event );
|
|
||||||
|
|
||||||
void loadSymbol();
|
void loadSymbol();
|
||||||
//! @note not available in python bindings
|
%Docstring
|
||||||
// void loadSymbol( QgsSymbol *symbol, SymbolLayerItem *parent );
|
Reload the current symbol in the view.
|
||||||
|
%End
|
||||||
|
|
||||||
|
|
||||||
void updateUi();
|
void updateUi();
|
||||||
|
%Docstring
|
||||||
|
Update the state of the UI based on the currently set symbol layer.
|
||||||
|
%End
|
||||||
|
|
||||||
void updateLockButton();
|
void updateLockButton();
|
||||||
|
%Docstring
|
||||||
|
Update the lock button states based on the current symbol layer.
|
||||||
|
%End
|
||||||
|
|
||||||
|
|
||||||
//! @note not available in python bindings
|
|
||||||
// SymbolLayerItem *currentLayerItem();
|
|
||||||
QgsSymbolLayer *currentLayer();
|
QgsSymbolLayer *currentLayer();
|
||||||
|
%Docstring
|
||||||
|
The current symbol layer that is active in the interface.
|
||||||
|
:return: The active symbol layer.
|
||||||
|
:rtype: QgsSymbolLayer
|
||||||
|
%End
|
||||||
|
|
||||||
void moveLayerByOffset( int offset );
|
void moveLayerByOffset( int offset );
|
||||||
|
%Docstring
|
||||||
|
Move the current active layer by a set offset in the list.
|
||||||
|
\param offset The offset to move the layer by
|
||||||
|
%End
|
||||||
|
|
||||||
void setWidget( QWidget *widget );
|
void setWidget( QWidget *widget );
|
||||||
|
%Docstring
|
||||||
|
Set the properties widget for the active symbol layer.
|
||||||
|
\param widget The widget to set to configure the active symbol layer.
|
||||||
|
%End
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
void symbolModified();
|
void symbolModified();
|
||||||
|
%Docstring
|
||||||
|
Emiited when a symbol is modified in the widget.
|
||||||
|
%End
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
void moveLayerDown();
|
void moveLayerDown();
|
||||||
|
%Docstring
|
||||||
|
Move the active symbol layer down.
|
||||||
|
%End
|
||||||
|
|
||||||
void moveLayerUp();
|
void moveLayerUp();
|
||||||
|
%Docstring
|
||||||
|
Move the active symbol layer up.
|
||||||
|
%End
|
||||||
|
|
||||||
void addLayer();
|
void addLayer();
|
||||||
|
%Docstring
|
||||||
|
Add a symobl layer to the bottom of the stack.
|
||||||
|
%End
|
||||||
|
|
||||||
void removeLayer();
|
void removeLayer();
|
||||||
|
%Docstring
|
||||||
|
Remove the current active symbol layer.
|
||||||
|
%End
|
||||||
|
|
||||||
void lockLayer();
|
void lockLayer();
|
||||||
|
%Docstring
|
||||||
|
Lock the current active symbol layer.
|
||||||
|
%End
|
||||||
|
|
||||||
//! Duplicates the current symbol layer and places the duplicated layer above the current symbol layer
|
|
||||||
//! @note added in QGIS 2.14
|
|
||||||
void duplicateLayer();
|
void duplicateLayer();
|
||||||
|
%Docstring
|
||||||
|
.. versionadded:: 2.14
|
||||||
|
%End
|
||||||
|
|
||||||
void layerChanged();
|
void layerChanged();
|
||||||
|
%Docstring
|
||||||
|
Called when the layer changes in the widget. Updates the active properties for
|
||||||
|
active symbol layer.
|
||||||
|
%End
|
||||||
|
|
||||||
void updateLayerPreview();
|
void updateLayerPreview();
|
||||||
void updatePreview();
|
%Docstring
|
||||||
|
Update the single symbol layer preview in the widget.
|
||||||
|
%End
|
||||||
|
|
||||||
|
void updatePreview();
|
||||||
|
%Docstring
|
||||||
|
Update the preview of the whole symbol in the interface.
|
||||||
|
%End
|
||||||
|
|
||||||
//! Slot to update tree when a new symbol from style
|
|
||||||
void symbolChanged();
|
void symbolChanged();
|
||||||
//! alters tree and sets proper widget when Layer Type is changed
|
%Docstring
|
||||||
//! @note: The layer is received from the LayerPropertiesWidget
|
Slot to update tree when a new symbol from style
|
||||||
|
%End
|
||||||
void changeLayer( QgsSymbolLayer *layer );
|
void changeLayer( QgsSymbolLayer *layer );
|
||||||
|
%Docstring
|
||||||
|
\note: The layer is received from the LayerPropertiesWidget
|
||||||
|
%End
|
||||||
|
|
||||||
|
|
||||||
|
protected: // data
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class QgsSymbolSelectorDialog : QDialog
|
class QgsSymbolSelectorDialog : QDialog
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgssymbolselectordialog.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgssymbolselectordialog.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
QgsSymbolSelectorDialog( QgsSymbol *symbol, QgsStyle *style, const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0, bool embedded = false );
|
QgsSymbolSelectorDialog( QgsSymbol *symbol, QgsStyle *style, const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0, bool embedded = false );
|
||||||
|
~QgsSymbolSelectorDialog();
|
||||||
|
|
||||||
//! return menu for "advanced" button - create it if doesn't exist and show the advanced button
|
|
||||||
QMenu *advancedMenu();
|
QMenu *advancedMenu();
|
||||||
|
%Docstring
|
||||||
|
return menu for "advanced" button - create it if doesn't exist and show the advanced button
|
||||||
|
:rtype: QMenu
|
||||||
|
%End
|
||||||
|
|
||||||
/** Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
|
||||||
* @param context symbol widget context
|
|
||||||
* @see context()
|
|
||||||
* @note added in QGIS 3.0
|
|
||||||
*/
|
|
||||||
void setContext( const QgsSymbolWidgetContext &context );
|
void setContext( const QgsSymbolWidgetContext &context );
|
||||||
|
%Docstring
|
||||||
|
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
||||||
|
\param context symbol widget context
|
||||||
|
.. seealso:: context()
|
||||||
|
.. versionadded:: 3.0
|
||||||
|
%End
|
||||||
|
|
||||||
/** Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
|
||||||
* @see setContext()
|
|
||||||
* @note added in QGIS 3.0
|
|
||||||
*/
|
|
||||||
QgsSymbolWidgetContext context() const;
|
QgsSymbolWidgetContext context() const;
|
||||||
|
%Docstring
|
||||||
|
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
||||||
|
.. seealso:: setContext()
|
||||||
|
.. versionadded:: 3.0
|
||||||
|
:rtype: QgsSymbolWidgetContext
|
||||||
|
%End
|
||||||
|
|
||||||
QgsSymbol *symbol();
|
QgsSymbol *symbol();
|
||||||
|
%Docstring
|
||||||
|
Return the symbol that is currently active in the widget. Can be null.
|
||||||
|
:return: The active symbol.
|
||||||
|
:rtype: QgsSymbol
|
||||||
|
%End
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
//! Reimplements dialog keyPress event so we can ignore it
|
virtual void keyPressEvent( QKeyEvent *e );
|
||||||
void keyPressEvent( QKeyEvent *event );
|
|
||||||
|
|
||||||
void loadSymbol();
|
void loadSymbol();
|
||||||
//! @note not available in python bindings
|
|
||||||
// void loadSymbol( QgsSymbol *symbol, SymbolLayerItem *parent );
|
|
||||||
|
|
||||||
void updateUi();
|
void updateUi();
|
||||||
|
|
||||||
void updateLockButton();
|
void updateLockButton();
|
||||||
|
|
||||||
//! @note not available in python bindings
|
|
||||||
// SymbolLayerItem *currentLayerItem();
|
|
||||||
QgsSymbolLayer *currentLayer();
|
QgsSymbolLayer *currentLayer();
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbolLayer
|
||||||
|
%End
|
||||||
|
|
||||||
void moveLayerByOffset( int offset );
|
void moveLayerByOffset( int offset );
|
||||||
|
|
||||||
@ -135,20 +245,31 @@ class QgsSymbolSelectorDialog : QDialog
|
|||||||
|
|
||||||
void lockLayer();
|
void lockLayer();
|
||||||
|
|
||||||
//! Duplicates the current symbol layer and places the duplicated layer above the current symbol layer
|
|
||||||
//! @note added in QGIS 2.14
|
|
||||||
void duplicateLayer();
|
void duplicateLayer();
|
||||||
|
%Docstring
|
||||||
|
.. versionadded:: 2.14
|
||||||
|
%End
|
||||||
|
|
||||||
void layerChanged();
|
void layerChanged();
|
||||||
|
|
||||||
void updateLayerPreview();
|
void updateLayerPreview();
|
||||||
void updatePreview();
|
void updatePreview();
|
||||||
|
|
||||||
//! Slot to update tree when a new symbol from style
|
|
||||||
void symbolChanged();
|
void symbolChanged();
|
||||||
//! alters tree and sets proper widget when Layer Type is changed
|
%Docstring
|
||||||
//! @note: The layer is received from the LayerPropertiesWidget
|
Slot to update tree when a new symbol from style
|
||||||
|
%End
|
||||||
void changeLayer( QgsSymbolLayer *layer );
|
void changeLayer( QgsSymbolLayer *layer );
|
||||||
|
%Docstring
|
||||||
|
\note: The layer is received from the LayerPropertiesWidget
|
||||||
|
%End
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgssymbolselectordialog.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,28 +1,51 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgssymbolslistwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsSymbolsListWidget : QWidget
|
class QgsSymbolsListWidget : QWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgssymbolslistwidget.h>
|
#include "qgssymbolslistwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
QgsSymbolsListWidget( QgsSymbol *symbol, QgsStyle *style, QMenu *menu, QWidget *parent /TransferThis/ = 0, const QgsVectorLayer *layer = 0 );
|
QgsSymbolsListWidget( QgsSymbol *symbol, QgsStyle *style, QMenu *menu, QWidget *parent /TransferThis/, const QgsVectorLayer *layer = 0 );
|
||||||
|
|
||||||
|
|
||||||
|
virtual ~QgsSymbolsListWidget();
|
||||||
|
|
||||||
/** Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
|
||||||
* @param context symbol widget context
|
|
||||||
* @see context()
|
|
||||||
* @note added in QGIS 3.0
|
|
||||||
*/
|
|
||||||
void setContext( const QgsSymbolWidgetContext &context );
|
void setContext( const QgsSymbolWidgetContext &context );
|
||||||
|
%Docstring
|
||||||
|
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
||||||
|
\param context symbol widget context
|
||||||
|
.. seealso:: context()
|
||||||
|
.. versionadded:: 3.0
|
||||||
|
%End
|
||||||
|
|
||||||
/** Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
|
||||||
* @see setContext()
|
|
||||||
* @note added in QGIS 3.0
|
|
||||||
*/
|
|
||||||
QgsSymbolWidgetContext context() const;
|
QgsSymbolWidgetContext context() const;
|
||||||
|
%Docstring
|
||||||
|
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
||||||
|
.. seealso:: setContext()
|
||||||
|
.. versionadded:: 3.0
|
||||||
|
:rtype: QgsSymbolWidgetContext
|
||||||
|
%End
|
||||||
|
|
||||||
/** Returns the vector layer associated with the widget.
|
|
||||||
* @note added in QGIS 2.12
|
|
||||||
*/
|
|
||||||
const QgsVectorLayer *layer() const;
|
const QgsVectorLayer *layer() const;
|
||||||
|
%Docstring
|
||||||
|
Returns the vector layer associated with the widget.
|
||||||
|
.. versionadded:: 2.12
|
||||||
|
:rtype: QgsVectorLayer
|
||||||
|
%End
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
@ -33,11 +56,15 @@ class QgsSymbolsListWidget : QWidget
|
|||||||
void setLineWidth( double width );
|
void setLineWidth( double width );
|
||||||
void addSymbolToStyle();
|
void addSymbolToStyle();
|
||||||
void saveSymbol();
|
void saveSymbol();
|
||||||
|
|
||||||
void symbolAddedToStyle( const QString &name, QgsSymbol *symbol );
|
void symbolAddedToStyle( const QString &name, QgsSymbol *symbol );
|
||||||
|
|
||||||
void on_mSymbolUnitWidget_changed();
|
void on_mSymbolUnitWidget_changed();
|
||||||
|
|
||||||
//! Pupulates the groups combo box with available tags and smartgroups
|
|
||||||
void populateGroups();
|
void populateGroups();
|
||||||
|
%Docstring
|
||||||
|
Pupulates the groups combo box with available tags and smartgroups
|
||||||
|
%End
|
||||||
void on_groupsCombo_currentIndexChanged( int index );
|
void on_groupsCombo_currentIndexChanged( int index );
|
||||||
|
|
||||||
void openStyleManager();
|
void openStyleManager();
|
||||||
@ -49,4 +76,16 @@ class QgsSymbolsListWidget : QWidget
|
|||||||
|
|
||||||
signals:
|
signals:
|
||||||
void changed();
|
void changed();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgssymbolslistwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,67 +1,101 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgssymbolwidgetcontext.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
/** \ingroup gui
|
|
||||||
* \class QgsSymbolWidgetContext
|
|
||||||
* Contains settings which reflect the context in which a symbol (or renderer) widget is shown, e.g., the
|
|
||||||
* map canvas and relevant expression contexts.
|
|
||||||
*
|
|
||||||
* \note added in QGIS 3.0
|
class QgsSymbolWidgetContext
|
||||||
*/
|
|
||||||
class QgsSymbolWidgetContext
|
|
||||||
{
|
{
|
||||||
|
%Docstring
|
||||||
|
Contains settings which reflect the context in which a symbol (or renderer) widget is shown, e.g., the
|
||||||
|
map canvas and relevant expression contexts.
|
||||||
|
|
||||||
|
.. versionadded:: 3.0
|
||||||
|
%End
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgssymbolwidgetcontext.h>
|
#include "qgssymbolwidgetcontext.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
|
|
||||||
QgsSymbolWidgetContext();
|
QgsSymbolWidgetContext();
|
||||||
|
|
||||||
QgsSymbolWidgetContext( const QgsSymbolWidgetContext &other );
|
QgsSymbolWidgetContext( const QgsSymbolWidgetContext &other );
|
||||||
|
%Docstring
|
||||||
|
Copy constructor.
|
||||||
|
\param other source QgsSymbolWidgetContext
|
||||||
|
%End
|
||||||
|
|
||||||
//QgsSymbolWidgetContext &operator=( const QgsSymbolWidgetContext &other );
|
|
||||||
|
|
||||||
/** Sets the map canvas associated with the widget. This allows the widget to retrieve the current
|
|
||||||
* map scale and other properties from the canvas.
|
|
||||||
* @param canvas map canvas
|
|
||||||
* @see mapCanvas()
|
|
||||||
*/
|
|
||||||
void setMapCanvas( QgsMapCanvas *canvas );
|
void setMapCanvas( QgsMapCanvas *canvas );
|
||||||
|
%Docstring
|
||||||
|
Sets the map canvas associated with the widget. This allows the widget to retrieve the current
|
||||||
|
map scale and other properties from the canvas.
|
||||||
|
\param canvas map canvas
|
||||||
|
.. seealso:: mapCanvas()
|
||||||
|
%End
|
||||||
|
|
||||||
/** Returns the map canvas associated with the widget.
|
|
||||||
* @see setMapCanvas()
|
|
||||||
*/
|
|
||||||
QgsMapCanvas *mapCanvas() const;
|
QgsMapCanvas *mapCanvas() const;
|
||||||
|
%Docstring
|
||||||
|
Returns the map canvas associated with the widget.
|
||||||
|
.. seealso:: setMapCanvas()
|
||||||
|
:rtype: QgsMapCanvas
|
||||||
|
%End
|
||||||
|
|
||||||
/** Sets the optional expression context used for the widget. This expression context is used for
|
|
||||||
* evaluating data defined symbol properties and for populating based expression widgets in
|
|
||||||
* the layer widget.
|
|
||||||
* @param context expression context pointer. Ownership is not transferred.
|
|
||||||
* @see expressionContext()
|
|
||||||
* @see setAdditionalExpressionContextScopes()
|
|
||||||
*/
|
|
||||||
void setExpressionContext( QgsExpressionContext *context );
|
void setExpressionContext( QgsExpressionContext *context );
|
||||||
|
%Docstring
|
||||||
|
Sets the optional expression context used for the widget. This expression context is used for
|
||||||
|
evaluating data defined symbol properties and for populating based expression widgets in
|
||||||
|
the layer widget.
|
||||||
|
\param context expression context pointer. Ownership is not transferred.
|
||||||
|
.. seealso:: expressionContext()
|
||||||
|
.. seealso:: setAdditionalExpressionContextScopes()
|
||||||
|
%End
|
||||||
|
|
||||||
/** Returns the expression context used for the widget, if set. This expression context is used for
|
|
||||||
* evaluating data defined symbol properties and for populating based expression widgets in
|
|
||||||
* the layer widget.
|
|
||||||
* @see setExpressionContext()
|
|
||||||
*/
|
|
||||||
QgsExpressionContext *expressionContext() const;
|
QgsExpressionContext *expressionContext() const;
|
||||||
|
%Docstring
|
||||||
|
Returns the expression context used for the widget, if set. This expression context is used for
|
||||||
|
evaluating data defined symbol properties and for populating based expression widgets in
|
||||||
|
the layer widget.
|
||||||
|
.. seealso:: setExpressionContext()
|
||||||
|
:rtype: QgsExpressionContext
|
||||||
|
%End
|
||||||
|
|
||||||
/** Sets a list of additional expression context scopes to show as available within the layer.
|
|
||||||
* @param scopes list of additional scopes which will be added in order to the end of the default expression context
|
|
||||||
* @see setExpressionContext()
|
|
||||||
*/
|
|
||||||
void setAdditionalExpressionContextScopes( const QList< QgsExpressionContextScope > &scopes );
|
void setAdditionalExpressionContextScopes( const QList< QgsExpressionContextScope > &scopes );
|
||||||
|
%Docstring
|
||||||
|
Sets a list of additional expression context scopes to show as available within the layer.
|
||||||
|
\param scopes list of additional scopes which will be added in order to the end of the default expression context
|
||||||
|
.. seealso:: setExpressionContext()
|
||||||
|
%End
|
||||||
|
|
||||||
/** Returns the list of additional expression context scopes to show as available within the layer.
|
|
||||||
* @see setAdditionalExpressionContextScopes()
|
|
||||||
*/
|
|
||||||
QList< QgsExpressionContextScope > additionalExpressionContextScopes() const;
|
QList< QgsExpressionContextScope > additionalExpressionContextScopes() const;
|
||||||
|
%Docstring
|
||||||
|
Returns the list of additional expression context scopes to show as available within the layer.
|
||||||
|
.. seealso:: setAdditionalExpressionContextScopes()
|
||||||
|
:rtype: list of QgsExpressionContextScope
|
||||||
|
%End
|
||||||
|
|
||||||
|
QList<QgsExpressionContextScope *> globalProjectAtlasMapLayerScopes( const QgsMapLayer *layer ) const /Factory/;
|
||||||
|
%Docstring
|
||||||
|
Returns list of scopes: global, project, atlas, map, layer.
|
||||||
|
Ownership is transferred to the caller.
|
||||||
|
.. versionadded:: 3.0
|
||||||
|
:rtype: list of QgsExpressionContextScope
|
||||||
|
%End
|
||||||
|
|
||||||
/** Returns list of scopes: global, project, atlas, map, layer.
|
|
||||||
* Ownership is transferred to the caller.
|
|
||||||
* @note added in QGIS 3.0
|
|
||||||
*/
|
|
||||||
QList<QgsExpressionContextScope*> globalProjectAtlasMapLayerScopes( const QgsMapLayer *layer ) const /Factory/;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgssymbolwidgetcontext.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -1,15 +1,38 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsvectorfieldsymbollayerwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsVectorFieldSymbolLayerWidget: QgsSymbolLayerWidget
|
class QgsVectorFieldSymbolLayerWidget: QgsSymbolLayerWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgsvectorfieldsymbollayerwidget.h>
|
#include "qgsvectorfieldsymbollayerwidget.h"
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
QgsVectorFieldSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
QgsVectorFieldSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
||||||
~QgsVectorFieldSymbolLayerWidget();
|
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) /Factory/;
|
||||||
|
%Docstring
|
||||||
|
:rtype: QgsSymbolLayerWidget
|
||||||
|
%End
|
||||||
|
|
||||||
// from base class
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
virtual void setSymbolLayer( QgsSymbolLayer *layer );
|
||||||
virtual QgsSymbolLayer *symbolLayer();
|
virtual QgsSymbolLayer *symbolLayer();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/gui/symbology-ng/qgsvectorfieldsymbollayerwidget.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -442,8 +442,8 @@ while ($LINE_IDX < $LINE_COUNT){
|
|||||||
}
|
}
|
||||||
|
|
||||||
# class declaration started
|
# class declaration started
|
||||||
# https://regex101.com/r/6FWntP/7
|
# https://regex101.com/r/6FWntP/8
|
||||||
if ( $LINE =~ m/^(\s*class)\s+([A-Z]+_EXPORT\s+)?(\w+)(\s*\:\s*(public|protected|private)\s+\w+(<([\w]|::)+>)?(::\w+(<\w+>)?)*(,\s*(public|protected|private)\s+\w+(<([\w]|::)+>)?(::\w+(<\w+>)?)*)*)?(?<annot>\s*SIP_\w+)?(?!;)$/ ){
|
if ( $LINE =~ m/^(\s*class)\s+([A-Z]+_EXPORT\s+)?(\w+)(\s*\:\s*(public|protected|private)\s+\w+(<([\w]|::)+>)?(::\w+(<\w+>)?)*(,\s*(public|protected|private)\s+\w+(<([\w]|::)+>)?(::\w+(<\w+>)?)*)*)?(?<annot>\s*SIP_\w+)?\s*?(\/\/.*|(?!;))$/ ){
|
||||||
dbg_info("class definition started");
|
dbg_info("class definition started");
|
||||||
push @ACCESS, PUBLIC;
|
push @ACCESS, PUBLIC;
|
||||||
push @EXPORTED, 0;
|
push @EXPORTED, 0;
|
||||||
@ -463,8 +463,9 @@ while ($LINE_IDX < $LINE_COUNT){
|
|||||||
# Inheritance
|
# Inheritance
|
||||||
if ($4){
|
if ($4){
|
||||||
my $m = $4;
|
my $m = $4;
|
||||||
$m =~ s/public //g;
|
$m =~ s/public +(\w+, *)*(Ui::\w+,? *)+//g; # remove Ui::xxx public inheritance as the namespace is causing troubles
|
||||||
$m =~ s/[,:]?\s*private \w+(::\w+)?//g;
|
$m =~ s/public +//g;
|
||||||
|
$m =~ s/[,:]?\s*private +\w+(::\w+)?//g;
|
||||||
# detect template based inheritance
|
# detect template based inheritance
|
||||||
while ($m =~ /[,:]\s+((?!QList)\w+)<((\w|::)+)>/g){
|
while ($m =~ /[,:]\s+((?!QList)\w+)<((\w|::)+)>/g){
|
||||||
dbg_info("template class");
|
dbg_info("template class");
|
||||||
|
@ -116,7 +116,7 @@ class CORE_EXPORT QgsLogger
|
|||||||
|
|
||||||
/** \ingroup core
|
/** \ingroup core
|
||||||
*/
|
*/
|
||||||
class QgsScopeLogger // clazy:exclude=rule-of-three
|
class CORE_EXPORT QgsScopeLogger // clazy:exclude=rule-of-three
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QgsScopeLogger( const char *file, const char *func, int line )
|
QgsScopeLogger( const char *file, const char *func, int line )
|
||||||
|
@ -26,7 +26,7 @@ class Qgs25DRenderer;
|
|||||||
/** \ingroup gui
|
/** \ingroup gui
|
||||||
* \class Qgs25DRendererWidget
|
* \class Qgs25DRendererWidget
|
||||||
*/
|
*/
|
||||||
class GUI_EXPORT Qgs25DRendererWidget : public QgsRendererWidget, Ui::Qgs25DRendererWidgetBase
|
class GUI_EXPORT Qgs25DRendererWidget : public QgsRendererWidget, protected Ui::Qgs25DRendererWidgetBase
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ class GUI_EXPORT Qgs25DRendererWidget : public QgsRendererWidget, Ui::Qgs25DRend
|
|||||||
* \param style
|
* \param style
|
||||||
* \param renderer the mask renderer (will not take ownership)
|
* \param renderer the mask renderer (will not take ownership)
|
||||||
*/
|
*/
|
||||||
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer );
|
static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer SIP_TRANSFER ) SIP_FACTORY;
|
||||||
|
|
||||||
/** Constructor
|
/** Constructor
|
||||||
* \param layer the layer where this renderer is applied
|
* \param layer the layer where this renderer is applied
|
||||||
@ -52,7 +52,7 @@ class GUI_EXPORT Qgs25DRendererWidget : public QgsRendererWidget, Ui::Qgs25DRend
|
|||||||
void updateRenderer();
|
void updateRenderer();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void apply() override;
|
void apply() override SIP_FORCE;
|
||||||
|
|
||||||
Qgs25DRenderer *mRenderer = nullptr;
|
Qgs25DRenderer *mRenderer = nullptr;
|
||||||
};
|
};
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include "qgis_gui.h"
|
#include "qgis_gui.h"
|
||||||
|
#include "qgis_sip.h"
|
||||||
|
|
||||||
/** \ingroup gui
|
/** \ingroup gui
|
||||||
* \class QgsBrushStyleComboBox
|
* \class QgsBrushStyleComboBox
|
||||||
@ -27,7 +28,7 @@ class GUI_EXPORT QgsBrushStyleComboBox : public QComboBox
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsBrushStyleComboBox( QWidget *parent = nullptr );
|
QgsBrushStyleComboBox( QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
Qt::BrushStyle brushStyle() const;
|
Qt::BrushStyle brushStyle() const;
|
||||||
|
|
||||||
|
@ -27,6 +27,8 @@ class QgsRendererCategory;
|
|||||||
#include "ui_qgscategorizedsymbolrendererv2widget.h"
|
#include "ui_qgscategorizedsymbolrendererv2widget.h"
|
||||||
#include "qgis_gui.h"
|
#include "qgis_gui.h"
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef SIP_RUN
|
||||||
///@cond PRIVATE
|
///@cond PRIVATE
|
||||||
|
|
||||||
class GUI_EXPORT QgsCategorizedSymbolRendererModel : public QAbstractItemModel
|
class GUI_EXPORT QgsCategorizedSymbolRendererModel : public QAbstractItemModel
|
||||||
@ -79,6 +81,8 @@ class QgsCategorizedSymbolRendererViewStyle: public QProxyStyle
|
|||||||
|
|
||||||
///@endcond
|
///@endcond
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/** \ingroup gui
|
/** \ingroup gui
|
||||||
* \class QgsCategorizedSymbolRendererWidget
|
* \class QgsCategorizedSymbolRendererWidget
|
||||||
*/
|
*/
|
||||||
|
@ -119,6 +119,7 @@ class GUI_EXPORT QgsCptCityColorRampDialog : public QDialog, private Ui::QgsCptC
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef SIP_RUN
|
||||||
/// @cond PRIVATE
|
/// @cond PRIVATE
|
||||||
|
|
||||||
/** \ingroup gui
|
/** \ingroup gui
|
||||||
@ -140,6 +141,6 @@ class TreeFilterProxyModel : public QSortFilterProxyModel
|
|||||||
};
|
};
|
||||||
|
|
||||||
///@endcond
|
///@endcond
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
#include "ui_qgsdashspacedialogbase.h"
|
#include "ui_qgsdashspacedialogbase.h"
|
||||||
#include "qgis_gui.h"
|
#include "qgis_gui.h"
|
||||||
|
#include "qgis_sip.h"
|
||||||
|
|
||||||
/** \ingroup gui
|
/** \ingroup gui
|
||||||
* A dialog to enter a custom dash space pattern for lines
|
* A dialog to enter a custom dash space pattern for lines
|
||||||
@ -26,7 +27,7 @@ class GUI_EXPORT QgsDashSpaceDialog: public QDialog, private Ui::QgsDashSpaceDia
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
QgsDashSpaceDialog( const QVector<qreal> &v, QWidget *parent = nullptr, Qt::WindowFlags f = 0 );
|
QgsDashSpaceDialog( const QVector<qreal> &v, QWidget *parent SIP_TRANSFERTHIS = nullptr, Qt::WindowFlags f = 0 );
|
||||||
|
|
||||||
QVector<qreal> dashDotVector() const;
|
QVector<qreal> dashDotVector() const;
|
||||||
|
|
||||||
|
@ -79,6 +79,8 @@ class GUI_EXPORT QgsGraduatedHistogramWidget : public QgsHistogramWidget
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef SIP_RUN
|
||||||
//
|
//
|
||||||
// NOTE:
|
// NOTE:
|
||||||
// For private use by QgsGraduatedHistogramWidget only,
|
// For private use by QgsGraduatedHistogramWidget only,
|
||||||
@ -106,5 +108,6 @@ class GUI_EXPORT QgsGraduatedHistogramEventFilter: public QObject
|
|||||||
double posToValue( QPointF point ) const;
|
double posToValue( QPointF point ) const;
|
||||||
};
|
};
|
||||||
///@endcond
|
///@endcond
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif //QGSGRADUATEDHISTOGRAMWIDGET_H
|
#endif //QGSGRADUATEDHISTOGRAMWIDGET_H
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include "ui_qgsgraduatedsymbolrendererv2widget.h"
|
#include "ui_qgsgraduatedsymbolrendererv2widget.h"
|
||||||
#include "qgis_gui.h"
|
#include "qgis_gui.h"
|
||||||
|
|
||||||
|
#ifndef SIP_RUN
|
||||||
/// @cond PRIVATE
|
/// @cond PRIVATE
|
||||||
|
|
||||||
class GUI_EXPORT QgsGraduatedSymbolRendererModel : public QAbstractItemModel
|
class GUI_EXPORT QgsGraduatedSymbolRendererModel : public QAbstractItemModel
|
||||||
@ -76,6 +77,7 @@ class QgsGraduatedSymbolRendererViewStyle: public QProxyStyle
|
|||||||
};
|
};
|
||||||
|
|
||||||
///@endcond
|
///@endcond
|
||||||
|
#endif
|
||||||
|
|
||||||
/** \ingroup gui
|
/** \ingroup gui
|
||||||
* \class QgsGraduatedSymbolRendererWidget
|
* \class QgsGraduatedSymbolRendererWidget
|
||||||
|
@ -42,7 +42,7 @@ class GUI_EXPORT QgsLayerPropertiesWidget : public QgsPanelWidget, public QgsExp
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsLayerPropertiesWidget( QgsSymbolLayer *layer, const QgsSymbol *symbol, const QgsVectorLayer *vl, QWidget *parent = nullptr );
|
QgsLayerPropertiesWidget( QgsSymbolLayer *layer, const QgsSymbol *symbol, const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
/** Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
/** Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
||||||
* \param context symbol widget context
|
* \param context symbol widget context
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include "qgis_gui.h"
|
#include "qgis_gui.h"
|
||||||
|
#include "qgis_sip.h"
|
||||||
|
|
||||||
/** \ingroup gui
|
/** \ingroup gui
|
||||||
* \class QgsPenStyleComboBox
|
* \class QgsPenStyleComboBox
|
||||||
@ -27,7 +28,7 @@ class GUI_EXPORT QgsPenStyleComboBox : public QComboBox
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsPenStyleComboBox( QWidget *parent = nullptr );
|
QgsPenStyleComboBox( QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
Qt::PenStyle penStyle() const;
|
Qt::PenStyle penStyle() const;
|
||||||
|
|
||||||
@ -46,7 +47,7 @@ class GUI_EXPORT QgsPenJoinStyleComboBox : public QComboBox
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsPenJoinStyleComboBox( QWidget *parent = nullptr );
|
QgsPenJoinStyleComboBox( QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
Qt::PenJoinStyle penJoinStyle() const;
|
Qt::PenJoinStyle penJoinStyle() const;
|
||||||
|
|
||||||
@ -61,7 +62,7 @@ class GUI_EXPORT QgsPenCapStyleComboBox : public QComboBox
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsPenCapStyleComboBox( QWidget *parent = nullptr );
|
QgsPenCapStyleComboBox( QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
Qt::PenCapStyle penCapStyle() const;
|
Qt::PenCapStyle penCapStyle() const;
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ class GUI_EXPORT QgsRendererWidget : public QgsPanelWidget
|
|||||||
* This will be called whenever the renderer is set on a layer.
|
* This will be called whenever the renderer is set on a layer.
|
||||||
* This can be overwritten in subclasses.
|
* This can be overwritten in subclasses.
|
||||||
*/
|
*/
|
||||||
virtual void apply();
|
virtual void apply() SIP_FORCE;
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -139,11 +139,13 @@ class QgsFields;
|
|||||||
#include "ui_widget_set_dd_value.h"
|
#include "ui_widget_set_dd_value.h"
|
||||||
#include "qgis_gui.h"
|
#include "qgis_gui.h"
|
||||||
|
|
||||||
|
|
||||||
/** \ingroup gui
|
/** \ingroup gui
|
||||||
Utility classes for "en masse" size definition
|
Utility classes for "en masse" size definition
|
||||||
*/
|
*/
|
||||||
class GUI_EXPORT QgsDataDefinedValueDialog : public QDialog, public Ui::QgsDataDefinedValueDialog, private QgsExpressionContextGenerator
|
class GUI_EXPORT QgsDataDefinedValueDialog : public QDialog, public Ui::QgsDataDefinedValueBaseDialog, private QgsExpressionContextGenerator
|
||||||
{
|
{
|
||||||
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -186,11 +188,11 @@ class GUI_EXPORT QgsDataDefinedValueDialog : public QDialog, public Ui::QgsDataD
|
|||||||
void init( int propertyKey ); // needed in children ctor to call virtual
|
void init( int propertyKey ); // needed in children ctor to call virtual
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QgsProperty symbolDataDefined() const;
|
QgsProperty symbolDataDefined() const SIP_FORCE;
|
||||||
|
|
||||||
virtual QgsProperty symbolDataDefined( const QgsSymbol * ) const = 0;
|
virtual QgsProperty symbolDataDefined( const QgsSymbol * ) const = 0 SIP_FORCE;
|
||||||
virtual double value( const QgsSymbol * ) const = 0;
|
virtual double value( const QgsSymbol * ) const = 0 SIP_FORCE;
|
||||||
virtual void setDataDefined( QgsSymbol *symbol, const QgsProperty &dd ) = 0;
|
virtual void setDataDefined( QgsSymbol *symbol, const QgsProperty &dd ) = 0 SIP_FORCE;
|
||||||
|
|
||||||
QList<QgsSymbol *> mSymbolList;
|
QList<QgsSymbol *> mSymbolList;
|
||||||
QgsVectorLayer *mLayer = nullptr;
|
QgsVectorLayer *mLayer = nullptr;
|
||||||
|
@ -28,7 +28,7 @@ class QgsSymbolSelectorWidget;
|
|||||||
#include <QAbstractItemModel>
|
#include <QAbstractItemModel>
|
||||||
|
|
||||||
/* Features count fro rule */
|
/* Features count fro rule */
|
||||||
struct QgsRuleBasedRendererCount
|
struct QgsRuleBasedRendererCount SIP_SKIP
|
||||||
{
|
{
|
||||||
int count; // number of features
|
int count; // number of features
|
||||||
int duplicateCount; // number of features present also in other rule(s)
|
int duplicateCount; // number of features present also in other rule(s)
|
||||||
@ -84,7 +84,7 @@ class GUI_EXPORT QgsRuleBasedRendererModel : public QAbstractItemModel
|
|||||||
void finishedAddingRules(); // call endInsertRows
|
void finishedAddingRules(); // call endInsertRows
|
||||||
|
|
||||||
//! \note not available in Python bindungs
|
//! \note not available in Python bindungs
|
||||||
void setFeatureCounts( const QHash<QgsRuleBasedRenderer::Rule *, QgsRuleBasedRendererCount> &countMap );
|
void setFeatureCounts( const QHash<QgsRuleBasedRenderer::Rule *, QgsRuleBasedRendererCount> &countMap ) SIP_SKIP;
|
||||||
void clearFeatureCounts();
|
void clearFeatureCounts();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -192,7 +192,11 @@ class GUI_EXPORT QgsRendererRulePropsWidget : public QgsPanelWidget, private Ui:
|
|||||||
* \param parent The parent widget.
|
* \param parent The parent widget.
|
||||||
* \param context the symbol widget context
|
* \param context the symbol widget context
|
||||||
*/
|
*/
|
||||||
QgsRendererRulePropsWidget( QgsRuleBasedRenderer::Rule *rule, QgsVectorLayer *layer, QgsStyle *style, QWidget *parent = nullptr, const QgsSymbolWidgetContext &context = QgsSymbolWidgetContext() );
|
QgsRendererRulePropsWidget( QgsRuleBasedRenderer::Rule *rule,
|
||||||
|
QgsVectorLayer *layer,
|
||||||
|
QgsStyle *style,
|
||||||
|
QWidget *parent SIP_TRANSFERTHIS = nullptr,
|
||||||
|
const QgsSymbolWidgetContext &context = QgsSymbolWidgetContext() );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the current set rule.
|
* Return the current set rule.
|
||||||
|
@ -28,7 +28,7 @@ class GUI_EXPORT QgsSmartGroupCondition : public QWidget, private Ui::QgsSmartGr
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsSmartGroupCondition( int id, QWidget *parent = nullptr );
|
QgsSmartGroupCondition( int id, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
//! returns the constraint key
|
//! returns the constraint key
|
||||||
QString constraint();
|
QString constraint();
|
||||||
@ -72,7 +72,7 @@ class GUI_EXPORT QgsSmartGroupEditorDialog : public QDialog, private Ui::QgsSmar
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsSmartGroupEditorDialog( QgsStyle *style, QWidget *parent = nullptr );
|
QgsSmartGroupEditorDialog( QgsStyle *style, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
//! returns the value from mNameLineEdit
|
//! returns the value from mNameLineEdit
|
||||||
QString smartgroupName();
|
QString smartgroupName();
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#include "ui_qgsstyleexportimportdialogbase.h"
|
#include "ui_qgsstyleexportimportdialogbase.h"
|
||||||
#include "qgis_gui.h"
|
#include "qgis_gui.h"
|
||||||
|
#include "qgis_sip.h"
|
||||||
|
|
||||||
class QgsStyle;
|
class QgsStyle;
|
||||||
class QgsStyleGroupSelectionDialog;
|
class QgsStyleGroupSelectionDialog;
|
||||||
@ -47,7 +48,7 @@ class GUI_EXPORT QgsStyleExportImportDialog : public QDialog, private Ui::QgsSty
|
|||||||
|
|
||||||
// constructor
|
// constructor
|
||||||
// mode argument must be 0 for saving and 1 for loading
|
// mode argument must be 0 for saving and 1 for loading
|
||||||
QgsStyleExportImportDialog( QgsStyle *style, QWidget *parent = nullptr, Mode mode = Export );
|
QgsStyleExportImportDialog( QgsStyle *style, QWidget *parent SIP_TRANSFERTHIS = nullptr, Mode mode = Export );
|
||||||
~QgsStyleExportImportDialog();
|
~QgsStyleExportImportDialog();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -35,7 +35,7 @@ class GUI_EXPORT QgsStyleManagerDialog : public QDialog, private Ui::QgsStyleMan
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsStyleManagerDialog( QgsStyle *style, QWidget *parent = nullptr );
|
QgsStyleManagerDialog( QgsStyle *style, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
//! open add color ramp dialog, return color ramp's name if the ramp has been added
|
//! open add color ramp dialog, return color ramp's name if the ramp has been added
|
||||||
static QString addColorRampStatic( QWidget *parent, QgsStyle *style,
|
static QString addColorRampStatic( QWidget *parent, QgsStyle *style,
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#include "qgsstyle.h"
|
#include "qgsstyle.h"
|
||||||
#include "qgis_gui.h"
|
#include "qgis_gui.h"
|
||||||
|
#include "qgis_sip.h"
|
||||||
|
|
||||||
/** \ingroup gui
|
/** \ingroup gui
|
||||||
* \brief a dialog for setting properties of a newly saved style.
|
* \brief a dialog for setting properties of a newly saved style.
|
||||||
@ -38,7 +39,7 @@ class GUI_EXPORT QgsStyleSaveDialog: public QDialog, private Ui::QgsStyleSaveDia
|
|||||||
* \param parent parent widget
|
* \param parent parent widget
|
||||||
* \param type the QgsStyle entity type being saved
|
* \param type the QgsStyle entity type being saved
|
||||||
*/
|
*/
|
||||||
QgsStyleSaveDialog( QWidget *parent = nullptr, QgsStyle::StyleEntity type = QgsStyle::SymbolEntity );
|
QgsStyleSaveDialog( QWidget *parent SIP_TRANSFERTHIS = nullptr, QgsStyle::StyleEntity type = QgsStyle::SymbolEntity );
|
||||||
|
|
||||||
//! returns the text value of the name element
|
//! returns the text value of the name element
|
||||||
QString name() const;
|
QString name() const;
|
||||||
|
@ -38,6 +38,8 @@ class QListView;
|
|||||||
class QPushButton;
|
class QPushButton;
|
||||||
class QTreeView;
|
class QTreeView;
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef SIP_RUN
|
||||||
///@cond PRIVATE
|
///@cond PRIVATE
|
||||||
|
|
||||||
/** \ingroup gui
|
/** \ingroup gui
|
||||||
@ -155,7 +157,7 @@ class GUI_EXPORT QgsSvgGroupLoader : public QThread
|
|||||||
};
|
};
|
||||||
|
|
||||||
///@endcond
|
///@endcond
|
||||||
///
|
#endif
|
||||||
|
|
||||||
/** \ingroup gui
|
/** \ingroup gui
|
||||||
* \class QgsSvgSelectorListModel
|
* \class QgsSvgSelectorListModel
|
||||||
@ -272,7 +274,8 @@ class GUI_EXPORT QgsSvgSelectorDialog : public QDialog
|
|||||||
/**
|
/**
|
||||||
* Constructor for QgsSvgSelectorDialog.
|
* Constructor for QgsSvgSelectorDialog.
|
||||||
*/
|
*/
|
||||||
QgsSvgSelectorDialog( QWidget *parent = nullptr, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags,
|
QgsSvgSelectorDialog( QWidget *parent SIP_TRANSFERTHIS = nullptr,
|
||||||
|
Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags,
|
||||||
QDialogButtonBox::StandardButtons buttons = QDialogButtonBox::Close | QDialogButtonBox::Ok,
|
QDialogButtonBox::StandardButtons buttons = QDialogButtonBox::Close | QDialogButtonBox::Ok,
|
||||||
Qt::Orientation orientation = Qt::Horizontal );
|
Qt::Orientation orientation = Qt::Horizontal );
|
||||||
~QgsSvgSelectorDialog();
|
~QgsSvgSelectorDialog();
|
||||||
|
@ -116,7 +116,7 @@ class GUI_EXPORT QgsSimpleLineSymbolLayerWidget : public QgsSymbolLayerWidget, p
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsSimpleLineSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent = nullptr );
|
QgsSimpleLineSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsSimpleLineSymbolLayerWidget( vl ); }
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsSimpleLineSymbolLayerWidget( vl ); }
|
||||||
|
|
||||||
@ -166,7 +166,7 @@ class GUI_EXPORT QgsSimpleMarkerSymbolLayerWidget : public QgsSymbolLayerWidget,
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsSimpleMarkerSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent = nullptr );
|
QgsSimpleMarkerSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsSimpleMarkerSymbolLayerWidget( vl ); }
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsSimpleMarkerSymbolLayerWidget( vl ); }
|
||||||
|
|
||||||
@ -216,7 +216,7 @@ class GUI_EXPORT QgsSimpleFillSymbolLayerWidget : public QgsSymbolLayerWidget, p
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsSimpleFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent = nullptr );
|
QgsSimpleFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsSimpleFillSymbolLayerWidget( vl ); }
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsSimpleFillSymbolLayerWidget( vl ); }
|
||||||
|
|
||||||
@ -305,7 +305,7 @@ class GUI_EXPORT QgsGradientFillSymbolLayerWidget : public QgsSymbolLayerWidget,
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsGradientFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent = nullptr );
|
QgsGradientFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsGradientFillSymbolLayerWidget( vl ); }
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsGradientFillSymbolLayerWidget( vl ); }
|
||||||
|
|
||||||
@ -348,7 +348,7 @@ class GUI_EXPORT QgsShapeburstFillSymbolLayerWidget : public QgsSymbolLayerWidge
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsShapeburstFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent = nullptr );
|
QgsShapeburstFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsShapeburstFillSymbolLayerWidget( vl ); }
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsShapeburstFillSymbolLayerWidget( vl ); }
|
||||||
|
|
||||||
@ -387,7 +387,7 @@ class GUI_EXPORT QgsMarkerLineSymbolLayerWidget : public QgsSymbolLayerWidget, p
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsMarkerLineSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent = nullptr );
|
QgsMarkerLineSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsMarkerLineSymbolLayerWidget( vl ); }
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsMarkerLineSymbolLayerWidget( vl ); }
|
||||||
|
|
||||||
@ -426,7 +426,7 @@ class GUI_EXPORT QgsSvgMarkerSymbolLayerWidget : public QgsSymbolLayerWidget, pr
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsSvgMarkerSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent = nullptr );
|
QgsSvgMarkerSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsSvgMarkerSymbolLayerWidget( vl ); }
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsSvgMarkerSymbolLayerWidget( vl ); }
|
||||||
|
|
||||||
@ -484,7 +484,7 @@ class GUI_EXPORT QgsRasterFillSymbolLayerWidget : public QgsSymbolLayerWidget, p
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsRasterFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent = nullptr );
|
QgsRasterFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsRasterFillSymbolLayerWidget( vl ); }
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsRasterFillSymbolLayerWidget( vl ); }
|
||||||
|
|
||||||
@ -524,7 +524,7 @@ class GUI_EXPORT QgsSVGFillSymbolLayerWidget : public QgsSymbolLayerWidget, priv
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsSVGFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent = nullptr );
|
QgsSVGFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsSVGFillSymbolLayerWidget( vl ); }
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsSVGFillSymbolLayerWidget( vl ); }
|
||||||
|
|
||||||
@ -573,7 +573,7 @@ class GUI_EXPORT QgsLinePatternFillSymbolLayerWidget : public QgsSymbolLayerWidg
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
QgsLinePatternFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent = nullptr );
|
QgsLinePatternFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsLinePatternFillSymbolLayerWidget( vl ); }
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsLinePatternFillSymbolLayerWidget( vl ); }
|
||||||
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer ) override;
|
virtual void setSymbolLayer( QgsSymbolLayer *layer ) override;
|
||||||
@ -604,7 +604,7 @@ class GUI_EXPORT QgsPointPatternFillSymbolLayerWidget: public QgsSymbolLayerWidg
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsPointPatternFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent = nullptr );
|
QgsPointPatternFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsPointPatternFillSymbolLayerWidget( vl ); }
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsPointPatternFillSymbolLayerWidget( vl ); }
|
||||||
|
|
||||||
virtual void setSymbolLayer( QgsSymbolLayer *layer ) override;
|
virtual void setSymbolLayer( QgsSymbolLayer *layer ) override;
|
||||||
@ -639,7 +639,7 @@ class GUI_EXPORT QgsFontMarkerSymbolLayerWidget : public QgsSymbolLayerWidget, p
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsFontMarkerSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent = nullptr );
|
QgsFontMarkerSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsFontMarkerSymbolLayerWidget( vl ); }
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsFontMarkerSymbolLayerWidget( vl ); }
|
||||||
|
|
||||||
@ -695,7 +695,7 @@ class GUI_EXPORT QgsCentroidFillSymbolLayerWidget : public QgsSymbolLayerWidget,
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsCentroidFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent = nullptr );
|
QgsCentroidFillSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsCentroidFillSymbolLayerWidget( vl ); }
|
static QgsSymbolLayerWidget *create( const QgsVectorLayer *vl ) SIP_FACTORY { return new QgsCentroidFillSymbolLayerWidget( vl ); }
|
||||||
|
|
||||||
@ -726,7 +726,7 @@ class GUI_EXPORT QgsGeometryGeneratorSymbolLayerWidget : public QgsSymbolLayerWi
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsGeometryGeneratorSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = 0 );
|
QgsGeometryGeneratorSymbolLayerWidget( const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Will be registered as factory
|
* Will be registered as factory
|
||||||
|
@ -53,14 +53,19 @@ class GUI_EXPORT QgsSymbolLevelsDialog : public QDialog, private Ui::QgsSymbolLe
|
|||||||
//! \note not available in Python bindings
|
//! \note not available in Python bindings
|
||||||
void setDefaultLevels() SIP_SKIP;
|
void setDefaultLevels() SIP_SKIP;
|
||||||
|
|
||||||
protected:
|
|
||||||
//! maximal number of layers from all symbols
|
//! maximal number of layers from all symbols
|
||||||
int mMaxLayers;
|
int mMaxLayers;
|
||||||
QgsLegendSymbolList mList;
|
QgsLegendSymbolList mList;
|
||||||
//! whether symbol layers always should be used (default false)
|
//! whether symbol layers always should be used (default false)
|
||||||
bool mForceOrderingEnabled;
|
bool mForceOrderingEnabled;
|
||||||
|
|
||||||
|
private:
|
||||||
|
#ifdef SIP_RUN
|
||||||
|
QgsSymbolLevelsDialog();
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef SIP_RUN
|
||||||
///@cond PRIVATE
|
///@cond PRIVATE
|
||||||
|
|
||||||
// delegate used from Qt Spin Box example
|
// delegate used from Qt Spin Box example
|
||||||
@ -82,5 +87,6 @@ class SpinBoxDelegate : public QItemDelegate
|
|||||||
};
|
};
|
||||||
|
|
||||||
///@endcond
|
///@endcond
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // QGSSYMBOLLEVELSDIALOG_H
|
#endif // QGSSYMBOLLEVELSDIALOG_H
|
||||||
|
@ -46,6 +46,7 @@ class QgsLineSymbolLayer;
|
|||||||
|
|
||||||
class QgsMapCanvas;
|
class QgsMapCanvas;
|
||||||
|
|
||||||
|
#ifndef SIP_RUN
|
||||||
/// @cond PRIVATE
|
/// @cond PRIVATE
|
||||||
|
|
||||||
class DataDefinedRestorer: public QObject
|
class DataDefinedRestorer: public QObject
|
||||||
@ -75,6 +76,7 @@ class DataDefinedRestorer: public QObject
|
|||||||
void save();
|
void save();
|
||||||
};
|
};
|
||||||
///@endcond
|
///@endcond
|
||||||
|
#endif
|
||||||
|
|
||||||
class QgsSymbolSelectorDialog;
|
class QgsSymbolSelectorDialog;
|
||||||
|
|
||||||
@ -96,7 +98,7 @@ class GUI_EXPORT QgsSymbolSelectorWidget: public QgsPanelWidget, private Ui::Qgs
|
|||||||
* \param vl The vector layer for the symbol.
|
* \param vl The vector layer for the symbol.
|
||||||
* \param parent
|
* \param parent
|
||||||
*/
|
*/
|
||||||
QgsSymbolSelectorWidget( QgsSymbol *symbol, QgsStyle *style, const QgsVectorLayer *vl, QWidget *parent = nullptr );
|
QgsSymbolSelectorWidget( QgsSymbol *symbol, QgsStyle *style, const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||||
|
|
||||||
//! return menu for "advanced" button - create it if doesn't exist and show the advanced button
|
//! return menu for "advanced" button - create it if doesn't exist and show the advanced button
|
||||||
QMenu *advancedMenu();
|
QMenu *advancedMenu();
|
||||||
@ -126,14 +128,14 @@ class GUI_EXPORT QgsSymbolSelectorWidget: public QgsPanelWidget, private Ui::Qgs
|
|||||||
* Reload the current symbol in the view.
|
* Reload the current symbol in the view.
|
||||||
*/
|
*/
|
||||||
void loadSymbol();
|
void loadSymbol();
|
||||||
//! \note not available in Python bindings
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the given symbol into the widget..
|
* Load the given symbol into the widget.
|
||||||
* \param symbol The symbol to load.
|
* \param symbol The symbol to load.
|
||||||
* \param parent The parent symbol layer item.
|
* \param parent The parent symbol layer item.
|
||||||
|
* \note not available in Python bindings
|
||||||
*/
|
*/
|
||||||
void loadSymbol( QgsSymbol *symbol, SymbolLayerItem *parent );
|
void loadSymbol( QgsSymbol *symbol, SymbolLayerItem *parent ) SIP_SKIP;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update the state of the UI based on the currently set symbol layer.
|
* Update the state of the UI based on the currently set symbol layer.
|
||||||
@ -249,7 +251,7 @@ class GUI_EXPORT QgsSymbolSelectorDialog : public QDialog
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsSymbolSelectorDialog( QgsSymbol *symbol, QgsStyle *style, const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = 0, bool embedded = false );
|
QgsSymbolSelectorDialog( QgsSymbol *symbol, QgsStyle *style, const QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr, bool embedded = false );
|
||||||
~QgsSymbolSelectorDialog();
|
~QgsSymbolSelectorDialog();
|
||||||
|
|
||||||
//! return menu for "advanced" button - create it if doesn't exist and show the advanced button
|
//! return menu for "advanced" button - create it if doesn't exist and show the advanced button
|
||||||
@ -279,6 +281,7 @@ class GUI_EXPORT QgsSymbolSelectorDialog : public QDialog
|
|||||||
void keyPressEvent( QKeyEvent *e ) override;
|
void keyPressEvent( QKeyEvent *e ) override;
|
||||||
|
|
||||||
void loadSymbol();
|
void loadSymbol();
|
||||||
|
|
||||||
//! \note not available in Python bindings
|
//! \note not available in Python bindings
|
||||||
void loadSymbol( QgsSymbol *symbol, SymbolLayerItem *parent ) SIP_SKIP;
|
void loadSymbol( QgsSymbol *symbol, SymbolLayerItem *parent ) SIP_SKIP;
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ class GUI_EXPORT QgsSymbolsListWidget : public QWidget, private Ui::SymbolsListW
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsSymbolsListWidget( QgsSymbol *symbol, QgsStyle *style, QMenu *menu, QWidget *parent, const QgsVectorLayer *layer = nullptr );
|
QgsSymbolsListWidget( QgsSymbol *symbol, QgsStyle *style, QMenu *menu, QWidget *parent SIP_TRANSFERTHIS, const QgsVectorLayer *layer = nullptr );
|
||||||
|
|
||||||
|
|
||||||
virtual ~QgsSymbolsListWidget();
|
virtual ~QgsSymbolsListWidget();
|
||||||
|
@ -15,9 +15,11 @@
|
|||||||
#ifndef QGSSYMBOLWIDGETCONTEXT_H
|
#ifndef QGSSYMBOLWIDGETCONTEXT_H
|
||||||
#define QGSSYMBOLWIDGETCONTEXT_H
|
#define QGSSYMBOLWIDGETCONTEXT_H
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
#include "qgsexpressioncontext.h"
|
#include "qgsexpressioncontext.h"
|
||||||
#include "qgis_gui.h"
|
#include "qgis_gui.h"
|
||||||
#include <memory>
|
|
||||||
|
|
||||||
class QgsMapCanvas;
|
class QgsMapCanvas;
|
||||||
|
|
||||||
@ -85,7 +87,7 @@ class GUI_EXPORT QgsSymbolWidgetContext // clazy:exclude=rule-of-three
|
|||||||
* Ownership is transferred to the caller.
|
* Ownership is transferred to the caller.
|
||||||
* \since QGIS 3.0
|
* \since QGIS 3.0
|
||||||
*/
|
*/
|
||||||
QList<QgsExpressionContextScope *> globalProjectAtlasMapLayerScopes( const QgsMapLayer *layer ) const;
|
QList<QgsExpressionContextScope *> globalProjectAtlasMapLayerScopes( const QgsMapLayer *layer ) const SIP_FACTORY;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>QgsDataDefinedValueDialog</class>
|
<class>QgsDataDefinedValueBaseDialog</class>
|
||||||
<widget class="QDialog" name="QgsDataDefinedValueDialog">
|
<widget class="QDialog" name="QgsDataDefinedValueBaseDialog">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>194</width>
|
<width>214</width>
|
||||||
<height>78</height>
|
<height>81</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -64,7 +64,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>buttonBox</sender>
|
<sender>buttonBox</sender>
|
||||||
<signal>accepted()</signal>
|
<signal>accepted()</signal>
|
||||||
<receiver>QgsDataDefinedValueDialog</receiver>
|
<receiver>QgsDataDefinedValueBaseDialog</receiver>
|
||||||
<slot>accept()</slot>
|
<slot>accept()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@ -80,7 +80,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>buttonBox</sender>
|
<sender>buttonBox</sender>
|
||||||
<signal>rejected()</signal>
|
<signal>rejected()</signal>
|
||||||
<receiver>QgsDataDefinedValueDialog</receiver>
|
<receiver>QgsDataDefinedValueBaseDialog</receiver>
|
||||||
<slot>reject()</slot>
|
<slot>reject()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
|
@ -59,7 +59,7 @@ ACCEPTABLE_MISSING_DOCS = {
|
|||||||
"QgsCheckBoxConfigDlg": ["QgsCheckBoxConfigDlg(QgsVectorLayer *vl, int fieldIdx, QWidget *parent=nullptr)"],
|
"QgsCheckBoxConfigDlg": ["QgsCheckBoxConfigDlg(QgsVectorLayer *vl, int fieldIdx, QWidget *parent=nullptr)"],
|
||||||
"QgsMessageLog": ["MessageLevel", "instance()", "messageReceived(bool received)", "messageReceived(const QString &message, const QString &tag, QgsMessageLog::MessageLevel level)"],
|
"QgsMessageLog": ["MessageLevel", "instance()", "messageReceived(bool received)", "messageReceived(const QString &message, const QString &tag, QgsMessageLog::MessageLevel level)"],
|
||||||
"QgsFontMarkerSymbolLayerWidget": ["setAngle(double angle)", "create(const QgsVectorLayer *vl)", "setFontFamily(const QFont &font)", "QgsFontMarkerSymbolLayerWidget(const QgsVectorLayer *vl, QWidget *parent=nullptr)", "setColor(const QColor &color)", "setOffset()", "setCharacter(QChar chr)", "setSize(double size)"],
|
"QgsFontMarkerSymbolLayerWidget": ["setAngle(double angle)", "create(const QgsVectorLayer *vl)", "setFontFamily(const QFont &font)", "QgsFontMarkerSymbolLayerWidget(const QgsVectorLayer *vl, QWidget *parent=nullptr)", "setColor(const QColor &color)", "setOffset()", "setCharacter(QChar chr)", "setSize(double size)"],
|
||||||
"QgsStyleManagerDialog": ["removeItem()", "importItems()", "removeSymbol()", "addColorRamp(QAction *action)", "exportItemsSVG()", "editItem()", "exportSelectedItemsImages(const QString &dir, const QString &format, QSize size)", "editSymbol()", "editColorRamp()", "currentItemType()", "addGroup()", "groupSelectedSymbols()", "groupChanged(const QModelIndex &)", "addItem()", "itemChanged(QStandardItem *item)", "removeGroup()", "QgsStyleManagerDialog(QgsStyle *style, QWidget *parent=nullptr)", "groupRenamed(QStandardItem *)", "removeColorRamp()", "exportItemsPNG()", "exportItems()", "currentItemName()"],
|
"QgsStyleManagerDialog": ["removeItem()", "importItems()", "removeSymbol()", "addColorRamp(QAction *action)", "exportItemsSVG()", "editItem()", "exportSelectedItemsImages(const QString &dir, const QString &format, QSize size)", "editSymbol()", "editColorRamp()", "currentItemType()", "addGroup()", "groupSelectedSymbols()", "groupChanged(const QModelIndex &)", "addItem()", "itemChanged(QStandardItem *item)", "removeGroup()", "QgsStyleManagerDialog(QgsStyle *style, QWidget *parent SIP_TRANSFERTHIS=nullptr)", "groupRenamed(QStandardItem *)", "removeColorRamp()", "exportItemsPNG()", "exportItems()", "currentItemName()"],
|
||||||
"QgsVectorColorBrewerColorRampDialog": ["setSchemeName()", "populateVariants()", "QgsVectorColorBrewerColorRampDialog(QgsVectorColorBrewerColorRamp *ramp, QWidget *parent=nullptr)", "setColors()", "updatePreview()"],
|
"QgsVectorColorBrewerColorRampDialog": ["setSchemeName()", "populateVariants()", "QgsVectorColorBrewerColorRampDialog(QgsVectorColorBrewerColorRamp *ramp, QWidget *parent=nullptr)", "setColors()", "updatePreview()"],
|
||||||
"QgsFeatureListModel": ["fidToIndexList(QgsFeatureId fid)", "onBeginInsertRows(const QModelIndex &parent, int first, int last)", "onBeginRemoveRows(const QModelIndex &parent, int first, int last)", "featureByIndex(const QModelIndex &index, QgsFeature &feat)", "mapToMaster(const QModelIndex &proxyIndex) const ", "onEndRemoveRows(const QModelIndex &parent, int first, int last)", "setSourceModel(QgsAttributeTableFilterModel *sourceModel)", "onEndInsertRows(const QModelIndex &parent, int first, int last)", "fidToIdx(const QgsFeatureId fid) const ", "idxToFid(const QModelIndex &index) const ", "layerCache()", "mapSelectionFromMaster(const QItemSelection &selection) const ", "Role", "masterModel()", "displayExpression() const ", "mapFromMaster(const QModelIndex &sourceIndex) const ", "QgsFeatureListModel(QgsAttributeTableFilterModel *sourceModel, QObject *parent=0)", "mapSelectionToMaster(const QItemSelection &selection) const "],
|
"QgsFeatureListModel": ["fidToIndexList(QgsFeatureId fid)", "onBeginInsertRows(const QModelIndex &parent, int first, int last)", "onBeginRemoveRows(const QModelIndex &parent, int first, int last)", "featureByIndex(const QModelIndex &index, QgsFeature &feat)", "mapToMaster(const QModelIndex &proxyIndex) const ", "onEndRemoveRows(const QModelIndex &parent, int first, int last)", "setSourceModel(QgsAttributeTableFilterModel *sourceModel)", "onEndInsertRows(const QModelIndex &parent, int first, int last)", "fidToIdx(const QgsFeatureId fid) const ", "idxToFid(const QModelIndex &index) const ", "layerCache()", "mapSelectionFromMaster(const QItemSelection &selection) const ", "Role", "masterModel()", "displayExpression() const ", "mapFromMaster(const QModelIndex &sourceIndex) const ", "QgsFeatureListModel(QgsAttributeTableFilterModel *sourceModel, QObject *parent=0)", "mapSelectionToMaster(const QItemSelection &selection) const "],
|
||||||
"QgsCptCityArchive": ["copyingInfo(const QString &fileName)", "QgsCptCityArchive(const QString &archiveName=DEFAULT_CPTCITY_ARCHIVE, const QString &baseDir=QString())", "baseDir(QString archiveName)", "defaultBaseDir()", "initArchive(const QString &archiveName, const QString &archiveBaseDir)", "archiveRegistry()", "descFileName(const QString &dirName) const ", "initArchives(bool loadAll=false)", "findFileName(const QString &target, const QString &startDir, const QString &baseDir)", "rootItems() const ", "copyingFileName(const QString &dirName) const ", "clearArchives()", "setBaseDir(const QString &dirName)", "isEmpty()", "baseDir() const ", "selectionItems() const ", "defaultArchive()", "initDefaultArchive()", "archiveName() const ", "description(const QString &fileName)"],
|
"QgsCptCityArchive": ["copyingInfo(const QString &fileName)", "QgsCptCityArchive(const QString &archiveName=DEFAULT_CPTCITY_ARCHIVE, const QString &baseDir=QString())", "baseDir(QString archiveName)", "defaultBaseDir()", "initArchive(const QString &archiveName, const QString &archiveBaseDir)", "archiveRegistry()", "descFileName(const QString &dirName) const ", "initArchives(bool loadAll=false)", "findFileName(const QString &target, const QString &startDir, const QString &baseDir)", "rootItems() const ", "copyingFileName(const QString &dirName) const ", "clearArchives()", "setBaseDir(const QString &dirName)", "isEmpty()", "baseDir() const ", "selectionItems() const ", "defaultArchive()", "initDefaultArchive()", "archiveName() const ", "description(const QString &fileName)"],
|
||||||
@ -189,7 +189,7 @@ ACCEPTABLE_MISSING_DOCS = {
|
|||||||
"QgsGraphDirector": ["buildProgress(int, int) const ", "buildMessage(const QString &) const ", "addProperter(QgsArcProperter *prop)"],
|
"QgsGraphDirector": ["buildProgress(int, int) const ", "buildMessage(const QString &) const ", "addProperter(QgsArcProperter *prop)"],
|
||||||
"QgsScaleComboBox": ["QgsScaleComboBox(QWidget *parent=nullptr)", "updateScales(const QStringList &scales=QStringList())"],
|
"QgsScaleComboBox": ["QgsScaleComboBox(QWidget *parent=nullptr)", "updateScales(const QStringList &scales=QStringList())"],
|
||||||
"QgsLabelingEngine": ["processProvider(QgsAbstractLabelProvider *provider, QgsRenderContext &context, pal::Pal &p)", "Flag"], # spellok
|
"QgsLabelingEngine": ["processProvider(QgsAbstractLabelProvider *provider, QgsRenderContext &context, pal::Pal &p)", "Flag"], # spellok
|
||||||
"QgsSymbolSelectorDialog": ["moveLayerByOffset(int offset)", "QgsSymbolSelectorDialog(QgsSymbol *symbol, QgsStyle *style, const QgsVectorLayer *vl, QWidget *parent=0, bool embedded=false)", "lockLayer()", "moveLayerUp()", "updateUi()", "addLayer()", "moveLayerDown()", "layerChanged()", "loadSymbol()", "setWidget(QWidget *widget)", "updateLayerPreview()", "symbolModified()", "updateLockButton()", "removeLayer()", "currentLayer()", "updatePreview()"],
|
"QgsSymbolSelectorDialog": ["moveLayerByOffset(int offset)", "QgsSymbolSelectorDialog(QgsSymbol *symbol, QgsStyle *style, const QgsVectorLayer *vl, QWidget *parent=nullptr, bool embedded=false)", "lockLayer()", "moveLayerUp()", "updateUi()", "addLayer()", "moveLayerDown()", "layerChanged()", "loadSymbol()", "loadSymbol(QgsSymbol *symbol, SymbolLayerItem *parent)", "setWidget(QWidget *widget)", "updateLayerPreview()", "symbolModified()", "updateLockButton()", "removeLayer()", "currentLayer()", "updatePreview()"],
|
||||||
"QgsCacheIndexFeatureId": ["QgsCacheIndexFeatureId(QgsVectorLayerCache *)"],
|
"QgsCacheIndexFeatureId": ["QgsCacheIndexFeatureId(QgsVectorLayerCache *)"],
|
||||||
"QgsSymbolLayerWidget": ["setSymbolLayer(QgsSymbolLayer *layer)=0", "updateDataDefinedProperty()", "QgsSymbolLayerWidget(QWidget *parent, const QgsVectorLayer *vl=nullptr)", "symbolLayer()=0"],
|
"QgsSymbolLayerWidget": ["setSymbolLayer(QgsSymbolLayer *layer)=0", "updateDataDefinedProperty()", "QgsSymbolLayerWidget(QWidget *parent, const QgsVectorLayer *vl=nullptr)", "symbolLayer()=0"],
|
||||||
"QgsRendererPropertiesDialog": ["apply()", "onOK()", "QgsRendererPropertiesDialog(QgsVectorLayer *layer, QgsStyle *style, bool embedded=false)"],
|
"QgsRendererPropertiesDialog": ["apply()", "onOK()", "QgsRendererPropertiesDialog(QgsVectorLayer *layer, QgsStyle *style, bool embedded=false)"],
|
||||||
@ -221,7 +221,7 @@ ACCEPTABLE_MISSING_DOCS = {
|
|||||||
"QgsLinearlyInterpolatedDiagramRenderer": ["setLowerValue(double val)", "setClassificationAttribute(int index)", "classificationAttributeIsExpression() const ", "classificationAttributeExpression() const ", "setUpperSize(QSizeF s)", "setLowerSize(QSizeF s)", "classificationAttribute() const ", "lowerValue() const ", "upperSize() const ", "setClassificationAttributeIsExpression(bool isExpression)", "upperValue() const ", "setDiagramSettings(const QgsDiagramSettings &s)", "setClassificationAttributeExpression(const QString &expression)", "lowerSize() const ", "setUpperValue(double val)"],
|
"QgsLinearlyInterpolatedDiagramRenderer": ["setLowerValue(double val)", "setClassificationAttribute(int index)", "classificationAttributeIsExpression() const ", "classificationAttributeExpression() const ", "setUpperSize(QSizeF s)", "setLowerSize(QSizeF s)", "classificationAttribute() const ", "lowerValue() const ", "upperSize() const ", "setClassificationAttributeIsExpression(bool isExpression)", "upperValue() const ", "setDiagramSettings(const QgsDiagramSettings &s)", "setClassificationAttributeExpression(const QString &expression)", "lowerSize() const ", "setUpperValue(double val)"],
|
||||||
"QgsNMEAConnection": ["processGSVSentence(const char *data, int len)", "processVTGSentence(const char *data, int len)", "processGGASentence(const char *data, int len)", "QgsNMEAConnection(QIODevice *dev)", "processGSASentence(const char *data, int len)", "processRMCSentence(const char *data, int len)"],
|
"QgsNMEAConnection": ["processGSVSentence(const char *data, int len)", "processVTGSentence(const char *data, int len)", "processGGASentence(const char *data, int len)", "QgsNMEAConnection(QIODevice *dev)", "processGSASentence(const char *data, int len)", "processRMCSentence(const char *data, int len)"],
|
||||||
"QgsPreviewEffect": ["QgsPreviewEffect(QObject *parent)", "PreviewMode"],
|
"QgsPreviewEffect": ["QgsPreviewEffect(QObject *parent)", "PreviewMode"],
|
||||||
"QgsGeometryGeneratorSymbolLayerWidget": ["QgsGeometryGeneratorSymbolLayerWidget(const QgsVectorLayer *vl, QWidget *parent=0)"],
|
"QgsGeometryGeneratorSymbolLayerWidget": ["QgsGeometryGeneratorSymbolLayerWidget(const QgsVectorLayer *vl, QWidget *parent=nullptr)"],
|
||||||
"QgsProjectFileTransform": ["updateRevision(const QgsProjectVersion &version)", "convertRasterProperties(QDomDocument &doc, QDomNode &parentNode, QDomElement &rasterPropertiesElem, QgsRasterLayer *rlayer)"],
|
"QgsProjectFileTransform": ["updateRevision(const QgsProjectVersion &version)", "convertRasterProperties(QDomDocument &doc, QDomNode &parentNode, QDomElement &rasterPropertiesElem, QgsRasterLayer *rlayer)"],
|
||||||
"QgsCentroidFillSymbolLayer": ["create(const QgsStringMap &properties=QgsStringMap())", "pointOnSurface() const ", "createFromSld(QDomElement &element)", "setPointOnSurface(bool pointOnSurface)"],
|
"QgsCentroidFillSymbolLayer": ["create(const QgsStringMap &properties=QgsStringMap())", "pointOnSurface() const ", "createFromSld(QDomElement &element)", "setPointOnSurface(bool pointOnSurface)"],
|
||||||
"QgsAdvancedDigitizingCanvasItem": ["QgsAdvancedDigitizingCanvasItem(QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget)"],
|
"QgsAdvancedDigitizingCanvasItem": ["QgsAdvancedDigitizingCanvasItem(QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget)"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user