diff options
Diffstat (limited to 'kode/kodemain.cpp')
-rw-r--r-- | kode/kodemain.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kode/kodemain.cpp b/kode/kodemain.cpp index 3dd7b5780..081bba5f1 100644 --- a/kode/kodemain.cpp +++ b/kode/kodemain.cpp @@ -121,7 +121,7 @@ void addPropertyVariable( TQString &out, const TQString &type, } // FIXME: Put addProperty in PropertyAdder class and add endReadAhead function. -int addProperty( KCmdLineArgs *args ) +int addProperty( TDECmdLineArgs *args ) { if ( args->count() != 3 ) { std::cerr << "Usage: kode --add-property <class> <proprerty-type> " @@ -291,7 +291,7 @@ int addProperty( KCmdLineArgs *args ) return 0; } -int codify( KCmdLineArgs *args ) +int codify( TDECmdLineArgs *args ) { if ( args->count() != 1 ) { std::cerr << "Usage: kode --codify <sourcecodefile>" << std::endl; @@ -320,7 +320,7 @@ int codify( KCmdLineArgs *args ) return 0; } -int create( KCmdLineArgs *args ) +int create( TDECmdLineArgs *args ) { KODE::Printer p; if ( args->isSet( "warning" ) ) p.setCreationWarning( true ); @@ -416,12 +416,12 @@ int create( KCmdLineArgs *args ) code.clear(); code += "KAboutData aboutData(\"test\",\"Test\",\"0.1\");"; - code += "KCmdLineArgs::init(argc,argv,&aboutData);"; - code += "KCmdLineArgs::addCmdLineOptions( options );"; + code += "TDECmdLineArgs::init(argc,argv,&aboutData);"; + code += "TDECmdLineArgs::addCmdLineOptions( options );"; code += ""; code += "KApplication app;"; code += ""; - code += "KCmdLineArgs *args = KCmdLineArgs::parsedArgs();"; + code += "TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();"; code += ""; code += "Q_UNUSED( args );"; main.setBody( code ); @@ -612,12 +612,12 @@ int main(int argc,char **argv) KAboutData aboutData( "kode", I18N_NOOP("TDE Code Generator"), "0.1" ); aboutData.addAuthor( "Cornelius Schumacher", 0, "schumacher@kde.org" ); - KCmdLineArgs::init( argc, argv, &aboutData ); - KCmdLineArgs::addCmdLineOptions( options ); + TDECmdLineArgs::init( argc, argv, &aboutData ); + TDECmdLineArgs::addCmdLineOptions( options ); KApplication app; - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); if ( args->isSet( "create-class" ) || args->isSet( "create-dialog" ) || args->isSet( "create-kioslave" ) || args->isSet( "create-main" ) ) { |