Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
gxkdialog.cc File Reference
#include "gxkdialog.hh"
#include "gxkradget.hh"
#include "gxkstock.hh"
#include "gxkstatusbar.hh"
#include <gdk/gdkkeysyms.h>
#include <string.h>
Include dependency graph for gxkdialog.cc:

Macros

#define DEFAULT_TITLE
 

Functions

 G_DEFINE_TYPE (GxkDialog, gxk_dialog, GTK_TYPE_WINDOW)
 
gpointer gxk_dialog_new (gpointer pointer_loc, GtkObject *alive_object, GxkDialogFlags flags, const gchar *title, GtkWidget *child)
 
gpointer gxk_dialog_new_radget (gpointer pointer_loc, GtkObject *alive_object, GxkDialogFlags flags, const gchar *title, const gchar *domain_name, const gchar *radget_name)
 
void gxk_dialog_set_sizes (GxkDialog *dialog, gint min_width, gint min_height, gint default_width, gint default_height)
 
void gxk_dialog_set_title (GxkDialog *dialog, const gchar *title)
 
void gxk_dialog_add_flags (GxkDialog *dialog, GxkDialogFlags flags)
 
void gxk_dialog_clear_flags (GxkDialog *dialog, GxkDialogFlags flags)
 
GtkWidget * gxk_dialog_get_child (GxkDialog *dialog)
 
void gxk_dialog_set_child (GxkDialog *dialog, GtkWidget *child)
 
void gxk_dialog_set_focus (GxkDialog *self, GtkWidget *focus_widget)
 
void gxk_dialog_set_default (GxkDialog *self, GtkWidget *default_widget)
 
GxkDialog * gxk_dialog_get_status_window (void)
 
void gxk_dialog_remove_actions (GxkDialog *dialog)
 
GtkWidget * gxk_dialog_action_multi (GxkDialog *self, const gchar *action, gpointer callback, gpointer data, const gchar *icon_stock_id, GxkDialogMultiFlags multi_mode)
 

Variables

 Enum
 

Function Documentation

GtkWidget* gxk_dialog_action_multi ( GxkDialog *  self,
const gchar *  action,
gpointer  callback,
gpointer  data,
const gchar *  icon_stock_id,
GxkDialogMultiFlags  multi_mode 
)
Parameters
dialogvalid GxkDialog
actionbutton label or stock ID
callbackcallback function for button activation
datacallback data

Add a new (stock) button to a dialog.

Here is the call graph for this function:

void gxk_dialog_add_flags ( GxkDialog *  dialog,
GxkDialogFlags  flags 
)
Parameters
dialogvalid GxkDialog
flagsadditional flags to set on the dialog.

Alter dialog flags, see gxk_dialog_new().

void gxk_dialog_clear_flags ( GxkDialog *  dialog,
GxkDialogFlags  flags 
)
Parameters
dialogvalid GxkDialog
flagsflags to unset on the dialog.

Alter dialog flags, see gxk_dialog_new().

GtkWidget* gxk_dialog_get_child ( GxkDialog *  dialog)
Parameters
dialogvalid GxkDialog

Retrieve the primary child of the dialog.

GxkDialog* gxk_dialog_get_status_window ( void  )
Returns
a valid GxkDialog or NULL

Retrieve the most recently entered GxkDialog if any.

Referenced by gxk_dialog_set_default(), and gxk_status_window_pop().

Here is the caller graph for this function:

gpointer gxk_dialog_new ( gpointer  pointer_loc,
GtkObject *  alive_object,
GxkDialogFlags  flags,
const gchar *  title,
GtkWidget *  child 
)
Parameters
pointer_locpointer to nullify upon dialog destruction
alive_objectobject which upon destruction, takes the dialog with it
flagsdialog flags
titlewindow title for the dialog
childchild to pack into the dialog

Create a new configurable dialog. Possible values for the flags are:

  • GXK_DIALOG_HIDE_ON_DELETE - only hide and not destroy the dialog upon window manager delete events;
  • GXK_DIALOG_IGNORE_ESCAPE - prevents delete event generation on Escape key presses;
  • GXK_DIALOG_DELETE_BUTTON - add a "Close" button to the dialog;
  • GXK_DIALOG_STATUS_BAR - add a status bar widget to the dialog;
  • GXK_DIALOG_WINDOW_GROUP - open up an extra window group for the dialog;
  • GXK_DIALOG_MODAL - the dialog is modal while visible;
  • GXK_DIALOG_POPUP_POS - popup the dialog below mouse pointer;
  • GXK_DIALOG_PRESERVE_STATE - prevents unrealization of the dialog upon hiding, which preserves properties like the window size.

Referenced by gxk_dialog_new().

Here is the call graph for this function:

Here is the caller graph for this function:

void gxk_dialog_remove_actions ( GxkDialog *  dialog)
Parameters
dialogvalid GxkDialog

Remove all action buttons setup for this dialog.

void gxk_dialog_set_child ( GxkDialog *  dialog,
GtkWidget *  child 
)
Parameters
dialogvalid GxkDialog
childnew child

Change the dialog's primary child to child. Destroys the old child if any.

Referenced by gxk_dialog_new().

Here is the caller graph for this function:

void gxk_dialog_set_default ( GxkDialog *  self,
GtkWidget *  default_widget 
)
Parameters
dialogvalid GxkDialog
default_widgetvalid GtkWidget

This function is similar to gxk_dialog_set_focus(), it just affects the widget taking the default activation.

Referenced by gxk_dialog_action_multi().

Here is the call graph for this function:

Here is the caller graph for this function:

void gxk_dialog_set_focus ( GxkDialog *  self,
GtkWidget *  focus_widget 
)
Parameters
dialogvalid GxkDialog
focus_widgetvalid GtkWidget

A GxkDialog will automatically unset the focus everytime it is shown, unless focus_widget is a valid widget that can be focused each time.

Referenced by gxk_dialog_set_default().

Here is the caller graph for this function:

void gxk_dialog_set_sizes ( GxkDialog *  dialog,
gint  min_width,
gint  min_height,
gint  default_width,
gint  default_height 
)
Parameters
dialogvalid GxkDialog
min_widthminimum dialog width or -1
min_heightminimum dialog height or -1
default_widthdefault dialog width or -1
default_heightdefault dialog height or -1

Set the dialog's minimum and default sizes, constrained to not exceed the screen dimensions.

void gxk_dialog_set_title ( GxkDialog *  dialog,
const gchar *  title 
)
Parameters
dialogvalid GxkDialog
titledialog window manager title

Change the dialog's window manager title and role.

Referenced by gxk_dialog_new().

Here is the caller graph for this function: