/***************************************************************************
                            QFrame.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: QFrame.java,v 1.4 2001/11/22 00:50:27 rdale Exp $

 Definition of QFrame widget class

 Created : 950201

 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 QFrameSignals} for signals emitted by QFrame.

 See {@link QFrameEventHandling} for event handlers to override in subclasses of QFrame.

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

	private native void newQFrame( QWidget parent, String name, int f);
	public QFrame( QWidget parent, String name, int f) {
		super((Class) null);
		newQFrame( parent, name, f);
	}

//	public QFrame( QWidget parent, String name, int f) {
//		this(parent, name, f, true);
//	}
	public QFrame( QWidget parent, String name) {
		this(parent, name, 0);
	}
	public QFrame( QWidget parent) {
		this(parent, null, 0);
	}

	private native void newQFrame();
	public QFrame() {
		super((Class) null);
		newQFrame();
	}
	public native int frameStyle();
	public native void setFrameStyle( int arg1);
	public native int frameWidth();
	public native QRect contentsRect();
	public native boolean lineShapesOk();
	public native QSize sizeHint();
	public native int frameShape();
	public native void setFrameShape( int arg1);
	public native int frameShadow();
	public native void setFrameShadow( int arg1);
	public native int lineWidth();
	public native void setLineWidth( int arg1);
	public native int margin();
	public native void setMargin( int arg1);
	public native int midLineWidth();
	public native void setMidLineWidth( int arg1);
	public native QRect frameRect();
	public native void setFrameRect( QRect arg1);
	protected native void drawFrame( QPainter arg1);
	protected native void drawContents( QPainter arg1);
	protected native void frameChanged();
	public static final int NoFrame = 0;
	public static final int Box = 0x0001;
	public static final int Panel = 0x0002;
	public static final int WinPanel = 0x0003;
	public static final int HLine = 0x0004;
	public static final int VLine = 0x0005;
	public static final int StyledPanel = 0x0006;
	public static final int PopupPanel = 0x0007;
	public static final int MenuBarPanel = 0x0008;
	public static final int ToolBarPanel = 0x0009;
	public static final int MShape = 0x000f;
	public static final int Plain = 0x0010;
	public static final int Raised = 0x0020;
	public static final int Sunken = 0x0030;
	public static final int MShadow = 0x00f0;
}
