org.kde.koala
public class KAnimWidget extends QFrame
KAnimWidget anim = new KAnimWidget("kde", 0, this); anim.start();That example will search for the pixmaps "one.png", "two.png", and "three.png" in the share/icons/small/ directories as well as the app's pics directory. See KAnimWidgetSignals for signals emitted by KAnimWidget
UNKNOWN: Standard "About KDE" dialog box.
Constructor Summary | |
---|---|
protected | KAnimWidget(Class dummy) |
KAnimWidget(String icons, int size, QWidget parent, String name)
This is the most common constructor. | |
KAnimWidget(String icons, int size, QWidget parent) | |
KAnimWidget(String icons, int size) | |
KAnimWidget(String icons) |
Method Summary | |
---|---|
String | className() |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | drawContents(QPainter p) |
protected void | enterEvent(QEvent e) |
protected void | finalize() Deletes the wrapped C++ instance |
protected void | hideEvent(QHideEvent e) |
String | icons()
Returns the current icons
since 3.4 |
int | iconSize()
Returns the current size. |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
protected void | leaveEvent(QEvent e) |
QMetaObject | metaObject() |
protected void | mousePressEvent(QMouseEvent e) |
protected void | mouseReleaseEvent(QMouseEvent e) |
void | setIcons(String icons)
Sets the name of the animated icons to load. |
void | setSize(int size)
Sets the size of the icons. |
void | showEvent(QShowEvent e) |
protected void | slotTimerUpdate() |
void | start()
Starts the animation from frame 1 |
void | stop()
Stops the animation. |
protected void | updateIcons() |
Parameters: icons The icons name (e.g., "kde") to use for the animation size The size to load You don't have to set it if the parent is a KToolBar; in this case it will use the toolbar's size. parent The standard parent name The standard internal name
UNKNOWN: This is the most common constructor.
UNKNOWN: Returns the current icons since 3.
UNKNOWN: Returns the current size.
Parameters: icons The name of the icons to use for the animation
UNKNOWN: Sets the name of the animated icons to load.
Parameters: size The size of the icons
UNKNOWN: Sets the size of the icons.
UNKNOWN: Starts the animation from frame 1
UNKNOWN: Stops the animation.