blob: bde47753b19802d2feebb62e935aaa87b5f31d3a (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* copyright (C) 2003-2006 *
* Umbrello UML Modeller Authors <uml-devel@uml.sf.net> *
***************************************************************************/
/* This code generated by:
* Author : thomas
* Date : Mon Jun 23 2003
*/
#ifndef JAVACODEGENERATIONPOLICY_H
#define JAVACODEGENERATIONPOLICY_H
#include <tqstring.h>
#include "codegenpolicyext.h"
#include "../codegenerationpolicy.h"
class KConfig;
class CodeGenerationPolicyPage;
class JavaCodeGenerationPolicy : public CodeGenPolicyExt
{
Q_OBJECT
public:
static const bool DEFAULT_AUTO_GEN_ATTRIB_ACCESSORS;
static const bool DEFAULT_AUTO_GEN_ASSOC_ACCESSORS;
// Constructors/Destructors
//
/**
* Constructors
*/
//JavaCodeGenerationPolicy (CodeGenerationPolicy * defaults = 0);
JavaCodeGenerationPolicy (KConfig * config = 0);
/**
* Empty Destructor
*/
virtual ~JavaCodeGenerationPolicy ( );
// Public attributes
//
// Public attribute accessor methods
//
/**
* Set the value of m_autoGenerateAttribAccessors
* @param var the new value
*/
void setAutoGenerateAttribAccessors ( bool var );
/**
* Get the value of m_autoGenerateAttribAccessors
* @return value the boolean value of m_autoGenerateAttribAccessors
*/
bool getAutoGenerateAttribAccessors( );
/**
* Set the value of m_autoGenerateAssocAccessors
* @param var the new value
*/
void setAutoGenerateAssocAccessors ( bool var );
/**
* Get the value of m_autoGenerateAssocAccessors
* @return value the boolean value of m_autoGenerateAssocAccessors
*/
bool getAutoGenerateAssocAccessors( );
/**
* set the defaults for this code generator from the passed generator.
*/
virtual void setDefaults (CodeGenPolicyExt * defaults, bool emitUpdateSignal = true);
/**
* set the defaults from a config file for this code generator from the passed KConfig pointer.
*/
virtual void setDefaults(KConfig * config, bool emitUpdateSignal = true);
/**
* write Default params to passed KConfig pointer.
*/
virtual void writeConfig (KConfig * config);
/**
* Create a new dialog interface for this object.
* @return dialog object
*/
CodeGenerationPolicyPage * createPage ( TQWidget *parent = 0, const char * name = 0);
protected:
/**
*/
void init ( );
private:
CodeGenerationPolicy *m_commonPolicy;
bool m_autoGenerateConstructors;
bool m_autoGenerateAttribAccessors;
bool m_autoGenerateAssocAccessors;
};
#endif // JAVACODEGENERATIONPOLICY_H
|