/***************************************************************************
                            QAction.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;

/**
 See {@link QActionSignals} for signals emitted by QAction.

 See {@link QActionEventHandling} for event handlers to override in subclasses of QAction.

*/
public class QAction extends QObject  {
	protected QAction(Class dummy){super((Class) null);}

	private native void newQAction( QObject parent, String name, boolean toggle);
	public QAction( QObject parent, String name, boolean toggle) {
		super((Class) null);
		newQAction( parent, name, toggle);
	}
	public QAction( QObject parent, String name) {
		this( parent, name, false);
	}
	private native void newQAction( QObject parent);
	public QAction( QObject parent) {
		super((Class) null);
		newQAction( parent);
	}
	private native void newQAction( String text, QIconSet icon, String menuText, QKeySequence accel, QObject parent, String name, boolean toggle);
	public QAction( String text, QIconSet icon, String menuText, QKeySequence accel, QObject parent, String name, boolean toggle) {
		super((Class) null);
		newQAction( text, icon, menuText, accel, parent, name, toggle);
	}
	public QAction( String text, QIconSet icon, String menuText, QKeySequence accel, QObject parent, String name) {
		this( text, icon, menuText, accel, parent, name, false);
	}
	private native void newQAction( String text, QIconSet icon, String menuText, QKeySequence accel, QObject parent);
	public QAction( String text, QIconSet icon, String menuText, QKeySequence accel, QObject parent) {
		super((Class) null);
		newQAction( text, icon, menuText, accel, parent);
	}
	private native void newQAction( String text, String menuText, QKeySequence accel, QObject parent, String name, boolean toggle);
	public QAction( String text, String menuText, QKeySequence accel, QObject parent, String name, boolean toggle) {
		super((Class) null);
		newQAction( text, menuText, accel, parent, name, toggle);
	}
	public QAction( String text, String menuText, QKeySequence accel, QObject parent, String name) {
		this( text, menuText, accel, parent, name, false);
	}
	private native void newQAction( String text, String menuText, QKeySequence accel, QObject parent);
	public QAction( String text, String menuText, QKeySequence accel, QObject parent) {
		super((Class) null);
		newQAction( text, menuText, accel, parent);
	}
	protected native void finalize() throws InternalError;
	public native void setIconSet( QIconSet arg1);
	public native QIconSet iconSet();
	public native void setText( String arg1);
	public native String text();
	public native void setMenuText( String arg1);
	public native String menuText();
	public native void setToolTip( String arg1);
	public native String toolTip();
	public native void setStatusTip( String arg1);
	public native String statusTip();
	public native void setWhatsThis( String arg1);
	public native String whatsThis();
	public native void setAccel( QKeySequence key);
	public native QKeySequence accel();
	public native void setToggleAction( boolean arg1);
	public native boolean isToggleAction();
	public native boolean isOn();
	public native boolean isEnabled();
	public native boolean addTo( QWidget arg1);
	public native boolean removeFrom( QWidget arg1);
	public native void toggle();
	public native void setOn( boolean arg1);
	public native void setEnabled( boolean arg1);
	protected native void addedTo( QWidget actionWidget, QWidget container);
	protected native void addedTo( int index, QPopupMenu menu);
}
