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

import org.kde.qt.Qt;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QMouseEvent;
import org.kde.qt.QPushButton;

/**

 It's a special kind of QPushButton catching mouse clicks.
 And you have the ability to abbreviate the text that it fits in the button.
   See {@link KMdiTaskBarButtonSignals} for signals emitted by KMdiTaskBarButton
		@short Internal class.

*/
public class KMdiTaskBarButton extends QPushButton  {
	protected KMdiTaskBarButton(Class dummy){super((Class) null);}
	public native QMetaObject metaObject();
	public native String className();
	/**	
		 Constructor (sets to toggle button, adds a tooltip (caption) and sets to NoFocus
					@short    Constructor (sets to toggle button, adds a tooltip (caption) and sets to NoFocus
	*/
	public KMdiTaskBarButton(KMdiTaskBar pTaskBar, KMdiChildView win_ptr) {
		super((Class) null);
		newKMdiTaskBarButton(pTaskBar,win_ptr);
	}
	private native void newKMdiTaskBarButton(KMdiTaskBar pTaskBar, KMdiChildView win_ptr);
	/**	
		 text() returns the possibly abbreviated text including the dots in it. But actualText() returns the full text.
					@short    text() returns the possibly abbreviated text including the dots in it.
	*/
	public native String actualText();
	/**	
		 Given the parameter newWidth this function possibly abbreviates the parameter string and sets a new button text.
					@short    Given the parameter newWidth this function possibly abbreviates the parameter string and sets a new button text.
	*/
	public native void fitText(String arg1, int newWidth);
	/**	
		 Sets the text and avoids any abbreviation. Memorizes that text in m_actualText, too.
					@short    Sets the text and avoids any abbreviation.
	*/
	public native void setText(String arg1);
	/**	
		 A slot version of setText
					@short    A slot version of setText
	*/
	public native void setNewText(String arg1);
	/**	
		 Reimplemented from its base class to catch right and left mouse button clicks
					@short    Reimplemented from its base class to catch right and left mouse button clicks
	*/
	protected native void mousePressEvent(QMouseEvent arg1);
	/** 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();
}
