1 /* KDevPlatform Kross Support
3 * Copyright 2008 Aleix Pol <aleixpol@gmail.com>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 #include <interfaces/iplugin.h>
26 #include <kross/core/action.h>
28 #include "krossbuildsystemmanager.h"
29 #include "krossdistributedversioncontrol.h"
31 namespace Kross
{ class Action
; }
32 namespace KDevelop
{ class IDocument
; }
33 class KrossToolViewFactory
;
35 class KrossPlugin
: public KDevelop::IPlugin
, public KrossBuildSystemManager
, public KrossDistributedVersionControl
38 Q_INTERFACES( KDevelop::IBuildSystemManager
)
39 Q_INTERFACES( KDevelop::IProjectFileManager
)
40 Q_INTERFACES( KDevelop::IDistributedVersionControl
)
42 explicit KrossPlugin( QObject
* parent
= 0, const QVariantList
& args
= QVariantList() );
43 virtual ~KrossPlugin();
45 KDevelop::ContextMenuExtension
contextMenuExtension(KDevelop::Context
* context
);
47 Q_SCRIPTABLE
void createToolViewFactory(const QString
& method
, const QString
& id
, Qt::DockWidgetArea pos
);
48 Q_SCRIPTABLE KUrl
pluginDirectory() const { return m_pluginDir
; }
51 QList
<KrossToolViewFactory
*> m_toolFactories
;
52 Kross::Action
* action
;