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.
79 lines
2.0 KiB
79 lines
2.0 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. *
|
|
* *
|
|
* copyright (C) 2004-2006 *
|
|
* Umbrello UML Modeller Authors <uml-devel@uml.sf.net> *
|
|
***************************************************************************/
|
|
|
|
/* This code generated by:
|
|
* Author : thomas
|
|
* Date : Tue Jun 24 2003
|
|
*/
|
|
|
|
#include "cppcodegenerator.h"
|
|
|
|
#include <tqregexp.h>
|
|
|
|
const char * CPPMakefileCodeDocument::DOCUMENT_ID_VALUE = "Makefile_DOC";
|
|
|
|
// Constructors/Destructors
|
|
//
|
|
|
|
CPPMakefileCodeDocument::CPPMakefileCodeDocument ( )
|
|
{
|
|
setFileName("Makefile"); // default name
|
|
setFileExtension("");
|
|
setID(DOCUMENT_ID_VALUE); // default id tag for this type of document
|
|
}
|
|
|
|
CPPMakefileCodeDocument::~CPPMakefileCodeDocument ( ) { }
|
|
|
|
//
|
|
// Methods
|
|
//
|
|
|
|
// Other methods
|
|
//
|
|
|
|
// we add in our code blocks that describe how to generate
|
|
// the project here...
|
|
void CPPMakefileCodeDocument::updateContent( ) {
|
|
// FIX : fill in content
|
|
}
|
|
|
|
/**
|
|
* @return TQString
|
|
*/
|
|
TQString CPPMakefileCodeDocument::toString ( ) {
|
|
return "# cpp make build document";
|
|
}
|
|
|
|
// We overwritten by CPP language implementation to get lowercase path
|
|
TQString CPPMakefileCodeDocument::getPath ( )
|
|
{
|
|
|
|
TQString path = getPackage();
|
|
|
|
// Replace all white spaces with blanks
|
|
path.simplifyWhiteSpace();
|
|
|
|
// Replace all blanks with underscore
|
|
path.replace(TQRegExp(" "), "_");
|
|
|
|
path.replace(TQRegExp("\\."),"/");
|
|
path.replace(TQRegExp("::"),"/");
|
|
|
|
path.lower();
|
|
|
|
return path;
|
|
|
|
}
|
|
|
|
|
|
#include "cppmakecodedocument.moc"
|