Skip to content
Permalink
Browse files
Add missing docs
  • Loading branch information
nyalldawson committed Jan 23, 2017
1 parent 0d9b223 commit b586330b5059e434253fa84c8dd112ce452c145a
Showing with 30 additions and 8 deletions.
  1. +12 −0 src/core/qgsdiagramrenderer.h
  2. +5 −5 src/core/qgspallabeling.h
  3. +7 −3 src/gui/symbology-ng/qgslayerpropertieswidget.h
  4. +6 −0 src/gui/symbology-ng/qgssymbollayerwidget.h
@@ -95,6 +95,9 @@ class CORE_EXPORT QgsDiagramLayerSettings
StartAngle, //! Angle offset for pie diagram
};

/**
* Constructor for QgsDiagramLayerSettings.
*/
QgsDiagramLayerSettings() = default;

//! Copy constructor
@@ -238,7 +241,16 @@ class CORE_EXPORT QgsDiagramLayerSettings
*/
void setShowAllDiagrams( bool showAllDiagrams ) { mShowAll = showAllDiagrams; }

/**
* Reads the diagram settings from a DOM element.
* @see writeXml()
*/
void readXml( const QDomElement& elem, const QgsVectorLayer* layer );

/**
* Writes the diagram settings to a DOM element.
* @see readXml()
*/
void writeXml( QDomElement& layerElem, QDomDocument& doc, const QgsVectorLayer* layer ) const;

/**
@@ -786,23 +786,23 @@ class CORE_EXPORT QgsPalLabeling
static QStringList splitToGraphemes( const QString& text );

protected:
// update temporary QgsPalLayerSettings with any data defined text style values
//! Update temporary QgsPalLayerSettings with any data defined text style values
static void dataDefinedTextStyle( QgsPalLayerSettings& tmpLyr,
const QMap< QgsPalLayerSettings::Property, QVariant >& ddValues );

// update temporary QgsPalLayerSettings with any data defined text formatting values
//! Update temporary QgsPalLayerSettings with any data defined text formatting values
static void dataDefinedTextFormatting( QgsPalLayerSettings& tmpLyr,
const QMap< QgsPalLayerSettings::Property, QVariant >& ddValues );

// update temporary QgsPalLayerSettings with any data defined text buffer values
//! Update temporary QgsPalLayerSettings with any data defined text buffer values
static void dataDefinedTextBuffer( QgsPalLayerSettings& tmpLyr,
const QMap< QgsPalLayerSettings::Property, QVariant >& ddValues );

// update temporary QgsPalLayerSettings with any data defined shape background values
//! Update temporary QgsPalLayerSettings with any data defined shape background values
static void dataDefinedShapeBackground( QgsPalLayerSettings& tmpLyr,
const QMap< QgsPalLayerSettings::Property, QVariant >& ddValues );

// update temporary QgsPalLayerSettings with any data defined drop shadow values
//! Update temporary QgsPalLayerSettings with any data defined drop shadow values
static void dataDefinedDropShadow( QgsPalLayerSettings& tmpLyr,
const QMap< QgsPalLayerSettings::Property, QVariant >& ddValues );

@@ -78,6 +78,12 @@ class GUI_EXPORT QgsLayerPropertiesWidget : public QgsPanelWidget, protected Qgs

QgsExpressionContext createExpressionContext() const override;

/**
* 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.
* @note added in QGIS 3.0
*/
void registerDataDefinedButton( QgsPropertyOverrideButton *button, QgsSymbolLayer::Property key );

protected: // data
@@ -86,12 +92,10 @@ class GUI_EXPORT QgsLayerPropertiesWidget : public QgsPanelWidget, protected Qgs
const QgsSymbol* mSymbol;
const QgsVectorLayer* mVectorLayer;

protected slots:
void updateProperty();

private slots:
void reloadLayer();
void on_mEnabledCheckBox_toggled( bool enabled );
void updateProperty();

private:

@@ -63,6 +63,12 @@ class GUI_EXPORT QgsSymbolLayerWidget : public QWidget, protected QgsExpressionC

protected:

/**
* 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.
* @note added in QGIS 3.0
*/
void registerDataDefinedButton( QgsPropertyOverrideButton* button, QgsSymbolLayer::Property key );

QgsExpressionContext createExpressionContext() const override;

0 comments on commit b586330

Please sign in to comment.