GTK+ IOStream  Beta
<< GTK+ >> add C++ IOStream operators to GTK+. Now with extra abilities ... like network serialisation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
MessageDialog Class Reference

#include <MessageDialog.H>

Inheritance diagram for MessageDialog:
Inheritance graph
[legend]
Collaboration diagram for MessageDialog:
Collaboration graph
[legend]

Public Member Functions

 MessageDialog (GtkWidget *parent, GtkDialogFlags flags, GtkMessageType whichType, GtkButtonsType buttonsType, const char *text)
 
 MessageDialog (GtkWidget *parent, GtkDialogFlags flags, GtkMessageType whichType, GtkButtonsType buttonsType, string &text)
 
 MessageDialog (GtkWidget *parent, GtkDialogFlags flags, GtkMessageType whichType, GtkButtonsType buttonsType, Pango &pango)
 
virtual ~MessageDialog ()
 
MessageDialogoperator<< (char *str)
 
MessageDialogoperator<< (string str)
 
MessageDialogoperator<< (Pango &pango)
 
void run (void)
 
void title (char *text)
 
void title (string &text)
 
- Public Member Functions inherited from Container
GtkWidget * getWidget (void)
 
GtkWidget * show (void)
 
GtkWidget * hide (void)
 
void setBorder (unsigned int size)
 
unsigned int getBorder (void)
 
Containeroperator<< (Container &b)
 
Containeroperator<< (Container *b)
 
virtual Containeroperator<< (GtkWidget *b)
 
Containeroperator<< (LinkList< GtkWidget * > &ll)
 
Containeroperator>> (GtkWidget *b)
 
Containeroperator>> (Container *b)
 
Containeroperator>> (Container &b)
 
- Public Member Functions inherited from Widget
virtual ~Widget ()
 Destructor. More...
 
GtkWidget * ref (void)
 
void unref (void)
 

Additional Inherited Members

- Protected Member Functions inherited from Container
virtual void pack (GtkWidget *obj)
 
- Protected Attributes inherited from Widget
GtkWidget * widget
 The container based widget. More...
 

Detailed Description

The default message dialog which displays either text or Pango.

Here is an example of a MessageInfo dialog using Pango :

MessageInfo.pango.jpg

See MessageInfo, MessageError, MessageQuestion and MessageWarning for other examples.

Definition at line 32 of file MessageDialog.H.

Constructor & Destructor Documentation

MessageDialog::MessageDialog ( GtkWidget *  parent,
GtkDialogFlags  flags,
GtkMessageType  whichType,
GtkButtonsType  buttonsType,
const char *  text 
)
inline
A dialog which defaults to 'other' type with no buttons
Parameters
parentThe parent window to show (default=NULL)
flagswhich control the behaviour GTK_DIALOG_MODAL, GTK_DIALOG_DESTROY_WITH_PARENT (default), GTK_DIALOG_NO_SEPARATOR
whichTypethe type of dialog which controls the icon (default=GTK_MESSAGE_OTHER)
buttonsTypeThe buttons which are shown (default=GTK_BUTTONS_NONE)
textThe text to show (default=NULL)

Definition at line 41 of file MessageDialog.H.

MessageDialog::MessageDialog ( GtkWidget *  parent,
GtkDialogFlags  flags,
GtkMessageType  whichType,
GtkButtonsType  buttonsType,
string &  text 
)
inline
A dialog which defaults to 'other' type with no buttons
Parameters
parentThe parent window to show (default=NULL)
flagswhich control the behaviour GTK_DIALOG_MODAL, GTK_DIALOG_DESTROY_WITH_PARENT (default), GTK_DIALOG_NO_SEPARATOR
whichTypethe type of dialog which controls the icon (default=GTK_MESSAGE_OTHER)
buttonsTypeThe buttons which are shown (default=GTK_BUTTONS_NONE)
textThe text to show (default=NULL)

Definition at line 52 of file MessageDialog.H.

MessageDialog::MessageDialog ( GtkWidget *  parent,
GtkDialogFlags  flags,
GtkMessageType  whichType,
GtkButtonsType  buttonsType,
Pango pango 
)
inline
A dialog using Pango
Parameters
parentThe parent window to show (default=NULL)
flagswhich control the behaviour GTK_DIALOG_MODAL, GTK_DIALOG_DESTROY_WITH_PARENT (default), GTK_DIALOG_NO_SEPARATOR
whichTypethe type of dialog which controls the icon (default=GTK_MESSAGE_OTHER)
buttonsTypeThe buttons which are shown (default=GTK_BUTTONS_NONE)
pangoThe pango markup to show

Definition at line 63 of file MessageDialog.H.

Here is the call graph for this function:

virtual MessageDialog::~MessageDialog ( )
inlinevirtual

Destructor

Definition at line 69 of file MessageDialog.H.

Member Function Documentation

MessageDialog& MessageDialog::operator<< ( char *  str)
inline
Load the string into the dialog
Parameters
strthe string to show
Returns
A reference to this instance of the class

Definition at line 77 of file MessageDialog.H.

Here is the caller graph for this function:

MessageDialog& MessageDialog::operator<< ( string  str)
inline
Load the char* string into the dialog
Parameters
strthe string to show
Returns
A reference to this instance of the class

Definition at line 85 of file MessageDialog.H.

Here is the call graph for this function:

MessageDialog& MessageDialog::operator<< ( Pango pango)
inline
Set the box text to the Pango markup
Parameters
pangothe Pango markup to use
Returns
A reference to this instance of the class

Definition at line 95 of file MessageDialog.H.

Here is the call graph for this function:

void MessageDialog::run ( void  )
inline

run the dialog

Definition at line 103 of file MessageDialog.H.

Here is the caller graph for this function:

void MessageDialog::title ( char *  text)
inline
Set the title
Parameters
textthe title to show

Definition at line 110 of file MessageDialog.H.

Here is the caller graph for this function:

void MessageDialog::title ( string &  text)
inline
Set the title
Parameters
textthe title to show

Definition at line 118 of file MessageDialog.H.


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