diff options
Diffstat (limited to 'src/common/cli')
-rw-r--r-- | src/common/cli/cli_main.cpp | 16 | ||||
-rw-r--r-- | src/common/cli/cli_main.h | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/common/cli/cli_main.cpp b/src/common/cli/cli_main.cpp index 3adb61d..633d700 100644 --- a/src/common/cli/cli_main.cpp +++ b/src/common/cli/cli_main.cpp @@ -46,7 +46,7 @@ bool CLI::isProperty(const TQString &s) } //----------------------------------------------------------------------------- -const KCmdLineOptions STANDARD_OPTIONS[] = { +const TDECmdLineOptions STANDARD_OPTIONS[] = { { "c", 0, 0 }, { "command <name>", I18N_NOOP("Perform the requested command."), 0 }, { "command-list", I18N_NOOP("Return the list of recognized commands."), 0 }, @@ -55,19 +55,19 @@ const KCmdLineOptions STANDARD_OPTIONS[] = { { "max-debug", I18N_NOOP("Display all debug messages."), 0 }, { "lowlevel-debug", I18N_NOOP("Display low level debug messages."), 0 }, { "quiet", I18N_NOOP("Do not display messages."), 0 }, - KCmdLineLastOption + TDECmdLineLastOption }; -const KCmdLineOptions FORCE_OPTIONS[] = { +const TDECmdLineOptions FORCE_OPTIONS[] = { { "f", 0, 0 }, { "force", I18N_NOOP("Overwrite files and answer \"yes\" to questions."), 0 }, - KCmdLineLastOption + TDECmdLineLastOption }; -const KCmdLineOptions INTERACTIVE_OPTIONS[] = { +const TDECmdLineOptions INTERACTIVE_OPTIONS[] = { { "i", 0, 0 }, { "cli", I18N_NOOP("Interactive mode"), 0 }, - KCmdLineLastOption + TDECmdLineLastOption }; CLI::OptionList::OptionList(Properties properties) @@ -75,7 +75,7 @@ CLI::OptionList::OptionList(Properties properties) init(properties); } -CLI::OptionList::OptionList(Properties properties, const KCmdLineOptions *options) +CLI::OptionList::OptionList(Properties properties, const TDECmdLineOptions *options) { init(properties); for (uint i=0; options[i].name; i++) append(options[i]); @@ -131,7 +131,7 @@ void CLI::MainBase::init() CLI::OptionList CLI::MainBase::optionList(const char *fileDescription) const { OptionList list(_properties, OPTIONS); - KCmdLineOptions opt; + TDECmdLineOptions opt; for (uint i=0; PROPERTY_DATA[i].name; i++) { opt.description = 0; opt.def = 0; diff --git a/src/common/cli/cli_main.h b/src/common/cli/cli_main.h index 19852c3..1b33c06 100644 --- a/src/common/cli/cli_main.h +++ b/src/common/cli/cli_main.h @@ -20,7 +20,7 @@ enum Property { NoProperty = 0, HasForce = 1, HasInteractiveMode = 2 }; TQ_DECLARE_FLAGS(Properties, Property) TQ_DECLARE_OPERATORS_FOR_FLAGS(Properties) -extern const KCmdLineOptions OPTIONS[]; +extern const TDECmdLineOptions OPTIONS[]; //----------------------------------------------------------------------------- struct CommandData { const char *name; @@ -48,7 +48,7 @@ class OptionList : public Piklab::OptionList { public: OptionList(Properties properties); - OptionList(Properties properties, const KCmdLineOptions *options); + OptionList(Properties properties, const TDECmdLineOptions *options); private: void init(Properties properties); |