|
gschem
|
#include <config.h>#include <glib.h>#include <glib-object.h>#include <glib/gstdio.h>#include "gschem.h"#include <gdk/gdkkeysyms.h>#include "../include/gschem_dialog.h"
Go to the source code of this file.
Defines | |
| #define | DIALOG_GEOMETRY_STORE "gschem-dialog-geometry" |
Enumerations | |
| enum | { PROP_SETTINGS_NAME = 1, PROP_GSCHEM_TOPLEVEL } |
| enum | { GEOMETRY_SAVE, GEOMETRY_RESTORE, LAST_SIGNAL } |
Functions | |
| static void | gschem_marshal_VOID__POINTER_STRING (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data) |
| static void | save_geometry_to_file (gpointer user_data) |
| Save all geometry data into a file. | |
| static void | geometry_save (GschemDialog *dialog, GKeyFile *key_file, gchar *group_name) |
| GschemDialog "geometry_save" class method handler. | |
| static void | geometry_restore (GschemDialog *dialog, GKeyFile *key_file, gchar *group_name) |
| GschemDialog "geometry_restore" class method handler. | |
| static void | setup_keyfile () |
| Setup the GKeyFile for saving / restoring geometry. | |
| static void | show_handler (GtkWidget *widget) |
| GtkWidget show signal handler. | |
| static void | unmap_handler (GtkWidget *widget) |
| GtkWidget unmap signal handler. | |
| static void | gschem_dialog_finalize (GObject *object) |
| GObject finalise handler. | |
| static void | gschem_dialog_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) |
| GObject property setter function. | |
| static void | gschem_dialog_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) |
| GObject property getter function. | |
| static void | gschem_dialog_class_init (GschemDialogClass *klass) |
| GType class initialiser for GschemDialog. | |
| GType | gschem_dialog_get_type () |
| Function to retrieve GschemDialog's GType identifier. | |
| static void | gschem_dialog_add_buttons_valist (GtkDialog *dialog, const gchar *first_button_text, va_list args) |
| Internal GTK function modified from GTK+-2.4.14 gtkdialog.c to support gschem_dialog_new_with_buttons(...) | |
| static GtkWidget * | gschem_dialog_new_empty (const gchar *title, GtkWindow *parent, GtkDialogFlags flags, const gchar *settings_name, GSCHEM_TOPLEVEL *w_current) |
| Internal GTK function modified from GTK+-2.4.14 gtkdialog.c to support gschem_dialog_new_with_buttons(...) | |
| GtkWidget * | gschem_dialog_new_with_buttons (const gchar *title, GtkWindow *parent, GtkDialogFlags flags, const gchar *settings_name, GSCHEM_TOPLEVEL *w_current, const gchar *first_button_text,...) |
| GTK function modified from GTK+-2.4.14 gtkdialog.c to provide a GschemDialog equivelant of the convenience function gtk_dialog_new_with_buttons(...) | |
Variables | |
| static guint | gschem_dialog_signals [LAST_SIGNAL] = { 0 } |
| static GObjectClass * | gschem_dialog_parent_class = NULL |
| static GKeyFile * | dialog_geometry = NULL |
| #define DIALOG_GEOMETRY_STORE "gschem-dialog-geometry" |
Definition at line 90 of file gschem_dialog.c.
| anonymous enum |
Definition at line 73 of file gschem_dialog.c.
| anonymous enum |
Definition at line 79 of file gschem_dialog.c.
| static void gschem_marshal_VOID__POINTER_STRING | ( | GClosure * | closure, |
| GValue * | return_value, | ||
| guint | n_param_values, | ||
| const GValue * | param_values, | ||
| gpointer | invocation_hint, | ||
| gpointer | marshal_data | ||
| ) | [static] |
Definition at line 39 of file gschem_dialog.c.
| static void save_geometry_to_file | ( | gpointer | user_data | ) | [static] |
| [in] | user_data | unused |
Definition at line 100 of file gschem_dialog.c.
| static void geometry_save | ( | GschemDialog * | dialog, |
| GKeyFile * | key_file, | ||
| gchar * | group_name | ||
| ) | [static] |
| [in] | dialog | The GschemDialog to save the position and size of. |
| [in] | key_file | The GKeyFile to save the geometry data to. |
| [in] | group_name | The group name in the key file to store the data under. |
Definition at line 124 of file gschem_dialog.c.
| static void geometry_restore | ( | GschemDialog * | dialog, |
| GKeyFile * | key_file, | ||
| gchar * | group_name | ||
| ) | [static] |
| [in] | dialog | The GschemDialog to restore the position and size of. |
| [in] | key_file | The GKeyFile to load the geometry data from. |
| [in] | group_name | The group name in the key file to find the data under. |
Definition at line 147 of file gschem_dialog.c.
| static void setup_keyfile | ( | ) | [static] |
Definition at line 168 of file gschem_dialog.c.

