mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-31 00:06:02 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			90 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			90 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 /BaseType=IntEnum/
 | |
|     {
 | |
|       Text,
 | |
|       Tree
 | |
|     };
 | |
| 
 | |
|     enum class FormatJson /BaseType=IntEnum/
 | |
|     {
 | |
|       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   *
 | |
|  ************************************************************************/
 |