KDevelop API Documentation

perlsupportpart.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2001-2002 by Bernd Gehrmann                             *
00003  *   bernd@kdevelop.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  ***************************************************************************/
00011 
00012 #ifndef _PERLSUPPORTPART_H_
00013 #define _PERLSUPPORTPART_H_
00014 
00015 #include "kdevlanguagesupport.h"
00016 #include <codemodel.h>
00017 #include "perlparser.h"
00018 
00019 class PerlSupportPart : public KDevLanguageSupport
00020 {
00021     Q_OBJECT
00022 
00023 public:
00024     PerlSupportPart( QObject *parent, const char *name, const QStringList & );
00025     ~PerlSupportPart();
00026 
00027 protected:
00028     virtual Features features();
00029     virtual KMimeType::List mimeTypes();
00030 
00031 private slots:
00032     void projectOpened();
00033     void projectClosed();
00034     void savedFile(const KURL &fileName);
00035     void addedFilesToProject(const QStringList &fileList);
00036     void removedFilesFromProject(const QStringList &fileList);
00037     void slotExecute();
00038     void slotExecuteString();
00039     void slotStartInterpreter();
00040 
00041     // Internal
00042     void initialParse();
00043     void slotPerldocFunction();
00044     void slotPerldocFAQ();
00045 
00046 private:
00047     QString interpreter();
00048     void startApplication(const QString &program);
00049     void maybeParse(const QString fileName);
00050     void parse(const QString &fileName);
00051     void parseLines(QStringList* lines,const QString& fileName);
00052     void removeWithReference( const QString & fileName );
00053     void parseUseFiles();
00054     //Perl Parser
00055     perlparser* m_parser;
00056 
00057 };
00058 
00059 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:33 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003