Skip to content

Commit

Permalink
sip bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 3, 2016
1 parent ffb6b90 commit 95f8139
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 1 deletion.
2 changes: 2 additions & 0 deletions python/core/layertree/qgslayertreemodel.sip
Expand Up @@ -252,6 +252,8 @@ class QgsLayerTreeModel : QAbstractItemModel
QVariant legendNodeData( QgsLayerTreeModelLegendNode* node, int role ) const;
Qt::ItemFlags legendNodeFlags( QgsLayerTreeModelLegendNode* node ) const;
bool legendEmbeddedInParent( QgsLayerTreeLayer* nodeLayer ) const;
/** Return legend node that may be embbeded in parent (i.e. its icon will be used for layer's icon). */
QgsLayerTreeModelLegendNode* legendNodeEmbeddedInParent( QgsLayerTreeLayer* nodeLayer ) const;
QIcon legendIconEmbeddedInParent( QgsLayerTreeLayer* nodeLayer ) const;
void legendCleanup();
void legendInvalidateMapBasedData();
Expand Down
6 changes: 6 additions & 0 deletions python/core/qgsmaplayer.sip
Expand Up @@ -652,6 +652,12 @@ class QgsMapLayer : QObject
*/
void legendChanged();

/**
* Emitted whenever the configuration is changed. The project listens to this signal
* to be marked as dirty.
*/
void configChanged();

protected:
/** Set the extent */
virtual void setExtent( const QgsRectangle &rect );
Expand Down
14 changes: 14 additions & 0 deletions python/core/qgsproject.sip
Expand Up @@ -324,6 +324,20 @@ class QgsProject : QObject
* @note Added in QGIS 2.16
*/
void setAutoTransaction(bool autoTransaction );
/**
* Should default values be evaluated on provider side when requested and not when committed.
*
* @note added in 2.16
*/
bool evaluateDefaultValues() const;


/**
* Defines if default values should be evaluated on provider side when requested and not when committed.
*
* @note added in 2.16
*/
void setEvaluateDefaultValues( bool evaluateDefaultValues );

protected:

Expand Down
6 changes: 6 additions & 0 deletions python/core/qgsruntimeprofiler.sip
Expand Up @@ -42,6 +42,12 @@ class QgsRuntimeProfiler
*/
void end();

/**
* @brief Return all the current profile times.
* @return A list of profile event names and times.
*/
// const QList<QPair<QString, double>> profileTimes() const;

/**
* @brief clear Clear all profile data.
*/
Expand Down
1 change: 1 addition & 0 deletions python/gui/symbology-ng/qgsrendererv2widget.sip
Expand Up @@ -53,6 +53,7 @@ class QgsRendererV2Widget : QWidget
*/
void widgetChanged();

void panelOpened( bool opened );
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&)*/
Expand Down
1 change: 1 addition & 0 deletions python/gui/symbology-ng/qgssymbolv2selectordialog.sip
Expand Up @@ -34,6 +34,7 @@ class QgsSymbolV2SelectorDialog : QDialog
*/
void setMapCanvas( QgsMapCanvas* canvas );

QgsSymbolV2* symbol();
protected:
//! Reimplements dialog keyPress event so we can ignore it
void keyPressEvent( QKeyEvent * event );
Expand Down
3 changes: 2 additions & 1 deletion src/core/qgsruntimeprofiler.h
Expand Up @@ -48,8 +48,9 @@ class CORE_EXPORT QgsRuntimeProfiler
/**
* @brief Return all the current profile times.
* @return A list of profile event names and times.
* @note not available in python bindings
*/
const QList<QPair<QString, double>> profileTimes() { return mProfileTimes; }
const QList<QPair<QString, double>> profileTimes() const { return mProfileTimes; }

/**
* @brief clear Clear all profile data.
Expand Down

0 comments on commit 95f8139

Please sign in to comment.