Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KPopupFrame Class Reference

#include <kdatetbl.h>

List of all members.

Public Slots

void close (int r)

Public Methods

 KPopupFrame (QWidget *parent=0, const char *name=0)
void setMainWidget (QWidget *m)
virtual void resizeEvent (QResizeEvent *)
void popup (const QPoint &pos)
int exec (QPoint p)
int exec (int x, int y)

Protected Methods

virtual void keyPressEvent (QKeyEvent *e)

Protected Attributes

int result
QWidget * main


Detailed Description

Frame with popup menu behaviour.
Author:
Tim Gilman, Mirko Boehm
Version:
Id:
kdatetbl.h,v 1.31 2002/07/25 13:26:37 lukas Exp

Definition at line 157 of file kdatetbl.h.


Constructor & Destructor Documentation

KPopupFrame::KPopupFrame QWidget *    parent = 0,
const char *    name = 0
 

The contructor. Creates a dialog without buttons.


Member Function Documentation

void KPopupFrame::close int    r [slot]
 

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

int KPopupFrame::exec int    x,
int    y
 

Dito.

int KPopupFrame::exec QPoint    p
 

Execute the popup window.

virtual void KPopupFrame::keyPressEvent QKeyEvent *    e [protected, virtual]
 

Catch key press events.

void KPopupFrame::popup const QPoint &    pos
 

Open the popup window at position pos.

virtual void KPopupFrame::resizeEvent QResizeEvent *    [virtual]
 

The resize event. Simply resizes the main widget to the whole widgets client size.

void KPopupFrame::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.


Member Data Documentation

QWidget* KPopupFrame::main [protected]
 

The only subwidget that uses the whole dialog window.

Definition at line 172 of file kdatetbl.h.

int KPopupFrame::result [protected]
 

The result. It is returned from exec() when the popup window closes.

Definition at line 164 of file kdatetbl.h.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:20 2003 for kdelibs by doxygen1.2.18