Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
212 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# The following has been generated automatically from src/gui/editorwidgets/qgsjsoneditwidget.h | ||
# monkey patching scoped based enum | ||
QgsJsonEditWidget.View.Text.__doc__ = "JSON data displayed as text." | ||
QgsJsonEditWidget.View.Tree.__doc__ = "JSON data displayed as tree. Tree view is disabled for invalid JSON data." | ||
QgsJsonEditWidget.View.__doc__ = 'View mode, text or tree.\n\n' + '* ``Text``: ' + QgsJsonEditWidget.View.Text.__doc__ + '\n' + '* ``Tree``: ' + QgsJsonEditWidget.View.Tree.__doc__ | ||
# -- | ||
# monkey patching scoped based enum | ||
QgsJsonEditWidget.FormatJson.Indented.__doc__ = "JSON data formatted with regular indentation" | ||
QgsJsonEditWidget.FormatJson.Compact.__doc__ = "JSON data formatted as a compact one line string" | ||
QgsJsonEditWidget.FormatJson.Disabled.__doc__ = "JSON data is not formatted" | ||
QgsJsonEditWidget.FormatJson.__doc__ = 'Format mode in the text view\n\n' + '* ``Indented``: ' + QgsJsonEditWidget.FormatJson.Indented.__doc__ + '\n' + '* ``Compact``: ' + QgsJsonEditWidget.FormatJson.Compact.__doc__ + '\n' + '* ``Disabled``: ' + QgsJsonEditWidget.FormatJson.Disabled.__doc__ | ||
# -- |
44 changes: 44 additions & 0 deletions
44
python/gui/auto_generated/codeeditors/qgscodeeditorjson.sip.in
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,44 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/codeeditors/qgscodeeditorjson.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsCodeEditorJson : QgsCodeEditor | ||
{ | ||
%Docstring(signature="appended") | ||
A JSON editor based on QScintilla2. Adds syntax highlighting and | ||
code autocompletion. | ||
|
||
.. versionadded:: 3.14 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgscodeeditorjson.h" | ||
%End | ||
public: | ||
|
||
QgsCodeEditorJson( QWidget *parent /TransferThis/ = 0 ); | ||
%Docstring | ||
Constructor for QgsCodeEditorJson | ||
%End | ||
|
||
protected: | ||
virtual void initializeLexer(); | ||
|
||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/codeeditors/qgscodeeditorjson.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
77 changes: 77 additions & 0 deletions
77
python/gui/auto_generated/editorwidgets/qgsjsoneditwidget.sip.in
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,77 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/editorwidgets/qgsjsoneditwidget.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class QgsJsonEditWidget : QWidget | ||
{ | ||
%Docstring(signature="appended") | ||
The :py:class:`QgsJsonEditWidget` is a widget to display 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 | ||
|
||
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 | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/editorwidgets/qgsjsoneditwidget.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
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
Oops, something went wrong.