summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KMenuBar.java
blob: a0dedf0d19c3b4b518c1d17e837f9b4e9b8fe918 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQRect;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQCloseEvent;
import org.kde.qt.TQObject;
import org.kde.qt.TQSize;
import org.kde.qt.TQPainter;
import org.kde.qt.TQShowEvent;
import org.kde.qt.TQEvent;
import org.kde.qt.TQWidget;
import org.kde.qt.TQResizeEvent;
import org.kde.qt.TQMenuBar;

/**

 %KDE Style-able menubar.
 This is required since TQMenuBar is currently not handled by
 TQStyle.
		@author Daniel "Mosfet" Duley.

		@version $Id$

		@short    %KDE Style-able menubar.

*/
public class KMenuBar extends TQMenuBar  {
	protected KMenuBar(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	public KMenuBar(TQWidget parent, String name) {
		super((Class) null);
		newKMenuBar(parent,name);
	}
	private native void newKMenuBar(TQWidget parent, String name);
	public KMenuBar(TQWidget parent) {
		super((Class) null);
		newKMenuBar(parent);
	}
	private native void newKMenuBar(TQWidget parent);
	public KMenuBar() {
		super((Class) null);
		newKMenuBar();
	}
	private native void newKMenuBar();
	/**	
		 This controls whether or not this menubar will be a top-level
		 bar similar to the way Macintosh handles menubars.  This
		 overrides any global config settings.
			 Keep in mind that it is probably a really bad idea to use this
		 unless you really know what you're doing.  A feature like a
		 top-level menubar is one that should really be shared by all
		 applications.  If your app is the only one with a top-level
		 bar, then things might look very... odd.
			 This is included only for those people that <code>do</code> know that
		 they need to use it.
			@param top_level If set to true, then this menubar will be a
		                  top-level menu
		     		@short    This controls whether or not this menubar will be a top-level  bar similar to the way Macintosh handles menubars.
	*/
	public native void setTopLevelMenu(boolean top_level);
	public native void setTopLevelMenu();
	/**	
		 Is our menubar a top-level (Macintosh style) menubar?
				@return True if it is top-level.
     
		@short    Is our menubar a top-level (Macintosh style) menubar?
	*/
	public native boolean isTopLevelMenu();
	public native void setGeometry(TQRect r);
	public native void setGeometry(int x, int y, int w, int h);
	public native void resize(int w, int h);
	public native void resize(TQSize s);
	public native void show();
	public native void setFrameStyle(int arg1);
	public native void setLineWidth(int arg1);
	public native void setMargin(int arg1);
	public native TQSize sizeHint();
	public native void showEvent(TQShowEvent arg1);
	protected native void resizeEvent(TQResizeEvent arg1);
	public native boolean eventFilter(TQObject arg1, TQEvent arg2);
	protected native void closeEvent(TQCloseEvent arg1);
	protected native void drawContents(TQPainter arg1);
	protected native void slotReadConfig();
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}