Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

KPopupFrame Class Reference

#include </home/clem/local/src/opie/noncore/apps/tinykate/libkate/microkde/kdatetbl.h>

List of all members.

Public Slots

void close (int r)

Public Member Functions

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

Protected Member Functions

void keyPressEvent (QKeyEvent *e)
virtual void virtual_hook (int id, void *data)

Protected Attributes

int result
QWidget * main

Private Member Functions

virtual bool close (bool alsoDelete)

Private Attributes

KPopupFramePrivate * d


Detailed Description

Frame with popup menu behaviour.
Author:
Tim Gilman, Mirko Boehm
Version:
Id
kdatetbl.h,v 1.1 2002/11/10 21:10:14 jowenn Exp

Definition at line 130 of file kdatetbl.h.


Constructor & Destructor Documentation

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

The contructor. Creates a dialog without buttons.

Definition at line 627 of file kdatetbl.cpp.


Member Function Documentation

virtual bool KPopupFrame::close bool  alsoDelete  )  [inline, private, virtual]
 

Definition at line 185 of file kdatetbl.h.

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().

Definition at line 647 of file kdatetbl.cpp.

References qApp, and result.

int KPopupFrame::exec int  x,
int  y
 

Dito.

Definition at line 707 of file kdatetbl.cpp.

References exec().

int KPopupFrame::exec QPoint  p  ) 
 

Execute the popup window.

Definition at line 697 of file kdatetbl.cpp.

References popup(), qApp, and result.

Referenced by exec(), KDatePicker::selectMonthClicked(), and KDatePicker::selectYearClicked().

void KPopupFrame::keyPressEvent QKeyEvent *  e  )  [protected]
 

Catch key press events.

Definition at line 637 of file kdatetbl.cpp.

References qApp, and result.

void KPopupFrame::popup const QPoint &  pos  ) 
 

Open the popup window at position pos.

Definition at line 674 of file kdatetbl.cpp.

References d, height, width, Opie::MM::x, and Opie::MM::y.

Referenced by exec().

void KPopupFrame::resizeEvent QResizeEvent *   ) 
 

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

Definition at line 664 of file kdatetbl.cpp.

References height, main, and width.

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.

Definition at line 654 of file kdatetbl.cpp.

References main.

Referenced by KDatePicker::selectMonthClicked(), and KDatePicker::selectYearClicked().

void KPopupFrame::virtual_hook int  id,
void *  data
[protected, virtual]
 

Definition at line 712 of file kdatetbl.cpp.


Member Data Documentation

KPopupFramePrivate* KPopupFrame::d [private]
 

Definition at line 189 of file kdatetbl.h.

Referenced by popup().

QWidget* KPopupFrame::main [protected]
 

The only subwidget that uses the whole dialog window.

Definition at line 145 of file kdatetbl.h.

Referenced by resizeEvent(), and setMainWidget().

int KPopupFrame::result [protected]
 

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

Definition at line 132 of file kdatetbl.h.

Referenced by close(), exec(), and keyPressEvent().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:37:56 2005 for OPIE by  doxygen 1.4.2