| static void show_handler | ( | GtkWidget * | widget | ) | [static] |
| [in] | widget | The GtkWidget being shown. |
Definition at line 207 of file gschem_dialog.c.

| static void unmap_handler | ( | GtkWidget * | widget | ) | [static] |
This typically happens when you call gtk_widget_destroy().
| [in] | widget | The GtkWidget being unmapped. |
Definition at line 238 of file gschem_dialog.c.
| static void gschem_dialog_finalize | ( | GObject * | object | ) | [static] |
| [in] | object | The GObject being finalized. |
Definition at line 264 of file gschem_dialog.c.
| static void gschem_dialog_set_property | ( | GObject * | object, |
| guint | property_id, | ||
| const GValue * | value, | ||
| GParamSpec * | pspec | ||
| ) | [static] |
| [in] | object | The GObject whose properties we are setting |
| [in] | property_id | The numeric id. under which the property was registered with g_object_class_install_property() |
| [in] | value | The GValue the property is being set from |
| [in] | pspec | A GParamSpec describing the property being set |
Definition at line 286 of file gschem_dialog.c.
| static void gschem_dialog_get_property | ( | GObject * | object, |
| guint | property_id, | ||
| GValue * | value, | ||
| GParamSpec * | pspec | ||
| ) | [static] |
| [in] | object | The GObject whose properties we are getting |
| [in] | property_id | The numeric id. under which the property was registered with g_object_class_install_property() |
| [out] | value | The GValue in which to return the value of the property |
| [in] | pspec | A GParamSpec describing the property being got |
Definition at line 317 of file gschem_dialog.c.
| static void gschem_dialog_class_init | ( | GschemDialogClass * | klass | ) | [static] |
| [in] | klass | The GschemDialogClass we are initialising |
Definition at line 343 of file gschem_dialog.c.

| GType gschem_dialog_get_type | ( | void | ) |
Definition at line 413 of file gschem_dialog.c.

| static void gschem_dialog_add_buttons_valist | ( | GtkDialog * | dialog, |
| const gchar * | first_button_text, | ||
| va_list | args | ||
| ) | [static] |
| [in] | dialog | The GtkDialog buttons are being added to |
| [in] | first_button_text | The text string for the first button |
| [in] | args | The va_list containging the remaining button strings |
Definition at line 449 of file gschem_dialog.c.
| static GtkWidget* gschem_dialog_new_empty | ( | const gchar * | title, |
| GtkWindow * | parent, | ||
| GtkDialogFlags | flags, | ||
| const gchar * | settings_name, | ||
| GSCHEM_TOPLEVEL * | w_current | ||
| ) | [static] |
| [in] | title | The title text of the dialog |
| [in] | parent | The GtkWindow which will parent this dialog |
| [in] | flags | The GtkDialogFlags to use when setting up the dialog |
| [in] | settings_name | The name gschem should use to store this dialog's settings |
| [in] | w_current | The GSCHEM_TOPLEVEL object this dialog is associated with |
Definition at line 490 of file gschem_dialog.c.
| GtkWidget* gschem_dialog_new_with_buttons | ( | const gchar * | title, |
| GtkWindow * | parent, | ||
| GtkDialogFlags | flags, | ||
| const gchar * | settings_name, | ||
| GSCHEM_TOPLEVEL * | w_current, | ||
| const gchar * | first_button_text, | ||
| ... | |||
| ) |
| [in] | title | The title text of the dialog |
| [in] | parent | The GtkWindow which will parent this dialog |
| [in] | flags | The GtkDialogFlags to use when setting up the dialog |
| [in] | settings_name | The name gschem should use to store this dialog's settings |
| [in] | w_current | The GSCHEM_TOPLEVEL object this dialog is associated with |
| [in] | first_button_text | The text string for the first button |
| [in] | ... | A variable number of arguments with the remaining button strings |
Definition at line 539 of file gschem_dialog.c.

guint gschem_dialog_signals[LAST_SIGNAL] = { 0 } [static] |
Definition at line 85 of file gschem_dialog.c.
GObjectClass* gschem_dialog_parent_class = NULL [static] |
Definition at line 86 of file gschem_dialog.c.
GKeyFile* dialog_geometry = NULL [static] |
Definition at line 88 of file gschem_dialog.c.