mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
sipify gui effects + layertree
This commit is contained in:
parent
2454e56b32
commit
58674146af
@ -73,11 +73,6 @@ gui/symbology-ng/qgssymbolslistwidget.sip
|
||||
gui/symbology-ng/qgssymbolselectordialog.sip
|
||||
gui/symbology-ng/qgssymbolwidgetcontext.sip
|
||||
gui/symbology-ng/qgsvectorfieldsymbollayerwidget.sip
|
||||
gui/effects/qgseffectdrawmodecombobox.sip
|
||||
gui/effects/qgseffectstackpropertieswidget.sip
|
||||
gui/effects/qgspainteffectpropertieswidget.sip
|
||||
gui/effects/qgspainteffectwidget.sip
|
||||
gui/layertree/qgslayertreeview.sip
|
||||
analysis/vector/qgsgeometryanalyzer.sip
|
||||
analysis/vector/qgsgeometrysnapper.sip
|
||||
analysis/vector/qgspointsample.sip
|
||||
|
@ -1,30 +1,48 @@
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/effects/qgseffectdrawmodecombobox.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
/** \ingroup gui
|
||||
* \class QgsEffectDrawModeComboBox
|
||||
* \brief A combo box allowing selection of paint effect draw modes
|
||||
*
|
||||
* \note Added in version 2.9
|
||||
*/
|
||||
|
||||
class QgsEffectDrawModeComboBox : QComboBox
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qgseffectdrawmodecombobox.h>
|
||||
%Docstring
|
||||
A combo box allowing selection of paint effect draw modes
|
||||
|
||||
.. versionadded:: 2.9
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgseffectdrawmodecombobox.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
QgsEffectDrawModeComboBox( QWidget *parent /TransferThis/ = NULL );
|
||||
QgsEffectDrawModeComboBox( QWidget *parent /TransferThis/ = 0 );
|
||||
|
||||
/** Returns the currently selected draw mode for the combo box
|
||||
* @returns current draw mode
|
||||
*/
|
||||
QgsPaintEffect::DrawMode drawMode() const;
|
||||
%Docstring
|
||||
Returns the currently selected draw mode for the combo box
|
||||
:return: current draw mode
|
||||
:rtype: QgsPaintEffect.DrawMode
|
||||
%End
|
||||
|
||||
/** Sets the currently selected draw mode for the combo box
|
||||
* @param drawMode selected draw mode
|
||||
*/
|
||||
void setDrawMode( QgsPaintEffect::DrawMode drawMode );
|
||||
%Docstring
|
||||
Sets the currently selected draw mode for the combo box
|
||||
\param drawMode selected draw mode
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/effects/qgseffectdrawmodecombobox.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
@ -1,190 +1,235 @@
|
||||
/** \ingroup gui
|
||||
* \class QgsEffectStackPropertiesWidget
|
||||
* \brief A widget for modifying the properties of a QgsEffectStack, including adding
|
||||
* and reordering effects within the stack.
|
||||
*
|
||||
* \note Added in version 2.9
|
||||
* \see QgsEffectStack
|
||||
* \see QgsEffectStackPropertiesDialog
|
||||
* \see QgsEffectStackCompactWidget
|
||||
*/
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/effects/qgseffectstackpropertieswidget.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsEffectStackPropertiesWidget : QgsPanelWidget
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qgseffectstackpropertieswidget.h>
|
||||
%Docstring
|
||||
A widget for modifying the properties of a QgsEffectStack, including adding
|
||||
and reordering effects within the stack.
|
||||
|
||||
.. versionadded:: 2.9
|
||||
.. seealso:: QgsEffectStack
|
||||
.. seealso:: QgsEffectStackPropertiesDialog
|
||||
.. seealso:: QgsEffectStackCompactWidget
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgseffectstackpropertieswidget.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
/** QgsEffectStackPropertiesWidget constructor
|
||||
* @param stack QgsEffectStack to modify in the widget
|
||||
* @param parent parent widget
|
||||
*/
|
||||
QgsEffectStackPropertiesWidget( QgsEffectStack *stack, QWidget *parent /TransferThis/ = 0 );
|
||||
%Docstring
|
||||
QgsEffectStackPropertiesWidget constructor
|
||||
\param stack QgsEffectStack to modify in the widget
|
||||
\param parent parent widget
|
||||
%End
|
||||
|
||||
~QgsEffectStackPropertiesWidget();
|
||||
|
||||
/** Returns effect stack attached to the widget
|
||||
* @returns QgsEffectStack modified by the widget
|
||||
*/
|
||||
QgsEffectStack *stack();
|
||||
%Docstring
|
||||
Returns effect stack attached to the widget
|
||||
:return: QgsEffectStack modified by the widget
|
||||
:rtype: QgsEffectStack
|
||||
%End
|
||||
|
||||
/** Sets the picture to use for effect previews for the dialog
|
||||
* @param picture preview picture
|
||||
*/
|
||||
void setPreviewPicture( const QPicture &picture );
|
||||
%Docstring
|
||||
Sets the picture to use for effect previews for the dialog
|
||||
\param picture preview picture
|
||||
%End
|
||||
|
||||
public slots:
|
||||
|
||||
/** Moves the currently selected effect down in the stack.
|
||||
*/
|
||||
void moveEffectDown();
|
||||
%Docstring
|
||||
Moves the currently selected effect down in the stack.
|
||||
%End
|
||||
|
||||
/** Moves the currently selected effect up in the stack.
|
||||
*/
|
||||
void moveEffectUp();
|
||||
%Docstring
|
||||
Moves the currently selected effect up in the stack.
|
||||
%End
|
||||
|
||||
/** Adds a new effect to the stack.
|
||||
*/
|
||||
void addEffect();
|
||||
%Docstring
|
||||
Adds a new effect to the stack.
|
||||
%End
|
||||
|
||||
/** Removes the currently selected effect from the stack.
|
||||
*/
|
||||
void removeEffect();
|
||||
%Docstring
|
||||
Removes the currently selected effect from the stack.
|
||||
%End
|
||||
|
||||
/** Updates the widget when the selected effect changes type.
|
||||
*/
|
||||
void effectChanged();
|
||||
%Docstring
|
||||
Updates the widget when the selected effect changes type.
|
||||
%End
|
||||
|
||||
/** Updates the effect preview icon.
|
||||
*/
|
||||
void updatePreview();
|
||||
%Docstring
|
||||
Updates the effect preview icon.
|
||||
%End
|
||||
|
||||
/** Updates the effect stack when the currently selected effect changes properties.
|
||||
* @param newEffect new effect to replace existing effect at selected position within the stack.
|
||||
*/
|
||||
void changeEffect( QgsPaintEffect *newEffect );
|
||||
%Docstring
|
||||
Updates the effect stack when the currently selected effect changes properties.
|
||||
\param newEffect new effect to replace existing effect at selected position within the stack.
|
||||
%End
|
||||
|
||||
protected:
|
||||
|
||||
/** Refreshes the widget to reflect the current state of the stack.
|
||||
*/
|
||||
|
||||
void loadStack();
|
||||
%Docstring
|
||||
Refreshes the widget to reflect the current state of the stack.
|
||||
%End
|
||||
|
||||
/** Refreshes the widget to reflect the current state of a specified stack.
|
||||
* @param stack QgsEffectStack for widget
|
||||
*/
|
||||
void loadStack( QgsEffectStack *stack );
|
||||
%Docstring
|
||||
Refreshes the widget to reflect the current state of a specified stack.
|
||||
\param stack QgsEffectStack for widget
|
||||
%End
|
||||
|
||||
/** Enables or disables widgets depending on the selected effect within the stack.
|
||||
*/
|
||||
void updateUi();
|
||||
%Docstring
|
||||
Enables or disables widgets depending on the selected effect within the stack.
|
||||
%End
|
||||
|
||||
/** Returns the currently selected effect within the stack.
|
||||
* @note not available in python bindings
|
||||
*/
|
||||
//EffectItem *currentEffectItem();
|
||||
|
||||
/** Moves the currently selected effect within the stack by a specified offset
|
||||
*/
|
||||
void moveEffectByOffset( int offset );
|
||||
%Docstring
|
||||
Moves the currently selected effect within the stack by a specified offset
|
||||
%End
|
||||
|
||||
/** Sets the effect properties widget
|
||||
*/
|
||||
void setWidget( QWidget *widget );
|
||||
%Docstring
|
||||
Sets the effect properties widget
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
|
||||
/** \ingroup gui
|
||||
* \class QgsEffectStackPropertiesDialog
|
||||
* \brief A dialog for modifying the properties of a QgsEffectStack, including adding
|
||||
* and reordering effects within the stack.
|
||||
*
|
||||
* \note Added in version 2.9
|
||||
* \see QgsEffectStack
|
||||
* \see QgsEffectStackPropertiesWidget
|
||||
* \see QgsEffectStackCompactWidget
|
||||
*/
|
||||
|
||||
class QgsEffectStackPropertiesDialog : QgsDialog
|
||||
class QgsEffectStackPropertiesDialog: QgsDialog
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qgseffectstackpropertieswidget.h>
|
||||
%Docstring
|
||||
A dialog for modifying the properties of a QgsEffectStack, including adding
|
||||
and reordering effects within the stack.
|
||||
|
||||
.. versionadded:: 2.9
|
||||
.. seealso:: QgsEffectStack
|
||||
.. seealso:: QgsEffectStackPropertiesWidget
|
||||
.. seealso:: QgsEffectStackCompactWidget
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgseffectstackpropertieswidget.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
/** QgsEffectStackPropertiesDialog constructor
|
||||
* @param stack QgsEffectStack to modify in the dialog
|
||||
* @param parent parent widget
|
||||
* @param f window flags
|
||||
*/
|
||||
QgsEffectStackPropertiesDialog( QgsEffectStack *stack, QWidget *parent /TransferThis/ = 0, const Qt::WindowFlags &f = 0 );
|
||||
~QgsEffectStackPropertiesDialog();
|
||||
QgsEffectStackPropertiesDialog( QgsEffectStack *stack, QWidget *parent /TransferThis/ = 0, Qt::WindowFlags f = 0 );
|
||||
%Docstring
|
||||
QgsEffectStackPropertiesDialog constructor
|
||||
\param stack QgsEffectStack to modify in the dialog
|
||||
\param parent parent widget
|
||||
\param f window flags
|
||||
%End
|
||||
|
||||
/** Returns effect stack attached to the dialog
|
||||
* @returns QgsEffectStack modified by the dialog
|
||||
*/
|
||||
QgsEffectStack *stack();
|
||||
%Docstring
|
||||
Returns effect stack attached to the dialog
|
||||
:return: QgsEffectStack modified by the dialog
|
||||
:rtype: QgsEffectStack
|
||||
%End
|
||||
|
||||
/** Sets the picture to use for effect previews for the dialog
|
||||
* @param picture preview picture
|
||||
*/
|
||||
void setPreviewPicture( const QPicture &picture );
|
||||
%Docstring
|
||||
Sets the picture to use for effect previews for the dialog
|
||||
\param picture preview picture
|
||||
%End
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
};
|
||||
|
||||
/** \ingroup gui
|
||||
* \class QgsEffectStackCompactWidget
|
||||
* \brief A small widget consisting of a check box for enabling/disabling an effect stack
|
||||
* and a button for opening an effect stack customisation dialog.
|
||||
*
|
||||
* \note Added in version 2.9
|
||||
* \see QgsEffectStack
|
||||
* \see QgsEffectStackPropertiesWidget
|
||||
* \see QgsEffectStackPropertiesDialog
|
||||
*/
|
||||
|
||||
class QgsEffectStackCompactWidget : QgsPanelWidget
|
||||
|
||||
class QgsEffectStackCompactWidget: QgsPanelWidget
|
||||
{
|
||||
%Docstring
|
||||
A small widget consisting of a check box for enabling/disabling an effect stack
|
||||
and a button for opening an effect stack customisation dialog.
|
||||
|
||||
.. versionadded:: 2.9
|
||||
.. seealso:: QgsEffectStack
|
||||
.. seealso:: QgsEffectStackPropertiesWidget
|
||||
.. seealso:: QgsEffectStackPropertiesDialog
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include <qgseffectstackpropertieswidget.h>
|
||||
#include "qgseffectstackpropertieswidget.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
/** QgsEffectStackCompactWidget constructor
|
||||
* @param parent parent widget
|
||||
* @param effect QgsPaintEffect for modification by the widget. If the effect
|
||||
* is not a QgsEffectStack, it will be automatically converted to an effect
|
||||
* stack consisting of the original effect
|
||||
*/
|
||||
QgsEffectStackCompactWidget( QWidget *parent /TransferThis/ = 0, QgsPaintEffect *effect = 0 );
|
||||
%Docstring
|
||||
QgsEffectStackCompactWidget constructor
|
||||
\param parent parent widget
|
||||
\param effect QgsPaintEffect for modification by the widget. If the effect
|
||||
is not a QgsEffectStack, it will be automatically converted to an effect
|
||||
stack consisting of the original effect
|
||||
%End
|
||||
~QgsEffectStackCompactWidget();
|
||||
|
||||
/** Sets paint effect attached to the widget
|
||||
* @param effect QgsPaintEffect for modification by the widget. If the effect
|
||||
* is not a QgsEffectStack, it will be automatically converted to an effect
|
||||
* stack consisting of the original effect
|
||||
* @see paintEffect
|
||||
*/
|
||||
void setPaintEffect( QgsPaintEffect *effect );
|
||||
%Docstring
|
||||
Sets paint effect attached to the widget,
|
||||
\param effect QgsPaintEffect for modification by the widget. If the effect
|
||||
is not a QgsEffectStack, it will be automatically converted to an effect
|
||||
stack consisting of the original effect
|
||||
.. seealso:: paintEffect
|
||||
%End
|
||||
|
||||
/** Returns paint effect attached to the widget
|
||||
* @returns QgsPaintEffect modified by the widget
|
||||
* @see setPaintEffect
|
||||
*/
|
||||
QgsPaintEffect *paintEffect() const;
|
||||
%Docstring
|
||||
Returns paint effect attached to the widget
|
||||
:return: QgsPaintEffect modified by the widget
|
||||
.. seealso:: setPaintEffect
|
||||
:rtype: QgsPaintEffect
|
||||
%End
|
||||
|
||||
/** Sets the picture to use for effect previews for the dialog
|
||||
* @param picture preview picture
|
||||
*/
|
||||
void setPreviewPicture( const QPicture &picture );
|
||||
%Docstring
|
||||
Sets the picture to use for effect previews for the dialog
|
||||
\param picture preview picture
|
||||
%End
|
||||
|
||||
signals:
|
||||
|
||||
/** Emitted when the paint effect properties change
|
||||
*/
|
||||
void changed();
|
||||
%Docstring
|
||||
Emitted when the paint effect properties change
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/effects/qgseffectstackpropertieswidget.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
@ -1,43 +1,66 @@
|
||||
/** \ingroup gui
|
||||
* \class QgsPaintEffectPropertiesWidget
|
||||
* \brief A widget which modifies the properties of a QgsPaintEffect
|
||||
*
|
||||
* \note Added in version 2.9
|
||||
*/
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/effects/qgspainteffectpropertieswidget.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsPaintEffectPropertiesWidget : QWidget
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qgspainteffectpropertieswidget.h>
|
||||
%Docstring
|
||||
A widget which modifies the properties of a QgsPaintEffect
|
||||
|
||||
.. versionadded:: 2.9
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgspainteffectpropertieswidget.h"
|
||||
%End
|
||||
public:
|
||||
|
||||
/** QgsPaintEffectPropertiesWidget constructor
|
||||
* @param effect QgsPaintEffect to modify in the widget
|
||||
* @param parent parent widget
|
||||
*/
|
||||
QgsPaintEffectPropertiesWidget( QgsPaintEffect *effect, QWidget *parent /TransferThis/ = NULL );
|
||||
QgsPaintEffectPropertiesWidget( QgsPaintEffect *effect, QWidget *parent /TransferThis/ = 0 );
|
||||
%Docstring
|
||||
QgsPaintEffectPropertiesWidget constructor
|
||||
\param effect QgsPaintEffect to modify in the widget
|
||||
\param parent parent widget
|
||||
%End
|
||||
|
||||
public slots:
|
||||
|
||||
/** Update widget when effect type changes
|
||||
*/
|
||||
void effectTypeChanged();
|
||||
%Docstring
|
||||
Update widget when effect type changes
|
||||
%End
|
||||
|
||||
/** Emits the changed signal
|
||||
*/
|
||||
void emitSignalChanged();
|
||||
%Docstring
|
||||
Emits the changed signal
|
||||
%End
|
||||
|
||||
signals:
|
||||
|
||||
/** Emitted when paint effect properties changes
|
||||
*/
|
||||
void changed();
|
||||
%Docstring
|
||||
Emitted when paint effect properties changes
|
||||
%End
|
||||
|
||||
/** Emitted when paint effect type changes
|
||||
*/
|
||||
void changeEffect( QgsPaintEffect *effect );
|
||||
%Docstring
|
||||
Emitted when paint effect type changes
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/effects/qgspainteffectpropertieswidget.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
@ -1,124 +1,172 @@
|
||||
/** \ingroup gui
|
||||
* \class QgsPaintEffectWidget
|
||||
* \brief Base class for effect properties widgets.
|
||||
*
|
||||
* \note Added in version 2.9
|
||||
*/
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/effects/qgspainteffectwidget.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsPaintEffectWidget : QWidget
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qgspainteffectwidget.h>
|
||||
%Docstring
|
||||
Base class for effect properties widgets.
|
||||
|
||||
.. versionadded:: 2.9
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgspainteffectwidget.h"
|
||||
%End
|
||||
public:
|
||||
QgsPaintEffectWidget( QWidget *parent /TransferThis/ = 0 );
|
||||
virtual ~QgsPaintEffectWidget();
|
||||
|
||||
/**
|
||||
* Sets the paint effect to modify with the widget
|
||||
* @param effect paint effect
|
||||
*/
|
||||
virtual void setPaintEffect( QgsPaintEffect *effect ) = 0;
|
||||
%Docstring
|
||||
Sets the paint effect to modify with the widget
|
||||
\param effect paint effect
|
||||
%End
|
||||
|
||||
signals:
|
||||
|
||||
/**
|
||||
* Emitted when properties of the effect are changed through the widget
|
||||
*/
|
||||
void changed();
|
||||
%Docstring
|
||||
Emitted when properties of the effect are changed through the widget
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
class QgsDrawSourceWidget : QgsPaintEffectWidget
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qgspainteffectwidget.h>
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgspainteffectwidget.h"
|
||||
%End
|
||||
public:
|
||||
QgsDrawSourceWidget( QWidget *parent /TransferThis/ = NULL );
|
||||
QgsDrawSourceWidget( QWidget *parent /TransferThis/ = 0 );
|
||||
|
||||
static QgsPaintEffectWidget *create() /Factory/;
|
||||
%Docstring
|
||||
:rtype: QgsPaintEffectWidget
|
||||
%End
|
||||
|
||||
virtual void setPaintEffect( QgsPaintEffect *effect );
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsBlurWidget : QgsPaintEffectWidget
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qgspainteffectwidget.h>
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgspainteffectwidget.h"
|
||||
%End
|
||||
public:
|
||||
QgsBlurWidget( QWidget *parent /TransferThis/ = NULL );
|
||||
QgsBlurWidget( QWidget *parent /TransferThis/ = 0 );
|
||||
|
||||
static QgsPaintEffectWidget *create() /Factory/;
|
||||
%Docstring
|
||||
:rtype: QgsPaintEffectWidget
|
||||
%End
|
||||
|
||||
virtual void setPaintEffect( QgsPaintEffect *effect );
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsShadowEffectWidget : QgsPaintEffectWidget
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qgspainteffectwidget.h>
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgspainteffectwidget.h"
|
||||
%End
|
||||
public:
|
||||
QgsShadowEffectWidget( QWidget *parent /TransferThis/ = NULL );
|
||||
QgsShadowEffectWidget( QWidget *parent /TransferThis/ = 0 );
|
||||
|
||||
static QgsPaintEffectWidget *create() /Factory/;
|
||||
%Docstring
|
||||
:rtype: QgsPaintEffectWidget
|
||||
%End
|
||||
|
||||
virtual void setPaintEffect( QgsPaintEffect *effect );
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
class QgsGlowWidget : QgsPaintEffectWidget
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qgspainteffectwidget.h>
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgspainteffectwidget.h"
|
||||
%End
|
||||
public:
|
||||
QgsGlowWidget( QWidget *parent /TransferThis/ = NULL );
|
||||
QgsGlowWidget( QWidget *parent /TransferThis/ = 0 );
|
||||
|
||||
static QgsPaintEffectWidget *create() /Factory/;
|
||||
%Docstring
|
||||
:rtype: QgsPaintEffectWidget
|
||||
%End
|
||||
|
||||
virtual void setPaintEffect( QgsPaintEffect *effect );
|
||||
|
||||
};
|
||||
|
||||
|
||||
class QgsTransformWidget : QgsPaintEffectWidget
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qgspainteffectwidget.h>
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgspainteffectwidget.h"
|
||||
%End
|
||||
public:
|
||||
QgsTransformWidget( QWidget *parent /TransferThis/ = NULL );
|
||||
QgsTransformWidget( QWidget *parent /TransferThis/ = 0 );
|
||||
|
||||
static QgsPaintEffectWidget *create() /Factory/;
|
||||
%Docstring
|
||||
:rtype: QgsPaintEffectWidget
|
||||
%End
|
||||
|
||||
virtual void setPaintEffect( QgsPaintEffect *effect );
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
class QgsColorEffectWidget : QgsPaintEffectWidget
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qgspainteffectwidget.h>
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgspainteffectwidget.h"
|
||||
%End
|
||||
public:
|
||||
QgsColorEffectWidget( QWidget *parent /TransferThis/ = NULL );
|
||||
QgsColorEffectWidget( QWidget *parent = 0 );
|
||||
|
||||
static QgsPaintEffectWidget *create() /Factory/;
|
||||
%Docstring
|
||||
:rtype: QgsPaintEffectWidget
|
||||
%End
|
||||
|
||||
virtual void setPaintEffect( QgsPaintEffect *effect );
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/effects/qgspainteffectwidget.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
@ -1,95 +1,155 @@
|
||||
/**
|
||||
* The QgsLayerTreeView class extends QTreeView and provides some additional functionality
|
||||
* when working with a layer tree.
|
||||
*
|
||||
* The view updates expanded state of layer tree nodes and also listens to changes
|
||||
* to expanded states in the layer tree.
|
||||
*
|
||||
* The view keeps track of the current layer and emits a signal when the current layer has changed.
|
||||
*
|
||||
* Allows the client to specify a context menu provider with custom actions. Also it comes
|
||||
* with a set of default actions that can be used when building context menu.
|
||||
*
|
||||
* @see QgsLayerTreeModel
|
||||
* @note added in 2.4
|
||||
*/
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/layertree/qgslayertreeview.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
class QgsLayerTreeView : QTreeView
|
||||
{
|
||||
%Docstring
|
||||
The QgsLayerTreeView class extends QTreeView and provides some additional functionality
|
||||
when working with a layer tree.
|
||||
|
||||
The view updates expanded state of layer tree nodes and also listens to changes
|
||||
to expanded states in the layer tree.
|
||||
|
||||
The view keeps track of the current layer and emits a signal when the current layer has changed.
|
||||
|
||||
Allows the client to specify a context menu provider with custom actions. Also it comes
|
||||
with a set of default actions that can be used when building context menu.
|
||||
|
||||
.. seealso:: QgsLayerTreeModel
|
||||
.. versionadded:: 2.4
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include <qgslayertreeview.h>
|
||||
#include "qgslayertreeview.h"
|
||||
%End
|
||||
|
||||
%ConvertToSubClassCode
|
||||
if (sipCpp->inherits("QgsLayerTreeView"))
|
||||
sipType = sipType_QgsLayerTreeView;
|
||||
else
|
||||
sipType = 0;
|
||||
if ( sipCpp->inherits( "QgsLayerTreeView" ) )
|
||||
sipType = sipType_QgsLayerTreeView;
|
||||
else
|
||||
sipType = 0;
|
||||
%End
|
||||
|
||||
public:
|
||||
explicit QgsLayerTreeView( QWidget *parent /TransferThis/ = 0 );
|
||||
~QgsLayerTreeView();
|
||||
|
||||
//! Overridden setModel() from base class. Only QgsLayerTreeModel is an acceptable model.
|
||||
virtual void setModel( QAbstractItemModel *model );
|
||||
%Docstring
|
||||
Overridden setModel() from base class. Only QgsLayerTreeModel is an acceptable model.
|
||||
%End
|
||||
|
||||
//! Get access to the model casted to QgsLayerTreeModel
|
||||
QgsLayerTreeModel *layerTreeModel() const;
|
||||
%Docstring
|
||||
Get access to the model casted to QgsLayerTreeModel
|
||||
:rtype: QgsLayerTreeModel
|
||||
%End
|
||||
|
||||
//! Get access to the default actions that may be used with the tree view
|
||||
QgsLayerTreeViewDefaultActions *defaultActions();
|
||||
%Docstring
|
||||
Get access to the default actions that may be used with the tree view
|
||||
:rtype: QgsLayerTreeViewDefaultActions
|
||||
%End
|
||||
|
||||
//! Set provider for context menu. Takes ownership of the instance
|
||||
void setMenuProvider( QgsLayerTreeViewMenuProvider *menuProvider /Transfer/ );
|
||||
//! Return pointer to the context menu provider. May be null
|
||||
%Docstring
|
||||
Set provider for context menu. Takes ownership of the instance
|
||||
%End
|
||||
QgsLayerTreeViewMenuProvider *menuProvider() const;
|
||||
%Docstring
|
||||
Return pointer to the context menu provider. May be null
|
||||
:rtype: QgsLayerTreeViewMenuProvider
|
||||
%End
|
||||
|
||||
//! Get currently selected layer. May be null
|
||||
QgsMapLayer *currentLayer() const;
|
||||
//! Set currently selected layer. Null pointer will deselect any layer.
|
||||
%Docstring
|
||||
Get currently selected layer. May be null
|
||||
:rtype: QgsMapLayer
|
||||
%End
|
||||
void setCurrentLayer( QgsMapLayer *layer );
|
||||
%Docstring
|
||||
Set currently selected layer. Null pointer will deselect any layer.
|
||||
%End
|
||||
|
||||
//! Get current node. May be null
|
||||
QgsLayerTreeNode *currentNode() const;
|
||||
//! Get current group node. If a layer is current node, the function will return parent group. May be null.
|
||||
%Docstring
|
||||
Get current node. May be null
|
||||
:rtype: QgsLayerTreeNode
|
||||
%End
|
||||
QgsLayerTreeGroup *currentGroupNode() const;
|
||||
%Docstring
|
||||
Get current group node. If a layer is current node, the function will return parent group. May be null.
|
||||
:rtype: QgsLayerTreeGroup
|
||||
%End
|
||||
|
||||
/** Get current legend node. May be null if current node is not a legend node.
|
||||
* @note added in QGIS 2.14
|
||||
*/
|
||||
QgsLayerTreeModelLegendNode *currentLegendNode() const;
|
||||
%Docstring
|
||||
Get current legend node. May be null if current node is not a legend node.
|
||||
.. versionadded:: 2.14
|
||||
:rtype: QgsLayerTreeModelLegendNode
|
||||
%End
|
||||
|
||||
//! Return list of selected nodes
|
||||
//! @arg skipInternal If true, will ignore nodes which have an ancestor in the selection
|
||||
QList<QgsLayerTreeNode*> selectedNodes( bool skipInternal = false ) const;
|
||||
//! Return list of selected nodes filtered to just layer nodes
|
||||
QList<QgsLayerTreeLayer*> selectedLayerNodes() const;
|
||||
QList<QgsLayerTreeNode *> selectedNodes( bool skipInternal = false ) const;
|
||||
%Docstring
|
||||
@arg skipInternal If true, will ignore nodes which have an ancestor in the selection
|
||||
:rtype: list of QgsLayerTreeNode
|
||||
%End
|
||||
QList<QgsLayerTreeLayer *> selectedLayerNodes() const;
|
||||
%Docstring
|
||||
Return list of selected nodes filtered to just layer nodes
|
||||
:rtype: list of QgsLayerTreeLayer
|
||||
%End
|
||||
|
||||
//! Get list of selected layers
|
||||
QList<QgsMapLayer*> selectedLayers() const;
|
||||
QList<QgsMapLayer *> selectedLayers() const;
|
||||
%Docstring
|
||||
Get list of selected layers
|
||||
:rtype: list of QgsMapLayer
|
||||
%End
|
||||
|
||||
public slots:
|
||||
//! Force refresh of layer symbology. Normally not needed as the changes of layer's renderer are monitored by the model
|
||||
void refreshLayerSymbology( const QString &layerId );
|
||||
%Docstring
|
||||
Force refresh of layer symbology. Normally not needed as the changes of layer's renderer are monitored by the model
|
||||
%End
|
||||
|
||||
//! Enhancement of QTreeView::expandAll() that also records expanded state in layer tree nodes
|
||||
//! @note added in QGIS 2.18
|
||||
void expandAllNodes();
|
||||
%Docstring
|
||||
.. versionadded:: 2.18
|
||||
%End
|
||||
|
||||
//! Enhancement of QTreeView::collapseAll() that also records expanded state in layer tree nodes
|
||||
//! @note added in QGIS 2.18
|
||||
void collapseAllNodes();
|
||||
%Docstring
|
||||
.. versionadded:: 2.18
|
||||
%End
|
||||
|
||||
signals:
|
||||
//! Emitted when a current layer is changed
|
||||
void currentLayerChanged( QgsMapLayer *layer );
|
||||
%Docstring
|
||||
Emitted when a current layer is changed
|
||||
%End
|
||||
|
||||
protected:
|
||||
void contextMenuEvent( QContextMenuEvent *event );
|
||||
virtual void contextMenuEvent( QContextMenuEvent *event );
|
||||
|
||||
|
||||
void updateExpandedStateFromNode( QgsLayerTreeNode *node );
|
||||
|
||||
QgsMapLayer *layerForIndex( const QModelIndex &index ) const;
|
||||
%Docstring
|
||||
:rtype: QgsMapLayer
|
||||
%End
|
||||
|
||||
virtual void mouseReleaseEvent( QMouseEvent *event );
|
||||
|
||||
virtual void keyPressEvent( QKeyEvent *event );
|
||||
|
||||
|
||||
protected slots:
|
||||
|
||||
@ -101,25 +161,39 @@ class QgsLayerTreeView : QTreeView
|
||||
void onCurrentChanged();
|
||||
void onExpandedChanged( QgsLayerTreeNode *node, bool expanded );
|
||||
void onModelReset();
|
||||
|
||||
protected:
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Implementation of this interface can be implemented to allow QgsLayerTreeView
|
||||
* instance to provide custom context menus (opened upon right-click).
|
||||
*
|
||||
* @see QgsLayerTreeView
|
||||
* @note added in 2.4
|
||||
*/
|
||||
class QgsLayerTreeViewMenuProvider
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qgslayertreeview.h>
|
||||
%Docstring
|
||||
Implementation of this interface can be implemented to allow QgsLayerTreeView
|
||||
instance to provide custom context menus (opened upon right-click).
|
||||
|
||||
.. seealso:: QgsLayerTreeView
|
||||
.. versionadded:: 2.4
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgslayertreeview.h"
|
||||
%End
|
||||
public:
|
||||
virtual ~QgsLayerTreeViewMenuProvider();
|
||||
|
||||
//! Return a newly created menu instance (or null pointer on error)
|
||||
virtual QMenu *createContextMenu() = 0 /Factory/;
|
||||
%Docstring
|
||||
Return a newly created menu instance (or null pointer on error)
|
||||
:rtype: QMenu
|
||||
%End
|
||||
};
|
||||
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
* src/gui/layertree/qgslayertreeview.h *
|
||||
* *
|
||||
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||
************************************************************************/
|
||||
|
@ -33,7 +33,7 @@ class GUI_EXPORT QgsEffectDrawModeComboBox : public QComboBox
|
||||
|
||||
public:
|
||||
|
||||
QgsEffectDrawModeComboBox( QWidget *parent = nullptr );
|
||||
QgsEffectDrawModeComboBox( QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||
|
||||
/** Returns the currently selected draw mode for the combo box
|
||||
* \returns current draw mode
|
||||
|
@ -158,7 +158,7 @@ class GUI_EXPORT QgsEffectStackPropertiesDialog: public QgsDialog
|
||||
* \param parent parent widget
|
||||
* \param f window flags
|
||||
*/
|
||||
QgsEffectStackPropertiesDialog( QgsEffectStack *stack, QWidget *parent = nullptr, Qt::WindowFlags f = 0 );
|
||||
QgsEffectStackPropertiesDialog( QgsEffectStack *stack, QWidget *parent SIP_TRANSFERTHIS = nullptr, Qt::WindowFlags f = 0 );
|
||||
|
||||
/** Returns effect stack attached to the dialog
|
||||
* \returns QgsEffectStack modified by the dialog
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
#include "ui_qgseffectpropertieswidget.h"
|
||||
#include "qgis_gui.h"
|
||||
#include "qgis_sip.h"
|
||||
|
||||
class QgsPaintEffect;
|
||||
|
||||
@ -39,7 +40,7 @@ class GUI_EXPORT QgsPaintEffectPropertiesWidget : public QWidget, private Ui::Ef
|
||||
* \param effect QgsPaintEffect to modify in the widget
|
||||
* \param parent parent widget
|
||||
*/
|
||||
QgsPaintEffectPropertiesWidget( QgsPaintEffect *effect, QWidget *parent = nullptr );
|
||||
QgsPaintEffectPropertiesWidget( QgsPaintEffect *effect, QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||
|
||||
public slots:
|
||||
|
||||
|
@ -41,7 +41,7 @@ class GUI_EXPORT QgsPaintEffectWidget : public QWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QgsPaintEffectWidget( QWidget *parent = nullptr ) : QWidget( parent ) {}
|
||||
QgsPaintEffectWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr ) : QWidget( parent ) {}
|
||||
|
||||
/**
|
||||
* Sets the paint effect to modify with the widget
|
||||
@ -70,7 +70,7 @@ class GUI_EXPORT QgsDrawSourceWidget : public QgsPaintEffectWidget, private Ui::
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QgsDrawSourceWidget( QWidget *parent = nullptr );
|
||||
QgsDrawSourceWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||
|
||||
static QgsPaintEffectWidget *create() SIP_FACTORY { return new QgsDrawSourceWidget(); }
|
||||
|
||||
@ -102,7 +102,7 @@ class GUI_EXPORT QgsBlurWidget : public QgsPaintEffectWidget, private Ui::Widget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QgsBlurWidget( QWidget *parent = nullptr );
|
||||
QgsBlurWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||
|
||||
static QgsPaintEffectWidget *create() SIP_FACTORY { return new QgsBlurWidget(); }
|
||||
|
||||
@ -136,7 +136,7 @@ class GUI_EXPORT QgsShadowEffectWidget : public QgsPaintEffectWidget, private Ui
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QgsShadowEffectWidget( QWidget *parent = nullptr );
|
||||
QgsShadowEffectWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||
|
||||
static QgsPaintEffectWidget *create() SIP_FACTORY { return new QgsShadowEffectWidget(); }
|
||||
|
||||
@ -171,7 +171,7 @@ class GUI_EXPORT QgsGlowWidget : public QgsPaintEffectWidget, private Ui::Widget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QgsGlowWidget( QWidget *parent = nullptr );
|
||||
QgsGlowWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||
|
||||
static QgsPaintEffectWidget *create() SIP_FACTORY { return new QgsGlowWidget(); }
|
||||
|
||||
@ -206,7 +206,7 @@ class GUI_EXPORT QgsTransformWidget : public QgsPaintEffectWidget, private Ui::W
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QgsTransformWidget( QWidget *parent = nullptr );
|
||||
QgsTransformWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
|
||||
|
||||
static QgsPaintEffectWidget *create() SIP_FACTORY { return new QgsTransformWidget(); }
|
||||
|
||||
|
@ -107,7 +107,7 @@ ACCEPTABLE_MISSING_DOCS = {
|
||||
"QgsTextAnnotationItem": ["QgsTextAnnotationItem(QgsMapCanvas *canvas)"],
|
||||
"QgsStyle": ["symbolSaved(const QString &name, QgsSymbol *symbol)"],
|
||||
"QgsMarkerLineSymbolLayer": ["markerAngle(const QPolygonF &points, bool isRing, int vertex)", "renderPolylineInterval(const QPolygonF &points, QgsSymbolRenderContext &context)", "setIntervalMapUnitScale(const QgsMapUnitScale &scale)", "renderPolylineVertex(const QPolygonF &points, QgsSymbolRenderContext &context, Placement placement=Vertex)", "QgsMarkerLineSymbolLayer(bool rotateMarker=DEFAULT_MARKERLINE_ROTATE, double interval=DEFAULT_MARKERLINE_INTERVAL)", "intervalUnit() const ", "setIntervalUnit(QgsSymbol::OutputUnit unit)", "intervalMapUnitScale() const ", "renderPolylineCentral(const QPolygonF &points, QgsSymbolRenderContext &context)"],
|
||||
"QgsEffectDrawModeComboBox": ["QgsEffectDrawModeComboBox(QWidget *parent=nullptr)"],
|
||||
"QgsEffectDrawModeComboBox": ["QgsEffectDrawModeComboBox(QWidget *parent SIP_TRANSFERTHIS=nullptr)"],
|
||||
"CharacterWidget": ["updateFontMerging(bool enable)", "characterSelected(QChar character)", "updateColumns(int cols)", "setCharacter(QChar character)", "getColumns() const ", "getSquareSize() const "],
|
||||
"QgsVector": ["rotateBy(double rot) const ", "perpVector() const ", "x() const ", "operator*(QgsVector v) const ", "angle(QgsVector v) const ", "operator*(double scalar) const ", "length() const ", "normal() const ", "operator/(double scalar) const ", "y() const ", "QgsVector(double x, double y)"],
|
||||
"QgsSymbolLayer": ["setOutputUnit(QgsSymbol::OutputUnit unit)", "QgsSymbolLayer(QgsSymbol::SymbolType type, bool locked=false)", "dxfOffset(const QgsDxfExport &e, QgsSymbolRenderContext &context) const ", "writeDxf(QgsDxfExport &e, double mmMapUnitScaleFactor, const QString &layerName, QgsSymbolRenderContext *context, const QgsFeature *f, QPointF shift=QPointF(0.0, 0.0)) const ", "stopRender(QgsSymbolRenderContext &context)=0", "dxfBrushColor(QgsSymbolRenderContext &context) const ", "renderingPass() const ", "setLocked(bool locked)", "setRenderingPass(int renderingPass)", "ogrFeatureStyle(double mmScaleFactor, double mapUnitScaleFactor) const ", "outputUnit() const ", "toSld(QDomDocument &doc, QDomElement &element, const QgsStringMap &props) const ", "startRender(QgsSymbolRenderContext &context)=0", "dxfWidth(const QgsDxfExport &e, QgsSymbolRenderContext &context) const ", "subSymbol()", "dxfBrushStyle() const ", "dxfCustomDashPattern(QgsSymbol::OutputUnit &unit) const ", "mapUnitScale() const ", "dxfColor(QgsSymbolRenderContext &context) const ", "dxfPenStyle() const ", "setMapUnitScale(const QgsMapUnitScale &scale)", "type() const ", "isLocked() const ", "drawPreviewIcon(QgsSymbolRenderContext &context, QSize size)=0"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user