GtkFC API Reference version 0.1.0

Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Examples  

Gdialog Class Reference

#include <Gdialog.h>

Inheritance diagram for Gdialog:

Gwidget Gobject List of all members.

Public Methods

 Gdialog (Gstring title, bool modal=false)
 ~Gdialog ()
void Insert (Gwidget *w)
bool Result ()
virtual void OnAction (Gwidget *w, GdkEvent *e)
bool Init ()
virtual bool OnInit ()

Detailed Description

The Gdialog class provide a base class to build dialog box. The dialog is composed of an area and two Gbutton called ok and cancel. A Gdialog send an event to the parent widget when a button is pressed. The Result() method return true if ok was pressed. Gdialog can use the virtual method Action() of Gwidget to execute an action when done.
See also:
The askyesno.cpp example , Gwidget::Action()
Author(s):
Thibaut Nicolas @cersion 0.1.0
Examples:

askyesno.cpp.


Constructor & Destructor Documentation

Gdialog::Gdialog ( Gstring title,
bool modal = false )
 

Construct a dialog box with title and modal A modal dialog box does not cause the code to be interrupted but disable events on others windows


Member Function Documentation

bool Gdialog::Init ( ) [virtual]
 

Init the widget

Reimplemented from Gwidget.

void Gdialog::Insert ( Gwidget * w )
 

Insert a widget in the area

Reimplemented from Gwidget.

virtual void Gdialog::OnAction ( Gwidget * w,
GdkEvent * e ) [virtual]
 

Action performed when a child widget sent an event

Reimplemented from Gwidget.

bool Gdialog::Result ( )
 

Return true if ok was pressed


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

Copyright © 2002 Thibaut Nicolas
Last modified  lun sep 23 23:41:26 EDT 2002