.TH "KPopupFrame" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KPopupFrame \- Frame with popup menu behavior.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kdatetbl.h>\fP
.PP
Inherits \fBQFrame\fP.
.PP
.SS "Public Slots"

.in +1c
.ti -1c
.RI "void \fBclose\fP (int r)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKPopupFrame\fP (\fBQWidget\fP *parent=0, const char *name=0)"
.br
.ti -1c
.RI "void \fBsetMainWidget\fP (\fBQWidget\fP *m)"
.br
.ti -1c
.RI "virtual void \fBresizeEvent\fP (\fBQResizeEvent\fP *)"
.br
.ti -1c
.RI "void \fBpopup\fP (const \fBQPoint\fP &pos)"
.br
.ti -1c
.RI "int \fBexec\fP (\fBQPoint\fP p)"
.br
.ti -1c
.RI "int \fBexec\fP (int x, int y)"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBkeyPressEvent\fP (\fBQKeyEvent\fP *e)"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "int \fBresult\fP"
.br
.ti -1c
.RI "\fBQWidget\fP * \fBmain\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Frame with popup menu behavior. 

\fBAuthor:\fP
.RS 4
Tim Gilman, Mirko Boehm 
.RE
.PP
\fBVersion:\fP
.RS 4
\fBId\fP.RS 4
\fBkdatetbl.h\fP 382217 2005-01-25 09:31:19Z dfaure 
.RE
.PP
.RE
.PP

.PP
Definition at line 166 of file kdatetbl.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KPopupFrame::KPopupFrame (\fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
The contructor. 
.PP
Creates a dialog without buttons. 
.PP
Definition at line 888 of file kdatetbl.cpp.
.PP
References QFrame::setFrameStyle(), and QFrame::setMidLineWidth().
.SH "Member Function Documentation"
.PP 
.SS "void KPopupFrame::keyPressEvent (\fBQKeyEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Catch key press events. 
.PP
Definition at line 898 of file kdatetbl.cpp.
.PP
References result.
.SS "void KPopupFrame::close (int r)\fC [slot]\fP"
.PP
Close the popup window. 
.PP
This is called from the main widget, usually. \fCr\fP is the result returned from \fBexec()\fP. 
.PP
Definition at line 908 of file kdatetbl.cpp.
.PP
References result.
.SS "void KPopupFrame::setMainWidget (\fBQWidget\fP * m)"
.PP
Set the main widget. 
.PP
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. 
.PP
Definition at line 915 of file kdatetbl.cpp.
.PP
References QFrame::frameWidth(), QWidget::height(), main, and QWidget::width().
.PP
Referenced by KDatePicker::selectYearClicked().
.SS "void KPopupFrame::resizeEvent (\fBQResizeEvent\fP *)\fC [virtual]\fP"
.PP
The resize event. 
.PP
Simply resizes the main widget to the whole widgets client size. 
.PP
Reimplemented from \fBQFrame\fP.
.PP
Definition at line 925 of file kdatetbl.cpp.
.PP
References QFrame::frameWidth(), main, and QWidget::setGeometry().
.SS "void KPopupFrame::popup (const \fBQPoint\fP & pos)"
.PP
Open the popup window at position pos. 
.PP
Definition at line 935 of file kdatetbl.cpp.
.PP
References KGlobalSettings::desktopGeometry(), QRect::height(), QRect::width(), QRect::x(), and QRect::y().
.PP
Referenced by exec().
.SS "int KPopupFrame::exec (\fBQPoint\fP p)"
.PP
Execute the popup window. 
.PP
Definition at line 959 of file kdatetbl.cpp.
.PP
References popup(), and result.
.PP
Referenced by exec(), and KDatePicker::selectYearClicked().
.SS "int KPopupFrame::exec (int x, int y)"
.PP
Execute the popup window. 
.PP
Definition at line 969 of file kdatetbl.cpp.
.PP
References exec().
.SH "Member Data Documentation"
.PP 
.SS "int \fBKPopupFrame::result\fP\fC [protected]\fP"
.PP
The result. 
.PP
It is returned from \fBexec()\fP when the popup window closes. 
.PP
Definition at line 173 of file kdatetbl.h.
.PP
Referenced by close(), exec(), and keyPressEvent().
.SS "\fBQWidget\fP* \fBKPopupFrame::main\fP\fC [protected]\fP"
.PP
The only subwidget that uses the whole dialog window. 
.PP
Definition at line 181 of file kdatetbl.h.
.PP
Referenced by resizeEvent(), and setMainWidget().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
