dialog.h File Reference

#include "generic/callback.h"
#include "generic/arrayrange.h"
#include "iradiant.h"
#include <gtk/gtkenums.h>
#include <string>
Include dependency graph for dialog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ModalDialog
struct  ModalDialogButton
class  RadioHBox
class  PathEntry
class  BrowsedPathEntry

Namespaces

namespace  gtkutil

Defines

#define INCLUDED_GTKUTIL_DIALOG_H

Typedefs

typedef int gint
typedef gint gboolean
typedef struct _GdkEventAny GdkEventAny
typedef struct _GtkWidget GtkWidget
typedef struct _GtkHBox GtkHBox
typedef struct _GtkVBox GtkVBox
typedef struct _GtkRadioButton GtkRadioButton
typedef struct _GtkFrame GtkFrame
typedef struct _GtkEntry GtkEntry
typedef struct _GtkButton GtkButton
typedef struct _GtkLabel GtkLabel
typedef struct _GtkTable GtkTable
typedef void(* GCallback )(void)
typedef void * gpointer
typedef struct _GtkWindow GtkWindow

Functions

GtkWindowcreate_fixedsize_modal_window (GtkWindow *parent, const std::string &title, int width, int height)
GtkWindowcreate_dialog_window (GtkWindow *parent, const std::string &title, GCallback func, gpointer data, int default_w=-1, int default_h=-1)
GtkTablecreate_dialog_table (unsigned int rows, unsigned int columns, unsigned int row_spacing, unsigned int col_spacing, int border=0)
GtkButtoncreate_dialog_button (const std::string &label, GCallback func, gpointer data)
GtkVBoxcreate_dialog_vbox (int spacing, int border=0)
GtkHBoxcreate_dialog_hbox (int spacing, int border=0)
GtkFramecreate_dialog_frame (const std::string &frameHeadline, GtkShadowType shadow=GTK_SHADOW_ETCHED_IN)
GtkButtoncreate_modal_dialog_button (const std::string &label, ModalDialogButton &button)
GtkWindowcreate_modal_dialog_window (GtkWindow *parent, const std::string &title, ModalDialog &dialog, int default_w=-1, int default_h=-1)
GtkWindowcreate_fixedsize_modal_dialog_window (GtkWindow *parent, const std::string &title, ModalDialog &dialog, int width=-1, int height=-1)
EMessageBoxReturn modal_dialog_show (GtkWindow *window, ModalDialog &dialog)
gboolean dialog_button_ok (GtkWidget *widget, ModalDialog *data)
gboolean dialog_button_cancel (GtkWidget *widget, ModalDialog *data)
gboolean dialog_button_yes (GtkWidget *widget, ModalDialog *data)
gboolean dialog_button_no (GtkWidget *widget, ModalDialog *data)
gboolean dialog_delete_callback (GtkWidget *widget, GdkEventAny *event, ModalDialog *data)
GtkWindowcreate_simple_modal_dialog_window (const std::string &title, ModalDialog &dialog, GtkWidget *contents)
RadioHBox RadioHBox_new (StringArrayRange names)
PathEntry PathEntry_new ()
GtkLabelDialogLabel_new (const std::string &name)
GtkTableDialogRow_new (const std::string &name, GtkWidget *widget)
void DialogVBox_packRow (GtkVBox *vbox, GtkWidget *row)
void gtkutil::errorDialog (GtkWindow *, const std::string &)
void gtkutil::infoDialog (GtkWindow *, const std::string &)
void gtkutil::fatalErrorDialog (GtkWindow *window, const std::string &errorText)

Define Documentation

#define INCLUDED_GTKUTIL_DIALOG_H

Definition at line 23 of file dialog.h.


Typedef Documentation

typedef gint gboolean

Definition at line 32 of file dialog.h.

typedef void(* GCallback)(void)

Definition at line 64 of file dialog.h.

typedef struct _GdkEventAny GdkEventAny

Definition at line 33 of file dialog.h.

typedef int gint

Definition at line 31 of file dialog.h.

typedef void* gpointer

Definition at line 65 of file dialog.h.

typedef struct _GtkButton GtkButton

Definition at line 40 of file dialog.h.

typedef struct _GtkEntry GtkEntry

Definition at line 39 of file dialog.h.

typedef struct _GtkFrame GtkFrame

Definition at line 38 of file dialog.h.

typedef struct _GtkHBox GtkHBox

Definition at line 35 of file dialog.h.

typedef struct _GtkLabel GtkLabel

Definition at line 41 of file dialog.h.

typedef struct _GtkRadioButton GtkRadioButton

Definition at line 37 of file dialog.h.

typedef struct _GtkTable GtkTable

Definition at line 42 of file dialog.h.

typedef struct _GtkVBox GtkVBox

Definition at line 36 of file dialog.h.

typedef struct _GtkWidget GtkWidget

Definition at line 34 of file dialog.h.

typedef struct _GtkWindow GtkWindow

Definition at line 66 of file dialog.h.


Function Documentation

GtkButton* create_dialog_button ( const std::string label,
GCallback  func,
gpointer  data 
)
GtkFrame* create_dialog_frame ( const std::string frameHeadline,
GtkShadowType  shadow = GTK_SHADOW_ETCHED_IN 
)
GtkHBox* create_dialog_hbox ( int  spacing,
int  border = 0 
)
GtkTable* create_dialog_table ( unsigned int  rows,
unsigned int  columns,
unsigned int  row_spacing,
unsigned int  col_spacing,
int  border = 0 
)
GtkVBox* create_dialog_vbox ( int  spacing,
int  border = 0 
)
GtkWindow* create_dialog_window ( GtkWindow parent,
const std::string title,
GCallback  func,
gpointer  data,
int  default_w = -1,
int  default_h = -1 
)
GtkWindow* create_fixedsize_modal_dialog_window ( GtkWindow parent,
const std::string title,
ModalDialog dialog,
int  width = -1,
int  height = -1 
)
GtkWindow* create_fixedsize_modal_window ( GtkWindow parent,
const std::string title,
int  width,
int  height 
)
GtkButton* create_modal_dialog_button ( const std::string label,
ModalDialogButton button 
)
GtkWindow* create_modal_dialog_window ( GtkWindow parent,
const std::string title,
ModalDialog dialog,
int  default_w = -1,
int  default_h = -1 
)
GtkWindow* create_simple_modal_dialog_window ( const std::string title,
ModalDialog dialog,
GtkWidget contents 
)
gboolean dialog_button_cancel ( GtkWidget widget,
ModalDialog data 
)
gboolean dialog_button_no ( GtkWidget widget,
ModalDialog data 
)
gboolean dialog_button_ok ( GtkWidget widget,
ModalDialog data 
)
gboolean dialog_button_yes ( GtkWidget widget,
ModalDialog data 
)
gboolean dialog_delete_callback ( GtkWidget widget,
GdkEventAny event,
ModalDialog data 
)
GtkLabel* DialogLabel_new ( const std::string name  ) 
GtkTable* DialogRow_new ( const std::string name,
GtkWidget widget 
)
void DialogVBox_packRow ( GtkVBox vbox,
GtkWidget row 
)
EMessageBoxReturn modal_dialog_show ( GtkWindow window,
ModalDialog dialog 
)
PathEntry PathEntry_new (  ) 
RadioHBox RadioHBox_new ( StringArrayRange  names  ) 

Generated by  doxygen 1.6.2