MeshTex  3.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
GenericDialog.h File Reference

Declares the GenericDialog class. More...

#include <string>
#include <gdk/gdk.h>
#include <glib.h>
#include "RefCounted.h"
#include "qerplugin.h"

Go to the source code of this file.

Classes

class  GenericDialog
 Framework for a basic dialog window with OK/Apply/Cancel actions. More...

Macros

#define NamedWidget(widgetName)   (gtk_object_get_data(GTK_OBJECT(_dialog), widgetName))
 Macro to get a handle on a widget inside the dialog by name.
#define NamedToggleWidgetActive(widgetName)   (GTK_TOGGLE_BUTTON(NamedWidget(widgetName))->active)
 Macro to enable/disable a widget inside the dialog, selected by name.
#define NamedEntryWidgetText(widgetName)   (gtk_entry_get_text(GTK_ENTRY(NamedWidget(widgetName))))
 Macro to read text from a widget inside the dialog, selected by name.

Detailed Description

Declares the GenericDialog class.


Macro Definition Documentation

#define NamedEntryWidgetText (   widgetName)    (gtk_entry_get_text(GTK_ENTRY(NamedWidget(widgetName))))

Macro to read text from a widget inside the dialog, selected by name.

Parameters:
widgetNameName of the contained widget to read from.
#define NamedToggleWidgetActive (   widgetName)    (GTK_TOGGLE_BUTTON(NamedWidget(widgetName))->active)

Macro to enable/disable a widget inside the dialog, selected by name.

Parameters:
widgetNameName of the contained widget to enable/disable.
#define NamedWidget (   widgetName)    (gtk_object_get_data(GTK_OBJECT(_dialog), widgetName))

Macro to get a handle on a widget inside the dialog by name.

Parameters:
widgetNameName of the contained widget to find.