summaryrefslogtreecommitdiffstats
path: root/umbrello
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-19 18:46:47 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-19 18:46:47 -0600
commit479647c43c62fc50302342c8ac50a2fe024b4426 (patch)
tree946e0114bb29970388e3ae24418a9df7119eaef4 /umbrello
parentce145c966787b367fc3372bb78e8a5aefc33a410 (diff)
downloadtdesdk-479647c43c62fc50302342c8ac50a2fe024b4426.tar.gz
tdesdk-479647c43c62fc50302342c8ac50a2fe024b4426.zip
Rename KCmdLineArgs to TDECmdLineArgs to avoid conflicts with KDE4
Diffstat (limited to 'umbrello')
-rw-r--r--umbrello/umbrello/docgenerators/main.cpp6
-rw-r--r--umbrello/umbrello/main.cpp20
2 files changed, 13 insertions, 13 deletions
diff --git a/umbrello/umbrello/docgenerators/main.cpp b/umbrello/umbrello/docgenerators/main.cpp
index 2deea27b..9813cb40 100644
--- a/umbrello/umbrello/docgenerators/main.cpp
+++ b/umbrello/umbrello/docgenerators/main.cpp
@@ -65,10 +65,10 @@ int main(int argc, char *argv[])
"http://uml.sf.net/");
aboutData.addAuthor("Gael de Chalendar (aka Kleag)",0, "kleag@free.fr");
aboutData.addAuthor(I18N_NOOP("Umbrello UML Modeller Authors"), 0, "uml-devel@lists.sourceforge.net");
- KCmdLineArgs::init( argc, argv, &aboutData );
- KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
+ TDECmdLineArgs::init( argc, argv, &aboutData );
+ TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options.
- KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+ TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
QCStringList xsltOpt = args->getOptionList("xslt");
if (xsltOpt.size() > 0)
diff --git a/umbrello/umbrello/main.cpp b/umbrello/umbrello/main.cpp
index a38e13f4..8690f0fb 100644
--- a/umbrello/umbrello/main.cpp
+++ b/umbrello/umbrello/main.cpp
@@ -51,7 +51,7 @@ static KCmdLineOptions options[] =
* @param args The command line arguments given.
* @return True if the GUI should be shown, false otherwise.
*/
-bool getShowGUI(KCmdLineArgs *args);
+bool getShowGUI(TDECmdLineArgs *args);
/**
* Creates, shows and returns the startup logo for the application if it should be shown,
@@ -73,7 +73,7 @@ KStartupLogo* showStartupLogo(KConfig* cfg, bool showGUI);
* @param args The command line arguments given.
* @param cfg The application configuration.
*/
-void initDocument(KCmdLineArgs *args, KConfig* cfg);
+void initDocument(TDECmdLineArgs *args, KConfig* cfg);
/**
* Export all the views in the document using the command line args set by the user.
@@ -82,7 +82,7 @@ void initDocument(KCmdLineArgs *args, KConfig* cfg);
* @param args The command line arguments given.
* @param exportOpt A list containing all the "export" arguments given.
*/
-void exportAllViews(KCmdLineArgs *args, const QCStringList &exportOpt);
+void exportAllViews(TDECmdLineArgs *args, const QCStringList &exportOpt);
extern "C" int flushEvents() {
kapp->processEvents();
@@ -96,14 +96,14 @@ int main(int argc, char *argv[]) {
"http://uml.sf.net/");
aboutData.addAuthor("Paul Hensgen",0, "phensgen@users.sourceforge.net");
aboutData.addAuthor(I18N_NOOP("Umbrello UML Modeller Authors"), 0, "uml-devel@lists.sourceforge.net");
- KCmdLineArgs::init( argc, argv, &aboutData );
- KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
+ TDECmdLineArgs::init( argc, argv, &aboutData );
+ TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options.
KApplication app;
if( app.isRestored() ) {
RESTORE( UMLApp );
} else {
- KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+ TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
bool showGUI = getShowGUI(args);
UMLApp *uml = new UMLApp();
@@ -137,7 +137,7 @@ int main(int argc, char *argv[]) {
return app.exec();
}
-bool getShowGUI(KCmdLineArgs *args) {
+bool getShowGUI(TDECmdLineArgs *args) {
if (args->getOptionList("export").size() > 0) {
return false;
}
@@ -167,7 +167,7 @@ KStartupLogo* showStartupLogo(KConfig* cfg, bool showGUI) {
return startLogo;
}
-void initDocument(KCmdLineArgs *args, KConfig* cfg) {
+void initDocument(TDECmdLineArgs *args, KConfig* cfg) {
if ( args -> count() ) {
UMLApp::app()->openDocumentFile( args->url( 0 ) );
} else {
@@ -182,7 +182,7 @@ void initDocument(KCmdLineArgs *args, KConfig* cfg) {
}
}
-void exportAllViews(KCmdLineArgs *args, const QCStringList &exportOpt) {
+void exportAllViews(TDECmdLineArgs *args, const QCStringList &exportOpt) {
TQString extension(exportOpt.last());
kDebug() << "extension: " << extension << endl;
@@ -191,7 +191,7 @@ void exportAllViews(KCmdLineArgs *args, const QCStringList &exportOpt) {
KURL directory;
QCStringList directoryOpt = args->getOptionList("directory");
if (directoryOpt.size() > 0) {
- directory = KCmdLineArgs::makeURL(directoryOpt.last());
+ directory = TDECmdLineArgs::makeURL(directoryOpt.last());
} else {
directory = KURL(UMLApp::app()->getDocument()->URL().directory());
}