67 void setJsonText(
const QString &jsonText );
72 QString jsonText()
const;
78 void setView( View view )
const;
84 void setFormatJsonMode( FormatJson formatJson );
89 void setControlsVisible(
bool visible );
93 void textToolButtonClicked(
bool checked );
94 void treeToolButtonClicked(
bool checked );
96 void copyValueActionTriggered();
97 void copyKeyActionTriggered();
99 void codeEditorJsonTextChanged();
100 void codeEditorJsonIndicatorClicked(
int line,
int index, Qt::KeyboardModifiers state );
101 void codeEditorJsonDwellStart(
int position,
int x,
int y );
102 void codeEditorJsonDwellEnd(
int position,
int x,
int y );
105 enum class TreeWidgetColumn :
int
111 const int SCINTILLA_UNDERLINE_INDICATOR_INDEX = 15;
113 void refreshTreeView(
const QJsonDocument &jsonDocument );
114 void refreshTreeViewItem( QTreeWidgetItem *treeWidgetItemParent,
const QJsonValue &jsonValue );
115 void refreshTreeViewItemValue( QTreeWidgetItem *treeWidgetItem,
const QString &jsonValueString,
const QColor &textColor );
117 QFont monospaceFont()
const;
121 FormatJson mFormatJsonMode = FormatJson::Indented;
123 QStringList mClickableLinkList;
125 QAction *mCopyValueAction;
126 QAction *mCopyKeyAction;
128 bool mEnableUrlHighlighting =
true;