KPopupFrame Class Reference
Frame with popup menu behaviour. More...
#include <mkdatetbl.h>
Inheritance diagram for KPopupFrame:

Public Slots | |
void | close (int r) |
Close the popup window. | |
Public Member Functions | |
KPopupFrame (QWidget *parent=0, const char *name=0) | |
The contructor. | |
void | setMainWidget (QWidget *m) |
Set the main widget. | |
void | resizeEvent (QResizeEvent *) |
The resize event. | |
void | popup (const QPoint &pos) |
Open the popup window at position pos. | |
int | exec (QPoint p) |
Execute the popup window. | |
int | exec (int x, int y) |
Dito. | |
Protected Member Functions | |
void | keyPressEvent (QKeyEvent *e) |
Catch key press events. | |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
int | result |
The result. | |
QWidget * | main |
The only subwidget that uses the whole dialog window. |
Detailed Description
Frame with popup menu behaviour.
- Author:
- Tim Gilman, Mirko Boehm
- Version:
- Id
- mkdatetbl.h,v 1.2 2002/06/26 22:43:01 cschumac Exp
Definition at line 141 of file mkdatetbl.h.
Constructor & Destructor Documentation
|
The contructor. Creates a dialog without buttons. Definition at line 699 of file mkdatetbl.cpp. References QFrame::setFrameStyle(), and QFrame::setMidLineWidth(). |
Member Function Documentation
|
Catch key press events.
Definition at line 709 of file mkdatetbl.cpp. References QKeyEvent::key(), and result. |
|
Close the popup window.
This is called from the main widget, usually. Definition at line 719 of file mkdatetbl.cpp. References result. |
|
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. Definition at line 726 of file mkdatetbl.cpp. References QFrame::frameWidth(), QWidget::height(), main, and QWidget::width(). |
|
The resize event. Simply resizes the main widget to the whole widgets client size. Reimplemented from QFrame. Definition at line 736 of file mkdatetbl.cpp. References QFrame::frameWidth(), main, and QWidget::setGeometry(). |
|
Open the popup window at position pos.
Definition at line 746 of file mkdatetbl.cpp. References QApplication::desktop(), QRect::height(), QRect::width(), QRect::x(), QPoint::x(), QRect::y(), and QPoint::y(). Referenced by exec(). |
|
Execute the popup window.
Definition at line 769 of file mkdatetbl.cpp. References popup(), and result. Referenced by exec(). |
|
Dito.
Definition at line 779 of file mkdatetbl.cpp. References exec(). |
Member Data Documentation
|
The result. It is returned from exec() when the popup window closes. Definition at line 148 of file mkdatetbl.h. Referenced by close(), exec(), and keyPressEvent(). |
|
The only subwidget that uses the whole dialog window.
Definition at line 156 of file mkdatetbl.h. Referenced by resizeEvent(), and setMainWidget(). |
The documentation for this class was generated from the following files: