[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Wed Apr 14 10:42:02 UTC 2004
CVS commit by okellogg:
ClassImport constructor: Add some standard include paths at the driver.
As a small hack, add an env var UMBRELLO_INCPATH with which the
user can define further include paths (colon separated list.)
M +13 -0 classimport.cpp 1.26
--- kdesdk/umbrello/umbrello/classimport.cpp #1.25:1.26
@@ -38,4 +38,17 @@ ClassImport::ClassImport(UMLDoc * parent
m_umldoc = parentDoc;
m_driver = new CppDriver();
+ // Add some standard include paths
+ m_driver->addIncludePath( "/usr/include" );
+ m_driver->addIncludePath( "/usr/include/c++" );
+ m_driver->addIncludePath( "/usr/include/g++" );
+ m_driver->addIncludePath( "/usr/local/include" );
+ // FIXME: The following hack is to be replaced by a config menu in umbrello
+ char *umbrello_incpath = getenv( "UMBRELLO_INCPATH" );
+ if (umbrello_incpath) {
+ QStringList includes = QStringList::split( ':', umbrello_incpath );
+ for (QStringList::Iterator i = includes.begin();
+ i != includes.end(); i++)
+ m_driver->addIncludePath( *i );
+ }
}
More information about the umbrello-devel
mailing list