• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

umbrello/umbrello

  • sources
  • kde-4.12
  • kdesdk
  • umbrello
  • umbrello
  • codegenerators
  • cpp
cppmakecodedocument.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2003 Brian Thomas <thomas@mail630.gsfc.nasa.gov> *
8  * copyright (C) 2004-2013 *
9  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10  ***************************************************************************/
11 
12 #include "cppcodegenerator.h"
13 
14 #include <QRegExp>
15 
16 const char * CPPMakefileCodeDocument::DOCUMENT_ID_VALUE = "Makefile_DOC";
17 
18 CPPMakefileCodeDocument::CPPMakefileCodeDocument ()
19 {
20  setFileName("Makefile"); // default name
21  setFileExtension("");
22  setID(DOCUMENT_ID_VALUE); // default id tag for this type of document
23 }
24 
25 CPPMakefileCodeDocument::~CPPMakefileCodeDocument ()
26 {
27 }
28 
29 // we add in our code blocks that describe how to generate
30 // the project here...
31 void CPPMakefileCodeDocument::updateContent()
32 {
33  // FIX : fill in content
34 }
35 
39 QString CPPMakefileCodeDocument::toString ()
40 {
41  return "# cpp make build document";
42 }
43 
44 // We overwritten by CPP language implementation to get lowercase path
45 QString CPPMakefileCodeDocument::getPath ()
46 {
47  QString path = getPackage();
48 
49  // Replace all white spaces with blanks
50  path.simplified();
51 
52  // Replace all blanks with underscore
53  path.replace(QRegExp(" "), "_");
54 
55  path.replace(QRegExp("\\."),"/");
56  path.replace(QRegExp("::"),"/");
57 
58  path = path.toLower();
59 
60  return path;
61 }
62 #include "cppmakecodedocument.moc"
CPPMakefileCodeDocument::getPath
QString getPath()
Get the value of the path to this code document.
Definition: cppmakecodedocument.cpp:45
CPPMakefileCodeDocument::updateContent
void updateContent()
Update the content of this code document.
Definition: cppmakecodedocument.cpp:31
CPPMakefileCodeDocument::~CPPMakefileCodeDocument
virtual ~CPPMakefileCodeDocument()
Empty Destructor.
Definition: cppmakecodedocument.cpp:25
CPPMakefileCodeDocument::toString
QString toString()
Definition: cppmakecodedocument.cpp:39
CPPMakefileCodeDocument::CPPMakefileCodeDocument
CPPMakefileCodeDocument()
Constructor.
Definition: cppmakecodedocument.cpp:18
cppcodegenerator.h
CodeDocument::setFileName
void setFileName(const QString &new_var)
Set the complete value (name plus any extension) of m_filename.
Definition: codedocument.cpp:53
CodeDocument::setFileExtension
void setFileExtension(const QString &new_var)
Set the value of m_fileExtension.
Definition: codedocument.cpp:72
CPPMakefileCodeDocument::DOCUMENT_ID_VALUE
static const char * DOCUMENT_ID_VALUE
Definition: cppmakecodedocument.h:28
CodeDocument::getPackage
QString getPackage() const
Get the value of the package of this code document.
Definition: codedocument.cpp:122
CodeDocument::setID
void setID(const QString &new_id)
Set the value of m_ID.
Definition: codedocument.cpp:133
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal