//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QColor;
import org.kde.qt.QFont;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QPoint;
import org.kde.qt.QMouseEvent;
import org.kde.qt.QWidget;
import org.kde.qt.QResizeEvent;
import org.kde.qt.QFrame;

/**

 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 QFrame  {
	protected KMdiChildArea(Class dummy){super((Class) null);}
	public native QMetaObject metaObject();
	public native String className();
	/**	
		 Consruction. Note: This class needn't to know about KMdiMainFrm .
			 		@short    Consruction.
	*/
	public KMdiChildArea(QWidget parent) {
		super((Class) null);
		newKMdiChildArea(parent);
	}
	private native void newKMdiChildArea(QWidget 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.
			@param child 	 		@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 <code>child</code> to the top of the stack
		 The child is focused if <code>setFocus</code> is true. If setFocus is false, the
		 child is just raised.
			@param child 	 		@short    Brings the child <code>child</code> to the top of the stack  The child is focused if <code>setFocus</code> 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 QPoint getCascadePoint(int indexOfWindow);
	public native QPoint 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(QFont 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(QColor 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(QColor 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(QColor 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(QColor 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(QResizeEvent 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(QMouseEvent 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();
}
