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?
Thanks.
Darrell
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
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
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
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!
Yes, helps me to patch the --help output from the command line. The code looks like spaghetti when I try to follow anything around the whole code base. I'm sure the trail is obvious to you....
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!
Updated in GIT hash 554196e4. :)
Darrell