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

import org.trinitydesktop.qt.TQt;
import org.trinitydesktop.qt.TQColor;
import org.trinitydesktop.qt.TQFont;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQPoint;
import org.trinitydesktop.qt.TQMouseEvent;
import org.trinitydesktop.qt.TQWidget;
import org.trinitydesktop.qt.TQResizeEvent;
import org.trinitydesktop.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();
}
