KDevelop API Documentation

lib/interfaces/kdevpartcontroller.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project 00002 Copyright (C) 2002 Matthias Hoelzer-Kluepfel <hoelzer@kde.org> 00003 Copyright (C) 2002 Bernd Gehrmann <bernd@kdevelop.org> 00004 Copyright (C) 2003 Roberto Raggi <roberto@kdevelop.org> 00005 Copyright (C) 2003 Hamish Rodda <rodda@kde.org> 00006 Copyright (C) 2003 Harald Fernengel <harry@kdevelop.org> 00007 Copyright (C) 2003 Jens Dagerbo <jens.dagerbo@swipnet.se> 00008 00009 This library is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU Library General Public 00011 License as published by the Free Software Foundation; either 00012 version 2 of the License, or (at your option) any later version. 00013 00014 This library is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 Library General Public License for more details. 00018 00019 You should have received a copy of the GNU Library General Public License 00020 along with this library; see the file COPYING.LIB. If not, write to 00021 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00022 Boston, MA 02111-1307, USA. 00023 */ 00024 #ifndef __KDEV_PARTCONTROLLER_H__ 00025 #define __KDEV_PARTCONTROLLER_H__ 00026 00027 00028 #include <kurl.h> 00029 #include <kparts/partmanager.h> 00030 00031 namespace KParts 00032 { 00033 class ReadOnlyPart; 00034 } 00035 00036 class KDevPartController : public KParts::PartManager 00037 { 00038 Q_OBJECT 00039 00040 public: 00041 00042 KDevPartController(QWidget *parent); 00043 00044 virtual void setEncoding(const QString &serviceType) = 0; 00045 virtual void editDocument(const KURL &url, int lineNum=-1, int col=-1) = 0; 00046 virtual void showDocument(const KURL &url, const QString &context = QString::null) = 0; 00047 virtual void showPart( KParts::Part* part, const QString& name, const QString& shortDescription ) = 0; 00048 virtual KParts::Part* findOpenDocument(const KURL& url) = 0; 00049 00050 virtual void saveAllFiles() = 0; 00051 virtual void revertAllFiles() = 0; 00053 virtual bool isDirty(KParts::ReadOnlyPart*) = 0; 00054 virtual bool closePartForWidget( const QWidget* widget ) = 0; 00055 00056 signals: 00057 00061 void savedFile(const QString &fileName); 00062 00066 void loadedFile(const QString &fileName); 00067 00071 void fileDirty(const QString &fileName); 00072 void fileDirty( const KURL & url ); 00073 00074 00075 }; 00076 00077 00078 00079 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:01:48 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003