Rename KCmd to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 8cb8ba0f95
commit 3a3518bb00

@ -31,10 +31,10 @@ static const char description[] =
static const char version[] = APP_VERSION; static const char version[] = APP_VERSION;
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
// { "+[URL]", I18N_NOOP( "Document to open" ), 0 }, // { "+[URL]", I18N_NOOP( "Document to open" ), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };
#ifdef HAVE_FACILE #ifdef HAVE_FACILE

@ -25,10 +25,10 @@
static const char description[] = I18N_NOOP("Form-based tests and exams"); static const char description[] = I18N_NOOP("Form-based tests and exams");
static const char version[] = "1.3"; static const char version[] = "1.3";
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "+file", I18N_NOOP("File to load"), 0 }, { "+file", I18N_NOOP("File to load"), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };
int main(int argc, char *argv[]) int main(int argc, char *argv[])

@ -26,10 +26,10 @@
static const char description[] = I18N_NOOP("Form-based tests and exams builder"); static const char description[] = I18N_NOOP("Form-based tests and exams builder");
static const char version[] = "1.2.0"; static const char version[] = "1.2.0";
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "+file", I18N_NOOP("File to load"), 0 }, { "+file", I18N_NOOP("File to load"), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };
int main(int argc, char *argv[]) int main(int argc, char *argv[])

@ -33,10 +33,10 @@ static const char description[] =
static const char version[] = "0.1"; static const char version[] = "0.1";
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
// { "+[URL]", I18N_NOOP( "Document to open" ), 0 }, // { "+[URL]", I18N_NOOP( "Document to open" ), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };
int main(int argc, char **argv) int main(int argc, char **argv)

@ -29,14 +29,14 @@
#include "aboutdata.h" #include "aboutdata.h"
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "c", 0, 0 }, { "c", 0, 0 },
{ "convert-to-native", I18N_NOOP( "Do not show a GUI. Convert the specified file to the native Kig format. Output goes to stdout unless --outfile is specified." ), 0 }, { "convert-to-native", I18N_NOOP( "Do not show a GUI. Convert the specified file to the native Kig format. Output goes to stdout unless --outfile is specified." ), 0 },
{ "o", 0, 0 }, { "o", 0, 0 },
{ "outfile <file>", I18N_NOOP( "File to output the created native file to. '-' means output to stdout. Default is stdout as well." ), 0 }, { "outfile <file>", I18N_NOOP( "File to output the created native file to. '-' means output to stdout. Default is stdout as well." ), 0 },
{ "+[URL]", I18N_NOOP( "Document to open" ), 0 }, { "+[URL]", I18N_NOOP( "Document to open" ), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };
class KigApplication class KigApplication

@ -31,9 +31,9 @@ void noMessageOutput(TQtMsgType, const char *)
{ {
} }
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
KCmdLineLastOption TDECmdLineLastOption
// INSERT YOUR COMMANDLINE OPTIONS HERE // INSERT YOUR COMMANDLINE OPTIONS HERE
}; };

@ -24,9 +24,9 @@ static const char description[] =
// INSERT A DESCRIPTION FOR YOUR APPLICATION HERE // INSERT A DESCRIPTION FOR YOUR APPLICATION HERE
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
KCmdLineLastOption TDECmdLineLastOption
}; };
int main(int argc, char *argv[]) int main(int argc, char *argv[])

@ -37,10 +37,10 @@ static const char description[] =
static const char version[] = "1.5.1"; static const char version[] = "1.5.1";
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
// { "+[URL]", I18N_NOOP( "Document to open" ), 0 }, // { "+[URL]", I18N_NOOP( "Document to open" ), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };
int main(int argc, char **argv) int main(int argc, char **argv)

@ -42,10 +42,10 @@
static const char description[] = static const char description[] =
I18N_NOOP( "Mathematical function plotter for TDE" ); I18N_NOOP( "Mathematical function plotter for TDE" );
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "+[URL]", I18N_NOOP( "File to open" ), 0 }, { "+[URL]", I18N_NOOP( "File to open" ), 0 },
KCmdLineLastOption TDECmdLineLastOption
// INSERT YOUR COMMANDLINE OPTIONS HERE // INSERT YOUR COMMANDLINE OPTIONS HERE
}; };

@ -29,9 +29,9 @@
static const char description[] = static const char description[] =
I18N_NOOP( "A program to improve your skills in calculating with percentages" ); I18N_NOOP( "A program to improve your skills in calculating with percentages" );
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
KCmdLineLastOption TDECmdLineLastOption
}; };
int main( int argc, char *argv[] ) int main( int argc, char *argv[] )

