QGIS/python/gui/auto_generated/editorwidgets/qgsjsoneditwidget.sip.in
Nyall Dawson 3f6b490218 Sipify
2025-04-02 11:11:10 +10:00

91 lines
2.2 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsjsoneditwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsJsonEditWidget : QWidget
{
%Docstring(signature="appended")
A widget for displaying JSON data in a code highlighted text or tree
form.
.. versionadded:: 3.20
%End
%TypeHeaderCode
#include "qgsjsoneditwidget.h"
%End
public:
enum class View
{
Text,
Tree
};
enum class FormatJson
{
Indented,
Compact,
Disabled
};
explicit QgsJsonEditWidget( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsJsonEditWidget.
:param parent: parent widget
%End
QgsCodeEditorJson *jsonEditor();
%Docstring
Returns a reference to the JSON code editor used in the widget.
.. versionadded:: 3.36
%End
void setJsonText( const QString &jsonText );
%Docstring
Set the JSON text in the widget to ``jsonText``.
%End
QString jsonText() const;
%Docstring
Returns the JSON text.
%End
void setView( View view ) const;
%Docstring
Set the ``view`` mode.
.. seealso:: View
%End
void setFormatJsonMode( FormatJson formatJson );
%Docstring
Set the ``formatJson`` mode.
.. seealso:: FormatJson
%End
void setControlsVisible( bool visible );
%Docstring
Set the visibility of controls to ``visible``.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsjsoneditwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/