~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to languages/perl/perlsupportpart.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright (C) 2001-2002 by Bernd Gehrmann                             *
3
 
 *   bernd@kdevelop.org                                                    *
4
 
 *                                                                         *
5
 
 *   This program is free software; you can redistribute it and/or modify  *
6
 
 *   it under the terms of the GNU General Public License as published by  *
7
 
 *   the Free Software Foundation; either version 2 of the License, or     *
8
 
 *   (at your option) any later version.                                   *
9
 
 *                                                                         *
10
 
 ***************************************************************************/
11
 
 
12
 
#ifndef _PERLSUPPORTPART_H_
13
 
#define _PERLSUPPORTPART_H_
14
 
 
15
 
#include "kdevlanguagesupport.h"
16
 
#include <codemodel.h>
17
 
#include "perlparser.h"
18
 
 
19
 
class PerlSupportPart : public KDevLanguageSupport
20
 
{
21
 
    Q_OBJECT
22
 
 
23
 
public:
24
 
    PerlSupportPart( QObject *parent, const char *name, const QStringList & );
25
 
    ~PerlSupportPart();
26
 
 
27
 
protected:
28
 
    virtual Features features();
29
 
    virtual KMimeType::List mimeTypes();
30
 
 
31
 
private slots:
32
 
    void projectOpened();
33
 
    void projectClosed();
34
 
    void savedFile(const KURL &fileName);
35
 
    void addedFilesToProject(const QStringList &fileList);
36
 
    void removedFilesFromProject(const QStringList &fileList);
37
 
    void slotExecute();
38
 
    void slotExecuteString();
39
 
    void slotStartInterpreter();
40
 
 
41
 
    // Internal
42
 
    void initialParse();
43
 
    void slotPerldocFunction();
44
 
    void slotPerldocFAQ();
45
 
 
46
 
private:
47
 
    QString interpreter();
48
 
    void startApplication(const QString &program);
49
 
    void maybeParse(const QString fileName);
50
 
    void parse(const QString &fileName);
51
 
    void parseLines(QStringList* lines,const QString& fileName);
52
 
    void removeWithReference( const QString & fileName );
53
 
    void parseUseFiles();
54
 
    //Perl Parser
55
 
    perlparser* m_parser;
56
 
 
57
 
};
58
 
 
59
 
#endif