#include <kdatetbl.h>
Inherits TQFrame.
Public Slots | |
void | close (int r) |
void | hide () |
Public Member Functions | |
TDEPopupFrame (TQWidget *parent=0, const char *name=0) | |
~TDEPopupFrame () | |
void | setMainWidget (TQWidget *m) |
virtual void | resizeEvent (TQResizeEvent *) |
void | popup (const TQPoint &pos) |
int | exec (TQPoint p) |
int | exec (int x, int y) |
Protected Member Functions | |
virtual void | keyPressEvent (TQKeyEvent *e) |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
int | result |
TQWidget * | main |
Detailed Description
Constructor & Destructor Documentation
◆ TDEPopupFrame()
TDEPopupFrame::TDEPopupFrame | ( | TQWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
◆ ~TDEPopupFrame()
TDEPopupFrame::~TDEPopupFrame | ( | ) |
The destructor.
Definition at line 926 of file kdatetbl.cpp.
Member Function Documentation
◆ close
|
slot |
Close the popup window.
This is called from the main widget, usually. r
is the result returned from exec().
Definition at line 943 of file kdatetbl.cpp.
◆ exec() [1/2]
int TDEPopupFrame::exec | ( | int | x, |
int | y | ||
) |
Execute the popup window.
Definition at line 1020 of file kdatetbl.cpp.
◆ exec() [2/2]
int TDEPopupFrame::exec | ( | TQPoint | p | ) |
Execute the popup window.
Definition at line 1006 of file kdatetbl.cpp.
◆ hide
|
slot |
◆ keyPressEvent()
|
protectedvirtual |
Catch key press events.
Definition at line 932 of file kdatetbl.cpp.
◆ popup()
void TDEPopupFrame::popup | ( | const TQPoint & | pos | ) |
Open the popup window at position pos.
Definition at line 982 of file kdatetbl.cpp.
◆ resizeEvent()
|
virtual |
The resize event.
Simply resizes the main widget to the whole widgets client size.
Definition at line 972 of file kdatetbl.cpp.
◆ setMainWidget()
void TDEPopupFrame::setMainWidget | ( | TQWidget * | 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.
Definition at line 962 of file kdatetbl.cpp.
Member Data Documentation
◆ main
|
protected |
The only subwidget that uses the whole dialog window.
Definition at line 181 of file kdatetbl.h.
◆ result
|
protected |
The result.
It is returned from exec() when the popup window closes.
Definition at line 173 of file kdatetbl.h.
The documentation for this class was generated from the following files: