summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KMdiChildArea.java
blob: 677d57c1e09bd186391daba1cc463c829c4115f3 (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
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQColor;
import org.kde.qt.TQFont;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQPoint;
import org.kde.qt.TQMouseEvent;
import org.kde.qt.TQWidget;
import org.kde.qt.TQResizeEvent;
import org.kde.qt.TQFrame;

/**

 The main frame widget KMdiMainFrm consists of 2 child widgets. One is this class.
 It's the widget where the child frames (emulated toplevel MDI views) live in.
 This class is the manager for the child frame widgets because it controls the
 Z-order widget stack of KMdiChildFrm's.
 It provides all placing and positioning algorithms for docked (attached) MDI views.
 KMdiChildArea doesn't know anything about the actual MDI views. It only knows
 and manages the frame widgets of attached MDI views.
 All actions and stuff concerning only to childframes are handled here.
   See {@link KMdiChildAreaSignals} for signals emitted by KMdiChildArea
		@short Internal class.

*/
public class KMdiChildArea extends TQFrame  {
	protected KMdiChildArea(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Consruction. Note: This class needn't to know about KMdiMainFrm .
			 		@short    Consruction.
	*/
	public KMdiChildArea(TQWidget parent) {
		super((Class) null);
		newKMdiChildArea(parent);
	}
	private native void newKMdiChildArea(TQWidget parent);
	/**	
		 Appends a new KMdiChildFrm to this manager.
		 The child is shown,raised and gets focus if this window has it.
			 		@short    Appends a new KMdiChildFrm to this manager.
	*/
	public native void manageChild(KMdiChildFrm lpC, boolean bShow, boolean bCascade);
	public native void manageChild(KMdiChildFrm lpC, boolean bShow);
	public native void manageChild(KMdiChildFrm lpC);
	/**	
		 Destroys a managed KMdiChildFrm
		 Also deletes the client attached to this child.
			 		@short    Destroys a managed KMdiChildFrm  Also deletes the client attached to this child.
	*/
	public native void destroyChild(KMdiChildFrm child, boolean focusTopChild);
	public native void destroyChild(KMdiChildFrm child);
	/**	
		 Destroys a managed KMdiChildFrm
		 Clients attached to the KMdiChildFrm are not deleted.
			 		@short    Destroys a managed KMdiChildFrm  Clients attached to the KMdiChildFrm are not deleted.
	*/
	public native void destroyChildButNotItsView(KMdiChildFrm lpC, boolean bFocusTopChild);
	public native void destroyChildButNotItsView(KMdiChildFrm lpC);
	/**	
		 Brings the child to the top of the stack
		 The child is focused if setFocus is true. If setFocus is false, the
		 child is just raised.
			 		@short    Brings the child to the top of the stack  The child is focused if setFocus is true.
	*/
	public native void setTopChild(KMdiChildFrm child, boolean setFocus);
	public native void setTopChild(KMdiChildFrm child);
	/**	
		 Returns the topmost child (the active one) or 0 if there are no children.
		 Note that the topmost child may be also hidded , if ALL the windows are minimized.
			 		@short    Returns the topmost child (the active one) or 0 if there are no children.
	*/
	public native KMdiChildFrm topChild();
	/**	
		 Returns the number of visible children
			 		@short    Returns the number of visible children
	*/
	public native int getVisibleChildCount();
	/**	
		 Calculates the cascade point for the given index. If index is -1
		 the cascade point is calculated for the window following the last window
			@param indexOfWindow the index of the window in relation the z-ordered window list
			 		@short    Calculates the cascade point for the given index.
	*/
	public native TQPoint getCascadePoint(int indexOfWindow);
	public native TQPoint getCascadePoint();
	/**	
		 Sets the MDI childframe window caption font
		 A relayout does not occur when using this function
			 		@short    Sets the MDI childframe window caption font  A relayout does not occur when using this function
	*/
	public native void setMdiCaptionFont(TQFont fnt);
	/**	
		 Sets the foreground color of the active MDI childframe window caption
		 A relayout does not occur when using this function
			 		@short    Sets the foreground color of the active MDI childframe window caption  A relayout does not occur when using this function
	*/
	public native void setMdiCaptionActiveForeColor(TQColor clr);
	/**	
		 Sets the background color of the active MDI childframe window captions
		 A relayout does not occur when using this function
			 		@short    Sets the background color of the active MDI childframe window captions  A relayout does not occur when using this function
	*/
	public native void setMdiCaptionActiveBackColor(TQColor clr);
	/**	
		 Sets the foreground color of inactive MDI childframe window captions
		 A relayout does not occur when using this function
			 		@short    Sets the foreground color of inactive MDI childframe window captions  A relayout does not occur when using this function
	*/
	public native void setMdiCaptionInactiveForeColor(TQColor clr);
	/**	
		 Sets the background color of inactive MDI childframe window captions
		 A relayout does not occur when using this function
			 		@short    Sets the background color of inactive MDI childframe window captions  A relayout does not occur when using this function
	*/
	public native void setMdiCaptionInactiveBackColor(TQColor clr);
	/**	
		 Cascades all windows resizing them to the minimum size.
			 		@short    Cascades all windows resizing them to the minimum size.
	*/
	public native void cascadeWindows();
	/**	
		 Cascades all windows resizing them to the maximum available size.
			 		@short    Cascades all windows resizing them to the maximum available size.
	*/
	public native void cascadeMaximized();
	/**	
		 Maximize all windows but only in vertical direction
			 		@short    Maximize all windows but only in vertical direction
	*/
	public native void expandVertical();
	/**	
		 Maximize all windows but only in horizontal direction
			 		@short    Maximize all windows but only in horizontal direction
	*/
	public native void expandHorizontal();
	/**	
		 Gives focus to the topmost child if it doesn't get focus
		 automatically or you want to wait to give it focus
			 		@short    Gives focus to the topmost child if it doesn't get focus  automatically or you want to wait to give it focus
	*/
	public native void focusTopChild();
	/**	
		 Tile Pragma
			 		@short    Tile Pragma
	*/
	public native void tilePragma();
	/**	
		 Tile Anodine
			 		@short    Tile Anodine
	*/
	public native void tileAnodine();
	/**	
		 Tile all the windows in the child area vertically
			 		@short    Tile all the windows in the child area vertically
	*/
	public native void tileVertically();
	/**	
		 Position and layout the minimized child frames
			 		@short    Position and layout the minimized child frames
	*/
	public native void layoutMinimizedChildren();
	/**	
		 Internally used for the tile algorithm
			 		@short    Internally used for the tile algorithm
	*/
	protected native void tileAllInternal(int maxWnds);
	/**	
		 Automatically resizes a maximized MDI view and layouts the positions of minimized MDI views.
			 		@short    Automatically resizes a maximized MDI view and layouts the positions of minimized MDI views.
	*/
	protected native void resizeEvent(TQResizeEvent arg1);
	/**	
		 Shows the 'Window' popup menu on right mouse button click
			 		@short    Shows the 'Window' popup menu on right mouse button click
	*/
	protected native void mousePressEvent(TQMouseEvent e);
	/**	
		 Internally used. Actions that are necessary when an MDI view gets minimized
			 		@short    Internally used.
	*/
	protected native void childMinimized(KMdiChildFrm lpC, boolean bWasMaximized);
	/** 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();
}