Rename KCmd to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 11 years ago
parent 2f859f842a
commit 2e05692480

@ -30,7 +30,7 @@
#include <kcmdlineargs.h> #include <kcmdlineargs.h>
#include <kurl.h> #include <kurl.h>
static const KCmdLineOptions options[] = static const TDECmdLineOptions options[] =
{ {
{"silent", "Enable Parser debug output", 0}, {"silent", "Enable Parser debug output", 0},
{"!debug", "Disable output of the generated AST", 0}, {"!debug", "Disable output of the generated AST", 0},

@ -32,10 +32,10 @@ static const char description[] =
static const char version[] = "0.2"; static const char version[] = "0.2";
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)

@ -13,9 +13,9 @@ static const char description[] =
static const char version[] = "0.1"; static const char version[] = "0.1";
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
KCmdLineLastOption TDECmdLineLastOption
}; };
int main (int argc, char *argv[]) int main (int argc, char *argv[])

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

@ -18,7 +18,7 @@ int main(int argc, char **argv)
about.addAuthor( ki18n("%{AUTHOR}"), KLocalizedString(), "%{EMAIL}" ); about.addAuthor( ki18n("%{AUTHOR}"), KLocalizedString(), "%{EMAIL}" );
TDECmdLineArgs::init(argc, argv, &about); TDECmdLineArgs::init(argc, argv, &about);
KCmdLineOptions options; TDECmdLineOptions options;
options.add("+[URL]", ki18n( "Document to open" )); options.add("+[URL]", ki18n( "Document to open" ));
TDECmdLineArgs::addCmdLineOptions(options); TDECmdLineArgs::addCmdLineOptions(options);
TDEApplication app; TDEApplication app;

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

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

@ -9,10 +9,10 @@ static const char description[] = I18N_NOOP("A TDE Application");
static const char version[] = "%{VERSION}"; static const char version[] = "%{VERSION}";
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "+[URL]", I18N_NOOP( "Document to open" ), 0 }, { "+[URL]", I18N_NOOP( "Document to open" ), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };

@ -12,10 +12,10 @@
#include "%{APPNAMELC}_aboutdata.h" #include "%{APPNAMELC}_aboutdata.h"
static const KCmdLineOptions options[]= static const TDECmdLineOptions options[]=
{ {
{"+[file]", I18N_NOOP("File to open"),0}, {"+[file]", I18N_NOOP("File to open"),0},
KCmdLineLastOption TDECmdLineLastOption
}; };
int main( int argc, char **argv ) int main( int argc, char **argv )

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

@ -13,10 +13,10 @@ I18N_NOOP("A simple tdemdi app");
static const char version[] = "0.0.1"; static const char version[] = "0.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)

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

@ -443,11 +443,11 @@ void ProgressDialog::okClicked()
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
static const KCmdLineOptions options[] = static const TDECmdLineOptions options[] =
{ {
{ "c", I18N_NOOP( "Update user's htdig configuration file only" ), 0 }, { "c", I18N_NOOP( "Update user's htdig configuration file only" ), 0 },
{ "i", I18N_NOOP( "-c and generate index" ), 0 }, { "i", I18N_NOOP( "-c and generate index" ), 0 },
KCmdLineLastOption TDECmdLineLastOption
}; };
TDEAboutData aboutData("tdevelop-htdig", I18N_NOOP("TDevelop ht://Dig Indexer"), TDEAboutData aboutData("tdevelop-htdig", I18N_NOOP("TDevelop ht://Dig Indexer"),

@ -33,7 +33,7 @@ Example:
#include "myappextension.h" #include "myappextension.h"
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "profile <profile>", I18N_NOOP("Profile to load"), 0 }, { "profile <profile>", I18N_NOOP("Profile to load"), 0 },
{ 0,0,0 } { 0,0,0 }

@ -20,7 +20,7 @@
#include "kdevideextension.h" #include "kdevideextension.h"
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "profile <profile>", I18N_NOOP("Profile to load"), 0 }, { "profile <profile>", I18N_NOOP("Profile to load"), 0 },
{ "+file(s)", I18N_NOOP("Files to load"), 0 }, { "+file(s)", I18N_NOOP("Files to load"), 0 },

@ -20,7 +20,7 @@
#include "kdevassistantextension.h" #include "kdevassistantextension.h"
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "profile <profile>", I18N_NOOP("Profile to load"), 0 }, { "profile <profile>", I18N_NOOP("Profile to load"), 0 },
/* { "+file(s)", I18N_NOOP("Files to load"), 0 },*/ /* { "+file(s)", I18N_NOOP("Files to load"), 0 },*/

@ -23,9 +23,9 @@
#include "profileeditor.h" #include "profileeditor.h"
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
KCmdLineLastOption TDECmdLineLastOption
}; };
int main(int argc, char **argv) int main(int argc, char **argv)

Loading…
Cancel
Save