diff --git a/chalk/main.cc b/chalk/main.cc index 2260aa72b..33f59e5a7 100644 --- a/chalk/main.cc +++ b/chalk/main.cc @@ -23,9 +23,9 @@ #include "ui/kis_aboutdata.h" -static const KCmdLineOptions options[] = { +static const TDECmdLineOptions options[] = { { "+[file(s)]", I18N_NOOP("File(s) or URL(s) to open"), 0 }, - KCmdLineLastOption + TDECmdLineLastOption }; extern "C" KRITA_EXPORT int kdemain(int argc, char **argv) diff --git a/example/main.cc b/example/main.cc index 2aae1f4b6..d8b8a537d 100644 --- a/example/main.cc +++ b/example/main.cc @@ -26,10 +26,10 @@ #include "example_aboutdata.h" #include -static const KCmdLineOptions options[]= +static const TDECmdLineOptions options[]= { {"+[file]", I18N_NOOP("File to open"),0}, - KCmdLineLastOption + TDECmdLineLastOption }; extern "C" EXAMPLE_EXPORT int kdemain( int argc, char **argv ) diff --git a/karbon/main.cc b/karbon/main.cc index 6c6296a23..3434e6b55 100644 --- a/karbon/main.cc +++ b/karbon/main.cc @@ -28,10 +28,10 @@ #include "karbon_aboutdata.h" -static const KCmdLineOptions options[] = +static const TDECmdLineOptions options[] = { { "+[file]", I18N_NOOP( "File to open" ), 0 } , - KCmdLineLastOption + TDECmdLineLastOption }; extern "C" KARBONBASE_EXPORT int kdemain( int argc, char* argv[] ) diff --git a/kchart/main.cc b/kchart/main.cc index 35dd041d3..2d20e2070 100644 --- a/kchart/main.cc +++ b/kchart/main.cc @@ -27,10 +27,10 @@ using namespace KChart; namespace KChart { -static const KCmdLineOptions options[]= +static const TDECmdLineOptions options[]= { {"+[file]", I18N_NOOP("File to open"),0}, - KCmdLineLastOption + TDECmdLineLastOption }; } //namespace KChart diff --git a/kexi/core/kexicmdlineargs.h b/kexi/core/kexicmdlineargs.h index d67c5e610..c1bf80b38 100644 --- a/kexi/core/kexicmdlineargs.h +++ b/kexi/core/kexicmdlineargs.h @@ -25,7 +25,7 @@ #include #include -static KCmdLineOptions options[] = +static TDECmdLineOptions options[] = { { ":", I18N_NOOP("Options related to entire projects:"), 0 }, { "createdb", I18N_NOOP( @@ -174,7 +174,7 @@ static KCmdLineOptions options[] = "or name of a Kexi database\n" "project on a server to open."), 0 }, // INSERT YOUR COMMANDLINE OPTIONS HERE - KCmdLineLastOption + TDECmdLineLastOption }; #endif diff --git a/kexi/doc/dev/CHANGELOG-Kexi-js b/kexi/doc/dev/CHANGELOG-Kexi-js index 31c32980e..4f7243c67 100755 --- a/kexi/doc/dev/CHANGELOG-Kexi-js +++ b/kexi/doc/dev/CHANGELOG-Kexi-js @@ -3592,7 +3592,7 @@ KexiDB/parser - Connection::createTable() now also allows table replacing - Connection::storeObjectSchemaData() now reuses schema's id if > 0 NEWAPI Test -- now KCmdLineOptions are used, see README +- now TDECmdLineOptions are used, see README - "parser" test added KexiTableView - KexiTableViewPropertyBuffer: a fix for maintaining `dirty' flag diff --git a/kexi/formeditor/test/main.cpp b/kexi/formeditor/test/main.cpp index d0142ec6e..1120acce7 100644 --- a/kexi/formeditor/test/main.cpp +++ b/kexi/formeditor/test/main.cpp @@ -29,10 +29,10 @@ static const char *description = static const char *version = "0.3"; -static KCmdLineOptions options[] = +static TDECmdLineOptions options[] = { { "+[URL]", I18N_NOOP( "Document to open" ), 0 }, - KCmdLineLastOption + TDECmdLineLastOption }; int main(int argc, char **argv) diff --git a/kexi/kexidb/simplecommandlineapp.cpp b/kexi/kexidb/simplecommandlineapp.cpp index 5b3732a5f..c1fdb8615 100644 --- a/kexi/kexidb/simplecommandlineapp.cpp +++ b/kexi/kexidb/simplecommandlineapp.cpp @@ -29,7 +29,7 @@ using namespace KexiDB; -static KCmdLineOptions predefinedOptions[] = +static TDECmdLineOptions predefinedOptions[] = { { "drv", 0, 0 }, { "driver ", I18N_NOOP("Database driver name"), 0 }, @@ -42,7 +42,7 @@ static KCmdLineOptions predefinedOptions[] = { "port ", I18N_NOOP("Server's port number"), 0 }, { "s", 0, 0 }, { "local-socket ", I18N_NOOP("Server's local socket filename"), 0 }, - KCmdLineLastOption + TDECmdLineLastOption }; //----------------------------------------- @@ -62,7 +62,7 @@ public: } delete instance; - for (KCmdLineOptions *optionsPtr = allOptions; optionsPtr->name; optionsPtr++) { + for (TDECmdLineOptions *optionsPtr = allOptions; optionsPtr->name; optionsPtr++) { delete optionsPtr->name; delete optionsPtr->description; delete optionsPtr->def; @@ -71,7 +71,7 @@ public: } KexiDB::DriverManager manager; - KCmdLineOptions *allOptions; + TDECmdLineOptions *allOptions; TDEInstance* instance; ConnectionData connData; TQGuardedPtr conn; @@ -80,7 +80,7 @@ public: //----------------------------------------- SimpleCommandLineApp::SimpleCommandLineApp( - int argc, char** argv, KCmdLineOptions *options, + int argc, char** argv, TDECmdLineOptions *options, const char *programName, const char *version, const char *shortDescription, int licenseType, const char *copyrightStatement, const char *text, @@ -96,18 +96,18 @@ SimpleCommandLineApp::SimpleCommandLineApp( homePageAddress, bugsEmailAddress)); int predefinedOptionsCount = 0; - for (KCmdLineOptions *optionsPtr = predefinedOptions; optionsPtr->name; optionsPtr++, predefinedOptionsCount++) + for (TDECmdLineOptions *optionsPtr = predefinedOptions; optionsPtr->name; optionsPtr++, predefinedOptionsCount++) ; int userOptionsCount = 0; - for (KCmdLineOptions *optionsPtr = options; optionsPtr->name; optionsPtr++, userOptionsCount++) + for (TDECmdLineOptions *optionsPtr = options; optionsPtr->name; optionsPtr++, userOptionsCount++) ; d->instance = new TDEInstance(appName); // join the predefined options and user options - d->allOptions = new KCmdLineOptions[predefinedOptionsCount + userOptionsCount + 1]; - KCmdLineOptions *allOptionsPtr = d->allOptions; - for (KCmdLineOptions *optionsPtr = predefinedOptions; optionsPtr->name; optionsPtr++, allOptionsPtr++) { + d->allOptions = new TDECmdLineOptions[predefinedOptionsCount + userOptionsCount + 1]; + TDECmdLineOptions *allOptionsPtr = d->allOptions; + for (TDECmdLineOptions *optionsPtr = predefinedOptions; optionsPtr->name; optionsPtr++, allOptionsPtr++) { allOptionsPtr->name = tqstrdup(optionsPtr->name); allOptionsPtr->description = tqstrdup(optionsPtr->description); if (optionsPtr == predefinedOptions) //first row == drv @@ -115,7 +115,7 @@ SimpleCommandLineApp::SimpleCommandLineApp( else allOptionsPtr->def = tqstrdup(optionsPtr->def); } - for (KCmdLineOptions *optionsPtr = options; optionsPtr->name; optionsPtr++, allOptionsPtr++) { + for (TDECmdLineOptions *optionsPtr = options; optionsPtr->name; optionsPtr++, allOptionsPtr++) { allOptionsPtr->name = tqstrdup(optionsPtr->name); allOptionsPtr->description = tqstrdup(optionsPtr->description); allOptionsPtr->def = tqstrdup(optionsPtr->def); diff --git a/kexi/kexidb/simplecommandlineapp.h b/kexi/kexidb/simplecommandlineapp.h index 64cc13828..fc189198a 100644 --- a/kexi/kexidb/simplecommandlineapp.h +++ b/kexi/kexidb/simplecommandlineapp.h @@ -25,7 +25,7 @@ #include -struct KCmdLineOptions; +struct TDECmdLineOptions; namespace KexiDB { @@ -47,7 +47,7 @@ namespace KexiDB { public: SimpleCommandLineApp( - int argc, char** argv, KCmdLineOptions *options, const char *programName, + int argc, char** argv, TDECmdLineOptions *options, const char *programName, const char *version, const char *shortDescription=0, int licenseType=TDEAboutData::License_Unknown, const char *copyrightStatement=0, const char *text=0, diff --git a/kexi/plugins/macros/tests/komacrotest.cpp b/kexi/plugins/macros/tests/komacrotest.cpp index 15fc9db13..afc9c98b8 100644 --- a/kexi/plugins/macros/tests/komacrotest.cpp +++ b/kexi/plugins/macros/tests/komacrotest.cpp @@ -25,9 +25,9 @@ static const char description[] = I18N_NOOP("KoMacroTester"); static const char version[] = "0.1"; -static KCmdLineOptions options[] = +static TDECmdLineOptions options[] = { - KCmdLineLastOption + TDECmdLineLastOption }; int main( int argc, char** argv ) diff --git a/kexi/plugins/macros/tests/komacrotestgui.cpp b/kexi/plugins/macros/tests/komacrotestgui.cpp index d651aa01b..a0814f1f3 100644 --- a/kexi/plugins/macros/tests/komacrotestgui.cpp +++ b/kexi/plugins/macros/tests/komacrotestgui.cpp @@ -28,9 +28,9 @@ static const char description[] = static const char version[] = "0.1"; -static const KCmdLineOptions options[] = +static const TDECmdLineOptions options[] = { - KCmdLineLastOption + TDECmdLineLastOption }; int main( int argc, char** argv ) diff --git a/kexi/tests/newapi/main.cpp b/kexi/tests/newapi/main.cpp index fce635016..fb0bd6298 100644 --- a/kexi/tests/newapi/main.cpp +++ b/kexi/tests/newapi/main.cpp @@ -54,7 +54,7 @@ TQGuardedPtr driver; TDEApplication *app = 0; TDEInstance *instance = 0; -static KCmdLineOptions options[] = +static TDECmdLineOptions options[] = { { "test ", "Available tests:\n" @@ -89,7 +89,7 @@ static KCmdLineOptions options[] = { "+driver_name", "Driver name", 0}, { "+[db_name]", "Database name", 0}, { "+[sql_statement]", "Optional SQL statement (for parser test)", 0}, - KCmdLineLastOption + TDECmdLineLastOption }; #include "dbcreation_test.h" diff --git a/kformula/main.cc b/kformula/main.cc index 8e0c8881b..53fc878b8 100644 --- a/kformula/main.cc +++ b/kformula/main.cc @@ -25,10 +25,10 @@ #include "kformula_aboutdata.h" -static const KCmdLineOptions options[]= +static const TDECmdLineOptions options[]= { {"+[file]", I18N_NOOP("File to open"),0}, - KCmdLineLastOption + TDECmdLineLastOption }; extern "C" KFORMULA_EXPORT int kdemain( int argc, char **argv ) diff --git a/kivio/kiviopart/main.cpp b/kivio/kiviopart/main.cpp index 442e2b939..500c1b712 100644 --- a/kivio/kiviopart/main.cpp +++ b/kivio/kiviopart/main.cpp @@ -25,10 +25,10 @@ #include "kivio_aboutdata.h" -static const KCmdLineOptions options[]= +static const TDECmdLineOptions options[]= { {"+[file]", I18N_NOOP("File to open"),0}, - KCmdLineLastOption + TDECmdLineLastOption }; extern "C" KIVIO_EXPORT int kdemain( int argc, char **argv ) diff --git a/kplato/main.cc b/kplato/main.cc index 9c53afb01..c7c04ae77 100644 --- a/kplato/main.cc +++ b/kplato/main.cc @@ -27,10 +27,10 @@ namespace KPlato { -static const KCmdLineOptions options[]= +static const TDECmdLineOptions options[]= { {"+[file]", I18N_NOOP("File to open"),0}, - KCmdLineLastOption + TDECmdLineLastOption }; } //KPlato namespace diff --git a/kpresenter/main.cpp b/kpresenter/main.cpp index 96716370c..2425fb1ce 100644 --- a/kpresenter/main.cpp +++ b/kpresenter/main.cpp @@ -26,10 +26,10 @@ #include -static const KCmdLineOptions options[]= +static const TDECmdLineOptions options[]= { {"+[file]", I18N_NOOP("File to open"),0}, - KCmdLineLastOption + TDECmdLineLastOption }; extern "C" KPRESENTER_EXPORT int kdemain( int argc, char **argv ) diff --git a/kspread/main.cc b/kspread/main.cc index d04822682..3be6eb28b 100644 --- a/kspread/main.cc +++ b/kspread/main.cc @@ -25,10 +25,10 @@ using namespace KSpread; -static const KCmdLineOptions options[]= +static const TDECmdLineOptions options[]= { {"+[file]", I18N_NOOP("File to open"),0}, - KCmdLineLastOption + TDECmdLineLastOption }; extern "C" KSPREAD_EXPORT int kdemain( int argc, char **argv ) diff --git a/kugar/kudesigner/main.cpp b/kugar/kudesigner/main.cpp index 939f97649..199cbd64b 100644 --- a/kugar/kudesigner/main.cpp +++ b/kugar/kudesigner/main.cpp @@ -26,11 +26,11 @@ #include "kudesigner_aboutdata.h" -static const KCmdLineOptions options[] = +static const TDECmdLineOptions options[] = { {"+[file]", I18N_NOOP( "File to open" ), 0 }, - KCmdLineLastOption + TDECmdLineLastOption }; extern "C" KUGARDESIGNER_EXPORT int kdemain( int argc, char **argv ) diff --git a/kugar/part/main.cpp b/kugar/part/main.cpp index a846972ac..a81cf192f 100644 --- a/kugar/part/main.cpp +++ b/kugar/part/main.cpp @@ -21,11 +21,11 @@ #include "kugar_about.h" -static KCmdLineOptions options[] = +static TDECmdLineOptions options[] = { { "+[File]", I18N_NOOP( "File to open" ), 0 }, // INSERT YOUR COMMANDLINE OPTIONS HERE - KCmdLineLastOption + TDECmdLineLastOption }; extern "C" KUGAR_EXPORT int kdemain( int argc, char *argv[] ) diff --git a/kword/main.cpp b/kword/main.cpp index 8ef608649..6d2cf3911 100644 --- a/kword/main.cpp +++ b/kword/main.cpp @@ -22,10 +22,10 @@ #include #include "KWAboutData.h" -static const KCmdLineOptions options[]= +static const TDECmdLineOptions options[]= { {"+[file]", I18N_NOOP("File to open"),0}, - KCmdLineLastOption + TDECmdLineLastOption }; extern "C" KWORD_EXPORT int kdemain( int argc, char **argv ) diff --git a/lib/kformula/main.cc b/lib/kformula/main.cc index ed5bb1086..0fd9723cc 100644 --- a/lib/kformula/main.cc +++ b/lib/kformula/main.cc @@ -229,9 +229,9 @@ void ScrollView::cursorChanged(bool visible, bool /*selecting*/) } -static const KCmdLineOptions options[]= { +static const TDECmdLineOptions options[]= { { "+file", "File to open", 0 }, - KCmdLineLastOption + TDECmdLineLastOption }; int main(int argc, char** argv) diff --git a/lib/kofficecore/DESIGN b/lib/kofficecore/DESIGN index bc5d16cd4..2a04e9f5c 100644 --- a/lib/kofficecore/DESIGN +++ b/lib/kofficecore/DESIGN @@ -24,7 +24,7 @@ which is used to locate the application's own data Q: What is the "+[file]" option passed to TDECmdLineArgs? -A: KCmdLineOptions describe the TDECmdLineArgs. "+[file]" means that the +A: TDECmdLineOptions describe the TDECmdLineArgs. "+[file]" means that the command line arguments can be one or more file names, and that these arguments are optional. diff --git a/lib/kofficecore/KoApplication.cpp b/lib/kofficecore/KoApplication.cpp index d594e0a08..25fe00dc9 100644 --- a/lib/kofficecore/KoApplication.cpp +++ b/lib/kofficecore/KoApplication.cpp @@ -36,12 +36,12 @@ void tqt_generate_epsf( bool b ); -static const KCmdLineOptions options[]= +static const TDECmdLineOptions options[]= { {"print", I18N_NOOP("Only print and exit"),0}, {"template", I18N_NOOP("Open a new document with a template"), 0}, {"dpi ", I18N_NOOP("Override display DPI"), 0}, - KCmdLineLastOption + TDECmdLineLastOption }; bool KoApplication::m_starting = true; diff --git a/lib/koproperty/test/main.cpp b/lib/koproperty/test/main.cpp index 818d66379..dcebcaf5e 100644 --- a/lib/koproperty/test/main.cpp +++ b/lib/koproperty/test/main.cpp @@ -27,11 +27,11 @@ static const char description[] = "A test application for the KoProperty library static const char version[] = "0.2"; -static KCmdLineOptions options[] = +static TDECmdLineOptions options[] = { { "flat", "Flat display: don't display groups\n(useful for testing)", 0 }, { "ro", "Set all properties as read-only:\n(useful for testing read-only mode)", 0 }, - KCmdLineLastOption + TDECmdLineLastOption }; int main(int argc, char **argv) diff --git a/lib/kross/runner/main.cpp b/lib/kross/runner/main.cpp index e554fc238..436d7a7aa 100644 --- a/lib/kross/runner/main.cpp +++ b/lib/kross/runner/main.cpp @@ -112,9 +112,9 @@ int main(int argc, char **argv) // Initialize command line args TDECmdLineArgs::init(argc, argv, &about); // Tell which options are supported and parse them. - static KCmdLineOptions options[] = { + static TDECmdLineOptions options[] = { { "+file", I18N_NOOP("Scriptfile"), 0 }, - KCmdLineLastOption + TDECmdLineLastOption }; TDECmdLineArgs::addCmdLineOptions(options); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/lib/kross/test/main.cpp b/lib/kross/test/main.cpp index 275a9e93a..449116cb6 100644 --- a/lib/kross/test/main.cpp +++ b/lib/kross/test/main.cpp @@ -53,7 +53,7 @@ TDEApplication *app = 0; -static KCmdLineOptions options[] = +static TDECmdLineOptions options[] = { { "interpreter ", I18N_NOOP("Name of the interpreter being used"), "python" }, { "scriptfile ", I18N_NOOP("Script file to execute with the defined interpreter"), "testcase.py" }, diff --git a/tools/converter/koconverter.cpp b/tools/converter/koconverter.cpp index e937bb024..bf9b3994f 100644 --- a/tools/converter/koconverter.cpp +++ b/tools/converter/koconverter.cpp @@ -35,7 +35,7 @@ #include "koconverter.h" -static const KCmdLineOptions options[]= +static const TDECmdLineOptions options[]= { {"+in", I18N_NOOP("Input file"),0}, {"+out", I18N_NOOP("Output file"),0}, @@ -43,7 +43,7 @@ static const KCmdLineOptions options[]= {"batch", I18N_NOOP("Batch mode: do not show dialogs"),0}, {"interactive", I18N_NOOP("Interactive mode: show dialogs (default)"),0}, {"mimetype ", I18N_NOOP("Mimetype of the output file"),0}, - KCmdLineLastOption + TDECmdLineLastOption }; bool convert( const KURL & uIn, const TQString & /*inputFormat*/, const KURL & uOut, const TQString & outputFormat, const bool batch ) diff --git a/tools/kthesaurus/main.cc b/tools/kthesaurus/main.cc index d7d334797..9dd91a6e1 100644 --- a/tools/kthesaurus/main.cc +++ b/tools/kthesaurus/main.cc @@ -26,10 +26,10 @@ #include #include #include -static KCmdLineOptions options[] = +static TDECmdLineOptions options[] = { { "+[term]", I18N_NOOP("Term to search for when starting up"), 0 }, - KCmdLineLastOption + TDECmdLineLastOption }; extern "C" KOFFICETOOLS_EXPORT int kdemain(int argc, char **argv)