summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/test/khelpers/Main.java
blob: ee04d7470f61209895ebff86330d9f639cab3896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import org.kde.qt.*;
import org.kde.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, kjpou@hotmail.com
 * @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();
      kdejava.initialize();
   }

}