Rename KCmd to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 7bc058d1bf
commit ac437bde9b

@ -28,10 +28,10 @@
#include <iostream> #include <iostream>
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "+[prompt]", I18N_NOOP("prompt"), 0 }, { "+[prompt]", I18N_NOOP("prompt"), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };

@ -139,12 +139,12 @@ static int ShowAnnotateDialog(const TQString& fileName)
extern "C" KDE_EXPORT int kdemain(int argc, char **argv) extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
{ {
static KCmdLineOptions options[] = { static TDECmdLineOptions options[] = {
{ "+[directory]", I18N_NOOP("The sandbox to be loaded"), 0 }, { "+[directory]", I18N_NOOP("The sandbox to be loaded"), 0 },
{ "resolve <file>", I18N_NOOP("Show resolve dialog for the given file"), 0 }, { "resolve <file>", I18N_NOOP("Show resolve dialog for the given file"), 0 },
{ "log <file>", I18N_NOOP("Show log dialog for the given file"), 0 }, { "log <file>", I18N_NOOP("Show log dialog for the given file"), 0 },
{ "annotate <file>", I18N_NOOP("Show annotation dialog for the given file"), 0 }, { "annotate <file>", I18N_NOOP("Show annotation dialog for the given file"), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };
TDEAboutData about("cervisia", I18N_NOOP("Cervisia"), CERVISIA_VERSION, TDEAboutData about("cervisia", I18N_NOOP("Cervisia"), CERVISIA_VERSION,
I18N_NOOP("A CVS frontend"), TDEAboutData::License_GPL, I18N_NOOP("A CVS frontend"), TDEAboutData::License_GPL,

@ -12,10 +12,10 @@ static const char description[] =
static const char version[] = "v${APP_VERSION}"; static const char version[] = "v${APP_VERSION}";
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)

@ -11,10 +11,10 @@ static const char description[] =
static const char version[] = "v${APP_VERSION}"; static const char version[] = "v${APP_VERSION}";
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)

@ -173,10 +173,10 @@ void CatalogManagerInterface::updatedFile( TQCString url )
CatalogManagerApp::updatedFile(url); CatalogManagerApp::updatedFile(url);
} }
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{"project <configfile>",I18N_NOOP("File to load configuration from"),0}, {"project <configfile>",I18N_NOOP("File to load configuration from"),0},
KCmdLineLastOption TDECmdLineLastOption
}; };

@ -532,13 +532,13 @@ KBabelMW* KBabelInterface::findInstance( const KURL& url, const TQString& projec
return kb; return kb;
} }
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{"gotomsgid <msgid>",I18N_NOOP("Go to entry with msgid <msgid>"),0}, {"gotomsgid <msgid>",I18N_NOOP("Go to entry with msgid <msgid>"),0},
{"nosplash",I18N_NOOP("Disable splashscreen at startup"),0}, {"nosplash",I18N_NOOP("Disable splashscreen at startup"),0},
{"project <configfile>",I18N_NOOP("File to load configuration from"),0}, {"project <configfile>",I18N_NOOP("File to load configuration from"),0},
{"+[file]",I18N_NOOP("Files to open"),0}, {"+[file]",I18N_NOOP("Files to open"),0},
KCmdLineLastOption TDECmdLineLastOption
}; };

@ -100,10 +100,10 @@ KBabelDictApplication::~KBabelDictApplication()
delete(topLevel); delete(topLevel);
} }
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{"nosplash",I18N_NOOP("Disable splashscreen at startup"),0}, {"nosplash",I18N_NOOP("Disable splashscreen at startup"),0},
KCmdLineLastOption TDECmdLineLastOption
}; };

@ -32,14 +32,14 @@ static const char description[] =
I18N_NOOP("KBugBuster"); I18N_NOOP("KBugBuster");
// INSERT A DESCRIPTION FOR YOUR APPLICATION HERE // INSERT A DESCRIPTION FOR YOUR APPLICATION HERE
static const KCmdLineOptions options[] = static const TDECmdLineOptions options[] =
{ {
{"d", 0, 0}, {"d", 0, 0},
{"disconnected", I18N_NOOP("Start in disconnected mode"), 0}, {"disconnected", I18N_NOOP("Start in disconnected mode"), 0},
{"pkg", 0, 0}, {"pkg", 0, 0},
{"package <pkg>", I18N_NOOP("Start with the buglist for <package>"), 0}, {"package <pkg>", I18N_NOOP("Start with the buglist for <package>"), 0},
{"bug <br>", I18N_NOOP("Start with bug report <br>"), 0}, {"bug <br>", I18N_NOOP("Start with bug report <br>"), 0},
KCmdLineLastOption TDECmdLineLastOption
}; };
int main(int argc, char *argv[]) int main(int argc, char *argv[])

