Core: Rename MainWindowPrivate to ICorePrivate

Mechanical, plan is to move m_mainWindow there and switch
around construction.

Change-Id: Ic7936623586ac68c2cdd69a40042262802579d23
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2023-10-02 16:24:02 +02:00
parent 34fdac0d84
commit ae4852a3ea
9 changed files with 62 additions and 64 deletions

View File

@@ -25,8 +25,8 @@ class ICore;
namespace Internal { namespace Internal {
class CorePlugin; class CorePlugin;
class ICorePrivate;
class MainWindow; class MainWindow;
class MainWindowPrivate;
} // Internal } // Internal
class CORE_EXPORT ActionManager : public QObject class CORE_EXPORT ActionManager : public QObject
@@ -69,7 +69,7 @@ private:
friend class Core::Internal::CorePlugin; // initialization friend class Core::Internal::CorePlugin; // initialization
friend class Core::ICore; // saving settings and setting context friend class Core::ICore; // saving settings and setting context
friend class Core::Internal::MainWindowPrivate; // saving settings and setting context friend class Core::Internal::ICorePrivate; // saving settings and setting context
}; };
} // namespace Core } // namespace Core

View File

@@ -20,7 +20,7 @@ class IDocument;
namespace Internal { namespace Internal {
class DocumentManagerPrivate; class DocumentManagerPrivate;
class MainWindowPrivate; class ICorePrivate;
} }
class CORE_EXPORT DocumentManager : public QObject class CORE_EXPORT DocumentManager : public QObject
@@ -152,8 +152,8 @@ private:
void updateSaveAll(); void updateSaveAll();
static void registerSaveAllAction(); static void registerSaveAllAction();
friend class Core::Internal::MainWindowPrivate; friend class Internal::DocumentManagerPrivate;
friend class Core::Internal::DocumentManagerPrivate; friend class Internal::ICorePrivate;
}; };
class CORE_EXPORT FileChangeBlocker class CORE_EXPORT FileChangeBlocker

View File

@@ -29,7 +29,7 @@ namespace Core {
class IDocument; class IDocument;
class LocatorFilterEntry; class LocatorFilterEntry;
namespace Internal { class MainWindowPrivate; } namespace Internal { class ICorePrivate; }
class CORE_EXPORT EditorManagerPlaceHolder final : public QWidget class CORE_EXPORT EditorManagerPlaceHolder final : public QWidget
{ {
@@ -188,7 +188,7 @@ private:
explicit EditorManager(QObject *parent); explicit EditorManager(QObject *parent);
~EditorManager() override; ~EditorManager() override;
friend class Core::Internal::MainWindowPrivate; friend class Internal::ICorePrivate;
}; };
} // namespace Core } // namespace Core

View File

