The Gnome Chemistry Utils 0.13.3
Public Member Functions | Protected Attributes
gcu::Dialog Class Reference

#include <gcu/dialog.h>

List of all members.

Public Member Functions

 Dialog (Application *App, const char *windowname, DialogOwner *owner=NULL) throw (std::runtime_error)
void SetRealName (char const *name, DialogOwner *owner) throw (std::runtime_error)

Protected Attributes

Applicationm_App

Detailed Description

This class is base class for dialog boxes. It provides some basic services.

Definition at line 39 of file dialog.h.


Constructor & Destructor Documentation

gcu::Dialog::Dialog ( Application App,
const char *  windowname,
DialogOwner owner = NULL 
) throw (std::runtime_error)
Parameters:
App,:the Application which owns the dialog.
windowname,:the name of the top level GtkWidget of the dialog box in the glade file. This name should be unique for the application. It is used to access the contextual help and to ensure the uniqueness of the dialog (in some cases).
owner,:the address of an owner object, might be App or a document or NULL (the default). when owner is not NULL, the dialog will be unique for it.

Member Function Documentation

void gcu::Dialog::SetRealName ( char const *  name,
DialogOwner owner 
) throw (std::runtime_error)
Parameters:
namea new name for the window.
ownerthe address of an dialog owner object.

Usually, the Dialog is registered using its window name as passed to the constructor. If several occurences of the same Dialog are acceptable, another unique name is needed. owner might be NULL if it has already been set in the constructor. The existence of a Dialog with the same name should be checked before calling this method, because that would throw an error.


Member Data Documentation

The Application instance owning the dialog.

Definition at line 74 of file dialog.h.


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