gschem
|
#include <config.h>
#include <stdio.h>
#include "gschem.h"
Go to the source code of this file.
Defines | |
#define | DEFINE_POPUP_CALLBACK(name, action) |
Enumerations | |
enum | { COLUMN_PAGE, COLUMN_NAME, COLUMN_CHANGED, NUM_COLUMNS } |
Functions | |
static void | x_pagesel_callback_response (GtkDialog *dialog, gint arg1, gpointer user_data) |
Callback for page manager response. | |
void | x_pagesel_open (GSCHEM_TOPLEVEL *w_current) |
Open the page manager dialog. | |
void | x_pagesel_close (GSCHEM_TOPLEVEL *w_current) |
Close the page manager dialog. | |
void | x_pagesel_update (GSCHEM_TOPLEVEL *w_current) |
Update the list and status of toplevel's pages. | |
static void | pagesel_class_init (PageselClass *klass) |
static void | pagesel_init (Pagesel *pagesel) |
static void | pagesel_popup_menu (Pagesel *pagesel, GdkEventButton *event) |
Popup context-sensitive menu. | |
static void | pagesel_callback_selection_changed (GtkTreeSelection *selection, gpointer user_data) |
static gboolean | pagesel_callback_button_pressed (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
static gboolean | pagesel_callback_popup_menu (GtkWidget *widget, gpointer user_data) |
static void | pagesel_callback_popup_new_page (GtkMenuItem *menuitem, gpointer user_data) |
static void | pagesel_callback_popup_open_page (GtkMenuItem *menuitem, gpointer user_data) |
static void | pagesel_callback_popup_save_page (GtkMenuItem *menuitem, gpointer user_data) |
static void | pagesel_callback_popup_close_page (GtkMenuItem *menuitem, gpointer user_data) |
static void | pagesel_callback_popup_discard_page (GtkMenuItem *menuitem, gpointer user_data) |
static void | notify_gschem_toplevel_cb (GObject *gobject, GParamSpec *arg1, gpointer user_data) |
Handler for the notify::gschem-toplevel signal of GschemDialog. | |
GType | pagesel_get_type () |
static void | add_page (GtkTreeModel *model, GtkTreeIter *parent, GedaPageList *pages, PAGE *page) |
Update tree model of pagesel's treeview. | |
static void | select_page (GtkTreeView *treeview, GtkTreeIter *parent, PAGE *page) |
void | pagesel_update (Pagesel *pagesel) |
#define DEFINE_POPUP_CALLBACK | ( | name, | |
action | |||
) |
static void \ pagesel_callback_popup_ ## name (GtkMenuItem *menuitem, \ gpointer user_data) \ { \ i_callback_ ## action (GSCHEM_DIALOG (user_data)->w_current, 0, NULL); \ }
Definition at line 211 of file x_pagesel.c.
anonymous enum |
Definition at line 132 of file x_pagesel.c.
static void x_pagesel_callback_response | ( | GtkDialog * | dialog, |
gint | arg1, | ||
gpointer | user_data | ||
) | [static] |
[in] | dialog | GtkDialog that issues callback. |
[in] | arg1 | Response argument of page manager dialog. |
[in] | user_data | Pointer to relevant GSCHEM_TOPLEVEL structure. |
Definition at line 110 of file x_pagesel.c.
void x_pagesel_open | ( | GSCHEM_TOPLEVEL * | w_current | ) |
[in] | w_current | The GSCHEM_TOPLEVEL object to open page manager for. |
Definition at line 50 of file x_pagesel.c.
void x_pagesel_close | ( | GSCHEM_TOPLEVEL * | w_current | ) |
[in] | w_current | The GSCHEM_TOPLEVEL object to close page manager for. |
Definition at line 77 of file x_pagesel.c.
void x_pagesel_update | ( | GSCHEM_TOPLEVEL * | w_current | ) |
[in] | w_current | The GSCHEM_TOPLEVEL object to update. |
Definition at line 94 of file x_pagesel.c.
static void pagesel_class_init | ( | PageselClass * | klass | ) | [static] |
Definition at line 347 of file x_pagesel.c.
static void pagesel_init | ( | Pagesel * | pagesel | ) | [static] |
Definition at line 356 of file x_pagesel.c.
static void pagesel_popup_menu | ( | Pagesel * | pagesel, |
GdkEventButton * | event | ||
) | [static] |
event can be NULL if the popup is triggered by a key binding instead of a mouse click.
[in] | pagesel | The Pagesel object. |
[in] | event | Mouse click event info. |
Definition at line 236 of file x_pagesel.c.
static void pagesel_callback_selection_changed | ( | GtkTreeSelection * | selection, |
gpointer | user_data | ||
) | [static] |
Definition at line 151 of file x_pagesel.c.
static gboolean pagesel_callback_button_pressed | ( | GtkWidget * | widget, |
GdkEventButton * | event, | ||
gpointer | user_data | ||
) | [static] |
Definition at line 181 of file x_pagesel.c.
static gboolean pagesel_callback_popup_menu | ( | GtkWidget * | widget, |
gpointer | user_data | ||
) | [static] |
Definition at line 201 of file x_pagesel.c.
static void pagesel_callback_popup_new_page | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) | [static] |
Definition at line 219 of file x_pagesel.c.
static void pagesel_callback_popup_open_page | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) | [static] |
Definition at line 220 of file x_pagesel.c.
static void pagesel_callback_popup_save_page | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) | [static] |
Definition at line 221 of file x_pagesel.c.
static void pagesel_callback_popup_close_page | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) | [static] |
Definition at line 222 of file x_pagesel.c.
static void pagesel_callback_popup_discard_page | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) | [static] |
Definition at line 223 of file x_pagesel.c.
static void notify_gschem_toplevel_cb | ( | GObject * | gobject, |
GParamSpec * | arg1, | ||
gpointer | user_data | ||
) | [static] |
When the gschem-toplevel property is set on the parent GschemDialog, we should update the pagesel dialog.
[in] | gobject | the object which received the signal. |
[in] | arg1 | the GParamSpec of the property which changed |
[in] | user_data | user data set when the signal handler was connected. |
Definition at line 302 of file x_pagesel.c.
GType pagesel_get_type | ( | void | ) |
Definition at line 317 of file x_pagesel.c.
static void add_page | ( | GtkTreeModel * | model, |
GtkTreeIter * | parent, | ||
GedaPageList * | pages, | ||
PAGE * | page | ||
) | [static] |
Right now, each time it is called, it rebuilds all the model from the list of pages passed in. It is a recursive function to populate the tree store
[in] | model | GtkTreeModel to update. |
[in] | parent | GtkTreeIter pointer to tree root. |
[in] | pages | GedaPageList of pages for this toplevel. |
[in] | page | The PAGE object to update tree model from. |
Definition at line 499 of file x_pagesel.c.
static void select_page | ( | GtkTreeView * | treeview, |
GtkTreeIter * | parent, | ||
PAGE * | page | ||
) | [static] |
Definition at line 535 of file x_pagesel.c.
void pagesel_update | ( | Pagesel * | pagesel | ) |
Definition at line 569 of file x_pagesel.c.