2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2008-12-02 14:17:16 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2010-12-17 16:01:08 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2008-12-02 14:09:21 +01:00
|
|
|
|
2009-01-12 15:06:43 +01:00
|
|
|
#ifndef COREPLUGIN_H
|
|
|
|
|
#define COREPLUGIN_H
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
#include <extensionsystem/iplugin.h>
|
|
|
|
|
|
2015-08-03 12:44:48 +02:00
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QMenu;
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
namespace Utils {
|
|
|
|
|
class PathChooser;
|
|
|
|
|
class Theme;
|
|
|
|
|
}
|
2014-11-14 09:53:44 +02:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
namespace Core {
|
2014-01-13 16:17:34 +01:00
|
|
|
|
2010-02-26 11:08:17 +01:00
|
|
|
class DesignMode;
|
2014-01-13 16:17:34 +01:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
class EditMode;
|
|
|
|
|
class MainWindow;
|
2014-01-10 18:02:20 +01:00
|
|
|
class Locator;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
class CorePlugin : public ExtensionSystem::IPlugin
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2012-02-21 16:52:28 +01:00
|
|
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Core.json")
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
CorePlugin();
|
|
|
|
|
~CorePlugin();
|
|
|
|
|
|
2012-02-02 10:47:33 +01:00
|
|
|
bool initialize(const QStringList &arguments, QString *errorMessage = 0);
|
|
|
|
|
void extensionsInitialized();
|
|
|
|
|
bool delayedInitialize();
|
|
|
|
|
ShutdownFlag aboutToShutdown();
|
2015-03-09 10:59:58 +02:00
|
|
|
QObject *remoteCommand(const QStringList & /* options */,
|
|
|
|
|
const QString &workingDirectory,
|
|
|
|
|
const QStringList &args);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
public slots:
|
2009-12-14 18:01:39 +01:00
|
|
|
void fileOpenRequest(const QString&);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2013-12-06 13:38:36 +01:00
|
|
|
private slots:
|
|
|
|
|
#if defined(WITH_TESTS)
|
|
|
|
|
void testVcsManager_data();
|
|
|
|
|
void testVcsManager();
|
2015-12-11 12:07:52 +01:00
|
|
|
void testSplitLineAndColumnNumber();
|
|
|
|
|
void testSplitLineAndColumnNumber_data();
|
2014-02-14 16:30:21 +01:00
|
|
|
// Locator:
|
|
|
|
|
void test_basefilefilter();
|
|
|
|
|
void test_basefilefilter_data();
|
2013-12-06 13:38:36 +01:00
|
|
|
#endif
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
private:
|
2009-11-25 18:44:54 +01:00
|
|
|
void parseArguments(const QStringList & arguments);
|
2015-08-03 12:44:48 +02:00
|
|
|
static void addToPathChooserContextMenu(Utils::PathChooser *pathChooser, QMenu *menu);
|
2009-11-25 18:44:54 +01:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
MainWindow *m_mainWindow;
|
|
|
|
|
EditMode *m_editMode;
|
2010-02-26 11:08:17 +01:00
|
|
|
DesignMode *m_designMode;
|
2014-01-10 18:02:20 +01:00
|
|
|
Locator *m_locator;
|
2008-12-02 12:01:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Core
|
|
|
|
|
|
2009-01-12 15:06:43 +01:00
|
|
|
#endif // COREPLUGIN_H
|