diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/KCmdLineArgs.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KCmdLineArgs.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kdejava/koala/org/kde/koala/KCmdLineArgs.java b/kdejava/koala/org/kde/koala/KCmdLineArgs.java index 747d7420..4a227d2d 100644 --- a/kdejava/koala/org/kde/koala/KCmdLineArgs.java +++ b/kdejava/koala/org/kde/koala/KCmdLineArgs.java @@ -3,7 +3,7 @@ package org.kde.koala; import org.kde.qt.Qt; import org.kde.qt.QtSupport; -import org.kde.qt.QDataStream; +import org.kde.qt.TQDataStream; import java.util.ArrayList; /** @@ -41,7 +41,7 @@ import java.util.ArrayList; for(int i = 0; i < args.count(); i++) // Counting start at 0! { // don't forget to convert to Unicode! - openFile( QFile.decodeName( args.arg(i))); + openFile( TQFile.decodeName( args.arg(i))); // Or more convenient: // openURL( args.url(i)); } @@ -69,9 +69,9 @@ import java.util.ArrayList; { "f", 0, 0 }, { "option7 \<speed>", I18N_NOOP("'--option7 speed' is the same as '-f speed'"), 0 }, { "!option8 \<cmd>", I18N_NOOP("All options following this one will be treated as arguments"), 0 }, - { "+file", I18N_NOOP("A required argument 'file'"), 0 }, + { "+file", I18N_NOOP("A retquired argument 'file'"), 0 }, { "+[arg1]", I18N_NOOP("An optional argument 'arg1'"), 0 }, - { "!+command", I18N_NOOP("A required argument 'command', that can contain multiple words, even starting with '-'"), 0 }, + { "!+command", I18N_NOOP("A retquired argument 'command', that can contain multiple words, even starting with '-'"), 0 }, { "", I18N_NOOP("Additional help text not associated with any particular option") 0 }, // End of options. } @@ -249,7 +249,7 @@ public class KCmdLineArgs implements QtSupport { @param _description A short description of what your application is about. @param _version A version. @param noKApp Set this true to not add commandline options for - QApplication / KApplication + TQApplication / KApplication @short Initialize class. */ public static native void init(String[] _argv, String _appname, String programName, String _description, String _version, boolean noKApp); @@ -258,11 +258,11 @@ public class KCmdLineArgs implements QtSupport { Initialize class. This function should be called as the very first thing in your application. It uses KAboutData to replace some of the - arguments that would otherwise be required. + arguments that would otherwise be retquired. @param _argv As passed to <code>main</code>(...). @param about A KAboutData object describing your program. @param noKApp Set this true to not add commandline options for - QApplication / KApplication + TQApplication / KApplication @short Initialize class. */ public static native void init(String[] _argv, KAboutData about, boolean noKApp); @@ -297,7 +297,7 @@ public class KCmdLineArgs implements QtSupport { </pre> <li> - "option1" is an option that requires an additional argument, + "option1" is an option that retquires an additional argument, but if one is not provided, it uses "my_extra_arg". </li> @@ -318,7 +318,7 @@ public class KCmdLineArgs implements QtSupport { "+file" specifies an argument. The '+' is removed. If your program doesn't specify that it can use arguments your program will abort when an argument is passed to it. Note that the reverse is not - true. If required, you must check yourself the number of arguments + true. If retquired, you must check yourself the number of arguments specified by the user: <pre> KCmdLineArgs args = KCmdLineArgs.parsedArgs(); @@ -455,7 +455,7 @@ public class KCmdLineArgs implements QtSupport { Load arguments from a stream. @short Load arguments from a stream. */ - public static native void loadAppArgs(QDataStream arg1); + public static native void loadAppArgs(TQDataStream arg1); /** Add standard option --tempfile @short Add standard option --tempfile |