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

« back to all changes in this revision

Viewing changes to languages/haskell/haskellsupport_part.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          haskellsupport_part.h  -  description
 
3
                             -------------------
 
4
    begin                : Mon Aug 11 2003
 
5
    copyright            : (C) 2003 Peter Robinson
 
6
    email                : listener@thaldyron.com
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef KDEVPART_HASKELLSUPPORT_PART_H
 
19
#define KDEVPART_HASKELLSUPPORT_PART_H
 
20
 
 
21
#include <qwidget.h>
 
22
#include <qguardedptr.h>
 
23
 
 
24
#include "kdevlanguagesupport.h"
 
25
 
 
26
class HaskellSupportWidget; // @todo remove this
 
27
class KDialogBase;
 
28
class QPopupMenu;
 
29
class Context;
 
30
 
 
31
class HaskellSupportPart : public KDevLanguageSupport
 
32
{
 
33
   Q_OBJECT
 
34
 
 
35
public:
 
36
        HaskellSupportPart(QObject *parent, const char *name, const QStringList &);
 
37
        ~HaskellSupportPart();
 
38
 
 
39
        virtual Features features();
 
40
        virtual KMimeType::List mimeTypes();
 
41
 
 
42
private slots:
 
43
        void projectOpened();
 
44
        void projectClosed();
 
45
        void savedFile(const KURL &fileName);
 
46
        void configWidget(KDialogBase *dlg);
 
47
        void projectConfigWidget(KDialogBase *dlg);
 
48
        void contextMenu(QPopupMenu *popup, const Context *context);
 
49
 
 
50
        void addedFilesToProject(const QStringList &fileList);
 
51
        void removedFilesFromProject(const QStringList &fileList);
 
52
        void slotProjectCompiled();
 
53
 
 
54
        void slotInitialParse();
 
55
 
 
56
private:
 
57
        void maybeParse(const QString &fileName);
 
58
        void parse(const QString &fileName);
 
59
 
 
60
        QGuardedPtr<HaskellSupportWidget> m_widget;
 
61
        bool m_projectClosed;
 
62
        QStringList m_projectFileList;
 
63
};
 
64
 
 
65
#endif