summaryrefslogtreecommitdiffstats
path: root/languages/ada/adasupportpart.h
blob: a2e01a5f7455b5a5599e20da19f9e0e11f3f78d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
#ifndef __ADASUPPORTPART_H__
#define __ADASUPPORTPART_H__

#include "kdevlanguagesupport.h"

#include <tqwaitcondition.h>

class AdaSupportPartData;
class KDialogBase;
class TQStringList;

class AdaSupportPart : public KDevLanguageSupport
{
    Q_OBJECT
  TQ_OBJECT
public:
    AdaSupportPart (TQObject *tqparent, const char *name, const TQStringList &);
    ~AdaSupportPart ();

    void parseContents (const TQString& contents, const TQString& fileName);

protected:
    Features features ();
    KMimeType::List mimeTypes ();
    TQStringList fileExtensions ();

private slots:
    void projectOpened ();
    void projectClosed ();

    void addedFilesToProject (const TQStringList &fileList);
    void removedFilesFromProject (const TQStringList &fileList);
    void changedFilesInProject( const TQStringList &fileList );

    void initialParse ();
    void savedFile (const KURL&);

private:
    void maybeParse (const TQString &fileName);
    void parse (const TQString &fileName);

    void saveProjectSourceInfo( );
private:
    AdaSupportPartData* d;
    
friend class ProblemReporter;
};


#endif