forked from qt-creator/qt-creator
DiffEditor: Make DiffEditorGuiController internal
Change-Id: I657085535b7f141c97bc3d054e9edfd236209981 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -51,9 +51,9 @@ namespace DiffEditor {
|
||||
namespace Internal {
|
||||
class DescriptionEditorWidget;
|
||||
class DiffEditorDocument;
|
||||
class DiffEditorGuiController;
|
||||
} // namespace Internal
|
||||
|
||||
class DiffEditorGuiController;
|
||||
class SideBySideDiffEditorWidget;
|
||||
class UnifiedDiffEditorWidget;
|
||||
|
||||
@@ -104,7 +104,7 @@ private:
|
||||
SideBySideDiffEditorWidget *m_sideBySideEditor;
|
||||
UnifiedDiffEditorWidget *m_unifiedEditor;
|
||||
QWidget *m_currentEditor;
|
||||
DiffEditorGuiController *m_guiController;
|
||||
Internal::DiffEditorGuiController *m_guiController;
|
||||
QToolBar *m_toolBar;
|
||||
QComboBox *m_entriesComboBox;
|
||||
QAction *m_whitespaceButtonAction;
|
||||
|
@@ -41,6 +41,7 @@ static const char horizontalScrollBarSynchronizationKeyC[] =
|
||||
"HorizontalScrollBarSynchronization";
|
||||
|
||||
namespace DiffEditor {
|
||||
namespace Internal {
|
||||
|
||||
DiffEditorGuiController::DiffEditorGuiController(
|
||||
DiffEditorController *controller,
|
||||
@@ -138,4 +139,5 @@ void DiffEditorGuiController::setCurrentDiffFileIndex(int diffFileIndex)
|
||||
emit currentDiffFileIndexChanged(newIndex);
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace DiffEditor
|
||||
|
@@ -31,15 +31,15 @@
|
||||
#ifndef DIFFEDITORGUICONTROLLER_H
|
||||
#define DIFFEDITORGUICONTROLLER_H
|
||||
|
||||
#include "diffeditor_global.h"
|
||||
|
||||
#include <QObject>
|
||||
|
||||
namespace DiffEditor {
|
||||
|
||||
class DiffEditorController;
|
||||
|
||||
class DIFFEDITOR_EXPORT DiffEditorGuiController : public QObject
|
||||
namespace Internal {
|
||||
|
||||
class DiffEditorGuiController : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -72,6 +72,7 @@ private:
|
||||
int m_currentDiffFileIndex;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace DiffEditor
|
||||
|
||||
#endif // DIFFEDITORGUICONTROLLER_H
|
||||
|
@@ -72,6 +72,8 @@ using namespace Utils;
|
||||
|
||||
namespace DiffEditor {
|
||||
|
||||
using namespace Internal;
|
||||
|
||||
////////////////////////
|
||||
/*
|
||||
class MultiHighlighter : public SyntaxHighlighter
|
||||
|
@@ -46,7 +46,8 @@ QT_END_NAMESPACE
|
||||
|
||||
|
||||
namespace DiffEditor {
|
||||
class DiffEditorGuiController;
|
||||
|
||||
namespace Internal { class DiffEditorGuiController; }
|
||||
class SideDiffEditorWidget;
|
||||
class ChunkData;
|
||||
class FileData;
|
||||
@@ -57,7 +58,7 @@ class DIFFEDITOR_EXPORT SideBySideDiffEditorWidget : public QWidget
|
||||
public:
|
||||
explicit SideBySideDiffEditorWidget(QWidget *parent = 0);
|
||||
|
||||
void setDiffEditorGuiController(DiffEditorGuiController *controller);
|
||||
void setDiffEditorGuiController(Internal::DiffEditorGuiController *controller);
|
||||
|
||||
private slots:
|
||||
void clear(const QString &message = QString());
|
||||
@@ -95,7 +96,7 @@ private:
|
||||
int lineNumber, int columnNumber);
|
||||
void patch(bool revert);
|
||||
|
||||
DiffEditorGuiController *m_guiController;
|
||||
Internal::DiffEditorGuiController *m_guiController;
|
||||
DiffEditorController *m_controller;
|
||||
SideDiffEditorWidget *m_leftEditor;
|
||||
SideDiffEditorWidget *m_rightEditor;
|
||||
|
@@ -70,6 +70,8 @@ using namespace TextEditor;
|
||||
|
||||
namespace DiffEditor {
|
||||
|
||||
using namespace Internal;
|
||||
|
||||
UnifiedDiffEditorWidget::UnifiedDiffEditorWidget(QWidget *parent)
|
||||
: SelectableTextEditorWidget("DiffEditor.UnifiedDiffEditor", parent)
|
||||
, m_guiController(0)
|
||||
|
@@ -48,7 +48,8 @@ QT_END_NAMESPACE
|
||||
|
||||
namespace DiffEditor {
|
||||
|
||||
class DiffEditorGuiController;
|
||||
namespace Internal { class DiffEditorGuiController; }
|
||||
|
||||
class ChunkData;
|
||||
class FileData;
|
||||
|
||||
@@ -59,7 +60,7 @@ class DIFFEDITOR_EXPORT UnifiedDiffEditorWidget
|
||||
public:
|
||||
UnifiedDiffEditorWidget(QWidget *parent = 0);
|
||||
|
||||
void setDiffEditorGuiController(DiffEditorGuiController *controller);
|
||||
void setDiffEditorGuiController(Internal::DiffEditorGuiController *controller);
|
||||
|
||||
public slots:
|
||||
void setDisplaySettings(const TextEditor::DisplaySettings &ds);
|
||||
@@ -113,7 +114,7 @@ private:
|
||||
int chunkIndex);
|
||||
void patch(bool revert);
|
||||
|
||||
DiffEditorGuiController *m_guiController;
|
||||
Internal::DiffEditorGuiController *m_guiController;
|
||||
DiffEditorController *m_controller;
|
||||
|
||||
// block number, visual line number.
|
||||
|
Reference in New Issue
Block a user