@ -37,7 +37,7 @@ static const char notice[] =
I18N_NOOP("Some images in KStars are for non-commercial use only. See README.images."); I18N_NOOP("Some images in KStars are for non-commercial use only. See README.images.");
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "!dump", I18N_NOOP( "Dump sky image to file" ), 0 }, { "!dump", I18N_NOOP( "Dump sky image to file" ), 0 },
{ "script ", I18N_NOOP( "Script to execute" ), 0 }, { "script ", I18N_NOOP( "Script to execute" ), 0 },
@ -46,7 +46,7 @@ static KCmdLineOptions options[] =
{ "filename ", I18N_NOOP( "Filename for sky image" ), "kstars.png" }, { "filename ", I18N_NOOP( "Filename for sky image" ), "kstars.png" },
{ "date ", I18N_NOOP( "Date and time" ), "" }, { "date ", I18N_NOOP( "Date and time" ), "" },
{ "!paused", I18N_NOOP( "Start with clock paused" ), 0 }, { "!paused", I18N_NOOP( "Start with clock paused" ), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };
int main(int argc, char *argv[]) int main(int argc, char *argv[])

@ -21,9 +21,9 @@ static const char description[] =
static const char version[] = "1.5.3"; static const char version[] = "1.5.3";
static KCmdLineOptions options[] = { static TDECmdLineOptions options[] = {
{ "+[URL]", I18N_NOOP( "Training file to open" ), 0 }, { "+[URL]", I18N_NOOP( "Training file to open" ), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };
int main(int argc, char **argv) int main(int argc, char **argv)

@ -32,14 +32,14 @@ static const char copyright[] = I18N_NOOP("(C) 2003 The KTurtle Authors");
static const char website[] = "http://edu.kde.org/kturtle"; static const char website[] = "http://edu.kde.org/kturtle";
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
/// @todo so some about the command line arguments... Something like: /// @todo so some about the command line arguments... Something like:
// { "e <argument>", I18N_NOOP( "sets the folder with the examples to <argument>" ), 0 } // { "e <argument>", I18N_NOOP( "sets the folder with the examples to <argument>" ), 0 }
// { "t <argument>", I18N_NOOP( "sets the xml file containing the translatiosns of the Logo commands" ), 0 } // { "t <argument>", I18N_NOOP( "sets the xml file containing the translatiosns of the Logo commands" ), 0 }
// { "h <argument>", I18N_NOOP( "sets the xml file containing the highlightstyle" ), 0 } // { "h <argument>", I18N_NOOP( "sets the xml file containing the highlightstyle" ), 0 }
// { "+[URL]", I18N_NOOP( "A Logo file to open" ), 0 }, // { "+[URL]", I18N_NOOP( "A Logo file to open" ), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };

@ -23,10 +23,10 @@
static const char description[] = static const char description[] =
I18N_NOOP("KVerbos"); I18N_NOOP("KVerbos");
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "+[File]", I18N_NOOP("File to open"), 0 }, { "+[File]", I18N_NOOP("File to open"), 0 },
KCmdLineLastOption TDECmdLineLastOption
// INSERT YOUR COMMANDLINE OPTIONS HERE // INSERT YOUR COMMANDLINE OPTIONS HERE
}; };

@ -31,10 +31,10 @@
int main(int argc, char* argv[]) { int main(int argc, char* argv[]) {
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ I18N_NOOP("+[file]"), I18N_NOOP("Document file to open"), 0 }, { I18N_NOOP("+[file]"), I18N_NOOP("Document file to open"), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };
static const char description[] = I18N_NOOP("Vocabulary Trainer"); static const char description[] = I18N_NOOP("Vocabulary Trainer");

@ -23,7 +23,7 @@
static const char *description = I18N_NOOP("A powerful flashcard and vocabulary learning program"); static const char *description = I18N_NOOP("A powerful flashcard and vocabulary learning program");
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "m", 0, 0 }, { "m", 0, 0 },
{ "mode <number>", I18N_NOOP("A number 1-5 corresponding to the \nentries in the Mode menu"), 0 }, { "mode <number>", I18N_NOOP("A number 1-5 corresponding to the \nentries in the Mode menu"), 0 },

@ -6,9 +6,9 @@
static const char description[] = I18N_NOOP("ExtDatePicker test program"); static const char description[] = I18N_NOOP("ExtDatePicker test program");
static const char notice[] = I18N_NOOP("Compares KDatePicker and ExtDatePicker"); static const char notice[] = I18N_NOOP("Compares KDatePicker and ExtDatePicker");
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
KCmdLineLastOption TDECmdLineLastOption
}; };
int main( int argc, char *argv[] ) int main( int argc, char *argv[] )

Loading…
Cancel
Save