trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: April 2012

Re: [trinity-devel] Finding "KDE"

From: "Timothy Pearson" <kb9vqf@...>
Date: Thu, 19 Apr 2012 16:22:40 -0500
>> When any TDE command is run in a terminal with the --help parameter,
>> something like this
>> appears:
>>
>> Generic options:
>>   --help           Show help about options
>>   --help-qt        Show Qt specific options
>>   --help-kde       Show KDE specific options
>>   --help-all       Show all options
>>   --author         Show author information
>>   -v, --version    Show version information
>>   --license        Show license information
>>   --End of options
>>
>> Options:
>> ...
>> ...
>>
>> The first section is generic and common to all apps.
>>
>> I want to update the "Show KDE specific options" string for
>> branding to "Show TDE specific options."
>>
>> My challenge: I can't figure out where "KDE" is assigned.
>>
>> The common generic help strings are defined in
>> tdelibs/tdecore/kcmdlineargs.cpp.
>>
>> Line 828 shows this:
>>
>> TQString desc = i18n("Show %1 specific options").arg(args->name);
>>
>> Thus KDE is a string parameter. Where is "name" defined? In
>> one of the included headers, but which one and what is an
>> intelligent way to find that assignment?
>
> Anybody?
>
> Darrell

It looks like "KDE" and "kde" are both defined several places in
kcmdlineargs.cpp for parsing purposes.  Furthermore, the following files
in tdelibs alone use or provide this string in the command line context:
tdelibs/tdecore/kcmdlineargs.cpp
tdelibs/tdecore/kuniqueapplication.cpp
tdelibs/tdecore/kapplication.cpp

To directly answer your question, the text string itself is defined in
kapplication.cpp:1566, but modifying the text string means that the other
files I mentioned must also be modified.

Hope this helps!

Tim