.TH "KPopupFrame" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KPopupFrame \- Frame with popup menu behaviour.  

.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
.RI "\fIClose the popup window. \fP"
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKPopupFrame\fP (\fBQWidget\fP *parent=0, const  char *name=0)"
.br
.RI "\fIThe contructor. \fP"
.ti -1c
.RI "void \fBsetMainWidget\fP (\fBQWidget\fP *m)"
.br
.RI "\fISet the main widget. \fP"
.ti -1c
.RI "virtual void \fBresizeEvent\fP (\fBQResizeEvent\fP *)"
.br
.RI "\fIThe resize event. \fP"
.ti -1c
.RI "void \fBpopup\fP (const  \fBQPoint\fP &pos)"
.br
.RI "\fIOpen the popup window at position pos. \fP"
.ti -1c
.RI "int \fBexec\fP (\fBQPoint\fP p)"
.br
.RI "\fIExecute the popup window. \fP"
.ti -1c
.RI "int \fBexec\fP (int x, int y)"
.br
.RI "\fIDito. \fP"
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBkeyPressEvent\fP (\fBQKeyEvent\fP *e)"
.br
.RI "\fICatch key press events. \fP"
.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
.RI "\fIThe result. \fP"
.ti -1c
.RI "\fBQWidget\fP * \fBmain\fP"
.br
.RI "\fIThe only subwidget that uses the whole dialog window. \fP"
.in -1c
.SH "Detailed Description"
.PP 
Frame with popup menu behaviour. 

\fBAuthor:\fP
.RS 4
Tim Gilman, Mirko Boehm 
.RE
.PP
\fBVersion:\fP
.RS 4
\fBId\fP.RS 4
\fBkdatetbl.h\fP,v 1.31 2002/07/25 13:26:37 lukas Exp 
.RE
.PP
.RE
.PP

.PP
Definition at line 157 of file kdatetbl.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KPopupFrame::KPopupFrame (\fBQWidget\fP * parent = 0, const char * name = 0)"
.PP
The contructor. Creates a dialog without buttons. Definition at line 688 of file kdatetbl.cpp.
.PP
References KStdAccel::name(), 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. Definition at line 698 of file kdatetbl.cpp.
.PP
References QKeyEvent::key(), and result.
.SS "void KPopupFrame::close (int r)\fC [slot]\fP"
.PP
Close the popup window. This is called from the main widget, usually. \fCr\fP is the result returned from \fBexec()\fP. Definition at line 708 of file kdatetbl.cpp.
.PP
References result.
.SS "void KPopupFrame::setMainWidget (\fBQWidget\fP * m)"
.PP
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 715 of file kdatetbl.cpp.
.PP
References QFrame::frameWidth(), QWidget::height(), main, and QWidget::width().
.PP
Referenced by KDatePicker::selectWeekClicked().
.SS "void KPopupFrame::resizeEvent (\fBQResizeEvent\fP *)\fC [virtual]\fP"
.PP
The resize event. Simply resizes the main widget to the whole widgets client size. Reimplemented from \fBQFrame\fP.
.PP
Definition at line 725 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. Definition at line 735 of file kdatetbl.cpp.
.PP
References QApplication::desktop(), QRect::height(), KIO::move(), QRect::width(), QRect::x(), QPoint::x(), QRect::y(), and QPoint::y().
.PP
Referenced by exec().
.SS "int KPopupFrame::exec (\fBQPoint\fP p)"
.PP
Execute the popup window. Definition at line 758 of file kdatetbl.cpp.
.PP
References popup(), and result.
.PP
Referenced by exec(), and KDatePicker::selectWeekClicked().
.SS "int KPopupFrame::exec (int x, int y)"
.PP
Dito. Definition at line 768 of file kdatetbl.cpp.
.PP
References exec().
.SH "Member Data Documentation"
.PP 
.SS "int \fBKPopupFrame::result\fP\fC [protected]\fP"
.PP
The result. It is returned from \fBexec()\fP when the popup window closes. Definition at line 164 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. Definition at line 172 of file kdatetbl.h.
.PP
Referenced by resizeEvent(), and setMainWidget().

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