-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some missing SIP bindings, comment some classes as not available
in Python
- Loading branch information
1 parent
b1b20af
commit 719ff40
Showing
97 changed files
with
617 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/** | ||
* This class is a menu that is populated automatically with the actions defined for a given layer. | ||
*/ | ||
|
||
class QgsActionMenu : QMenu | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsactionmenu.h> | ||
%End | ||
|
||
public: | ||
enum ActionType | ||
{ | ||
Invalid, //!< Invalid | ||
MapLayerAction, //!< Standard actions (defined by core or plugins) | ||
AttributeAction //!< Custom actions (manually defined in layer properties) | ||
}; | ||
|
||
struct ActionData | ||
{ | ||
ActionData(); | ||
|
||
ActionData( int actionId, QgsFeatureId featureId, QgsMapLayer* mapLayer ); | ||
|
||
ActionData( QgsMapLayerAction* action, QgsFeatureId featureId, QgsMapLayer* mapLayer ); | ||
|
||
QgsActionMenu::ActionType actionType; | ||
|
||
QgsFeatureId featureId; | ||
QgsMapLayer* mapLayer; | ||
}; | ||
|
||
/** | ||
* Constructs a new QgsActionMenu | ||
* | ||
* @param layer The layer that this action will be run upon. | ||
* @param feature The feature that this action will be run upon. Make sure that this feature is available | ||
* for the lifetime of this object. | ||
* @param parent The usual QWidget parent. | ||
*/ | ||
explicit QgsActionMenu( QgsVectorLayer* layer, const QgsFeature* feature, QWidget* parent /TransferThis/ = 0 ); | ||
|
||
/** | ||
* Constructs a new QgsActionMenu | ||
* | ||
* @param layer The layer that this action will be run upon. | ||
* @param fid The feature id of the feature for which this action will be run. | ||
* @param parent The usual QWidget parent. | ||
*/ | ||
explicit QgsActionMenu( QgsVectorLayer* layer, const QgsFeatureId fid, QWidget* parent /TransferThis/ = 0 ); | ||
|
||
/** | ||
* Destructor | ||
*/ | ||
~QgsActionMenu(); | ||
|
||
/** | ||
* Change the feature on which actions are performed | ||
* | ||
* @param feature A feature. Will not take ownership. It's the callers responsibility to keep the feature | ||
* as long as the menu is displayed and the action is running. | ||
*/ | ||
void setFeature( QgsFeature* feature ); | ||
|
||
signals: | ||
void reinit(); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* @brief The QgsAdvancedDigitizingCanvasItem class draws the graphical elements of the CAD tools (@see QgsAdvancedDigitizingDock) on the map canvas. | ||
*/ | ||
|
||
class QgsAdvancedDigitizingCanvasItem : QgsMapCanvasItem | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsadvanceddigitizingcanvasitem.h> | ||
%End | ||
public: | ||
|
||
explicit QgsAdvancedDigitizingCanvasItem( QgsMapCanvas* canvas, QgsAdvancedDigitizingDockWidget* cadDockWidget ); | ||
~QgsAdvancedDigitizingCanvasItem(); | ||
|
||
void paint( QPainter *painter ); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* The QgsBrowserTreeView class extends QTreeView with save/restore tree state functionality. | ||
* | ||
* @see QgsBrowserModel | ||
* @note added in 2.8 | ||
*/ | ||
class QgsBrowserTreeView: QTreeView | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsbrowsertreeview.h> | ||
%End | ||
|
||
public: | ||
QgsBrowserTreeView( QWidget *parent /TransferThis/ = 0 ); | ||
~QgsBrowserTreeView(); | ||
|
||
virtual void setModel( QAbstractItemModel* model ); | ||
virtual void showEvent( QShowEvent * e ); | ||
virtual void hideEvent( QHideEvent * e ); | ||
|
||
// returns true if at least one descendat is expanded, used in refresh | ||
bool hasExpandedDescendant( const QModelIndex& index ) const; | ||
|
||
// Set section where to store settings (because we have 2 browser dock widgets) | ||
void setSettingsSection( const QString & section ); | ||
|
||
protected slots: | ||
virtual void rowsInserted( const QModelIndex & parentIndex, int start, int end ); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.