/***************************************************************************
                            QMainWindow.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.qt;

import java.util.*;
import java.lang.Error;

/**

 $Id: QMainWindow.java,v 1.5 2002/02/21 14:50:47 rdale Exp $

 Definition of QToolBar class

 Created : 980306

 Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.

 This file is part of the widgets module of the Qt GUI Toolkit.

 This file may be distributed under the terms of the Q Public License
 as defined by Trolltech AS of Norway and appearing in the file
 LICENSE.QPL included in the packaging of this file.

 This file may be distributed and/or modified under the terms of the
 GNU General Public License version 2 as published by the Free Software
 Foundation and appearing in the file LICENSE.GPL included in the
 packaging of this file.

 Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
 licenses may use this file in accordance with the Qt Commercial License
 Agreement provided with the Software.

 This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

 See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
   information about Qt Commercial License Agreements.
 See http://www.trolltech.com/qpl/ for QPL licensing information.
 See http://www.trolltech.com/gpl/ for GPL licensing information.

 Contact info@trolltech.com if any conditions of this licensing are
 not clear to you.


 See {@link QMainWindowSignals} for signals emitted by QMainWindow.

 See {@link QMainWindowEventHandling} for event handlers to override in subclasses of QMainWindow.

 @short 
* $Id:  qt/qtoolbar.
*/
public class QMainWindow extends QWidget  {
	protected QMainWindow(Class dummy){super((Class) null);}

	private native void newQMainWindow( QWidget parent, String name, int f);
	public QMainWindow( QWidget parent, String name, int f) {
		super((Class) null);
		newQMainWindow( parent, name, f);
	}
	public QMainWindow( QWidget parent, String name) {
		this( parent, name, 0);
	}
	public QMainWindow( QWidget parent) {
		this( parent, null, 0);
	}
	private native void newQMainWindow();
	public QMainWindow() {
		super((Class) null);
		newQMainWindow();
	}
	protected native void finalize() throws InternalError;
	public native QMenuBar menuBar();
	public native QStatusBar statusBar();
	public native QToolTipGroup toolTipGroup();
	public native void setCentralWidget( QWidget arg1);
	public native QWidget centralWidget();
	public native void setDockEnabled( int dock, boolean enable);
	public native boolean isDockEnabled( int dock);
	public native boolean isDockEnabled( QDockArea area);
	public native void setDockEnabled( QDockWindow tb, int dock, boolean enable);
	public native boolean isDockEnabled( QDockWindow tb, int dock);
	public native boolean isDockEnabled( QDockWindow tb, QDockArea area);
	public native void addDockWindow( QDockWindow arg1, int arg2, boolean newLine);
	public native void addDockWindow( QDockWindow arg1);
	public native void addDockWindow( QDockWindow arg1, String label, int arg2, boolean newLine);
	public native void addDockWindow( QDockWindow arg1, String label);
	public native void moveDockWindow( QDockWindow arg1, int arg2);
	public native void moveDockWindow( QDockWindow arg1);
	public native void moveDockWindow( QDockWindow arg1, int arg2, boolean nl, int index, int extraOffset);
	public native void moveDockWindow( QDockWindow arg1, int arg2, boolean nl, int index);
	public native void removeDockWindow( QDockWindow arg1);
	public native void show();
	public native QSize sizeHint();
	public native QSize minimumSizeHint();
	public native boolean rightJustification();
	public native boolean usesBigPixmaps();
	public native boolean usesTextLabel();
	public native boolean dockWindowsMovable();
	public native boolean opaqueMoving();
	public native boolean eventFilter( QObject arg1, QEvent arg2);
	public native boolean getLocation( QDockWindow tb, int dock, int index, boolean nl, int extraOffset);
	public native void lineUpDockWindows( boolean keepNewLines);
	public native void lineUpDockWindows();
	public native boolean isDockMenuEnabled();
	public native boolean hasDockWindow( QDockWindow dw);
	public native void addToolBar( QDockWindow arg1, int arg2, boolean newLine);
	public native void addToolBar( QDockWindow arg1);
	public native void addToolBar( QDockWindow arg1, String label, int arg2, boolean newLine);
	public native void addToolBar( QDockWindow arg1, String label);
	public native void moveToolBar( QDockWindow arg1, int arg2);
	public native void moveToolBar( QDockWindow arg1);
	public native void moveToolBar( QDockWindow arg1, int arg2, boolean nl, int index, int extraOffset);
	public native void moveToolBar( QDockWindow arg1, int arg2, boolean nl, int index);
	public native void removeToolBar( QDockWindow arg1);
	public native boolean toolBarsMovable();
	public native void lineUpToolBars( boolean keepNewLines);
	public native void lineUpToolBars();
	public native QDockArea dockingArea( QPoint p);
	public native QDockArea leftDock();
	public native QDockArea rightDock();
	public native QDockArea topDock();
	public native QDockArea bottomDock();
	public native boolean isCustomizable();
	public native boolean appropriate( QDockWindow dw);
	public native QPopupMenu createDockWindowMenu( int dockWindows);
	public native QPopupMenu createDockWindowMenu();
	public native void setRightJustification( boolean arg1);
	public native void setUsesBigPixmaps( boolean arg1);
	public native void setUsesTextLabel( boolean arg1);
	public native void setDockWindowsMovable( boolean arg1);
	public native void setOpaqueMoving( boolean arg1);
	public native void setDockMenuEnabled( boolean arg1);
	public native void whatsThis();
	public native void setAppropriate( QDockWindow dw, boolean a);
	public native void customize();
	public native void setToolBarsMovable( boolean arg1);
	public native boolean event( QEvent arg1);
	protected native void styleChange( QStyle arg1);
	protected native void setUpLayout();
	protected native boolean showDockMenu( QPoint globalPos);
	protected native void menuAboutToShow();
	public static final int OnlyToolBars = 0;
	public static final int NoToolBars = 1;
	public static final int AllDockWindows = 2;
}
