16 #ifndef QGSJSONEDITWIDGET_H
17 #define QGSJSONEDITWIDGET_H
19 #include "ui_qgsjsoneditwidget.h"
61 void setJsonText(
const QString &jsonText );
66 QString jsonText()
const;
72 void setView( View view )
const;
78 void setFormatJsonMode( FormatJson formatJson );
83 void setControlsVisible(
bool visible );
87 void textToolButtonClicked(
bool checked );
88 void treeToolButtonClicked(
bool checked );
90 void copyValueActionTriggered();
91 void copyKeyActionTriggered();
93 void codeEditorJsonTextChanged();
94 void codeEditorJsonIndicatorClicked(
int line,
int index, Qt::KeyboardModifiers state );
95 void codeEditorJsonDwellStart(
int position,
int x,
int y );
96 void codeEditorJsonDwellEnd(
int position,
int x,
int y );
100 enum class TreeWidgetColumn : int
106 const int SCINTILLA_UNDERLINE_INDICATOR_INDEX = 15;
108 void refreshTreeView(
const QJsonDocument &jsonDocument );
109 void refreshTreeViewItem( QTreeWidgetItem *treeWidgetItemParent,
const QJsonValue &jsonValue );
110 void refreshTreeViewItemValue( QTreeWidgetItem *treeWidgetItem,
const QString &jsonValueString,
const QColor &textColor );
114 FormatJson mFormatJsonMode = FormatJson::Indented;
116 QStringList mClickableLinkList;
118 QAction *mCopyValueAction;
119 QAction *mCopyKeyAction;