forked from qt-creator/qt-creator
QmlProjectManager: Cleanup qmlprojectplugin.cpp
... in preparation of moving the plugin class. Change-Id: I449439f8db0a1c74dde51bf33a6f0e01fbc2a727 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -7,8 +7,18 @@
|
||||
#include <extensionsystem/iplugin.h>
|
||||
#include <utils/filepath.h>
|
||||
|
||||
namespace QmlProjectManager {
|
||||
namespace Internal {
|
||||
namespace QmlProjectManager::Internal {
|
||||
|
||||
void openQDS(const Utils::FilePath &fileName);
|
||||
Utils::FilePath qdsInstallationEntry();
|
||||
bool qdsInstallationExists();
|
||||
bool checkIfEditorIsuiQml(Core::IEditor *editor);
|
||||
Utils::FilePath projectFilePath();
|
||||
Utils::FilePaths rootCmakeFiles();
|
||||
QString qtVersion(const Utils::FilePath &projectFilePath);
|
||||
QString qdsVersion(const Utils::FilePath &projectFilePath);
|
||||
void openInQDSWithProject(const Utils::FilePath &filePath);
|
||||
const QString readFileContents(const Utils::FilePath &filePath);
|
||||
|
||||
class QmlProjectPlugin final : public ExtensionSystem::IPlugin
|
||||
{
|
||||
@@ -19,17 +29,6 @@ public:
|
||||
QmlProjectPlugin() = default;
|
||||
~QmlProjectPlugin() final;
|
||||
|
||||
static void openQDS(const Utils::FilePath &fileName);
|
||||
static Utils::FilePath qdsInstallationEntry();
|
||||
static bool qdsInstallationExists();
|
||||
static bool checkIfEditorIsuiQml(Core::IEditor *editor);
|
||||
static Utils::FilePath projectFilePath();
|
||||
static Utils::FilePaths rootCmakeFiles();
|
||||
static QString qtVersion(const Utils::FilePath &projectFilePath);
|
||||
static QString qdsVersion(const Utils::FilePath &projectFilePath);
|
||||
static void openInQDSWithProject(const Utils::FilePath &filePath);
|
||||
static const QString readFileContents(const Utils::FilePath &filePath);
|
||||
|
||||
public slots:
|
||||
void editorModeChanged(Utils::Id newMode, Utils::Id oldMode);
|
||||
void openQtc(bool permanent = false);
|
||||
@@ -44,5 +43,4 @@ private:
|
||||
class QmlProjectPluginPrivate *d = nullptr;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlProject
|
||||
} // QmlProject::Internal
|
||||
|
||||
Reference in New Issue
Block a user