forked from qt-creator/qt-creator
Get rid of DiffShowEditor.
Made DiffEditor customizable instead Change-Id: If92799d47c7e731febb45197384c082eb3af55df Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
This commit is contained in:
@@ -70,7 +70,10 @@ public:
|
||||
|
||||
QList<DiffFilesContents> diffContents() const;
|
||||
QString workingDirectory() const;
|
||||
QString description() const;
|
||||
bool isDescriptionEnabled() const;
|
||||
|
||||
bool isDescriptionVisible() const;
|
||||
int contextLinesNumber() const;
|
||||
bool isIgnoreWhitespaces() const;
|
||||
bool horizontalScrollBarSynchronization() const;
|
||||
@@ -80,7 +83,10 @@ public slots:
|
||||
void clear();
|
||||
void clear(const QString &message);
|
||||
void setDiffContents(const QList<DiffEditorController::DiffFilesContents> &diffFileList, const QString &workingDirectory = QString());
|
||||
void setDescription(const QString &description);
|
||||
void setDescriptionEnabled(bool on);
|
||||
|
||||
void setDescriptionVisible(bool on);
|
||||
void setContextLinesNumber(int lines);
|
||||
void setIgnoreWhitespaces(bool ignore);
|
||||
void setHorizontalScrollBarSynchronization(bool on);
|
||||
@@ -91,7 +97,10 @@ signals:
|
||||
void cleared(const QString message);
|
||||
// This sets the current diff file index to 0 (unless diffFileList is empty)
|
||||
void diffContentsChanged(const QList<DiffEditorController::DiffFilesContents> &diffFileList, const QString &workingDirectory);
|
||||
void descriptionChanged(const QString &description);
|
||||
void descriptionEnablementChanged(bool on);
|
||||
|
||||
void descriptionVisibilityChanged(bool on);
|
||||
void contextLinesNumberChanged(int lines);
|
||||
void ignoreWhitespacesChanged(bool ignore);
|
||||
void horizontalScrollBarSynchronizationChanged(bool on);
|
||||
@@ -102,7 +111,10 @@ private:
|
||||
|
||||
QList<DiffFilesContents> m_diffFileList;
|
||||
QString m_workingDirectory;
|
||||
QString m_description;
|
||||
bool m_descriptionEnabled;
|
||||
|
||||
bool m_descriptionVisible;
|
||||
int m_contextLinesNumber;
|
||||
bool m_ignoreWhitespaces;
|
||||
bool m_syncScrollBars;
|
||||
|
||||
Reference in New Issue
Block a user