forked from qt-creator/qt-creator
Help: Merge helpmode.{h,cpp} into helpplugin.cpp
Never re-used and tiny. Not worth a file pair. Change-Id: Idc5b2f4080b7140dee4f32fd834f4c76a7abc4b4 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -12,7 +12,6 @@ add_qtc_plugin(Help
|
|||||||
helpfindsupport.cpp helpfindsupport.h
|
helpfindsupport.cpp helpfindsupport.h
|
||||||
helpindexfilter.cpp helpindexfilter.h
|
helpindexfilter.cpp helpindexfilter.h
|
||||||
helpmanager.cpp helpmanager.h
|
helpmanager.cpp helpmanager.h
|
||||||
helpmode.cpp helpmode.h
|
|
||||||
helpplugin.cpp helpplugin.h
|
helpplugin.cpp helpplugin.h
|
||||||
helpviewer.cpp helpviewer.h
|
helpviewer.cpp helpviewer.h
|
||||||
helpwidget.cpp helpwidget.h
|
helpwidget.cpp helpwidget.h
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ Project {
|
|||||||
"helpfindsupport.cpp", "helpfindsupport.h",
|
"helpfindsupport.cpp", "helpfindsupport.h",
|
||||||
"helpindexfilter.cpp", "helpindexfilter.h",
|
"helpindexfilter.cpp", "helpindexfilter.h",
|
||||||
"helpmanager.cpp", "helpmanager.h",
|
"helpmanager.cpp", "helpmanager.h",
|
||||||
"helpmode.cpp", "helpmode.h",
|
|
||||||
"helpplugin.cpp", "helpplugin.h",
|
"helpplugin.cpp", "helpplugin.h",
|
||||||
"helpviewer.cpp", "helpviewer.h",
|
"helpviewer.cpp", "helpviewer.h",
|
||||||
"helpwidget.cpp", "helpwidget.h",
|
"helpwidget.cpp", "helpwidget.h",
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
||||||
|
|
||||||
#include "helpmode.h"
|
|
||||||
#include "helpconstants.h"
|
|
||||||
#include "helpicons.h"
|
|
||||||
#include "helptr.h"
|
|
||||||
|
|
||||||
#include <QCoreApplication>
|
|
||||||
|
|
||||||
using namespace Help;
|
|
||||||
using namespace Help::Internal;
|
|
||||||
|
|
||||||
HelpMode::HelpMode(QObject *parent)
|
|
||||||
: Core::IMode(parent)
|
|
||||||
{
|
|
||||||
setObjectName("HelpMode");
|
|
||||||
setContext(Core::Context(Constants::C_MODE_HELP));
|
|
||||||
setIcon(Utils::Icon::modeIcon(Icons::MODE_HELP_CLASSIC,
|
|
||||||
Icons::MODE_HELP_FLAT, Icons::MODE_HELP_FLAT_ACTIVE));
|
|
||||||
setDisplayName(Tr::tr("Help"));
|
|
||||||
setPriority(Constants::P_MODE_HELP);
|
|
||||||
setId(Constants::ID_MODE_HELP);
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
// Copyright (C) 2016 The Qt Company Ltd.
|
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <coreplugin/imode.h>
|
|
||||||
|
|
||||||
#include <QString>
|
|
||||||
#include <QIcon>
|
|
||||||
|
|
||||||
namespace Help {
|
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class HelpMode : public Core::IMode
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
explicit HelpMode(QObject *parent = nullptr);
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace Internal
|
|
||||||
} // namespace Help
|
|
||||||
@@ -4,7 +4,6 @@
|
|||||||
#include "helpplugin.h"
|
#include "helpplugin.h"
|
||||||
|
|
||||||
#include "bookmarkmanager.h"
|
#include "bookmarkmanager.h"
|
||||||
#include "contentwindow.h"
|
|
||||||
#include "docsettingspage.h"
|
#include "docsettingspage.h"
|
||||||
#include "filtersettingspage.h"
|
#include "filtersettingspage.h"
|
||||||
#include "generalsettingspage.h"
|
#include "generalsettingspage.h"
|
||||||
@@ -13,11 +12,9 @@
|
|||||||
#include "helpicons.h"
|
#include "helpicons.h"
|
||||||
#include "helpindexfilter.h"
|
#include "helpindexfilter.h"
|
||||||
#include "helpmanager.h"
|
#include "helpmanager.h"
|
||||||
#include "helpmode.h"
|
|
||||||
#include "helptr.h"
|
#include "helptr.h"
|
||||||
#include "helpviewer.h"
|
#include "helpviewer.h"
|
||||||
#include "helpwidget.h"
|
#include "helpwidget.h"
|
||||||
#include "indexwindow.h"
|
|
||||||
#include "localhelpmanager.h"
|
#include "localhelpmanager.h"
|
||||||
#include "openpagesmanager.h"
|
#include "openpagesmanager.h"
|
||||||
#include "searchtaskhandler.h"
|
#include "searchtaskhandler.h"
|
||||||
@@ -35,6 +32,7 @@
|
|||||||
#include <coreplugin/findplaceholder.h>
|
#include <coreplugin/findplaceholder.h>
|
||||||
#include <coreplugin/helpitem.h>
|
#include <coreplugin/helpitem.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
|
#include <coreplugin/imode.h>
|
||||||
#include <coreplugin/minisplitter.h>
|
#include <coreplugin/minisplitter.h>
|
||||||
#include <coreplugin/modemanager.h>
|
#include <coreplugin/modemanager.h>
|
||||||
#include <coreplugin/rightpane.h>
|
#include <coreplugin/rightpane.h>
|
||||||
@@ -52,38 +50,47 @@
|
|||||||
#include <utils/theme/theme.h>
|
#include <utils/theme/theme.h>
|
||||||
#include <utils/tooltip/tooltip.h>
|
#include <utils/tooltip/tooltip.h>
|
||||||
|
|
||||||
#include <QApplication>
|
|
||||||
#include <QDialog>
|
|
||||||
#include <QDialogButtonBox>
|
|
||||||
#include <QDir>
|
|
||||||
#include <QFileInfo>
|
|
||||||
#include <QLabel>
|
|
||||||
#include <QLibraryInfo>
|
|
||||||
#include <QPlainTextEdit>
|
|
||||||
#include <QTimer>
|
|
||||||
#include <QTranslator>
|
|
||||||
#include <qplugin.h>
|
|
||||||
#include <QRegularExpression>
|
|
||||||
|
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
|
#include <QApplication>
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include <QDesktopServices>
|
#include <QDesktopServices>
|
||||||
#include <QMenu>
|
#include <QDialog>
|
||||||
#include <QStackedLayout>
|
#include <QDialogButtonBox>
|
||||||
#include <QSplitter>
|
|
||||||
|
|
||||||
#include <QHelpEngine>
|
#include <QHelpEngine>
|
||||||
|
#include <QLabel>
|
||||||
|
#include <QLibraryInfo>
|
||||||
|
#include <QMenu>
|
||||||
|
#include <QPlainTextEdit>
|
||||||
|
#include <QRegularExpression>
|
||||||
|
#include <QSplitter>
|
||||||
|
#include <QStackedLayout>
|
||||||
|
#include <QTimer>
|
||||||
|
#include <QTranslator>
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
static const char kExternalWindowStateKey[] = "Help/ExternalWindowState";
|
|
||||||
static const char kToolTipHelpContext[] = "Help.ToolTip";
|
|
||||||
|
|
||||||
using namespace Core;
|
using namespace Core;
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace Help {
|
namespace Help::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
const char kExternalWindowStateKey[] = "Help/ExternalWindowState";
|
||||||
|
const char kToolTipHelpContext[] = "Help.ToolTip";
|
||||||
|
|
||||||
|
class HelpMode : public IMode
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
HelpMode()
|
||||||
|
{
|
||||||
|
setObjectName("HelpMode");
|
||||||
|
setContext(Core::Context(Constants::C_MODE_HELP));
|
||||||
|
setIcon(Icon::modeIcon(Icons::MODE_HELP_CLASSIC,
|
||||||
|
Icons::MODE_HELP_FLAT, Icons::MODE_HELP_FLAT_ACTIVE));
|
||||||
|
setDisplayName(Tr::tr("Help"));
|
||||||
|
setPriority(Constants::P_MODE_HELP);
|
||||||
|
setId(Constants::ID_MODE_HELP);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
class HelpPluginPrivate : public QObject
|
class HelpPluginPrivate : public QObject
|
||||||
{
|
{
|
||||||
@@ -641,5 +648,4 @@ void HelpPluginPrivate::doSetupIfNeeded()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // Internal
|
} // Help::Internal
|
||||||
} // Help
|
|
||||||
|
|||||||
Reference in New Issue
Block a user