@ -558,7 +558,7 @@ void readExcludeFile(const char *name)
excludes->sort(); excludes->sort();
} }
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "x", 0, 0 }, { "x", 0, 0 },
{ "exclude <file>", "File containing symbols to exclude from output", 0}, { "exclude <file>", "File containing symbols to exclude from output", 0},
@ -573,7 +573,7 @@ static KCmdLineOptions options[] =
{"td", 0, 0}, {"td", 0, 0},
{"treedepth <value>", {"treedepth <value>",
"Don't print subtrees that are deeper than <value>", 0}, "Don't print subtrees that are deeper than <value>", 0},
KCmdLineLastOption TDECmdLineLastOption
}; };
int main(int argc, char *argv[]) int main(int argc, char *argv[])

@ -34,7 +34,7 @@ static const char description[] =
static const char version[] = "3.4"; static const char version[] = "3.4";
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "c", I18N_NOOP( "This will compare URL1 with URL2" ), 0 }, { "c", I18N_NOOP( "This will compare URL1 with URL2" ), 0 },
{ "o", I18N_NOOP( "This will open URL1 and expect it to be diff output. URL1 can also be a '-' and then it will read from standard input. Can be used for instance for cvs diff | kompare -o -. Kompare will do a check to see if it can find the original file(s) and then blend the original file(s) into the diffoutput and show that in the viewer. -n disables the check." ), 0 }, { "o", I18N_NOOP( "This will open URL1 and expect it to be diff output. URL1 can also be a '-' and then it will read from standard input. Can be used for instance for cvs diff | kompare -o -. Kompare will do a check to see if it can find the original file(s) and then blend the original file(s) into the diffoutput and show that in the viewer. -n disables the check." ), 0 },
@ -44,7 +44,7 @@ static KCmdLineOptions options[] =
{ "+[URL1 [URL2]]",0 , 0 }, { "+[URL1 [URL2]]",0 , 0 },
{ "+-", 0, 0 }, { "+-", 0, 0 },
// { "", I18N_NOOP( "" ), 0 }, // { "", I18N_NOOP( "" ), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };
int main(int argc, char *argv[]) int main(int argc, char *argv[])

@ -26,9 +26,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
// INSERT YOUR COMMANDLINE OPTIONS HERE // INSERT YOUR COMMANDLINE OPTIONS HERE
}; };

@ -26,10 +26,10 @@
#include <kstandarddirs.h> #include <kstandarddirs.h>
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "+command", I18N_NOOP("Specifies the command to run"), 0 }, { "+command", I18N_NOOP("Specifies the command to run"), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };

@ -26,7 +26,7 @@
#include <kcmdlineargs.h> #include <kcmdlineargs.h>
#include <klocale.h> #include <klocale.h>
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "+[URL]", I18N_NOOP( "Document to open" ), 0 }, { "+[URL]", I18N_NOOP( "Document to open" ), 0 },
{ "s",0,0 }, { "s",0,0 },
@ -35,7 +35,7 @@ static KCmdLineOptions options[] =
{ "screenshotwidth <int>", I18N_NOOP( "Screenshot width" ), "-1" }, { "screenshotwidth <int>", I18N_NOOP( "Screenshot width" ), "-1" },
{ "h",0,0 }, { "h",0,0 },
{ "screenshotheight <int>", I18N_NOOP( "Screenshot height" ), "-1" }, { "screenshotheight <int>", I18N_NOOP( "Screenshot height" ), "-1" },
KCmdLineLastOption TDECmdLineLastOption
}; };
int main(int argc, char **argv) int main(int argc, char **argv)

@ -33,11 +33,11 @@
#include "tracedata.h" #include "tracedata.h"
#include "loader.h" #include "loader.h"
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "r <exec>", I18N_NOOP("Run <exec> under cachegrind"), 0 }, { "r <exec>", I18N_NOOP("Run <exec> under cachegrind"), 0 },
{ "+[trace]", I18N_NOOP("Show information of this trace"), 0 }, { "+[trace]", I18N_NOOP("Show information of this trace"), 0 },
KCmdLineLastOption // End of options. TDECmdLineLastOption // End of options.
}; };
int main( int argc, char ** argv ) int main( int argc, char ** argv )