@@ -252,14 +252,14 @@ static NewDialog *defaultDialogFactory(QWidget *parent)
namespace Internal { namespace Internal {
class MainWindowPrivate : public QObject class ICorePrivate : public QObject
{ {
public: public:
explicit MainWindowPrivate(MainWindow *mainWindow) explicit ICorePrivate(MainWindow *mainWindow)
: q(mainWindow) : q(mainWindow)
{} {}
~MainWindowPrivate(); ~ICorePrivate();
void init(); void init();
@@ -353,7 +353,7 @@ static QMenuBar *globalMenuBar()
} // Internal } // Internal
static MainWindowPrivate *d = nullptr; static ICorePrivate *d = nullptr;
static std::function<NewDialog *(QWidget *)> m_newDialogFactory = defaultDialogFactory; static std::function<NewDialog *(QWidget *)> m_newDialogFactory = defaultDialogFactory;
@@ -1172,7 +1172,7 @@ enum { debugMainWindow = 0 };
namespace Internal { namespace Internal {
void MainWindowPrivate::init() void ICorePrivate::init()
{ {
m_progressManager = new ProgressManagerPrivate; m_progressManager = new ProgressManagerPrivate;
m_jsExpander = JsExpander::createGlobalJsExpander(); m_jsExpander = JsExpander::createGlobalJsExpander();
@@ -1233,7 +1233,7 @@ void MainWindowPrivate::init()
m_progressManager->progressView()->setParent(q); m_progressManager->progressView()->setParent(q);
connect(qApp, &QApplication::focusChanged, this, &MainWindowPrivate::updateFocusWidget); connect(qApp, &QApplication::focusChanged, this, &ICorePrivate::updateFocusWidget);
// Add small Toolbuttons for toggling the navigation widgets // Add small Toolbuttons for toggling the navigation widgets
StatusBarManager::addStatusBarWidget(m_toggleLeftSideBarButton, StatusBarManager::First); StatusBarManager::addStatusBarWidget(m_toggleLeftSideBarButton, StatusBarManager::First);
@@ -1268,7 +1268,7 @@ void MainWindowPrivate::init()
MainWindow::MainWindow() MainWindow::MainWindow()
{ {
m_mainwindow = this; m_mainwindow = this;
d = new MainWindowPrivate(this); d = new ICorePrivate(this);
d->init(); // Separation needed for now as the call triggers other MainWindow calls. d->init(); // Separation needed for now as the call triggers other MainWindow calls.
setWindowTitle(QGuiApplication::applicationDisplayName()); setWindowTitle(QGuiApplication::applicationDisplayName());
@@ -1279,12 +1279,12 @@ MainWindow::MainWindow()
setCentralWidget(d->m_modeStack); setCentralWidget(d->m_modeStack);
} }
NavigationWidget *MainWindowPrivate::navigationWidget(Side side) const NavigationWidget *ICorePrivate::navigationWidget(Side side) const
{ {
return side == Side::Left ? m_leftNavigationWidget : m_rightNavigationWidget; return side == Side::Left ? m_leftNavigationWidget : m_rightNavigationWidget;
} }
void MainWindowPrivate::setSidebarVisible(bool visible, Side side) void ICorePrivate::setSidebarVisible(bool visible, Side side)
{ {
if (NavigationWidgetPlaceHolder::current(side)) if (NavigationWidgetPlaceHolder::current(side))
navigationWidget(side)->setShown(visible); navigationWidget(side)->setShown(visible);
@@ -1296,7 +1296,7 @@ MainWindow::~MainWindow()
d = nullptr; d = nullptr;
} }
MainWindowPrivate::~MainWindowPrivate() ICorePrivate::~ICorePrivate()
{ {
// explicitly delete window support, because that calls methods from ICore that call methods // explicitly delete window support, because that calls methods from ICore that call methods
// from mainwindow, so mainwindow still needs to be alive // from mainwindow, so mainwindow still needs to be alive
@@ -1372,13 +1372,13 @@ void ICore::extensionsInitialized()
emit m_core->coreAboutToOpen(); emit m_core->coreAboutToOpen();
// Delay restoreWindowState, since it is overridden by LayoutRequest event // Delay restoreWindowState, since it is overridden by LayoutRequest event
QMetaObject::invokeMethod(d, &MainWindowPrivate::restoreWindowState, Qt::QueuedConnection); QMetaObject::invokeMethod(d, &ICorePrivate::restoreWindowState, Qt::QueuedConnection);
QMetaObject::invokeMethod(m_core, &ICore::coreOpened, Qt::QueuedConnection); QMetaObject::invokeMethod(m_core, &ICore::coreOpened, Qt::QueuedConnection);
} }
void ICore::aboutToShutdown() void ICore::aboutToShutdown()
{ {
disconnect(qApp, &QApplication::focusChanged, d, &MainWindowPrivate::updateFocusWidget); disconnect(qApp, &QApplication::focusChanged, d, &ICorePrivate::updateFocusWidget);
for (auto contextPair : d->m_contextWidgets) for (auto contextPair : d->m_contextWidgets)
disconnect(contextPair.second, &QObject::destroyed, m_mainwindow, nullptr); disconnect(contextPair.second, &QObject::destroyed, m_mainwindow, nullptr);
d->m_activeContext.clear(); d->m_activeContext.clear();
@@ -1457,14 +1457,14 @@ void MainWindow::mousePressEvent(QMouseEvent *event)
AppMainWindow::mousePressEvent(event); AppMainWindow::mousePressEvent(event);
} }
void MainWindowPrivate::openDroppedFiles(const QList<DropSupport::FileSpec> &files) void ICorePrivate::openDroppedFiles(const QList<DropSupport::FileSpec> &files)
{ {
q->raiseWindow(); q->raiseWindow();
const FilePaths filePaths = Utils::transform(files, &DropSupport::FileSpec::filePath); const FilePaths filePaths = Utils::transform(files, &DropSupport::FileSpec::filePath);
ICore::openFiles(filePaths, ICore::SwitchMode); ICore::openFiles(filePaths, ICore::SwitchMode);
} }
void MainWindowPrivate::registerDefaultContainers() void ICorePrivate::registerDefaultContainers()
{ {
ActionContainer *menubar = ActionManager::createMenuBar(Constants::MENU_BAR); ActionContainer *menubar = ActionManager::createMenuBar(Constants::MENU_BAR);
@@ -1490,7 +1490,7 @@ void MainWindowPrivate::registerDefaultContainers()
filemenu->appendGroup(Constants::G_FILE_CLOSE); filemenu->appendGroup(Constants::G_FILE_CLOSE);
filemenu->appendGroup(Constants::G_FILE_PRINT); filemenu->appendGroup(Constants::G_FILE_PRINT);
filemenu->appendGroup(Constants::G_FILE_OTHER); filemenu->appendGroup(Constants::G_FILE_OTHER);
connect(filemenu->menu(), &QMenu::aboutToShow, this, &MainWindowPrivate::aboutToShowRecentFiles); connect(filemenu->menu(), &QMenu::aboutToShow, this, &ICorePrivate::aboutToShowRecentFiles);
// Edit Menu // Edit Menu
@@ -1549,7 +1549,7 @@ void MainWindowPrivate::registerDefaultContainers()
ac->touchBar()->setApplicationTouchBar(); ac->touchBar()->setApplicationTouchBar();
} }
void MainWindowPrivate::registerDefaultActions() void ICorePrivate::registerDefaultActions()
{ {
ActionContainer *mfile = ActionManager::actionContainer(Constants::M_FILE); ActionContainer *mfile = ActionManager::actionContainer(Constants::M_FILE);
ActionContainer *medit = ActionManager::actionContainer(Constants::M_EDIT); ActionContainer *medit = ActionManager::actionContainer(Constants::M_EDIT);
@@ -1575,7 +1575,7 @@ void MainWindowPrivate::registerDefaultActions()
m_focusToEditor = new QAction(Tr::tr("Return to Editor"), this); m_focusToEditor = new QAction(Tr::tr("Return to Editor"), this);
Command *cmd = ActionManager::registerAction(m_focusToEditor, Constants::S_RETURNTOEDITOR); Command *cmd = ActionManager::registerAction(m_focusToEditor, Constants::S_RETURNTOEDITOR);
cmd->setDefaultKeySequence(QKeySequence(Qt::Key_Escape)); cmd->setDefaultKeySequence(QKeySequence(Qt::Key_Escape));
connect(m_focusToEditor, &QAction::triggered, this, &MainWindowPrivate::setFocusToEditor); connect(m_focusToEditor, &QAction::triggered, this, &ICorePrivate::setFocusToEditor);
// New File Action // New File Action
QIcon icon = Icon::fromTheme("document-new"); QIcon icon = Icon::fromTheme("document-new");
@@ -1619,7 +1619,7 @@ void MainWindowPrivate::registerDefaultActions()
cmd = ActionManager::registerAction(m_openAction, Constants::OPEN); cmd = ActionManager::registerAction(m_openAction, Constants::OPEN);
cmd->setDefaultKeySequence(QKeySequence::Open); cmd->setDefaultKeySequence(QKeySequence::Open);
mfile->addAction(cmd, Constants::G_FILE_OPEN); mfile->addAction(cmd, Constants::G_FILE_OPEN);
connect(m_openAction, &QAction::triggered, this, &MainWindowPrivate::openFile); connect(m_openAction, &QAction::triggered, this, &ICorePrivate::openFile);
// Open With Action // Open With Action
m_openWithAction = new QAction(Tr::tr("Open File &With..."), this); m_openWithAction = new QAction(Tr::tr("Open File &With..."), this);
@@ -1632,7 +1632,7 @@ void MainWindowPrivate::registerDefaultActions()
m_openFromDeviceAction = new QAction(Tr::tr("Open From Device..."), this); m_openFromDeviceAction = new QAction(Tr::tr("Open From Device..."), this);
cmd = ActionManager::registerAction(m_openFromDeviceAction, Constants::OPEN_FROM_DEVICE); cmd = ActionManager::registerAction(m_openFromDeviceAction, Constants::OPEN_FROM_DEVICE);
mfile->addAction(cmd, Constants::G_FILE_OPEN); mfile->addAction(cmd, Constants::G_FILE_OPEN);
connect(m_openFromDeviceAction, &QAction::triggered, this, &MainWindowPrivate::openFileFromDevice); connect(m_openFromDeviceAction, &QAction::triggered, this, &ICorePrivate::openFileFromDevice);
} }
// File->Recent Files Menu // File->Recent Files Menu
@@ -1906,7 +1906,7 @@ void MainWindowPrivate::registerDefaultActions()
cmd = ActionManager::registerAction(tmpaction, Constants::ABOUT_QTCREATOR); cmd = ActionManager::registerAction(tmpaction, Constants::ABOUT_QTCREATOR);
mhelp->addAction(cmd, Constants::G_HELP_ABOUT); mhelp->addAction(cmd, Constants::G_HELP_ABOUT);
tmpaction->setEnabled(true); tmpaction->setEnabled(true);
connect(tmpaction, &QAction::triggered, this, &MainWindowPrivate::aboutQtCreator); connect(tmpaction, &QAction::triggered, this, &ICorePrivate::aboutQtCreator);
//About Plugins Action //About Plugins Action
tmpaction = new QAction(Tr::tr("About &Plugins..."), this); tmpaction = new QAction(Tr::tr("About &Plugins..."), this);
@@ -1914,7 +1914,7 @@ void MainWindowPrivate::registerDefaultActions()
cmd = ActionManager::registerAction(tmpaction, Constants::ABOUT_PLUGINS); cmd = ActionManager::registerAction(tmpaction, Constants::ABOUT_PLUGINS);
mhelp->addAction(cmd, Constants::G_HELP_ABOUT); mhelp->addAction(cmd, Constants::G_HELP_ABOUT);
tmpaction->setEnabled(true); tmpaction->setEnabled(true);
connect(tmpaction, &QAction::triggered, this, &MainWindowPrivate::aboutPlugins); connect(tmpaction, &QAction::triggered, this, &ICorePrivate::aboutPlugins);
// About Qt Action // About Qt Action
// tmpaction = new QAction(Tr::tr("About &Qt..."), this); // tmpaction = new QAction(Tr::tr("About &Qt..."), this);
// cmd = ActionManager::registerAction(tmpaction, Constants:: ABOUT_QT); // cmd = ActionManager::registerAction(tmpaction, Constants:: ABOUT_QT);
@@ -1928,14 +1928,14 @@ void MainWindowPrivate::registerDefaultActions()
cmd = ActionManager::registerAction(tmpaction, Constants::CHANGE_LOG); cmd = ActionManager::registerAction(tmpaction, Constants::CHANGE_LOG);
mhelp->addAction(cmd, Constants::G_HELP_ABOUT); mhelp->addAction(cmd, Constants::G_HELP_ABOUT);
tmpaction->setEnabled(true); tmpaction->setEnabled(true);
connect(tmpaction, &QAction::triggered, this, &MainWindowPrivate::changeLog); connect(tmpaction, &QAction::triggered, this, &ICorePrivate::changeLog);
// Contact // Contact
tmpaction = new QAction(Tr::tr("Contact..."), this); tmpaction = new QAction(Tr::tr("Contact..."), this);
cmd = ActionManager::registerAction(tmpaction, "QtCreator.Contact"); cmd = ActionManager::registerAction(tmpaction, "QtCreator.Contact");
mhelp->addAction(cmd, Constants::G_HELP_ABOUT); mhelp->addAction(cmd, Constants::G_HELP_ABOUT);
tmpaction->setEnabled(true); tmpaction->setEnabled(true);
connect(tmpaction, &QAction::triggered, this, &MainWindowPrivate::contact); connect(tmpaction, &QAction::triggered, this, &ICorePrivate::contact);
// About sep // About sep
if (!HostOsInfo::isMacHost()) { // doesn't have the "About" actions in the Help menu if (!HostOsInfo::isMacHost()) { // doesn't have the "About" actions in the Help menu
@@ -1946,7 +1946,7 @@ void MainWindowPrivate::registerDefaultActions()
} }
} }
void MainWindowPrivate::registerModeSelectorStyleActions() void ICorePrivate::registerModeSelectorStyleActions()
{ {
ActionContainer *mview = ActionManager::actionContainer(Constants::M_VIEW); ActionContainer *mview = ActionManager::actionContainer(Constants::M_VIEW);
@@ -1982,7 +1982,7 @@ void MainWindowPrivate::registerModeSelectorStyleActions()
styleMenu->addActions(stylesGroup->actions()); styleMenu->addActions(stylesGroup->actions());
} }
void MainWindowPrivate::openFile() void ICorePrivate::openFile()
{ {
ICore::openFiles(EditorManager::getOpenFilePaths(), ICore::SwitchMode); ICore::openFiles(EditorManager::getOpenFilePaths(), ICore::SwitchMode);
} }
@@ -2066,12 +2066,12 @@ IDocument *ICore::openFiles(const FilePaths &filePaths,
namespace Internal { namespace Internal {
void MainWindowPrivate::setFocusToEditor() void ICorePrivate::setFocusToEditor()
{ {
EditorManagerPrivate::doEscapeKeyFocusMoveMagic(); EditorManagerPrivate::doEscapeKeyFocusMoveMagic();
} }
void MainWindowPrivate::openFileFromDevice() void ICorePrivate::openFileFromDevice()
{ {
ICore::openFiles(EditorManager::getOpenFilePaths(QFileDialog::DontUseNativeDialog), ICore::SwitchMode); ICore::openFiles(EditorManager::getOpenFilePaths(QFileDialog::DontUseNativeDialog), ICore::SwitchMode);
} }
@@ -2191,7 +2191,7 @@ void ICore::removeContextObject(IContext *context)
namespace Internal { namespace Internal {
void MainWindowPrivate::updateFocusWidget(QWidget *old, QWidget *now) void ICorePrivate::updateFocusWidget(QWidget *old, QWidget *now)
{ {
Q_UNUSED(old) Q_UNUSED(old)
@@ -2215,7 +2215,7 @@ void MainWindowPrivate::updateFocusWidget(QWidget *old, QWidget *now)
updateContextObject(newContext); updateContextObject(newContext);
} }
void MainWindowPrivate::updateContextObject(const QList<IContext *> &context) void ICorePrivate::updateContextObject(const QList<IContext *> &context)
{ {
emit m_core->contextAboutToChange(context); emit m_core->contextAboutToChange(context);
m_activeContext = context; m_activeContext = context;
@@ -2227,7 +2227,7 @@ void MainWindowPrivate::updateContextObject(const QList<IContext *> &context)
} }
} }
void MainWindowPrivate::readSettings() void ICorePrivate::readSettings()
{ {
QtcSettings *settings = PluginManager::settings(); QtcSettings *settings = PluginManager::settings();
settings->beginGroup(settingsGroup); settings->beginGroup(settingsGroup);
@@ -2272,7 +2272,7 @@ void MainWindowPrivate::readSettings()
m_rightPaneWidget->readSettings(settings); m_rightPaneWidget->readSettings(settings);
} }
void MainWindowPrivate::saveWindowSettings() void ICorePrivate::saveWindowSettings()
{ {
QtcSettings *settings = PluginManager::settings(); QtcSettings *settings = PluginManager::settings();
settings->beginGroup(settingsGroup); settings->beginGroup(settingsGroup);
@@ -2290,7 +2290,7 @@ void MainWindowPrivate::saveWindowSettings()
settings->endGroup(); settings->endGroup();
} }
void MainWindowPrivate::updateModeSelectorStyleMenu() void ICorePrivate::updateModeSelectorStyleMenu()
{ {
switch (ModeManager::modeStyle()) { switch (ModeManager::modeStyle()) {
case ModeManager::Style::IconsAndText: case ModeManager::Style::IconsAndText:
@@ -2305,7 +2305,7 @@ void MainWindowPrivate::updateModeSelectorStyleMenu()
} }
} }
void MainWindowPrivate::updateContext() void ICorePrivate::updateContext()
{ {
Context contexts = m_highPrioAdditionalContexts; Context contexts = m_highPrioAdditionalContexts;
@@ -2324,7 +2324,7 @@ void MainWindowPrivate::updateContext()
emit m_core->contextChanged(uniquecontexts); emit m_core->contextChanged(uniquecontexts);
} }
void MainWindowPrivate::aboutToShowRecentFiles() void ICorePrivate::aboutToShowRecentFiles()
{ {
ActionContainer *aci = ActionManager::actionContainer(Constants::M_FILE_RECENTFILES); ActionContainer *aci = ActionManager::actionContainer(Constants::M_FILE_RECENTFILES);
QMenu *menu = aci->menu(); QMenu *menu = aci->menu();
@@ -2354,12 +2354,12 @@ void MainWindowPrivate::aboutToShowRecentFiles()
} }
} }
void MainWindowPrivate::aboutQtCreator() void ICorePrivate::aboutQtCreator()
{ {
if (!m_versionDialog) { if (!m_versionDialog) {
m_versionDialog = new VersionDialog(q); m_versionDialog = new VersionDialog(q);
connect(m_versionDialog, &QDialog::finished, connect(m_versionDialog, &QDialog::finished,
this, &MainWindowPrivate::destroyVersionDialog); this, &ICorePrivate::destroyVersionDialog);
ICore::registerWindow(m_versionDialog, Context("Core.VersionDialog")); ICore::registerWindow(m_versionDialog, Context("Core.VersionDialog"));
m_versionDialog->show(); m_versionDialog->show();
} else { } else {
@@ -2367,7 +2367,7 @@ void MainWindowPrivate::aboutQtCreator()
} }
} }
void MainWindowPrivate::destroyVersionDialog() void ICorePrivate::destroyVersionDialog()
{ {
if (m_versionDialog) { if (m_versionDialog) {
m_versionDialog->deleteLater(); m_versionDialog->deleteLater();
@@ -2375,7 +2375,7 @@ void MainWindowPrivate::destroyVersionDialog()
} }
} }
void MainWindowPrivate::aboutPlugins() void ICorePrivate::aboutPlugins()
{ {
PluginDialog dialog(q); PluginDialog dialog(q);
dialog.exec(); dialog.exec();
@@ -2400,7 +2400,7 @@ public:
} }
}; };
void MainWindowPrivate::changeLog() void ICorePrivate::changeLog()
{ {
static QPointer<LogDialog> dialog; static QPointer<LogDialog> dialog;
if (dialog) { if (dialog) {
@@ -2501,7 +2501,7 @@ void MainWindowPrivate::changeLog()
dialog->show(); dialog->show();
} }
void MainWindowPrivate::contact() void ICorePrivate::contact()
{ {
QMessageBox dlg(QMessageBox::Information, Tr::tr("Contact"), QMessageBox dlg(QMessageBox::Information, Tr::tr("Contact"),
Tr::tr("<p>Qt Creator developers can be reached at the Qt Creator mailing list:</p>" Tr::tr("<p>Qt Creator developers can be reached at the Qt Creator mailing list:</p>"
@@ -2528,7 +2528,7 @@ void MainWindowPrivate::contact()
dlg.exec(); dlg.exec();
} }
void MainWindowPrivate::restoreWindowState() void ICorePrivate::restoreWindowState()
{ {
NANOTRACE_SCOPE("Core", "MainWindow::restoreWindowState"); NANOTRACE_SCOPE("Core", "MainWindow::restoreWindowState");
QtcSettings *settings = PluginManager::settings(); QtcSettings *settings = PluginManager::settings();

View File

@@ -13,14 +13,12 @@ class QObject;
class QString; class QString;
QT_END_NAMESPACE QT_END_NAMESPACE
namespace Utils { namespace Utils { class MacroExpander; }
class MacroExpander;
}
namespace Core { namespace Core {
namespace Internal { namespace Internal {
class MainWindowPrivate; class ICorePrivate;
class JsExpanderPrivate; class JsExpanderPrivate;
} // namespace Internal } // namespace Internal
@@ -50,7 +48,7 @@ private:
static JsExpander *createGlobalJsExpander(); static JsExpander *createGlobalJsExpander();
Internal::JsExpanderPrivate *d; Internal::JsExpanderPrivate *d;
friend class Core::Internal::MainWindowPrivate; friend class Internal::ICorePrivate;
}; };
} // namespace Core } // namespace Core

View File

@@ -17,8 +17,8 @@ namespace Core {
class ICore; class ICore;
namespace Internal { namespace Internal {
class ICorePrivate;
class MainWindow; class MainWindow;
class MainWindowPrivate;
} }
class CORE_EXPORT MessageManager : public QObject class CORE_EXPORT MessageManager : public QObject
@@ -46,8 +46,8 @@ private:
static void init(); static void init();
friend class ICore; friend class ICore;
friend class Internal::ICorePrivate;
friend class Internal::MainWindow; friend class Internal::MainWindow;
friend class Internal::MainWindowPrivate;
}; };
} // namespace Core } // namespace Core

View File

@@ -19,9 +19,9 @@ class ICore;
class IMode; class IMode;
namespace Internal { namespace Internal {
class MainWindow;
class MainWindowPrivate;
class FancyTabWidget; class FancyTabWidget;
class ICorePrivate;
class MainWindow;
} }
class CORE_EXPORT ModeManager : public QObject class CORE_EXPORT ModeManager : public QObject
@@ -71,8 +71,8 @@ private:
friend class ICore; friend class ICore;
friend class IMode; friend class IMode;
friend class Core::Internal::MainWindow; friend class Internal::MainWindow;
friend class Core::Internal::MainWindowPrivate; friend class Internal::ICorePrivate;
}; };
} // namespace Core } // namespace Core

View File

@@ -20,8 +20,8 @@ class ICore;
namespace Internal { namespace Internal {
class ICorePrivate;
class MainWindow; class MainWindow;
class MainWindowPrivate;
class OutputPaneToggleButton; class OutputPaneToggleButton;
class OutputPaneManageButton; class OutputPaneManageButton;
@@ -54,8 +54,8 @@ protected:
private: private:
// the only class that is allowed to create and destroy // the only class that is allowed to create and destroy
friend class ICore; friend class ICore;
friend class ICorePrivate;
friend class MainWindow; friend class MainWindow;
friend class MainWindowPrivate;
friend class OutputPaneManageButton; friend class OutputPaneManageButton;
explicit OutputPaneManager(QWidget *parent = nullptr); explicit OutputPaneManager(QWidget *parent = nullptr);

View File

@@ -15,7 +15,7 @@ namespace Core {
class IVersionControl; class IVersionControl;
namespace Internal { class MainWindowPrivate; } namespace Internal { class ICorePrivate; }
/* VcsManager: /* VcsManager:
* 1) Provides functionality for finding the IVersionControl * for a given * 1) Provides functionality for finding the IVersionControl * for a given
@@ -87,8 +87,8 @@ private:
void handleConfigurationChanges(IVersionControl *vc); void handleConfigurationChanges(IVersionControl *vc);
static void addVersionControl(IVersionControl *vc); static void addVersionControl(IVersionControl *vc);
friend class Core::Internal::MainWindowPrivate; friend class Internal::ICorePrivate;
friend class Core::IVersionControl; friend class IVersionControl;
}; };
} // namespace Core } // namespace Core