You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
2.2 KiB
75 lines
2.2 KiB
/***************************************************************************
|
|
* *
|
|
* 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 * parent )
|
|
: CodeClassFieldDeclarationBlock ( parent )
|
|
{
|
|
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"
|