• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdeui
 

kdeui

Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KPopupFrame Class Reference

#include <kdatetbl.h>

Inherits TQFrame.

Public Slots

void close (int r)
 
void hide ()
 

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

int result
 
TQWidget * main
 

Detailed Description

Frame with popup menu behavior.

Author
Tim Gilman, Mirko Boehm
Version
$Id$

Definition at line 166 of file kdatetbl.h.

Constructor & Destructor Documentation

KPopupFrame::KPopupFrame ( TQWidget *  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 ( TQPoint  p)

Execute the popup window.

Definition at line 1006 of file kdatetbl.cpp.

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

Execute the popup window.

Definition at line 1020 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 ( TQKeyEvent *  e)
protectedvirtual

Catch key press events.

Definition at line 932 of file kdatetbl.cpp.

void KPopupFrame::popup ( const TQPoint &  pos)

Open the popup window at position pos.

Definition at line 982 of file kdatetbl.cpp.

void KPopupFrame::resizeEvent ( TQResizeEvent *  )
virtual

The resize event.

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

Definition at line 972 of file kdatetbl.cpp.

void KPopupFrame::setMainWidget ( TQWidget *  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.

Member Data Documentation

TQWidget* 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

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.8.6
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |