diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-21 18:50:21 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-21 18:50:21 -0600 |
commit | 427847240b11c1733dd9c259c613d68a6405fe68 (patch) | |
tree | 71a03608b683f39cbb48ea79f9c40dc7a320019e /kdejava/koala/test | |
parent | 3b8c3eec420595c4532e4c4f2282b6bc2802d5a9 (diff) | |
download | tdebindings-427847240b11c1733dd9c259c613d68a6405fe68.tar.gz tdebindings-427847240b11c1733dd9c259c613d68a6405fe68.zip |
Rename KCmdLineArgs to TDECmdLineArgs to avoid conflicts with KDE4
Diffstat (limited to 'kdejava/koala/test')
-rw-r--r-- | kdejava/koala/test/dcop/Test.java | 2 | ||||
-rw-r--r-- | kdejava/koala/test/kbase/KBase.java | 6 | ||||
-rw-r--r-- | kdejava/koala/test/kblend/KBlendTest.java | 2 | ||||
-rw-r--r-- | kdejava/koala/test/kcharselect/KCharSelectTest.java | 2 | ||||
-rw-r--r-- | kdejava/koala/test/kcombobox/KComboBoxTest.java | 6 | ||||
-rw-r--r-- | kdejava/koala/test/kdatepicker/KDatePickTest.java | 2 | ||||
-rw-r--r-- | kdejava/koala/test/kfontdialog/KFontDialogTest.java | 6 | ||||
-rw-r--r-- | kdejava/koala/test/khelpers/Main.java | 6 | ||||
-rw-r--r-- | kdejava/koala/test/kioslave/KioslaveTest.java | 10 | ||||
-rw-r--r-- | kdejava/koala/test/kmenu/KdeMenuSample.java | 4 | ||||
-rw-r--r-- | kdejava/koala/test/kprogress/KProgressTest.java | 6 | ||||
-rw-r--r-- | kdejava/koala/test/ksystemtray/Test.java | 4 | ||||
-rw-r--r-- | kdejava/koala/test/simplebrowser/Main.java | 2 |
13 files changed, 29 insertions, 29 deletions
diff --git a/kdejava/koala/test/dcop/Test.java b/kdejava/koala/test/dcop/Test.java index 17af906a..15df3840 100644 --- a/kdejava/koala/test/dcop/Test.java +++ b/kdejava/koala/test/dcop/Test.java @@ -15,7 +15,7 @@ public class Test{ KAboutData aboutData = new KAboutData( "test", "Test", "0.1", description, KAboutData.License_GPL, "(C) 2002 Gert-Jan van der Heiden"); - KCmdLineArgs.init( argv, aboutData ); + TDECmdLineArgs.init( argv, aboutData ); TDEApplication app = new TDEApplication(); app.dcopClient().registerAs("JavaTest", false); diff --git a/kdejava/koala/test/kbase/KBase.java b/kdejava/koala/test/kbase/KBase.java index 6401dd80..ab163a40 100644 --- a/kdejava/koala/test/kbase/KBase.java +++ b/kdejava/koala/test/kbase/KBase.java @@ -558,8 +558,8 @@ public static void main(String[] cmdLineArgs) VERSION, description, KAboutData.License_GPL, "(c) 2001, Richard Dale"); aboutData.addAuthor("Richard Dale",null, "Lost_Highway@tipitina.demon.co.uk"); - KCmdLineArgs.init( cmdLineArgs, aboutData ); - KCmdLineArgs.addCmdLineOptions( options ); // Add our own options. + TDECmdLineArgs.init( cmdLineArgs, aboutData ); + TDECmdLineArgs.addCmdLineOptions( options ); // Add our own options. TDEApplication app = new TDEApplication(); @@ -571,7 +571,7 @@ public static void main(String[] cmdLineArgs) { KBase kbase = new KBase(); kbase.show(); - KCmdLineArgs args = KCmdLineArgs.parsedArgs(); + TDECmdLineArgs args = TDECmdLineArgs.parsedArgs(); if (args.count() > 0) { diff --git a/kdejava/koala/test/kblend/KBlendTest.java b/kdejava/koala/test/kblend/KBlendTest.java index 063745bf..1395f379 100644 --- a/kdejava/koala/test/kblend/KBlendTest.java +++ b/kdejava/koala/test/kblend/KBlendTest.java @@ -23,7 +23,7 @@ import org.kde.koala.*; public class KBlendTest { public static void main(String[] args) { - KCmdLineArgs.init(args, "kblendtest", "KBlendTest", "It blends!", "0.1"); + TDECmdLineArgs.init(args, "kblendtest", "KBlendTest", "It blends!", "0.1"); TDEApplication app = new TDEApplication(); KBlendWidget w = new KBlendWidget(null,"KBlendTest"); w.setCaption(app.name()); diff --git a/kdejava/koala/test/kcharselect/KCharSelectTest.java b/kdejava/koala/test/kcharselect/KCharSelectTest.java index 38bf5dad..03c6f66a 100644 --- a/kdejava/koala/test/kcharselect/KCharSelectTest.java +++ b/kdejava/koala/test/kcharselect/KCharSelectTest.java @@ -10,7 +10,7 @@ public class KCharSelectTest { public static void main (String[] args) { - KCmdLineArgs.init(args, "kcharselecttest", "KCharSelectTest", + TDECmdLineArgs.init(args, "kcharselecttest", "KCharSelectTest", "A KCharSelect test app", "0.1"); TDEApplication app = new TDEApplication(); KCharSelect selector = new KCharSelect(null,"char selector"); diff --git a/kdejava/koala/test/kcombobox/KComboBoxTest.java b/kdejava/koala/test/kcombobox/KComboBoxTest.java index 95fb6232..dc640ee1 100644 --- a/kdejava/koala/test/kcombobox/KComboBoxTest.java +++ b/kdejava/koala/test/kcombobox/KComboBoxTest.java @@ -32,13 +32,13 @@ import java.util.*; VERSION, description, KAboutData.License_GPL, "(c) 2002, Kenneth J. Pouncey"); aboutData.addAuthor("Kenneth J. Pouncey",null, "kjpou@hotmail.com"); - KCmdLineArgs.init( cmdLineArgs, aboutData ); - KCmdLineArgs.addCmdLineOptions( options ); // Add our own options. + TDECmdLineArgs.init( cmdLineArgs, aboutData ); + TDECmdLineArgs.addCmdLineOptions( options ); // Add our own options. TDEApplication app = new TDEApplication(); // parse the args - KCmdLineArgs args = KCmdLineArgs.parsedArgs(); + TDECmdLineArgs args = TDECmdLineArgs.parsedArgs(); // Make a central widget to contain the other widgets TQWidget w = new TQWidget(); diff --git a/kdejava/koala/test/kdatepicker/KDatePickTest.java b/kdejava/koala/test/kdatepicker/KDatePickTest.java index d5957297..5f969724 100644 --- a/kdejava/koala/test/kdatepicker/KDatePickTest.java +++ b/kdejava/koala/test/kdatepicker/KDatePickTest.java @@ -7,7 +7,7 @@ public class KDatePickTest { public static void main (String[] args) { KLocale.setMainCatalogue("tdelibs"); - KCmdLineArgs.init(args, "kdatepickertest", "KDatePickTest", + TDECmdLineArgs.init(args, "kdatepickertest", "KDatePickTest", "A KDatePicker test..", "0.1"); TDEApplication app = new TDEApplication(); KDatePicker picker = new KDatePicker(); diff --git a/kdejava/koala/test/kfontdialog/KFontDialogTest.java b/kdejava/koala/test/kfontdialog/KFontDialogTest.java index c94e7b93..156da41d 100644 --- a/kdejava/koala/test/kfontdialog/KFontDialogTest.java +++ b/kdejava/koala/test/kfontdialog/KFontDialogTest.java @@ -52,13 +52,13 @@ public class KFontDialogTest { VERSION, description, KAboutData.License_GPL, "(c) 2002, Kenneth J. Pouncey"); aboutData.addAuthor("Kenneth J. Pouncey",null, "kjpou@hotmail.com"); - KCmdLineArgs.init( cmdLineArgs, aboutData ); - KCmdLineArgs.addCmdLineOptions( options ); // Add our own options. + TDECmdLineArgs.init( cmdLineArgs, aboutData ); + TDECmdLineArgs.addCmdLineOptions( options ); // Add our own options. TDEApplication app = new TDEApplication(); // parse the args - KCmdLineArgs args = KCmdLineArgs.parsedArgs(); + TDECmdLineArgs args = TDECmdLineArgs.parsedArgs(); KConfig aConfig = new KConfig(); aConfig.setGroup( "KFontDialog-test" ); diff --git a/kdejava/koala/test/khelpers/Main.java b/kdejava/koala/test/khelpers/Main.java index a43fb15b..28ccca14 100644 --- a/kdejava/koala/test/khelpers/Main.java +++ b/kdejava/koala/test/khelpers/Main.java @@ -11,7 +11,7 @@ import org.kde.koala.*; * ToolTips, What's This?, and More * * @see TDEApplication - * @see KCmdLineArgs + * @see TDECmdLineArgs * * @author java translation Kenneth J. Pouncey, kjpou@hotmail.com * @version 0.1 @@ -32,8 +32,8 @@ static String VERSION = "0.1"; KAboutData aboutData = new KAboutData( "KHelpers", "KHelpers", VERSION, description, KAboutData.License_GPL, "KDE 2 Development"); - KCmdLineArgs.init( cmdLineArgs, aboutData ); - KCmdLineArgs.addCmdLineOptions( options ); // Add our own options. + TDECmdLineArgs.init( cmdLineArgs, aboutData ); + TDECmdLineArgs.addCmdLineOptions( options ); // Add our own options. TDEApplication app = new TDEApplication(); KHelpers khelpers = new KHelpers(); diff --git a/kdejava/koala/test/kioslave/KioslaveTest.java b/kdejava/koala/test/kioslave/KioslaveTest.java index e627c25f..2cd2ba82 100644 --- a/kdejava/koala/test/kioslave/KioslaveTest.java +++ b/kdejava/koala/test/kioslave/KioslaveTest.java @@ -524,11 +524,11 @@ static String[][] options = }; public static void main(String[] argv) { - KCmdLineArgs.init( argv, "kioslavetest", "KIOSlaveTest", description, version ); - KCmdLineArgs.addCmdLineOptions( options ); + TDECmdLineArgs.init( argv, "kioslavetest", "KIOSlaveTest", description, version ); + TDECmdLineArgs.addCmdLineOptions( options ); TDEApplication app = new TDEApplication(); - KCmdLineArgs args = KCmdLineArgs.parsedArgs(); + TDECmdLineArgs args = TDECmdLineArgs.parsedArgs(); String src = args.getOption("src"); String dest = args.getOption("dest"); @@ -557,7 +557,7 @@ public static void main(String[] argv) { op = KioslaveTest.Shred; } else if ( tmps.equals("mkdir")) { op = KioslaveTest.Mkdir; - } else KCmdLineArgs.usage("unknown operation"); + } else TDECmdLineArgs.usage("unknown operation"); tmps = args.getOption("progress"); if ( tmps.equals("none")) { @@ -566,7 +566,7 @@ public static void main(String[] argv) { pr = KioslaveTest.ProgressDefault; } else if ( tmps.equals("status")) { pr = KioslaveTest.ProgressStatus; - } else KCmdLineArgs.usage("unknown progress mode"); + } else TDECmdLineArgs.usage("unknown progress mode"); args.clear(); // Free up memory diff --git a/kdejava/koala/test/kmenu/KdeMenuSample.java b/kdejava/koala/test/kmenu/KdeMenuSample.java index 5e4fe860..533da226 100644 --- a/kdejava/koala/test/kmenu/KdeMenuSample.java +++ b/kdejava/koala/test/kmenu/KdeMenuSample.java @@ -11,7 +11,7 @@ import org.kde.koala.kdejava; import org.kde.qt.qtjava; import org.kde.koala.KMainWindow; -import org.kde.koala.KCmdLineArgs; +import org.kde.koala.TDECmdLineArgs; import org.kde.qt.TQPopupMenu; import org.kde.qt.TQTextView; import org.kde.koala.KMenuBar; @@ -128,7 +128,7 @@ public class KdeMenuSample extends KMainWindow { // main method //---------------------------------------------------------------- public static void main(String [] argv) { - KCmdLineArgs.init(argv, "menuapp", "MenuApp", + TDECmdLineArgs.init(argv, "menuapp", "MenuApp", "A simple menu example", "0.1"); TDEApplication menuApp = new TDEApplication(); KdeMenuSample mainWnd = new KdeMenuSample(menuApp); diff --git a/kdejava/koala/test/kprogress/KProgressTest.java b/kdejava/koala/test/kprogress/KProgressTest.java index 0afdd8c0..ce875c5c 100644 --- a/kdejava/koala/test/kprogress/KProgressTest.java +++ b/kdejava/koala/test/kprogress/KProgressTest.java @@ -26,13 +26,13 @@ public class KProgressTest { VERSION, description, KAboutData.License_GPL, "(c) 2002, Kenneth J. Pouncey"); aboutData.addAuthor("Kenneth J. Pouncey",null, "kjpou@hotmail.com"); - KCmdLineArgs.init( cmdLineArgs, aboutData ); - KCmdLineArgs.addCmdLineOptions( options ); // Add our own options. + TDECmdLineArgs.init( cmdLineArgs, aboutData ); + TDECmdLineArgs.addCmdLineOptions( options ); // Add our own options. TDEApplication app = new TDEApplication(); // parse the args - KCmdLineArgs args = KCmdLineArgs.parsedArgs(); + TDECmdLineArgs args = TDECmdLineArgs.parsedArgs(); MyWidget mine = new MyWidget(); diff --git a/kdejava/koala/test/ksystemtray/Test.java b/kdejava/koala/test/ksystemtray/Test.java index 49f3d7ac..164af878 100644 --- a/kdejava/koala/test/ksystemtray/Test.java +++ b/kdejava/koala/test/ksystemtray/Test.java @@ -10,8 +10,8 @@ public class Test { KAboutData aboutData = new KAboutData( "test", "Test", "0.1", description, KAboutData.License_GPL, "(C) 2002 Gert-Jan van der Heiden"); - KCmdLineArgs.init( argv, aboutData ); - KCmdLineArgs.addCmdLineOptions(options); + TDECmdLineArgs.init( argv, aboutData ); + TDECmdLineArgs.addCmdLineOptions(options); System.out.println("1"); TDEApplication app = new TDEApplication(); System.out.println("2"); diff --git a/kdejava/koala/test/simplebrowser/Main.java b/kdejava/koala/test/simplebrowser/Main.java index e7902629..2964f45f 100644 --- a/kdejava/koala/test/simplebrowser/Main.java +++ b/kdejava/koala/test/simplebrowser/Main.java @@ -21,7 +21,7 @@ public class Main { public static void main(String[] cmdLineArgs) { - KCmdLineArgs.init(cmdLineArgs, "ksimplebrowser", "KSimpleBrowser", + TDECmdLineArgs.init(cmdLineArgs, "ksimplebrowser", "KSimpleBrowser", "A KDE 3 Development Example - KSimpleBrowser", "0.1"); TDEApplication app = new TDEApplication(); KSimpleBrowser kbrowser = new KSimpleBrowser("KSimpleBrowser"); |