@ -260,7 +260,7 @@ void SvnHelper::finished() {
kapp->quit(); kapp->quit();
} }
static KCmdLineOptions options[] = { static TDECmdLineOptions options[] = {
{ "u", I18N_NOOP("Update given URL"), 0 }, { "u", I18N_NOOP("Update given URL"), 0 },
{ "c", I18N_NOOP("Commit given URL"), 0 }, { "c", I18N_NOOP("Commit given URL"), 0 },
{ "C", I18N_NOOP("Checkout in given directory"), 0 }, { "C", I18N_NOOP("Checkout in given directory"), 0 },
@ -271,7 +271,7 @@ static KCmdLineOptions options[] = {
{ "m", I18N_NOOP("Merge changes between two branches"), 0 }, { "m", I18N_NOOP("Merge changes between two branches"), 0 },
{ "D", I18N_NOOP("Show locally made changements with diff"), 0 }, { "D", I18N_NOOP("Show locally made changements with diff"), 0 },
{"!+URL", I18N_NOOP("URL to update/commit/add/delete from Subversion"), 0 }, {"!+URL", I18N_NOOP("URL to update/commit/add/delete from Subversion"), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };
int main(int argc, char **argv) { int main(int argc, char **argv) {

@ -35,10 +35,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 )

@ -38,12 +38,12 @@ static const char description[] =
static const char version[] = "0.1"; static const char version[] = "0.1";
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{"query [regexp]", I18N_NOOP("Only run modules which filename match the regexp."), "^tdeunittest_.*\\.la$"}, {"query [regexp]", I18N_NOOP("Only run modules which filename match the regexp."), "^tdeunittest_.*\\.la$"},
{"folder [folder]", I18N_NOOP("Only run tests modules which are found in the folder. Use the query option to select modules."), "."}, {"folder [folder]", I18N_NOOP("Only run tests modules which are found in the folder. Use the query option to select modules."), "."},
{ "enable-dbgcap", I18N_NOOP("Enables debug capturing. You typically use this option when you use the GUI."), 0}, { "enable-dbgcap", I18N_NOOP("Enables debug capturing. You typically use this option when you use the GUI."), 0},
KCmdLineLastOption TDECmdLineLastOption
}; };

@ -42,12 +42,12 @@ static const char description[] =
// INSERT A DESCRIPTION FOR YOUR APPLICATION HERE // INSERT A DESCRIPTION FOR YOUR APPLICATION HERE
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "+[File]", I18N_NOOP("File to transform"), 0 }, { "+[File]", I18N_NOOP("File to transform"), 0 },
{ "xslt <url>", I18N_NOOP("The XSLT file to use"), 0}, { "xslt <url>", I18N_NOOP("The XSLT file to use"), 0},
// INSERT YOUR COMMANDLINE OPTIONS HERE // INSERT YOUR COMMANDLINE OPTIONS HERE
KCmdLineLastOption TDECmdLineLastOption
}; };
int main(int argc, char *argv[]) int main(int argc, char *argv[])

@ -35,14 +35,14 @@ static const char description[] =
/** /**
* @todo Add options to use the documentation generators from command line. * @todo Add options to use the documentation generators from command line.
*/ */
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "+[File]", I18N_NOOP("File to open"), 0 }, { "+[File]", I18N_NOOP("File to open"), 0 },
{ "export <extension>", I18N_NOOP("export diagrams to extension and exit"), 0}, { "export <extension>", I18N_NOOP("export diagrams to extension and exit"), 0},
{ "directory <url>", I18N_NOOP("the local directory to save the exported diagrams in"), I18N_NOOP("the directory of the file")}, { "directory <url>", I18N_NOOP("the local directory to save the exported diagrams in"), I18N_NOOP("the directory of the file")},
{ "use-folders", I18N_NOOP("keep the tree structure used to store the views in the document in the target directory"), 0}, { "use-folders", I18N_NOOP("keep the tree structure used to store the views in the document in the target directory"), 0},
// INSERT YOUR COMMANDLINE OPTIONS HERE // INSERT YOUR COMMANDLINE OPTIONS HERE
KCmdLineLastOption TDECmdLineLastOption
}; };
/** /**

Loading…
Cancel
Save