diff options
Diffstat (limited to 'tdejava/koala/test/khelpers/Main.java')
-rw-r--r-- | tdejava/koala/test/khelpers/Main.java | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/tdejava/koala/test/khelpers/Main.java b/tdejava/koala/test/khelpers/Main.java new file mode 100644 index 00000000..ec312027 --- /dev/null +++ b/tdejava/koala/test/khelpers/Main.java @@ -0,0 +1,52 @@ +import org.trinitydesktop.qt.*; +import org.trinitydesktop.koala.*; + +/** + * Main class. + * + * Taken from KDE 2.0 Development book + * + * Helping the User Use Your Application + * + * ToolTips, What's This?, and More + * + * @see TDEApplication + * @see TDECmdLineArgs + * + * @author java translation Kenneth J. Pouncey, [email protected] + * @version 0.1 + */ + +public class Main { + + static String description = "KDE 2 Development example"; + + + static String[][] options = { }; + + +static String VERSION = "0.1"; + + public static void main(String[] cmdLineArgs) { + + TDEAboutData aboutData = new TDEAboutData( "KHelpers", "KHelpers", + VERSION, description, TDEAboutData.License_GPL, + "KDE 2 Development"); + TDECmdLineArgs.init( cmdLineArgs, aboutData ); + TDECmdLineArgs.addCmdLineOptions( options ); // Add our own options. + + TDEApplication app = new TDEApplication(); + KHelpers khelpers = new KHelpers(); + + khelpers.show(); + + app.exec(); + return; + } + + static { + qtjava.initialize(); + tdejava.initialize(); + } + +} |