69 void setJsonText(
const QString &jsonText );
74 QString jsonText()
const;
80 void setView( View view )
const;
86 void setFormatJsonMode( FormatJson formatJson );
91 void setControlsVisible(
bool visible );
95 void textToolButtonClicked(
bool checked );
96 void treeToolButtonClicked(
bool checked );
98 void copyValueActionTriggered();
99 void copyKeyActionTriggered();
101 void codeEditorJsonTextChanged();
102 void codeEditorJsonIndicatorClicked(
int line,
int index, Qt::KeyboardModifiers state );
103 void codeEditorJsonDwellStart(
int position,
int x,
int y );
104 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 );
119 QFont monospaceFont()
const;
123 FormatJson mFormatJsonMode = FormatJson::Indented;
125 QStringList mClickableLinkList;
127 QAction *mCopyValueAction;
128 QAction *mCopyKeyAction;
130 bool mEnableUrlHighlighting =
true;