#include <Dialog.h>
Inherits Frame.
Inherited by ColorPickDialog, and MessageDialog.
Inheritance diagram for Dialog:


Public Methods | |
| Dialog (int id=0) | |
| Default constructor. More... | |
| virtual void | activate (Frame *p) |
| Activates the dialog. More... | |
| virtual void | dismiss () |
| Dismiss the dialog. More... | |
| bool | accepts (Event &event) |
| Returns true iff region will accept the event. More... | |
| void | refresh () |
| Repaints the region. More... | |
| bool | event (int regionId, int evnt) |
| Handle events from child Regions. More... | |
| bool | handleEvent (Event &evnt) |
| Handle window-system events. More... | |
| void | resize (unsigned short w, unsigned short h) |
| Resizes the region. More... | |
| void | parseSymbol (Token &t, ObjectFile &file) |
| Reads a single parameter sections inside the body of the object description. More... | |
| void | writeParams (ostream &stream) |
| Writes all parameter sections inside the body of the object description. More... | |
Protected Methods | |
| void | createSymbols () |
| Creates all parameter symbols that are used within the body of the object description. | |
Protected Attributes | |
| bool | moving |
| True iff Dialog is being dragged. | |
| string | title |
| The title of the dialog. | |
| Button * | exitButton |
| Exit/dismiss button. | |
Format: (see Frame)
PARAM ::= TITLE
TITLE ::= "title" <string>
|
|
Default constructor. Constructs a new Dialog with id 'i'. The id must be unique in the current scope. Creates an dismiss Button.
|
|
|
Returns true iff region will accept the event. Region::accepts implementation checks if the events falls within the region boundary.
Reimplemented from Region. |
|
|
Activates the dialog. Displays the dialog within the given frame (on top) and updates its parent attribute.
|
|
|
Dismiss the dialog. Removes the dialog from its parent and clears the parent attribute. Does not delete the dialog.
|
|
||||||||||||
|
Handle events from child Regions. The event method is used as a simple notification method to signal activations and state changes of regions. These event are handled bottom up until they are consumed (used). Events that are not accepted by this region are passed to the parent region. If no parent exists the event remains unconsumed.
Reimplemented from Region. |
|
|
Handle window-system events. This method handles keyboard or mouse event from the window system. Window events are handled top down, events that are not consumed are passed to child regions that are willing to accept the event.
Reimplemented from Frame. |
|
||||||||||||
|
Reads a single parameter sections inside the body of the object description. Each object has a set of parameter names associated with it, called symbols. Symbols are declared inside the createSymbols method. The method parseSymbol expects the Token t to be such a symbol and reads the corresponding parameters. Unknown symbols are passed to its super class.
Reimplemented from Frame. |
|
|
Repaints the region. This method is called whenever the screen is repainted. The repaint method uses OpenGL calls to render the region. Currently it is assumed that regions are refreshed automatically so that no refresh notification has to be done when the region changes state i.e. no refresh has to be forced by the region. Region rendering is done back to front.
Reimplemented from Frame. |
|
||||||||||||
|
Resizes the region. Virtual method to change the size of the Region.
Reimplemented from Region. |
|
|
Writes all parameter sections inside the body of the object description. This method writes all object parameters to ostream. Inhereting classes will always call super::writeParams().
Reimplemented from Frame. |