68 void setJsonText(
const QString &jsonText );
73 QString jsonText()
const;
79 void setView( View view )
const;
85 void setFormatJsonMode( FormatJson formatJson );
90 void setControlsVisible(
bool visible );
94 void textToolButtonClicked(
bool checked );
95 void treeToolButtonClicked(
bool checked );
97 void copyValueActionTriggered();
98 void copyKeyActionTriggered();
100 void codeEditorJsonTextChanged();
101 void codeEditorJsonIndicatorClicked(
int line,
int index, Qt::KeyboardModifiers state );
102 void codeEditorJsonDwellStart(
int position,
int x,
int y );
103 void codeEditorJsonDwellEnd(
int position,
int x,
int y );
107 enum class TreeWidgetColumn :
int
113 const int SCINTILLA_UNDERLINE_INDICATOR_INDEX = 15;
115 void refreshTreeView(
const QJsonDocument &jsonDocument );
116 void refreshTreeViewItem( QTreeWidgetItem *treeWidgetItemParent,
const QJsonValue &jsonValue );
117 void refreshTreeViewItemValue( QTreeWidgetItem *treeWidgetItem,
const QString &jsonValueString,
const QColor &textColor );
121 FormatJson mFormatJsonMode = FormatJson::Indented;
123 QStringList mClickableLinkList;
125 QAction *mCopyValueAction;
126 QAction *mCopyKeyAction;
128 bool mEnableUrlHighlighting =
true;