|
|
@ -365,15 +365,22 @@ static void writeSourceIncludes(const Class& classData, Class::Role role,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void writeInterfaceIncludes(const TQValueList<Class> interfaces,
|
|
|
|
static void writeInterfaceIncludes(const TQValueList<Class> interfaces,
|
|
|
|
TQTextStream& stream)
|
|
|
|
const TQString& customInterfaceFilename, TQTextStream& stream)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
stream << "// interface classes includes" << endl;
|
|
|
|
stream << "// interface classes includes" << endl;
|
|
|
|
|
|
|
|
|
|
|
|
TQValueList<Class>::const_iterator it = interfaces.begin();
|
|
|
|
if (!customInterfaceFilename.isNull())
|
|
|
|
TQValueList<Class>::const_iterator endIt = interfaces.end();
|
|
|
|
{
|
|
|
|
for (; it != endIt; ++it)
|
|
|
|
stream << "#include \"" << customInterfaceFilename << ".h\"" << endl;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
stream << "#include \"" << (*it).name.lower() << "Interface.h\"" << endl;
|
|
|
|
TQValueList<Class>::const_iterator it = interfaces.begin();
|
|
|
|
|
|
|
|
TQValueList<Class>::const_iterator endIt = interfaces.end();
|
|
|
|
|
|
|
|
for (; it != endIt; ++it)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
stream << "#include \"" << (*it).name.lower() << "Interface.h\"" << endl;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
stream << "#include \"introspectableInterface.h\"" << endl;
|
|
|
|
stream << "#include \"introspectableInterface.h\"" << endl;
|
|
|
@ -1061,6 +1068,7 @@ bool ClassGenerator::generateProxy(const Class& classData,
|
|
|
|
|
|
|
|
|
|
|
|
bool ClassGenerator::generateNode(const Class& classData,
|
|
|
|
bool ClassGenerator::generateNode(const Class& classData,
|
|
|
|
const TQValueList<Class>& interfaces,
|
|
|
|
const TQValueList<Class>& interfaces,
|
|
|
|
|
|
|
|
const TQString& customInterfaceFilename,
|
|
|
|
TQTextStream& headerStream,
|
|
|
|
TQTextStream& headerStream,
|
|
|
|
TQTextStream& sourceStream)
|
|
|
|
TQTextStream& sourceStream)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1075,7 +1083,7 @@ bool ClassGenerator::generateNode(const Class& classData,
|
|
|
|
|
|
|
|
|
|
|
|
// create source
|
|
|
|
// create source
|
|
|
|
writeSourceIncludes(classData, Class::Node, sourceStream);
|
|
|
|
writeSourceIncludes(classData, Class::Node, sourceStream);
|
|
|
|
writeInterfaceIncludes(interfaces, sourceStream);
|
|
|
|
writeInterfaceIncludes(interfaces, customInterfaceFilename, sourceStream);
|
|
|
|
|
|
|
|
|
|
|
|
openNamespaces(classData.namespaces, sourceStream);
|
|
|
|
openNamespaces(classData.namespaces, sourceStream);
|
|
|
|
|
|
|
|
|
|
|
|