org.kde.koala

Class KPopupFrame

public class KPopupFrame extends QFrame

Frame with popup menu behavior.

Version: $Id: KPopupFrame.java 473384 2005-10-23 14:17:09Z rdale $

Author: Tim Gilman, Mirko Boehm

UNKNOWN: Frame with popup menu behavior.

Constructor Summary
protected KPopupFrame(Class dummy)
KPopupFrame(QWidget parent, String name)
The contructor.
KPopupFrame(QWidget parent)
KPopupFrame()
Method Summary
StringclassName()
voidclose(int r)
Close the popup window.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
intexec(QPoint p)
Execute the popup window.
intexec(int x, int y)
Execute the popup window.
protected voidfinalize()
Deletes the wrapped C++ instance
voidhide()
Hides the widget.
booleanisDisposed()
Has the wrapped C++ instance been deleted?
protected voidkeyPressEvent(QKeyEvent e)
Catch key press events.
QMetaObjectmetaObject()
voidpopup(QPoint pos)
Open the popup window at position pos.
voidresizeEvent(QResizeEvent arg1)
The resize event.
voidsetMainWidget(QWidget m)
Set the main widget.

Constructor Detail

KPopupFrame

protected KPopupFrame(Class dummy)

KPopupFrame

public KPopupFrame(QWidget parent, String name)
The contructor. Creates a dialog without buttons.

UNKNOWN: The contructor.

KPopupFrame

public KPopupFrame(QWidget parent)

KPopupFrame

public KPopupFrame()

Method Detail

className

public String className()

close

public void close(int r)
Close the popup window. This is called from the main widget, usually. r is the result returned from exec().

UNKNOWN: Close the popup window.

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

exec

public int exec(QPoint p)
Execute the popup window.

UNKNOWN: Execute the popup window.

exec

public int exec(int x, int y)
Execute the popup window.

UNKNOWN: Execute the popup window.

finalize

protected void finalize()
Deletes the wrapped C++ instance

hide

public void hide()
Hides the widget. Reimplemented from QWidget

UNKNOWN: Hides the widget.

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

keyPressEvent

protected void keyPressEvent(QKeyEvent e)
Catch key press events.

UNKNOWN: Catch key press events.

metaObject

public QMetaObject metaObject()

popup

public void popup(QPoint pos)
Open the popup window at position pos.

UNKNOWN: Open the popup window at position pos.

resizeEvent

public void resizeEvent(QResizeEvent arg1)
The resize event. Simply resizes the main widget to the whole widgets client size.

UNKNOWN: The resize event.

setMainWidget

public void setMainWidget(QWidget m)
Set the main widget. You cannot set the main widget from the constructor, since it must be a child of the frame itselfes. Be careful: the size is set to the main widgets size. It is up to you to set the main widgets correct size before setting it as the main widget.

UNKNOWN: Set the main widget.