• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kdeui

KPopupFrame Class Reference

Frame with popup menu behavior. More...

#include <kdatetbl.h>

Inheritance diagram for KPopupFrame:

Inheritance graph
[legend]

List of all members.


Public Slots

void close (int r)
void hide ()

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

QWidget * main
int result

Detailed Description

Frame with popup menu behavior.

Author:
Tim Gilman, Mirko Boehm
Version:
Id
kdatetbl.h 565029 2006-07-22 07:30:24Z kling

Definition at line 166 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 916 of file kdatetbl.cpp.

KPopupFrame::~KPopupFrame (  ) 

The destructor.

Definition at line 926 of file kdatetbl.cpp.


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

Definition at line 943 of file kdatetbl.cpp.

int KPopupFrame::exec ( int  x,
int  y 
)

Execute the popup window.

Definition at line 1020 of file kdatetbl.cpp.

int KPopupFrame::exec ( QPoint  p  ) 

Execute the popup window.

Definition at line 1006 of file kdatetbl.cpp.

void KPopupFrame::hide (  )  [slot]

Hides the widget.

Reimplemented from QWidget

Definition at line 951 of file kdatetbl.cpp.

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

Catch key press events.

Definition at line 932 of file kdatetbl.cpp.

void KPopupFrame::popup ( const QPoint &  pos  ) 

Open the popup window at position pos.

Definition at line 982 of file kdatetbl.cpp.

void KPopupFrame::resizeEvent ( QResizeEvent *   )  [virtual]

The resize event.

Simply resizes the main widget to the whole widgets client size.

Reimplemented from QFrame.

Definition at line 972 of file kdatetbl.cpp.

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 962 of file kdatetbl.cpp.

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

Definition at line 1025 of file kdatetbl.cpp.


Member Data Documentation

QWidget* KPopupFrame::main [protected]

The only subwidget that uses the whole dialog window.

Definition at line 181 of file kdatetbl.h.

int KPopupFrame::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:
  • kdatetbl.h
  • kdatetbl.cpp

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal