Popup Class Reference

#include <popup.h>

Inheritance diagram for Popup:

TWindow IconTV PopupList PopupListIcons FileBrowser TextButtonPopupList List of all members.

Public Member Functions

 Popup (char *ident)
virtual int getvalue ()
virtual void enable ()
void set_trigger (ButtonBase *button, bool disable_othermenu=true, int dx=0, int dy=0, bool place_relative2mouse=true, bool place_relative2window=false)

Classes

class  TriggerMechanism

Detailed Description

Defines a popup window. This shoudl be smaller than the main window, have few buttons, and designed for a single purpose. Sometimes, it's just a vessel for one type of Area ; other times, a couple of buttons. It can be used to offer options to the user, and obtain a choice.

There's a method which allows the popup to return an integer value to the main program.


Constructor & Destructor Documentation

Popup::Popup char *  ident  ) 
 

constructor


Member Function Documentation

void Popup::enable  )  [virtual]
 

changes the "disabled" flag

Reimplemented from TWindow.

int Popup::getvalue  )  [virtual]
 

this allows you to acces the return value, but you can use this only once (after the submenu was closed); otherwise it returns -1.

void Popup::set_trigger ButtonBase button,
bool  disable_othermenu = true,
int  dx = 0,
int  dy = 0,
bool  place_relative2mouse = true,
bool  place_relative2window = false
 

creates a trigger


The documentation for this class was generated from the following files:
Generated on Tue Feb 14 13:48:44 2006 for Twgui by  doxygen 1.4.6-NO