kplato

#include <kptdatetable.h>

Inherits TQFrame.

Public Slots

void close (int r)
 

Public Member Functions

 PopupFrame (TQWidget *parent=0, const char *name=0)
 
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 behaviour.

Author
Tim Gilman, Mirko Boehm
Version
Id
kptdatetable.h 576264 2006-08-23 16:28:46Z danders

Definition at line 178 of file kptdatetable.h.

Constructor & Destructor Documentation

◆ PopupFrame()

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

The contructor.

Creates a dialog without buttons.

Definition at line 983 of file kptdatetable.cpp.

Member Function Documentation

◆ close

void KPlato::PopupFrame::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 1003 of file kptdatetable.cpp.

◆ exec() [1/2]

int KPlato::PopupFrame::exec ( int  x,
int  y 
)

Dito.

Definition at line 1063 of file kptdatetable.cpp.

◆ exec() [2/2]

int KPlato::PopupFrame::exec ( TQPoint  p)

Execute the popup window.

Definition at line 1053 of file kptdatetable.cpp.

◆ keyPressEvent()

void KPlato::PopupFrame::keyPressEvent ( TQKeyEvent *  e)
protectedvirtual

Catch key press events.

Definition at line 993 of file kptdatetable.cpp.

◆ popup()

void KPlato::PopupFrame::popup ( const TQPoint &  pos)

Open the popup window at position pos.

Definition at line 1030 of file kptdatetable.cpp.

◆ resizeEvent()

void KPlato::PopupFrame::resizeEvent ( TQResizeEvent *  )
virtual

The resize event.

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

Definition at line 1020 of file kptdatetable.cpp.

◆ setMainWidget()

void KPlato::PopupFrame::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 1010 of file kptdatetable.cpp.

◆ virtual_hook()

void KPlato::PopupFrame::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Definition at line 1068 of file kptdatetable.cpp.

Member Data Documentation

◆ main

TQWidget* KPlato::PopupFrame::main
protected

The only subwidget that uses the whole dialog window.

Definition at line 194 of file kptdatetable.h.

◆ result

int KPlato::PopupFrame::result
protected

The result.

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

Definition at line 186 of file kptdatetable.h.


The documentation for this class was generated from the following files: