Skip to content

Commit

Permalink
Sipify
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Dec 29, 2022
1 parent 60a8aad commit e9b5c3a
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 0 deletions.
@@ -0,0 +1,55 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/editform/qgsattributeeditortextelement.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/




class QgsAttributeEditorTextElement : QgsAttributeEditorElement
{
%Docstring(signature="appended")
An attribute editor widget that will represent arbitrary text code.

.. versionadded:: 3.30
%End

%TypeHeaderCode
#include "qgsattributeeditortextelement.h"
%End
public:

QgsAttributeEditorTextElement( const QString &name, QgsAttributeEditorElement *parent );
%Docstring
Creates a new element which can display text

:param name: The name of the widget
:param parent: The parent (used as container)
%End

virtual QgsAttributeEditorElement *clone( QgsAttributeEditorElement *parent ) const /Factory/;


QString text() const;
%Docstring
The Text that will be represented within this widget.
%End

void setText( const QString &text );
%Docstring
Sets the text that will be represented within this widget to ``text``
%End

};


/************************************************************************
* This file has been generated automatically from *
* *
* src/core/editform/qgsattributeeditortextelement.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
1 change: 1 addition & 0 deletions python/core/core_auto.sip
Expand Up @@ -279,6 +279,7 @@
%Include auto_generated/editform/qgsattributeeditorfield.sip
%Include auto_generated/editform/qgsattributeeditorrelation.sip
%Include auto_generated/editform/qgsattributeeditorhtmlelement.sip
%Include auto_generated/editform/qgsattributeeditortextelement.sip
%Include auto_generated/editform/qgsattributeeditorqmlelement.sip
%Include auto_generated/elevation/qgsabstractprofilegenerator.sip
%Include auto_generated/elevation/qgsabstractprofilesource.sip
Expand Down
@@ -0,0 +1,69 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgstextwidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/


class QgsTextWidgetWrapper : QgsWidgetWrapper
{
%Docstring(signature="appended")
Wraps a label widget to display text

.. versionadded:: 3.30
%End

%TypeHeaderCode
#include "qgstextwidgetwrapper.h"
%End
public:

QgsTextWidgetWrapper( QgsVectorLayer *layer, QWidget *editor, QWidget *parent );
%Docstring
Create a text widget wrapper

:param layer: The layer on which the feature is
:param editor: An editor widget. Can be ``None`` if one should be autogenerated.
:param parent: A parent widget
%End

virtual bool valid() const;


virtual QWidget *createWidget( QWidget *parent );


virtual void initWidget( QWidget *editor );


void reinitWidget();
%Docstring
Clears the content and makes new initialization
%End

void setText( const QString &text );
%Docstring
Sets the text code to ``htmlCode``
%End

bool needsGeometry() const;
%Docstring
Returns true if the widget needs feature geometry
%End

public slots:
virtual void setFeature( const QgsFeature &feature );


};


/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgstextwidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
1 change: 1 addition & 0 deletions python/gui/gui_auto.sip
Expand Up @@ -325,6 +325,7 @@
%Include auto_generated/editorwidgets/qgsrelationwidgetwrapper.sip
%Include auto_generated/editorwidgets/qgssearchwidgettoolbutton.sip
%Include auto_generated/editorwidgets/qgsspinbox.sip
%Include auto_generated/editorwidgets/qgstextwidgetwrapper.sip
%Include auto_generated/editorwidgets/qgsvaluemapsearchwidgetwrapper.sip
%Include auto_generated/editorwidgets/qgsvaluerelationsearchwidgetwrapper.sip
%Include auto_generated/effects/qgseffectdrawmodecombobox.sip
Expand Down

0 comments on commit e9b5c3a

Please sign in to comment.