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

tdeui

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

#include <kdatetbl.h>

Inherits TQFrame.

Public Slots

void close (int r)
 
void hide ()
 

Public Member Functions

 TDEPopupFrame (TQWidget *parent=0, const char *name=0)
 
 ~TDEPopupFrame ()
 
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

◆ TDEPopupFrame()

TDEPopupFrame::TDEPopupFrame ( TQWidget *  parent = 0,
const char *  name = 0 
)

The contructor.

Creates a dialog without buttons.

Definition at line 916 of file kdatetbl.cpp.

◆ ~TDEPopupFrame()

TDEPopupFrame::~TDEPopupFrame ( )

The destructor.

Definition at line 926 of file kdatetbl.cpp.

Member Function Documentation

◆ close

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

◆ exec() [1/2]

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

Execute the popup window.

Definition at line 1020 of file kdatetbl.cpp.

◆ exec() [2/2]

int TDEPopupFrame::exec ( TQPoint  p)

Execute the popup window.

Definition at line 1006 of file kdatetbl.cpp.

◆ hide

void TDEPopupFrame::hide ( )
slot

Hides the widget.

Reimplemented from TQWidget

Definition at line 951 of file kdatetbl.cpp.

◆ keyPressEvent()

void TDEPopupFrame::keyPressEvent ( TQKeyEvent *  e)
protectedvirtual

Catch key press events.

Definition at line 932 of file kdatetbl.cpp.

◆ popup()

void TDEPopupFrame::popup ( const TQPoint &  pos)

Open the popup window at position pos.

Definition at line 982 of file kdatetbl.cpp.

◆ resizeEvent()

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

◆ setMainWidget()

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

◆ virtual_hook()

void TDEPopupFrame::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Definition at line 1025 of file kdatetbl.cpp.

Member Data Documentation

◆ main

TQWidget* TDEPopupFrame::main
protected

The only subwidget that uses the whole dialog window.

Definition at line 181 of file kdatetbl.h.

◆ result

int TDEPopupFrame::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

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.