You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
236 lines
9.0 KiB
236 lines
9.0 KiB
//Auto-generated by kalyptus. DO NOT EDIT.
|
|
package org.kde.koala;
|
|
|
|
import org.kde.qt.Qt;
|
|
import org.kde.qt.TQMetaObject;
|
|
import org.kde.qt.QtSupport;
|
|
import org.kde.qt.TQObject;
|
|
import org.kde.qt.TQPopupMenu;
|
|
import org.kde.qt.TQPixmap;
|
|
import org.kde.qt.TQSize;
|
|
import org.kde.qt.TQPainter;
|
|
import org.kde.qt.TQMouseEvent;
|
|
import org.kde.qt.TQEvent;
|
|
import org.kde.qt.TQIconSet;
|
|
import org.kde.qt.TQWidget;
|
|
import org.kde.qt.TQPalette;
|
|
import org.kde.qt.TQToolButton;
|
|
|
|
/**
|
|
|
|
A toolbar button. This is used internally by TDEToolBar, use the
|
|
TDEToolBar methods instead.
|
|
See {@link TDEToolBarButtonSignals} for signals emitted by TDEToolBarButton
|
|
@short A toolbar button.
|
|
|
|
*/
|
|
public class TDEToolBarButton extends TQToolButton {
|
|
protected TDEToolBarButton(Class dummy){super((Class) null);}
|
|
public native TQMetaObject metaObject();
|
|
public native String className();
|
|
/**
|
|
Construct a button with an icon loaded by the button itself.
|
|
This will trust the button to load the correct icon with the
|
|
correct size.
|
|
@param icon Name of icon to load (may be absolute or relative)
|
|
@param id Id of this button
|
|
@param parent This button's parent
|
|
@param name This button's internal name
|
|
@param txt This button's text (in a tooltip or otherwise)
|
|
@param _instance the instance to use for this button
|
|
@short Construct a button with an icon loaded by the button itself.
|
|
*/
|
|
public TDEToolBarButton(String icon, int id, TQWidget parent, String name, String txt, TDEInstanceInterface _instance) {
|
|
super((Class) null);
|
|
newTDEToolBarButton(icon,id,parent,name,txt,_instance);
|
|
}
|
|
private native void newTDEToolBarButton(String icon, int id, TQWidget parent, String name, String txt, TDEInstanceInterface _instance);
|
|
public TDEToolBarButton(String icon, int id, TQWidget parent, String name, String txt) {
|
|
super((Class) null);
|
|
newTDEToolBarButton(icon,id,parent,name,txt);
|
|
}
|
|
private native void newTDEToolBarButton(String icon, int id, TQWidget parent, String name, String txt);
|
|
public TDEToolBarButton(String icon, int id, TQWidget parent, String name) {
|
|
super((Class) null);
|
|
newTDEToolBarButton(icon,id,parent,name);
|
|
}
|
|
private native void newTDEToolBarButton(String icon, int id, TQWidget parent, String name);
|
|
public TDEToolBarButton(String icon, int id, TQWidget parent) {
|
|
super((Class) null);
|
|
newTDEToolBarButton(icon,id,parent);
|
|
}
|
|
private native void newTDEToolBarButton(String icon, int id, TQWidget parent);
|
|
/**
|
|
Construct a button with an existing pixmap. It is not
|
|
recommended that you use this as the internal icon loading code
|
|
will almost always get it "right".
|
|
@param pixmap Name of icon to load (may be absolute or relative)
|
|
@param id Id of this button
|
|
@param parent This button's parent
|
|
@param name This button's internal name
|
|
@param txt This button's text (in a tooltip or otherwise)
|
|
@short Construct a button with an existing pixmap.
|
|
*/
|
|
public TDEToolBarButton(TQPixmap pixmap, int id, TQWidget parent, String name, String txt) {
|
|
super((Class) null);
|
|
newTDEToolBarButton(pixmap,id,parent,name,txt);
|
|
}
|
|
private native void newTDEToolBarButton(TQPixmap pixmap, int id, TQWidget parent, String name, String txt);
|
|
public TDEToolBarButton(TQPixmap pixmap, int id, TQWidget parent, String name) {
|
|
super((Class) null);
|
|
newTDEToolBarButton(pixmap,id,parent,name);
|
|
}
|
|
private native void newTDEToolBarButton(TQPixmap pixmap, int id, TQWidget parent, String name);
|
|
public TDEToolBarButton(TQPixmap pixmap, int id, TQWidget parent) {
|
|
super((Class) null);
|
|
newTDEToolBarButton(pixmap,id,parent);
|
|
}
|
|
private native void newTDEToolBarButton(TQPixmap pixmap, int id, TQWidget parent);
|
|
/**
|
|
Construct a separator button
|
|
@param parent This button's parent
|
|
@param name This button's internal name
|
|
@short Construct a separator button
|
|
*/
|
|
public TDEToolBarButton(TQWidget parent, String name) {
|
|
super((Class) null);
|
|
newTDEToolBarButton(parent,name);
|
|
}
|
|
private native void newTDEToolBarButton(TQWidget parent, String name);
|
|
public TDEToolBarButton(TQWidget parent) {
|
|
super((Class) null);
|
|
newTDEToolBarButton(parent);
|
|
}
|
|
private native void newTDEToolBarButton(TQWidget parent);
|
|
public TDEToolBarButton() {
|
|
super((Class) null);
|
|
newTDEToolBarButton();
|
|
}
|
|
private native void newTDEToolBarButton();
|
|
/**
|
|
Set the text for this button. The text will be either used as a
|
|
tooltip (IconOnly) or will be along side the icon
|
|
@param text The button (or tooltip) text
|
|
@short Set the text for this button.
|
|
*/
|
|
public native void setText(String text);
|
|
/**
|
|
Set the icon for this button. The icon will be loaded internally
|
|
with the correct size. This function is preferred over setIconSet
|
|
@param icon The name of the icon
|
|
@short Set the icon for this button.
|
|
*/
|
|
public native void setIcon(String icon);
|
|
public native void setIcon(TQPixmap pixmap);
|
|
/**
|
|
Set the pixmaps for this toolbar button from a TQIconSet.
|
|
If you call this you don't need to call any of the other methods
|
|
that set icons or pixmaps.
|
|
@param iconset The iconset to use
|
|
@short Set the pixmaps for this toolbar button from a TQIconSet.
|
|
*/
|
|
public native void setIconSet(TQIconSet iconset);
|
|
/**
|
|
Turn this button on or off
|
|
@param flag true or false
|
|
@short Turn this button on or off
|
|
*/
|
|
public native void on(boolean flag);
|
|
public native void on();
|
|
/**
|
|
Toggle this button
|
|
@short Toggle this button
|
|
*/
|
|
public native void toggle();
|
|
/**
|
|
Turn this button into a toggle button or disable the toggle
|
|
aspects of it. This does not toggle the button itself.
|
|
Use toggle() for that.
|
|
@param toggle true or false
|
|
@short Turn this button into a toggle button or disable the toggle aspects of it.
|
|
*/
|
|
public native void setToggle(boolean toggle);
|
|
public native void setToggle();
|
|
/**
|
|
Return a pointer to this button's popup menu (if it exists)
|
|
@short Return a pointer to this button's popup menu (if it exists)
|
|
*/
|
|
public native TQPopupMenu popup();
|
|
/**
|
|
Returns the button's id.
|
|
@short Returns the button's id.
|
|
*/
|
|
public native int id();
|
|
/**
|
|
Give this button a popup menu. There will not be a delay when
|
|
you press the button. Use setDelayedPopup if you want that
|
|
behavior.
|
|
@param p The new popup menu
|
|
@param unused Has no effect - ignore it.
|
|
@short Give this button a popup menu.
|
|
*/
|
|
public native void setPopup(TQPopupMenu p, boolean unused);
|
|
public native void setPopup(TQPopupMenu p);
|
|
/**
|
|
Gives this button a delayed popup menu.
|
|
This function allows you to add a delayed popup menu to the button.
|
|
The popup menu is then only displayed when the button is pressed and
|
|
held down for about half a second.
|
|
@param p the new popup menu
|
|
@param unused Has no effect - ignore it.
|
|
@short Gives this button a delayed popup menu.
|
|
*/
|
|
public native void setDelayedPopup(TQPopupMenu p, boolean unused);
|
|
public native void setDelayedPopup(TQPopupMenu p);
|
|
/**
|
|
Turn this button into a radio button
|
|
@param f true or false
|
|
@short Turn this button into a radio button
|
|
*/
|
|
public native void setRadio(boolean f);
|
|
public native void setRadio();
|
|
/**
|
|
Toolbar buttons naturally will assume the global styles
|
|
concerning icons, icons sizes, etc. You can use this function to
|
|
explicitly turn this off, if you like.
|
|
@param no_style Will disable styles if true
|
|
@short Toolbar buttons naturally will assume the global styles concerning icons, icons sizes, etc.
|
|
*/
|
|
public native void setNoStyle(boolean no_style);
|
|
public native void setNoStyle();
|
|
/**
|
|
This slot should be called whenever the toolbar mode has
|
|
potentially changed. This includes such events as text changing,
|
|
orientation changing, etc.
|
|
@short This slot should be called whenever the toolbar mode has potentially changed.
|
|
*/
|
|
public native void modeChange();
|
|
public native void setTextLabel(String arg1, boolean tipToo);
|
|
public native boolean event(TQEvent e);
|
|
protected native void paletteChange(TQPalette arg1);
|
|
protected native void leaveEvent(TQEvent e);
|
|
protected native void enterEvent(TQEvent e);
|
|
protected native void drawButton(TQPainter p);
|
|
public native boolean eventFilter(TQObject o, TQEvent e);
|
|
protected native void mousePressEvent(TQMouseEvent arg1);
|
|
protected native void mouseReleaseEvent(TQMouseEvent arg1);
|
|
protected native void showMenu();
|
|
public native TQSize sizeHint();
|
|
public native TQSize minimumSizeHint();
|
|
public native TQSize minimumSize();
|
|
protected native boolean isRaised();
|
|
protected native boolean isActive();
|
|
protected native int iconTextMode();
|
|
protected native void slotClicked();
|
|
protected native void slotPressed();
|
|
protected native void slotReleased();
|
|
protected native void slotToggled();
|
|
protected native void slotDelayTimeout();
|
|
/** 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();
|
|
}
|