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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;
import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.TQRect;
import org.trinitydesktop.qt.TQLayoutItem;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQLayoutItemInterface;
import org.trinitydesktop.qt.TQKeyEvent;
import org.trinitydesktop.qt.TQWidget;
import org.trinitydesktop.qt.TQDialog;
/**
Dialog with extended non-modal support and methods for %KDE standard
compliance.
Generally, you should not use this class directly, but KDialogBase
which inherits KDialog.
If the dialog is non-modal and has a parent, the default keybindings
(<code>escape</code> = <code>reject</code>(), <code>enter</code> = <code>accept</code>(), etc.) are disabled.
The marginHint() and spacingHint() sizes shall be used
whenever you layout the interior of a dialog. One special note. If
you make your own action buttons (OK, Cancel etc), the space
beteween the buttons shall be spacingHint(), whereas the space
above, below, to the right and to the left shall be marginHint().
If you add a separator line above the buttons, there shall be a
marginHint() between the buttons and the separator and a
marginHint() above the separator as well.
See {@link KDialogSignals} for signals emitted by KDialog
@author Thomas Tanghus <tanghus@earthling.net>, Espen Sand <espensa@online.no>
@short Dialog with extended non-modal support and methods for %KDE standard compliance.
@see KDialogBase
*/
public class KDialog extends TQDialog {
protected KDialog(Class dummy){super((Class) null);}
public native TQMetaObject metaObject();
public native String className();
/**
Constructor.
Takes the same arguments as TQDialog.
@short Constructor.
*/
public KDialog(TQWidget parent, String name, boolean modal, int f) {
super((Class) null);
newKDialog(parent,name,modal,f);
}
private native void newKDialog(TQWidget parent, String name, boolean modal, int f);
public KDialog(TQWidget parent, String name, boolean modal) {
super((Class) null);
newKDialog(parent,name,modal);
}
private native void newKDialog(TQWidget parent, String name, boolean modal);
public KDialog(TQWidget parent, String name) {
super((Class) null);
newKDialog(parent,name);
}
private native void newKDialog(TQWidget parent, String name);
public KDialog(TQWidget parent) {
super((Class) null);
newKDialog(parent);
}
private native void newKDialog(TQWidget parent);
public KDialog() {
super((Class) null);
newKDialog();
}
private native void newKDialog();
/**
If the dialog starts with focus in a TQLineEdit child,
then call selectAll() on the child.
@short If the dialog starts with focus in a TQLineEdit child, then call selectAll() on the child.
*/
public native void polish();
/**
Make a KDE compliant caption.
@param caption Your caption. Do <code>not</code> include the application name
in this string. It will be added automatically according to the KDE
standard.
@short Make a KDE compliant caption.
*/
public native void setCaption(String caption);
/**
Make a plain caption without any modifications.
@param caption Your caption. This is the string that will be
displayed in the window title.
@short Make a plain caption without any modifications.
*/
public native void setPlainCaption(String caption);
/**
Return the number of pixels you shall use between a
dialog edge and the outermost widget(s) according to the KDE standard.
@short Return the number of pixels you shall use between a dialog edge and the outermost widget(s) according to the KDE standard.
*/
public static native int marginHint();
/**
Return the number of pixels you shall use between
widgets inside a dialog according to the KDE standard.
@short Return the number of pixels you shall use between widgets inside a dialog according to the KDE standard.
*/
public static native int spacingHint();
/**
Resize every layout manager used in <code>widget</code> and its nested children.
@param widget The widget used.
@param margin The new layout margin.
@param spacing The new layout spacing.
@short Resize every layout manager used in <code>widget</code> and its nested children.
*/
public static native void resizeLayout(TQWidget widget, int margin, int spacing);
/**
Resize every layout associated with <code>lay</code> and its children.
@param lay layout to be resized
@param margin The new layout margin
@param spacing The new layout spacing
@short Resize every layout associated with <code>lay</code> and its children.
*/
public static native void resizeLayout(TQLayoutItemInterface lay, int margin, int spacing);
/**
Centers <code>widget</code> on the desktop, taking multi-head setups into
account. If <code>screen</code> is -1, <code>widget</code> will be centered on its
current screen (if it was shown already) or on the primary screen.
If <code>screen</code> is -3, <code>widget</code> will be centered on the screen that
currently contains the mouse pointer.
<code>screen</code> will be ignored if a merged display (like Xinerama) is not
in use, or merged display placement is not enabled in kdeglobals.
@short Centers <code>widget</code> on the desktop, taking multi-head setups into account.
*/
public static native void centerOnScreen(TQWidget widget, int screen);
public static native void centerOnScreen(TQWidget widget);
/**
Places <code>widget</code> so that it doesn't cover a certain <code>area</code> of the screen.
This is typically used by the "find dialog" so that the match it finds can
be read.
For <code>screen</code>, see centerOnScreen
@return true on success (widget doesn't cover area anymore, or never did),
false on failure (not enough space found)
@short Places <code>widget</code> so that it doesn't cover a certain <code>area</code> of the screen.
*/
public static native boolean avoidArea(TQWidget widget, TQRect area, int screen);
public static native boolean avoidArea(TQWidget widget, TQRect area);
/**
@short
*/
protected native void keyPressEvent(TQKeyEvent arg1);
/** 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();
}
|