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

« back to all changes in this revision

Viewing changes to languages/cpp/classgeneratorconfig.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
*   Copyright (C) 2003 by Alexander Dymo                                  *
 
3
*   cloudtemple@mksat.net                                                 *
 
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 CLASSGENERATORCONFIG_H
 
13
#define CLASSGENERATORCONFIG_H
 
14
 
 
15
#include "classgeneratorconfigbase.h"
 
16
 
 
17
class ClassGeneratorConfig : public ClassGeneratorConfigBase
 
18
{
 
19
        Q_OBJECT
 
20
 
 
21
public:
 
22
        enum NameCase { LowerCase, UpperCase, SameAsClassCase, SameAsFileCase };
 
23
 
 
24
        ClassGeneratorConfig( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
 
25
 
 
26
        ClassGeneratorConfig( QString v_cppHeaderText, QString v_cppSourceText,
 
27
                              QString v_objcHeaderText, QString v_objcSourceText,
 
28
                              QString v_gtkHeaderText, QString v_gtkSourceText,
 
29
                              NameCase v_fileCase, NameCase v_defCase, NameCase v_superCase,
 
30
                              bool v_showAuthor, bool v_genDoc, bool v_reformat,
 
31
                              QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
 
32
 
 
33
        ~ClassGeneratorConfig();
 
34
        /*$PUBLIC_FUNCTIONS$*/
 
35
 
 
36
        void readConfig();
 
37
 
 
38
        QString cppHeader();
 
39
        QString cppSource();
 
40
        QString objcHeader();
 
41
        QString objcSource();
 
42
        QString gtkHeader();
 
43
        QString gtkSource();
 
44
 
 
45
        NameCase fileCase();
 
46
        NameCase defCase();
 
47
        NameCase superCase();
 
48
 
 
49
        bool showAuthor();
 
50
        bool genDoc();
 
51
 
 
52
public slots:
 
53
        /*$PUBLIC_SLOTS$*/
 
54
        void storeConfig();
 
55
 
 
56
protected:
 
57
        /*$PROTECTED_FUNCTIONS$*/
 
58
 
 
59
protected slots:
 
60
        /*$PROTECTED_SLOTS$*/
 
61
        virtual void templateTypeChanged( int type );
 
62
 
 
63
private:
 
64
        QString *identifyTemplate( int value );
 
65
        QString templateText( QString path );
 
66
        void saveTemplateText( QString path, QString content );
 
67
 
 
68
        QString cppHeaderText;
 
69
        QString cppSourceText;
 
70
        QString objcHeaderText;
 
71
        QString objcSourceText;
 
72
        QString gtkHeaderText;
 
73
        QString gtkSourceText;
 
74
 
 
75
        QString *currTemplate;
 
76
};
 
77
 
 
78
#endif 
 
79
// kate: indent-mode csands; tab-width 4;
 
80
 
 
81