summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-06 19:36:08 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-06 19:36:08 -0600
commitea720a87cc64cfc09e53ff48303de43b4df1fb01 (patch)
treeb64fa773ad8102fa3a97806f79236f288fdde797
parent9df097f8104a2fb8bfb68dba339639697d6f75a9 (diff)
downloadkoffice-ea720a87cc64cfc09e53ff48303de43b4df1fb01.tar.gz
koffice-ea720a87cc64cfc09e53ff48303de43b4df1fb01.zip
Rename KCmd to avoid conflicts with KDE4
-rw-r--r--chalk/main.cc4
-rw-r--r--example/main.cc4
-rw-r--r--karbon/main.cc4
-rw-r--r--kchart/main.cc4
-rw-r--r--kexi/core/kexicmdlineargs.h4
-rwxr-xr-xkexi/doc/dev/CHANGELOG-Kexi-js2
-rw-r--r--kexi/formeditor/test/main.cpp4
-rw-r--r--kexi/kexidb/simplecommandlineapp.cpp22
-rw-r--r--kexi/kexidb/simplecommandlineapp.h4
-rw-r--r--kexi/plugins/macros/tests/komacrotest.cpp4
-rw-r--r--kexi/plugins/macros/tests/komacrotestgui.cpp4
-rw-r--r--kexi/tests/newapi/main.cpp4
-rw-r--r--kformula/main.cc4
-rw-r--r--kivio/kiviopart/main.cpp4
-rw-r--r--kplato/main.cc4
-rw-r--r--kpresenter/main.cpp4
-rw-r--r--kspread/main.cc4
-rw-r--r--kugar/kudesigner/main.cpp4
-rw-r--r--kugar/part/main.cpp4
-rw-r--r--kword/main.cpp4
-rw-r--r--lib/kformula/main.cc4
-rw-r--r--lib/kofficecore/DESIGN2
-rw-r--r--lib/kofficecore/KoApplication.cpp4
-rw-r--r--lib/koproperty/test/main.cpp4
-rw-r--r--lib/kross/runner/main.cpp4
-rw-r--r--lib/kross/test/main.cpp2
-rw-r--r--tools/converter/koconverter.cpp4
-rw-r--r--tools/kthesaurus/main.cc4
28 files changed, 62 insertions, 62 deletions
diff --git a/chalk/main.cc b/chalk/main.cc
index 2260aa72..33f59e5a 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 2aae1f4b..d8b8a537 100644
--- a/example/main.cc
+++ b/example/main.cc
@@ -26,10 +26,10 @@
#include "example_aboutdata.h"
#include <koffice_export.h>
-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 6c6296a2..3434e6b5 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 35dd041d..2d20e207 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 d67c5e61..c1bf80b3 100644
--- a/kexi/core/kexicmdlineargs.h
+++ b/kexi/core/kexicmdlineargs.h
@@ -25,7 +25,7 @@
#include <kcmdlineargs.h>
#include <klocale.h>
-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 31c32980..4f7243c6 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 d0142ec6..1120acce 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 5b3732a5..c1fdb861 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 <name>", I18N_NOOP("Database driver name"), 0 },
@@ -42,7 +42,7 @@ static KCmdLineOptions predefinedOptions[] =
{ "port <number>", I18N_NOOP("Server's port number"), 0 },
{ "s", 0, 0 },
{ "local-socket <filename>", 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<Connection> 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 64cc1382..fc189198 100644
--- a/kexi/kexidb/simplecommandlineapp.h
+++ b/kexi/kexidb/simplecommandlineapp.h
@@ -25,7 +25,7 @@
#include <kaboutdata.h>
-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 15fc9db1..afc9c98b 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 d651aa01..a0814f1f 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 fce63501..fb0bd629 100644
--- a/kexi/tests/newapi/main.cpp
+++ b/kexi/tests/newapi/main.cpp
@@ -54,7 +54,7 @@ TQGuardedPtr<KexiDB::Driver> driver;
TDEApplication *app = 0;
TDEInstance *instance = 0;
-static KCmdLineOptions options[] =
+static TDECmdLineOptions options[] =
{
{ "test <test_name>",
"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 8e0c8881..53fc878b 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 442e2b93..500c1b71 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 9c53afb0..c7c04ae7 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 96716370..2425fb1c 100644
--- a/kpresenter/main.cpp
+++ b/kpresenter/main.cpp
@@ -26,10 +26,10 @@
#include <klocale.h>
-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 d0482268..3be6eb28 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 939f9764..199cbd64 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 a846972a..a81cf192 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 8ef60864..6d2cf391 100644
--- a/kword/main.cpp
+++ b/kword/main.cpp
@@ -22,10 +22,10 @@
#include <dcopclient.h>
#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 ed5bb108..0fd9723c 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 bc5d16cd..2a04e9f5 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 d594e0a0..25fe00dc 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 <dpiX,dpiY>", 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 818d6637..dcebcaf5 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 e554fc23..436d7a7a 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 275a9e93..449116cb 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 <interpretername>", I18N_NOOP("Name of the interpreter being used"), "python" },
{ "scriptfile <filename>", 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 e937bb02..bf9b3994 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 <mime>", 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 d7d33479..9dd91a6e 100644
--- a/tools/kthesaurus/main.cc
+++ b/tools/kthesaurus/main.cc
@@ -26,10 +26,10 @@
#include <kglobal.h>
#include <klocale.h>
#include <koffice_export.h>
-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)