You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
105 lines
3.4 KiB
105 lines
3.4 KiB
15 years ago
|
/* This file is part of the KDE project
|
||
11 years ago
|
Copyright (C) 2000-2001 Bernd Gehrmann <bernd@kdevelop.org>
|
||
|
Copyright (C) 2004 Alexander Dymo <adymo@kdevelop.org>
|
||
15 years ago
|
|
||
|
This library is free software; you can redistribute it and/or
|
||
|
modify it under the terms of the GNU Library General Public
|
||
|
License as published by the Free Software Foundation; either
|
||
|
version 2 of the License, or (at your option) any later version.
|
||
|
|
||
|
This library is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
Library General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU Library General Public License
|
||
|
along with this library; see the file COPYING.LIB. If not, write to
|
||
15 years ago
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
Boston, MA 02110-1301, USA.
|
||
15 years ago
|
*/
|
||
11 years ago
|
#ifndef TDEVAPI_H
|
||
|
#define TDEVAPI_H
|
||
15 years ago
|
|
||
15 years ago
|
#include <tqobject.h>
|
||
15 years ago
|
|
||
15 years ago
|
class TQStringList;
|
||
|
class TQDomDocument;
|
||
11 years ago
|
class TDevCore;
|
||
|
class TDevProject;
|
||
|
class TDevLanguageSupport;
|
||
15 years ago
|
class CodeModel;
|
||
11 years ago
|
class TDevPartController;
|
||
|
class TDevMainWindow;
|
||
|
class TDevCodeRepository;
|
||
|
class TDevPlugin;
|
||
|
class TDevPluginController;
|
||
15 years ago
|
|
||
|
/**
|
||
11 years ago
|
@file tdevapi.h
|
||
15 years ago
|
KDevelop API interface.
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
The interface to KDevelop's core components.
|
||
|
Needs to be implemented in a shell. Developers do not need to use this
|
||
11 years ago
|
class because @ref TDevPlugin already provides API convenience methods.
|
||
15 years ago
|
*/
|
||
11 years ago
|
class TDevApi: public TQObject
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
public:
|
||
|
/**Constructor.*/
|
||
11 years ago
|
TDevApi();
|
||
15 years ago
|
|
||
|
/**Destructor.*/
|
||
11 years ago
|
virtual ~TDevApi();
|
||
15 years ago
|
|
||
|
/**@return A reference to the toplevel widget.*/
|
||
11 years ago
|
virtual TDevMainWindow *mainWindow() const = 0;
|
||
15 years ago
|
|
||
|
/**@return A reference to the part controller which is used to manipulate loaded KParts.*/
|
||
11 years ago
|
virtual TDevPartController *partController() const = 0;
|
||
15 years ago
|
|
||
|
/**@return A reference to the plugin controller which is used to manipulate loaded plugin.*/
|
||
11 years ago
|
virtual TDevPluginController *pluginController() const = 0;
|
||
15 years ago
|
|
||
|
/**@return A reference to the application core - an object which provides
|
||
|
basic functionalities for inter-parts communications / cooperation.*/
|
||
11 years ago
|
virtual TDevCore *core() const = 0;
|
||
15 years ago
|
|
||
|
/**@return A reference to the memory symbol store.*/
|
||
|
virtual CodeModel *codeModel() const = 0;
|
||
|
|
||
|
/**@return A reference to the DOM tree that represents the project file or 0 if no project is loaded.*/
|
||
15 years ago
|
TQDomDocument *projectDom() const;
|
||
15 years ago
|
|
||
|
/**Sets the Document Object Model for the current project.
|
||
|
@param dom The project DOM.*/
|
||
15 years ago
|
void setProjectDom(TQDomDocument *dom);
|
||
15 years ago
|
|
||
|
/**@return A reference to the current project component or 0 if no project is loaded.*/
|
||
11 years ago
|
TDevProject *project() const;
|
||
15 years ago
|
|
||
|
/**Sets the current project.
|
||
|
@param project The project plugin which becames the current project.*/
|
||
11 years ago
|
void setProject(TDevProject *project);
|
||
15 years ago
|
|
||
|
/**@return A reference to the language support component or 0 if no support available.*/
|
||
11 years ago
|
TDevLanguageSupport *languageSupport() const;
|
||
15 years ago
|
|
||
|
/**Sets the object charged of providing handling for the source files written in particular
|
||
|
language (languages support component).
|
||
|
@param languageSupport The language support plugin.*/
|
||
11 years ago
|
void setLanguageSupport(TDevLanguageSupport *languageSupport);
|
||
15 years ago
|
|
||
|
/**@return A reference to the code repository (accessor to persistent symbol stores).*/
|
||
11 years ago
|
TDevCodeRepository *codeRepository() const;
|
||
15 years ago
|
|
||
|
private:
|
||
|
class Private;
|
||
|
Private *d;
|
||
|
};
|
||
|
|
||
|
#endif
|