gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
MessageDialog Class Reference

#include <MessageDialog.H>

Inheritance diagram for MessageDialog:
[legend]
Collaboration diagram for MessageDialog:
[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
void setBorder (unsigned int size)
 
unsigned int getBorder (void)
 
Containeroperator<< (Container &c)
 
Containeroperator<< (Container *c)
 
Containeroperator<< (Widget &w)
 
Containeroperator<< (Widget *w)
 
virtual Containeroperator<< (GtkWidget *w)
 
Containeroperator<< (LinkList< GtkWidget *> &ll)
 
Containeroperator>> (GtkWidget *w)
 
Containeroperator>> (Container *c)
 
Containeroperator>> (Container &c)
 
Containeroperator>> (LinkList< GtkWidget *> &ll)
 
void setChildrensSensitivity (bool sens)
 
bool areAnyChildrensSensitive (void)
 
unsigned int size ()
 
- Public Member Functions inherited from Widget
 Widget ()
 Construcotr. More...
 
 Widget (GtkWidget *w)
 
virtual ~Widget ()
 Destructor. More...
 
GtkWidget * ref (void)
 
void unref (void)
 
GtkWidget * show (void)
 
GtkWidget * hide (void)
 
bool getVisible (void)
 
GtkWidget * getWidget (void)
 
bool getSensitive (void)
 
void setSensitive (bool sens)
 
void getSize (int &width, int &height)
 
virtual void setSize (int width, int height)
 
void getLocationSize (int &x, int &y, int &width, int &height)
 
void queueDraw ()
 
GdkWindow * getWindow ()
 
void connect (const char *event, GCallback callback, gpointer data)
 
void connectAfter (const char *event, GCallback callback, gpointer data)
 
void connectExposeEventCallback (GCallback callback, void *data)
 
void connectExposeEventCallback (GtkWidget *w, GCallback callback, void *data)
 
void connectConfigureEventCallback (GCallback callback, void *data)
 
void connectConfigureEventCallback (GtkWidget *w, GCallback callback, void *data)
 
Widgetoperator<< (DragNDrop &dnd)
 
Widgetoperator>> (DragNDrop &dnd)
 

Additional Inherited Members

- Protected Member Functions inherited from Container
virtual void pack (GtkWidget *obj)
 
- Protected Member Functions inherited from Widget
virtual bool checkDropValidity (GtkWidget *w, GtkWidget *sourceWidget, int info, const unsigned char *selectionStoredData)
 
virtual bool dragDataReceived (GtkWidget *w, GtkWidget *sourceWidget, int info, const unsigned char *selectionStoredData, int length)
 
virtual void dragLeave (GtkWidget *w, GtkWidget *sourceWidget)
 
virtual bool dragMotion (GtkWidget *w, GtkWidget *sourceWidget, int x, int y)
 
virtual int chooseTheTargetToUse (GtkWidget *w, GtkWidget *sourceWidget, DragNDrop &dnd)
 
virtual void dragDataGet (GtkWidget *w, GtkSelectionData *selectionData, guint info)
 
virtual void dragDataDelete (GtkWidget *w)
 
virtual void dragBegin (GtkWidget *w)
 
virtual void dragEnd (GtkWidget *w)
 
- 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() [1/3]

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() [2/3]

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() [3/3]

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:

◆ ~MessageDialog()

virtual MessageDialog::~MessageDialog ( )
inlinevirtual

Destructor

Definition at line 72 of file MessageDialog.H.

Member Function Documentation

◆ operator<<() [1/3]

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 80 of file MessageDialog.H.

Here is the caller graph for this function:

◆ operator<<() [2/3]

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 88 of file MessageDialog.H.

Here is the call graph for this function:

◆ operator<<() [3/3]

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 98 of file MessageDialog.H.

Here is the call graph for this function:

◆ run()

void MessageDialog::run ( void  )
inline

run the dialog

Examples:
MessageDialogTest.C.

Definition at line 106 of file MessageDialog.H.

◆ title() [1/2]

void MessageDialog::title ( char *  text)
inline

Set the title

Parameters
textthe title to show
Examples:
MessageDialogTest.C.

Definition at line 113 of file MessageDialog.H.

◆ title() [2/2]

void MessageDialog::title ( string &  text)
inline

Set the title

Parameters
textthe title to show

Definition at line 121 of file MessageDialog.H.


The documentation for this class was generated from the following file:
gtkIOStream: MessageDialog Class Reference
GTK+ IOStream  Beta