Skip to content

Commit

Permalink
sipiy gui symbology
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 9, 2017
1 parent 5867414 commit 00b2d24
Show file tree
Hide file tree
Showing 60 changed files with 2,302 additions and 903 deletions.
32 changes: 0 additions & 32 deletions python/auto_sip.blacklist
Original file line number Diff line number Diff line change
Expand Up @@ -41,38 +41,6 @@ core/composer/qgspaperitem.sip
core/composer/qgsscalebarstyle.sip
core/composer/qgssingleboxscalebarstyle.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/qgsgeometrysnapper.sip
analysis/vector/qgspointsample.sip
Expand Down
6 changes: 5 additions & 1 deletion python/core/qgslogger.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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:
QgsScopeLogger( const char *file, const char *func, int line );
~QgsScopeLogger();
Expand Down
5 changes: 3 additions & 2 deletions python/gui/qgstextpreview.sip
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,16 @@ class QgsTextPreview : QLabel

void setScale( double scale );
%Docstring
Sets the scale to use for previewing format sizes in map units.
\param scale preview map scale
Sets the ``scale`` to use for previewing format sizes in map units.
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
.. seealso:: scale()
.. seealso:: setMapUnits()
%End

double scale() const;
%Docstring
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:: mapUnits()
:rtype: float
Expand Down
66 changes: 37 additions & 29 deletions python/gui/symbology-ng/qgs25drendererwidget.sip
Original file line number Diff line number Diff line change
@@ -1,42 +1,50 @@
/***************************************************************************
qgs25drendererwidget.sip - Qgs25DRendererWidget

---------------------
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
/************************************************************************
* 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 *
************************************************************************/



class Qgs25DRendererWidget : QgsRendererWidget, protected Ui::Qgs25DRendererWidgetBase
{

%TypeHeaderCode
#include "qgs25drendererwidget.h"
%End
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/;
%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/ );
%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:
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 *
************************************************************************/
42 changes: 32 additions & 10 deletions python/gui/symbology-ng/qgsarrowsymbollayerwidget.sip
Original file line number Diff line number Diff line change
@@ -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
{

%TypeHeaderCode
#include <qgsarrowsymbollayerwidget.h>
#include "qgsarrowsymbollayerwidget.h"
%End
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 );
%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/;
%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 );
/** Get the current symbol layer */
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 *
************************************************************************/
30 changes: 27 additions & 3 deletions python/gui/symbology-ng/qgsbrushstylecombobox.sip
Original file line number Diff line number Diff line change
@@ -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
{

%TypeHeaderCode
#include <qgsbrushstylecombobox.h>
#include "qgsbrushstylecombobox.h"
%End

public:
QgsBrushStyleComboBox( QWidget *parent /TransferThis/ = NULL );
QgsBrushStyleComboBox( QWidget *parent /TransferThis/ = 0 );

Qt::BrushStyle brushStyle() const;
%Docstring
:rtype: Qt.BrushStyle
%End

void setBrushStyle( Qt::BrushStyle style );

protected:
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 *
************************************************************************/
Loading

0 comments on commit 00b2d24

Please sign in to comment.