forked from qt-creator/qt-creator
Implement unified diff editor
Change-Id: I93e0bfd71a8a650afbe2ca9e0f1f3dbfc9d57db0 Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
This commit is contained in:
@@ -42,28 +42,23 @@ class DIFFEDITOR_EXPORT DiffEditorGuiController : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
DiffEditorGuiController(DiffEditorController *controller, QObject *parent = 0);
|
||||
DiffEditorGuiController(DiffEditorController *controller,
|
||||
QObject *parent = 0);
|
||||
~DiffEditorGuiController();
|
||||
|
||||
DiffEditorController *controller() const;
|
||||
|
||||
bool isDescriptionVisible() const;
|
||||
int contextLinesNumber() const;
|
||||
bool isIgnoreWhitespaces() const;
|
||||
bool horizontalScrollBarSynchronization() const;
|
||||
int currentDiffFileIndex() const;
|
||||
|
||||
public slots:
|
||||
void setDescriptionVisible(bool on);
|
||||
void setContextLinesNumber(int lines);
|
||||
void setIgnoreWhitespaces(bool ignore);
|
||||
void setHorizontalScrollBarSynchronization(bool on);
|
||||
void setCurrentDiffFileIndex(int diffFileIndex);
|
||||
|
||||
signals:
|
||||
void descriptionVisibilityChanged(bool on);
|
||||
void contextLinesNumberChanged(int lines);
|
||||
void ignoreWhitespacesChanged(bool ignore);
|
||||
void horizontalScrollBarSynchronizationChanged(bool on);
|
||||
void currentDiffFileIndexChanged(int diffFileIndex);
|
||||
|
||||
@@ -73,8 +68,6 @@ private slots:
|
||||
private:
|
||||
DiffEditorController *m_controller;
|
||||
bool m_descriptionVisible;
|
||||
int m_contextLinesNumber;
|
||||
bool m_ignoreWhitespaces;
|
||||
bool m_syncScrollBars;
|
||||
int m_currentDiffFileIndex;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user