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

« back to all changes in this revision

Viewing changes to languages/ada/addclass.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
 
#ifndef __ADDCLASS_H__
2
 
#define __ADDCLASS_H__
3
 
 
4
 
 
5
 
#include <qstring.h>
6
 
#include <qstringlist.h>
7
 
 
8
 
 
9
 
class AddClassInfo
10
 
{
11
 
public:
12
 
 
13
 
  AddClassInfo();
14
 
 
15
 
  enum Visibility { PublicClass, ProtectedClass, PrivateClass};
16
 
        
17
 
  QString className;
18
 
  QString extends;
19
 
  bool    interfaceOpt, abstractOpt, finalOpt;
20
 
  QString projectDir, sourceDir;
21
 
  Visibility visibility;
22
 
  QStringList implements;
23
 
  bool    createConstructor, createMain;
24
 
  QString documentation;
25
 
  QString license;
26
 
 
27
 
  QString adaFileName() const;
28
 
 
29
 
};
30
 
 
31
 
 
32
 
class AddClass
33
 
{
34
 
public:
35
 
 
36
 
  AddClass();
37
 
 
38
 
  void setInfo(const AddClassInfo &info);
39
 
  AddClassInfo &info();
40
 
 
41
 
  void setBaseClasses(const QStringList &classes);
42
 
  bool showDialog();
43
 
 
44
 
  bool generate();
45
 
 
46
 
        
47
 
private:
48
 
 
49
 
  AddClassInfo m_info;
50
 
  QStringList  m_baseClasses;
51
 
 
52
 
};
53
 
 
54
 
 
55
 
#endif