blob: 2e55e92ae0889bbcca84d97d1dd55e1692576dc7 (
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
|
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
/* This code generated by:
* Author : thomas
* Date : Mon Sep 1 2003
*/
#include "cppsourcecodeclassfielddeclarationblock.h"
#include "cppcodeclassfield.h"
#include "../model_utils.h"
// Constructors/Destructors
//
CPPSourceCodeClassFieldDeclarationBlock::CPPSourceCodeClassFieldDeclarationBlock ( CodeClassField * tqparent )
: CodeClassFieldDeclarationBlock ( tqparent )
{
setOverallIndentationLevel(1);
updateContent();
}
CPPSourceCodeClassFieldDeclarationBlock::~CPPSourceCodeClassFieldDeclarationBlock ( ) { }
//
// Methods
//
// Other methods
//
/**
*/
void CPPSourceCodeClassFieldDeclarationBlock::updateContent( )
{
/*
CodeClassField * cf = getParentClassField();
ClassifierCodeDocument * doc = cf->getParentDocument();
CPPCodeClassField * jcf = dynamic_cast<CPPCodeClassField*>(cf);
CPPClassifierCodeDocument* jdoc = dynamic_cast<CPPClassifierCodeDocument*>(doc);
// Set the comment
TQString notes = getParentObject()->getDoc();
getComment()->setText(notes);
// Set the body
TQString staticValue = getParentObject()->getStatic() ? "static " : "";
TQString scopeStr = getParentObject()->getVisibility().toString();
TQString typeName = jcf->getTypeName();
TQString fieldName = jcf->getFieldName();
TQString initialV = jcf->getInitialValue();
TQString body = staticValue+scopeStr+" "+typeName+" "+fieldName;
if (!initialV.isEmpty())
body.append(" = " + initialV);
setText(body+";");
*/
setText("FIX ME;");
}
#include "cppsourcecodeclassfielddeclarationblock.moc"
|