org.kde.koala
public class KPassivePopup extends QFrame
KPassivePopup.message( "This is the message", this );We can create popups with titles and icons too, as this example shows:
QPixmap px; px.load( "hi32-app-logtracker.png" ); KPassivePopup.message( "Some title", "This is the main text", px, this );For more control over the popup, you can use the setView(QWidget ) method to create a custom popup.
KPassivePopup pop = new KPassivePopup( parent ); QVBox vb = new QVBox( pop ); new QLabel( vb, "Isn't this great?" ); QHBox box = new QHBox( vb ); new QPushButton( box, "Yes" ); new QPushButton( box, "No" ); pop.setView( vb ); pop.show();See KPassivePopupSignals for signals emitted by KPassivePopup
Version: $Id: KPassivePopup.java 473384 2005-10-23 14:17:09Z rdale $
UNKNOWN: A dialog-like popup that displays messages without interupting the user.
Field Summary | |
---|---|
static int | Balloon |
static int | Boxed
Styles that a KPassivePopup can have. |
static int | CustomStyle |
Constructor Summary | |
---|---|
protected | KPassivePopup(Class dummy) |
KPassivePopup(QWidget parent, String name, int f)
Creates a popup for the specified widget. | |
KPassivePopup(QWidget parent, String name) | |
KPassivePopup(QWidget parent) | |
KPassivePopup() | |
KPassivePopup(long parent, String name, int f)
Creates a popup for the specified window. | |
KPassivePopup(long parent, String name) | |
KPassivePopup(long parent) | |
KPassivePopup(int popupStyle, QWidget parent, String name, int f)
Creates a popup for the specified widget. | |
KPassivePopup(int popupStyle, QWidget parent, String name) | |
KPassivePopup(int popupStyle, QWidget parent) | |
KPassivePopup(int popupStyle) | |
KPassivePopup(int popupStyle, long parent, String name, int f)
Creates a popup for the specified window. | |
KPassivePopup(int popupStyle, long parent, String name) | |
KPassivePopup(int popupStyle, long parent) |
Method Summary | |
---|---|
boolean | autoDelete() |
String | className() |
protected QRect | defaultArea()
If no relative window (eg taskbar button, system tray window) is
available, use this rectangle (pass it to moveNear()).
|
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
protected void | hideEvent(QHideEvent arg1)
Reimplemented to destroy the object when autoDelete() is
enabled. |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
static KPassivePopup | message(String text, QWidget parent, String name)
Convenience method that displays popup with the specified message beside the
icon of the specified widget.
|
static KPassivePopup | message(String text, QWidget parent) |
static KPassivePopup | message(String caption, String text, QWidget parent, String name)
Convenience method that displays popup with the specified caption and message
beside the icon of the specified widget.
|
static KPassivePopup | message(String caption, String text, QWidget parent) |
static KPassivePopup | message(String caption, String text, QPixmap icon, QWidget parent, String name, int timeout)
Convenience method that displays popup with the specified icon, caption and
message beside the icon of the specified widget.
|
static KPassivePopup | message(String caption, String text, QPixmap icon, QWidget parent, String name) |
static KPassivePopup | message(String caption, String text, QPixmap icon, QWidget parent) |
static KPassivePopup | message(String caption, String text, QPixmap icon, long parent, String name, int timeout)
Convenience method that displays popup with the specified icon, caption and
message beside the icon of the specified window.
|
static KPassivePopup | message(String caption, String text, QPixmap icon, long parent, String name) |
static KPassivePopup | message(String caption, String text, QPixmap icon, long parent) |
static KPassivePopup | message(int popupStyle, String text, QWidget parent, String name)
Convenience method that displays popup with the specified popup-style and message beside the
icon of the specified widget.
|
static KPassivePopup | message(int popupStyle, String text, QWidget parent) |
static KPassivePopup | message(int popupStyle, String caption, String text, QWidget parent, String name)
Convenience method that displays popup with the specified popup-style, caption and message
beside the icon of the specified widget.
|
static KPassivePopup | message(int popupStyle, String caption, String text, QWidget parent) |
static KPassivePopup | message(int popupStyle, String caption, String text, QPixmap icon, QWidget parent, String name, int timeout)
Convenience method that displays popup with the specified popup-style, icon, caption and
message beside the icon of the specified widget.
|
static KPassivePopup | message(int popupStyle, String caption, String text, QPixmap icon, QWidget parent, String name) |
static KPassivePopup | message(int popupStyle, String caption, String text, QPixmap icon, QWidget parent) |
static KPassivePopup | message(int popupStyle, String caption, String text, QPixmap icon, long parent, String name, int timeout)
Convenience method that displays popup with the specified popup-style, icon, caption and
message beside the icon of the specified window.
|
static KPassivePopup | message(int popupStyle, String caption, String text, QPixmap icon, long parent, String name) |
static KPassivePopup | message(int popupStyle, String caption, String text, QPixmap icon, long parent) |
QMetaObject | metaObject() |
protected void | mouseReleaseEvent(QMouseEvent e)
Reimplemented to detect mouse clicks. |
protected void | moveNear(QRect target)
Moves the popup to be adjacent to the icon of the specified rectangle. |
protected void | paintEvent(QPaintEvent pe)
Overwrite to paint the border when PopupStyle == Balloon.
|
protected void | positionSelf()
This method positions the popup. |
void | setAnchor(QPoint anchor)
Sets the anchor of this balloon. |
void | setAutoDelete(boolean autoDelete)
Enables / disables auto-deletion of this widget when the timeout
occurs.
|
void | setTimeout(int delay)
Sets the delay for the popup is removed automatically. |
void | setView(QWidget child)
Sets the main view to be the specified widget (which must be a child of the popup). |
void | setView(String caption, String text)
Creates a standard view then calls setView(QWidget) . |
void | setView(String caption) |
void | setView(String caption, String text, QPixmap icon)
Creates a standard view then calls setView(QWidget) . |
void | show()
Reimplemented to reposition the popup. |
void | show(QPoint p)
Shows the popup in the given point |
QVBox | standardView(String caption, String text, QPixmap icon, QWidget parent)
Returns a widget that is used as standard view if one of the
setView() methods taking the String arguments is used.
|
QVBox | standardView(String caption, String text, QPixmap icon) |
int | timeout()
Returns the delay before the popup is removed automatically. |
protected void | updateMask()
Updates the transparency mask. |
QWidget | view()
Returns the main view. |
UNKNOWN: Styles that a KPassivePopup can have.
UNKNOWN: Creates a popup for the specified widget.
UNKNOWN: Creates a popup for the specified window.
UNKNOWN: Creates a popup for the specified widget.
UNKNOWN: Creates a popup for the specified window.
Returns: true if the widget auto-deletes itself when the timeout occurs.
See Also: KPassivePopup
UNKNOWN:
Returns: The QRect to be passed to moveNear() if no other is available.
UNKNOWN: If no relative window (eg taskbar button, system tray window) is available, use this rectangle (pass it to moveNear()).
UNKNOWN: Reimplemented to destroy the object when autoDelete() is enabled.
See Also: KPassivePopup
UNKNOWN: Convenience method that displays popup with the specified message beside the icon of the specified widget.
See Also: KPassivePopup
UNKNOWN: Convenience method that displays popup with the specified caption and message beside the icon of the specified widget.
See Also: KPassivePopup
UNKNOWN: Convenience method that displays popup with the specified icon, caption and message beside the icon of the specified widget.
See Also: KPassivePopup
UNKNOWN: Convenience method that displays popup with the specified icon, caption and message beside the icon of the specified window.
See Also: KPassivePopup
UNKNOWN: Convenience method that displays popup with the specified popup-style and message beside the icon of the specified widget.
See Also: KPassivePopup
UNKNOWN: Convenience method that displays popup with the specified popup-style, caption and message beside the icon of the specified widget.
See Also: KPassivePopup
UNKNOWN: Convenience method that displays popup with the specified popup-style, icon, caption and message beside the icon of the specified widget.
See Also: KPassivePopup
UNKNOWN: Convenience method that displays popup with the specified popup-style, icon, caption and message beside the icon of the specified window.
UNKNOWN: Reimplemented to detect mouse clicks.
UNKNOWN: Moves the popup to be adjacent to the icon of the specified rectangle.
UNKNOWN: Overwrite to paint the border when PopupStyle == Balloon.
UNKNOWN: This method positions the popup.
UNKNOWN: Sets the anchor of this balloon.
UNKNOWN: Enables / disables auto-deletion of this widget when the timeout occurs.
See Also: KPassivePopup
UNKNOWN: Sets the delay for the popup is removed automatically.
UNKNOWN: Sets the main view to be the specified widget (which must be a child of the popup).
UNKNOWN: Creates a standard view then calls setView(QWidget ) .
UNKNOWN: Creates a standard view then calls setView(QWidget ) .
UNKNOWN: Reimplemented to reposition the popup.
UNKNOWN: Shows the popup in the given point
Parameters: caption The window caption (title) on the popup text The text for the popup icon The icon to use for the popup parent The parent widget used for the returned QVBox. If left null, then "this", i.e. the passive popup object will be used.
Returns: a QVBox containing the given arguments, looking like the standard passivepopups.
See Also: (
org.kde.qt.QWidget (
KPassivePopup KPassivePopup (
KPassivePopup KPassivePopup KPassivePopup org.kde.qt.QPixmap&
UNKNOWN: Returns a widget that is used as standard view if one of the setView() methods taking the String arguments is used.
UNKNOWN: Returns the delay before the popup is removed automatically.
UNKNOWN: Updates the transparency mask.
UNKNOWN: Returns the main view.