gschem
|
#include <config.h>
#include <version.h>
#include <missing.h>
#include <stdio.h>
#include "gschem.h"
Go to the source code of this file.
Data Structures | |
struct | line_type_data |
struct | fill_type_data |
struct | _CloseConfirmationDialog |
struct | _CloseConfirmationDialogClass |
Defines | |
#define | GLADE_HOOKUP_OBJECT(component, widget, name) |
#define | TYPE_CLOSE_CONFIRMATION_DIALOG (close_confirmation_dialog_get_type ()) |
#define | CLOSE_CONFIRMATION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CLOSE_CONFIRMATION_DIALOG, CloseConfirmationDialog)) |
#define | CLOSE_CONFIRMATION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CLOSE_CONFIRMATION_DIALOG, CloseConfirmationDialogClass)) |
#define | IS_CLOSE_CONFIRMATION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CLOSE_CONFIRMATION_DIALOG)) |
#define | IS_CLOSE_CONFIRMATION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CLOSE_CONFIRMATION_DIALOG)) |
#define | CLOSE_CONFIRMATION_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),TYPE_CLOSE_CONFIRMATION_DIALOG, CloseConfirmationDialogClass)) |
Typedefs | |
typedef struct _CloseConfirmationDialog | CloseConfirmationDialog |
typedef struct _CloseConfirmationDialogClass | CloseConfirmationDialogClass |
Enumerations | |
enum | { PROP_UNSAVED_PAGE = 1, PROP_UNSAVED_PAGES, PROP_SELECTED_PAGES } |
enum | { COLUMN_SAVE, COLUMN_PAGE, NUM_COLUMNS } |
Functions | |
static GtkWidget * | create_menu_linetype (GSCHEM_TOPLEVEL *w_current) |
Create a line type menu for the line type dialog. | |
static gint | line_type_dialog_linetype_change (GtkWidget *w, gpointer data) |
Callback function for the linetype menu item in the line type dialog. | |
static void | line_type_dialog_ok (GtkWidget *w, gpointer data) |
Worker function for the line type and width dialog. | |
static GtkWidget * | create_menu_filltype (GSCHEM_TOPLEVEL *w_current) |
Create a menu with fill types for the line type dialog. | |
static gint | fill_type_dialog_filltype_change (GtkWidget *w, gpointer data) |
Callback function for the filltype menu in the filltype dialog. | |
static void | fill_type_dialog_ok (GtkWidget *w, gpointer data) |
Apply the settings of the filltype dialog to the selection. | |
void | destroy_window (GtkWidget *widget, GtkWidget **window) |
void | text_input_dialog_apply (GtkWidget *w, GSCHEM_TOPLEVEL *w_current) |
worker function for the text entry dialog | |
void | text_input_dialog_response (GtkWidget *widget, gint response, GSCHEM_TOPLEVEL *w_current) |
response function for the text entry dialog | |
void | text_input_dialog (GSCHEM_TOPLEVEL *w_current) |
create or present the text entry dialog | |
gint | change_alignment (GtkComboBox *w, GSCHEM_TOPLEVEL *w_current) |
CAllback for a text aligment change. | |
static GtkListStore * | create_menu_alignment (GSCHEM_TOPLEVEL *w_current) |
Create the alignment combo box list store for the text property dialog. | |
static GtkWidget * | create_color_menu (GSCHEM_TOPLEVEL *w_current) |
Create a ComboBox with the gschem colors. | |
void | text_edit_dialog_ok (GtkWidget *w, GSCHEM_TOPLEVEL *w_current) |
Apply the settings from the text property dialog. | |
void | text_edit_dialog_response (GtkWidget *widget, gint response, GSCHEM_TOPLEVEL *w_current) |
Response function for the text property dialog. | |
void | text_edit_dialog (GSCHEM_TOPLEVEL *w_current, const char *string, int text_size, int text_alignment) |
Create the edit text properties dialog. | |
static gboolean | selection_get_line_type (GList *selection, OBJECT_END *end, OBJECT_TYPE *type, gint *width, gint *length, gint *space) |
get the linetype data from selected objects | |
static void | line_type_dialog_set_values (struct line_type_data *line_type_data, OBJECT_END end, OBJECT_TYPE type, gint width, gint length, gint space) |
set the linetype in the linetype dialog | |
void | line_type_dialog_response (GtkWidget *widget, gint response, struct line_type_data *line_type_data) |
response function for the line type and width dialog | |
void | line_type_dialog (GSCHEM_TOPLEVEL *w_current) |
Creates the line type and width dialog. | |
static gboolean | selection_get_fill_type (GList *selection, OBJECT_FILLING *type, gint *width, gint *pitch1, gint *angle1, gint *pitch2, gint *angle2) |
get the filltype data from selected objects | |
static void | fill_type_dialog_set_values (struct fill_type_data *fill_type_data, OBJECT_FILLING type, gint width, gint pitch1, gint angle1, gint pitch2, gint angle2) |
set the filltype in the filltype dialog | |
void | fill_type_dialog_response (GtkWidget *widget, gint response, struct fill_type_data *fill_type_data) |
response function for the filltype dialog | |
void | fill_type_dialog (GSCHEM_TOPLEVEL *w_current) |
Creates the fill type dialog. | |
void | arc_angle_dialog_response (GtkWidget *w, gint response, GSCHEM_TOPLEVEL *w_current) |
response function for the arc angle dialog | |
void | arc_angle_dialog (GSCHEM_TOPLEVEL *w_current, OBJECT *arc_object) |
Creates the arc angle dialog. | |
void | translate_dialog_response (GtkWidget *widget, gint response, GSCHEM_TOPLEVEL *w_current) |
response function for the translate dialog | |
void | translate_dialog (GSCHEM_TOPLEVEL *w_current) |
Create the translate dialog. | |
void | text_size_dialog_response (GtkWidget *w, gint response, GSCHEM_TOPLEVEL *w_current) |
response function for the text size dialog | |
void | text_size_dialog (GSCHEM_TOPLEVEL *w_current) |
Create the text size dialog. | |
void | snap_size_dialog_response (GtkWidget *w, gint response, GSCHEM_TOPLEVEL *w_current) |
response function for the snap size dialog | |
void | snap_size_dialog (GSCHEM_TOPLEVEL *w_current) |
Create the snap size dialog. | |
void | slot_edit_dialog_response (GtkWidget *widget, gint response, GSCHEM_TOPLEVEL *w_current) |
response function for the slot edit dialog | |
void | slot_edit_dialog (GSCHEM_TOPLEVEL *w_current, const char *string) |
Create the slot entry dialog. | |
void | about_dialog (GSCHEM_TOPLEVEL *w_current) |
Create the about dialog and show it. | |
void | coord_dialog_response (GtkWidget *w, gint response, GSCHEM_TOPLEVEL *w_current) |
Response function for the coord dialog. | |
void | coord_display_update (GSCHEM_TOPLEVEL *w_current, int x, int y) |
Update the coordinates in the coord dialog box. | |
void | coord_dialog (GSCHEM_TOPLEVEL *w_current, int x, int y) |
Create the coord dialog. | |
char * | index2functionstring (int index) |
static void | color_menu_swatch_layout_data (GtkCellLayout *layout, GtkCellRenderer *cell, GtkTreeModel *model, GtkTreeIter *iter, gpointer data) |
Cell layout data function for color combobox. | |
static void | color_menu_change_selection (GtkWidget *widget, gpointer data) |
Handle color combobox selection change event. | |
void | color_edit_dialog_apply (GtkWidget *w, GSCHEM_TOPLEVEL *w_current) |
Apply a color change to selected objects. | |
void | color_edit_dialog_response (GtkWidget *widget, gint response, GSCHEM_TOPLEVEL *w_current) |
response function for the color edit dialog | |
void | color_edit_dialog (GSCHEM_TOPLEVEL *w_current) |
Create the color edit dialog. | |
void | x_dialog_hotkeys_response (GtkWidget *w, gint response, GSCHEM_TOPLEVEL *w_current) |
Response function for the hotkey dialog. | |
void | x_dialog_hotkeys (GSCHEM_TOPLEVEL *w_current) |
Creates the hotkeys dialog. | |
void | x_dialog_raise_all (GSCHEM_TOPLEVEL *w_current) |
void | generic_msg_dialog (const char *msg) |
int | generic_confirm_dialog (const char *msg) |
char * | generic_filesel_dialog (const char *msg, const char *templ, gint flags) |
void | find_text_dialog_response (GtkWidget *w, gint response, GSCHEM_TOPLEVEL *w_current) |
response function for the find text dialog | |
void | find_text_dialog (GSCHEM_TOPLEVEL *w_current) |
Create the text find dialog. | |
void | hide_text_dialog_response (GtkWidget *w, gint response, GSCHEM_TOPLEVEL *w_current) |
Response function for the hide text dialog. | |
void | hide_text_dialog (GSCHEM_TOPLEVEL *w_current) |
Creates the hide text dialog. | |
void | show_text_dialog_response (GtkWidget *widget, gint response, GSCHEM_TOPLEVEL *w_current) |
Response function for the show text dialog. | |
void | show_text_dialog (GSCHEM_TOPLEVEL *w_current) |
Create the show text dialog. | |
void | select_all_text_in_textview (GtkTextView *textview) |
Selects all text in a TextView widget. | |
int | text_view_calculate_real_tab_width (GtkTextView *textview, int tab_size) |
void | major_changed_dialog (GSCHEM_TOPLEVEL *w_current) |
static void | close_confirmation_dialog_class_init (CloseConfirmationDialogClass *klass) |
static void | close_confirmation_dialog_init (CloseConfirmationDialog *self) |
static void | close_confirmation_dialog_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) |
static void | close_confirmation_dialog_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) |
static GObject * | close_confirmation_dialog_constructor (GType type, guint n_construct_properties, GObjectConstructParam *construct_params) |
GList * | close_confirmation_dialog_get_selected_pages (CloseConfirmationDialog *dialog) |
Returns a list of the selected pages with changes to save. | |
GType | close_confirmation_dialog_get_type () |
static gint | count_pages (GtkTreeModel *model) |
Returns the number of pages in the model. | |
static gchar * | get_page_name (GtkTreeModel *model, GtkTreeIter *piter) |
Returns the name to use for the given page in the model. | |
static void | close_confirmation_dialog_set_page_name (GtkTreeViewColumn *tree_column, GtkCellRenderer *cell, GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data) |
Sets the contents of the name cell in the treeview of dialog. | |
static void | close_confirmation_dialog_callback_renderer_toggled (GtkCellRendererToggle *cell_renderer, gchar *path, gpointer user_data) |
Callback function for the toggled signal of check box in treeview. | |
static GtkWidget * | close_confirmation_dialog_build_page_list (CloseConfirmationDialog *dialog) |
Adds a treeview to confirmation dialog for selecting of pages. | |
static gboolean | get_selected_pages (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
Helps building a list of selected page to save. | |
void | x_dialog_close_changed_page (GSCHEM_TOPLEVEL *w_current, PAGE *page) |
Asks for confirmation before closing a changed page. | |
gboolean | x_dialog_close_window (GSCHEM_TOPLEVEL *w_current) |
Asks for confirmation before closing a window. | |
int | x_dialog_validate_attribute (GtkWindow *parent, char *attribute) |
Validate the input attribute. | |
void | x_dialog_edit_pin_type (GSCHEM_TOPLEVEL *w_current, const GList *obj_list) |
Edit the type of a pin (bus or net) | |
Variables | |
char | generic_textstring [256] = "refdes=R" |
GtkWidget * | stwindow |
int | start_find |
PAGE * | remember_page |
static gpointer | close_confirmation_dialog_parent_class = NULL |
#define GLADE_HOOKUP_OBJECT | ( | component, | |
widget, | |||
name | |||
) |
g_object_set_data_full (G_OBJECT (component), name, \ gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
Definition at line 39 of file x_dialog.c.
#define TYPE_CLOSE_CONFIRMATION_DIALOG (close_confirmation_dialog_get_type ()) |
Definition at line 3349 of file x_dialog.c.
#define CLOSE_CONFIRMATION_DIALOG | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CLOSE_CONFIRMATION_DIALOG, CloseConfirmationDialog)) |
Definition at line 3350 of file x_dialog.c.
#define CLOSE_CONFIRMATION_DIALOG_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CLOSE_CONFIRMATION_DIALOG, CloseConfirmationDialogClass)) |
Definition at line 3351 of file x_dialog.c.
#define IS_CLOSE_CONFIRMATION_DIALOG | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CLOSE_CONFIRMATION_DIALOG)) |
Definition at line 3352 of file x_dialog.c.
#define IS_CLOSE_CONFIRMATION_DIALOG_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CLOSE_CONFIRMATION_DIALOG)) |
Definition at line 3353 of file x_dialog.c.
#define CLOSE_CONFIRMATION_DIALOG_GET_CLASS | ( | obj | ) | (G_TYPE_INSTANCE_GET_CLASS ((obj),TYPE_CLOSE_CONFIRMATION_DIALOG, CloseConfirmationDialogClass)) |
Definition at line 3354 of file x_dialog.c.
typedef struct _CloseConfirmationDialog CloseConfirmationDialog |
Definition at line 3357 of file x_dialog.c.
typedef struct _CloseConfirmationDialogClass CloseConfirmationDialogClass |
Definition at line 3358 of file x_dialog.c.
anonymous enum |
Definition at line 3373 of file x_dialog.c.
anonymous enum |
Definition at line 3379 of file x_dialog.c.
static GtkWidget * create_menu_linetype | ( | GSCHEM_TOPLEVEL * | w_current | ) | [static] |
Definition at line 582 of file x_dialog.c.
static gint line_type_dialog_linetype_change | ( | GtkWidget * | w, |
gpointer | data | ||
) | [static] |
Definition at line 724 of file x_dialog.c.
static void line_type_dialog_ok | ( | GtkWidget * | w, |
gpointer | data | ||
) | [static] |
Definition at line 771 of file x_dialog.c.
static GtkWidget * create_menu_filltype | ( | GSCHEM_TOPLEVEL * | w_current | ) | [static] |
Definition at line 1032 of file x_dialog.c.
static gint fill_type_dialog_filltype_change | ( | GtkWidget * | w, |
gpointer | data | ||
) | [static] |
Definition at line 1197 of file x_dialog.c.
static void fill_type_dialog_ok | ( | GtkWidget * | w, |
gpointer | data | ||
) | [static] |
Definition at line 1253 of file x_dialog.c.
void destroy_window | ( | GtkWidget * | widget, |
GtkWidget ** | window | ||
) |
Definition at line 79 of file x_dialog.c.
void text_input_dialog_apply | ( | GtkWidget * | w, |
GSCHEM_TOPLEVEL * | w_current | ||
) |
Definition at line 95 of file x_dialog.c.
void text_input_dialog_response | ( | GtkWidget * | widget, |
gint | response, | ||
GSCHEM_TOPLEVEL * | w_current | ||
) |
Definition at line 142 of file x_dialog.c.
void text_input_dialog | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 165 of file x_dialog.c.
gint change_alignment | ( | GtkComboBox * | w, |
GSCHEM_TOPLEVEL * | w_current | ||
) |
Definition at line 269 of file x_dialog.c.
static GtkListStore* create_menu_alignment | ( | GSCHEM_TOPLEVEL * | w_current | ) | [static] |
Definition at line 293 of file x_dialog.c.
static GtkWidget * create_color_menu | ( | GSCHEM_TOPLEVEL * | w_current | ) | [static] |
The backing #GtkTreeModel is a #GtkListStore with two columns, the first holding the user-friendly name of the color, and the other the color map index.
[in] | w_current | The current gschem context. |
Definition at line 2421 of file x_dialog.c.
void text_edit_dialog_ok | ( | GtkWidget * | w, |
GSCHEM_TOPLEVEL * | w_current | ||
) |
Definition at line 341 of file x_dialog.c.
void text_edit_dialog_response | ( | GtkWidget * | widget, |
gint | response, | ||
GSCHEM_TOPLEVEL * | w_current | ||
) |
Definition at line 389 of file x_dialog.c.
void text_edit_dialog | ( | GSCHEM_TOPLEVEL * | w_current, |
const char * | string, | ||
int | text_size, | ||
int | text_alignment | ||
) |
Check why there's no color in the calling parameters
If more than one text element is selected, add an unchanged option
Definition at line 415 of file x_dialog.c.
static gboolean selection_get_line_type | ( | GList * | selection, |
OBJECT_END * | end, | ||
OBJECT_TYPE * | type, | ||
gint * | width, | ||
gint * | length, | ||
gint * | space | ||
) | [static] |
[in] | selection | the selection list |
[out] | end | OBJECT_END type |
[out] | type | OBJECT_FILLING type |
[out] | width | line width |
[out] | length | length of each line |
[out] | space | space between points and lines |
Definition at line 627 of file x_dialog.c.
static void line_type_dialog_set_values | ( | struct line_type_data * | line_type_data, |
OBJECT_END | end, | ||
OBJECT_TYPE | type, | ||
gint | width, | ||
gint | length, | ||
gint | space | ||
) | [static] |
[in] | line_type_data | dialog structure |
[in] | end | OBJECT_END type (currently not used) |
[in] | type | OBJECT_FILLING type |
[in] | width | fill width. |
[in] | length | length of each line |
[in] | space | space between points and lines |
Definition at line 676 of file x_dialog.c.
void line_type_dialog_response | ( | GtkWidget * | widget, |
gint | response, | ||
struct line_type_data * | line_type_data | ||
) |
Definition at line 865 of file x_dialog.c.
void line_type_dialog | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 892 of file x_dialog.c.
static gboolean selection_get_fill_type | ( | GList * | selection, |
OBJECT_FILLING * | type, | ||
gint * | width, | ||
gint * | pitch1, | ||
gint * | angle1, | ||
gint * | pitch2, | ||
gint * | angle2 | ||
) | [static] |
[in] | selection | the selection list |
[out] | type | OBJECT_FILLING type |
[out] | width | fill width. |
[out] | pitch1 | cross hatch line distance |
[out] | angle1 | cross hatch angle |
[out] | pitch2 | cross hatch line distance |
[out] | angle2 | cross hatch angle |
Definition at line 1077 of file x_dialog.c.
static void fill_type_dialog_set_values | ( | struct fill_type_data * | fill_type_data, |
OBJECT_FILLING | type, | ||
gint | width, | ||
gint | pitch1, | ||
gint | angle1, | ||
gint | pitch2, | ||
gint | angle2 | ||
) | [static] |
[in] | fill_type_data | dialog structure |
[in] | type | OBJECT_FILLING type |
[in] | width | fill width. |
[in] | pitch1 | cross hatch line distance |
[in] | angle1 | cross hatch angle |
[in] | pitch2 | cross hatch line distance |
[in] | angle2 | cross hatch angle |
Definition at line 1130 of file x_dialog.c.
void fill_type_dialog_response | ( | GtkWidget * | widget, |
gint | response, | ||
struct fill_type_data * | fill_type_data | ||
) |
Definition at line 1357 of file x_dialog.c.
void fill_type_dialog | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 1386 of file x_dialog.c.
void arc_angle_dialog_response | ( | GtkWidget * | w, |
gint | response, | ||
GSCHEM_TOPLEVEL * | w_current | ||
) |
Definition at line 1547 of file x_dialog.c.
void arc_angle_dialog | ( | GSCHEM_TOPLEVEL * | w_current, |
OBJECT * | arc_object | ||
) |
[in] | w_current | The GSCHEM_TOPLEVEL object |
[in] | arc_object | an arc OBJECT if used to modify an arc or NULL to create a new arc. |
Definition at line 1594 of file x_dialog.c.
void translate_dialog_response | ( | GtkWidget * | widget, |
gint | response, | ||
GSCHEM_TOPLEVEL * | w_current | ||
) |
Definition at line 1706 of file x_dialog.c.
void translate_dialog | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 1739 of file x_dialog.c.
void text_size_dialog_response | ( | GtkWidget * | w, |
gint | response, | ||
GSCHEM_TOPLEVEL * | w_current | ||
) |
Definition at line 1804 of file x_dialog.c.
void text_size_dialog | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 1838 of file x_dialog.c.
void snap_size_dialog_response | ( | GtkWidget * | w, |
gint | response, | ||
GSCHEM_TOPLEVEL * | w_current | ||
) |
Definition at line 1908 of file x_dialog.c.
void snap_size_dialog | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 1944 of file x_dialog.c.
void slot_edit_dialog_response | ( | GtkWidget * | widget, |
gint | response, | ||
GSCHEM_TOPLEVEL * | w_current | ||
) |
Definition at line 2014 of file x_dialog.c.
void slot_edit_dialog | ( | GSCHEM_TOPLEVEL * | w_current, |
const char * | string | ||
) |
Definition at line 2051 of file x_dialog.c.
void about_dialog | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 2123 of file x_dialog.c.
void coord_dialog_response | ( | GtkWidget * | w, |
gint | response, | ||
GSCHEM_TOPLEVEL * | w_current | ||
) |
Definition at line 2173 of file x_dialog.c.
void coord_display_update | ( | GSCHEM_TOPLEVEL * | w_current, |
int | x, | ||
int | y | ||
) |
Definition at line 2186 of file x_dialog.c.
void coord_dialog | ( | GSCHEM_TOPLEVEL * | w_current, |
int | x, | ||
int | y | ||
) |
Definition at line 2208 of file x_dialog.c.
char* index2functionstring | ( | int | index | ) |
Definition at line 2277 of file x_dialog.c.
static void color_menu_swatch_layout_data | ( | GtkCellLayout * | layout, |
GtkCellRenderer * | cell, | ||
GtkTreeModel * | model, | ||
GtkTreeIter * | iter, | ||
gpointer | data | ||
) | [static] |
layout | |
cell | |
model | |
iter | |
data | the current GSCHEM_TOPLEVEL pointer. |
Definition at line 2361 of file x_dialog.c.
static void color_menu_change_selection | ( | GtkWidget * | widget, |
gpointer | data | ||
) | [static] |
widget | |
data | the current GSCHEM_TOPLEVEL pointer. |
Definition at line 2388 of file x_dialog.c.
void color_edit_dialog_apply | ( | GtkWidget * | w, |
GSCHEM_TOPLEVEL * | w_current | ||
) |
Definition at line 2483 of file x_dialog.c.
void color_edit_dialog_response | ( | GtkWidget * | widget, |
gint | response, | ||
GSCHEM_TOPLEVEL * | w_current | ||
) |
Definition at line 2510 of file x_dialog.c.
void color_edit_dialog | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 2531 of file x_dialog.c.
void x_dialog_hotkeys_response | ( | GtkWidget * | w, |
gint | response, | ||
GSCHEM_TOPLEVEL * | w_current | ||
) |
Definition at line 2592 of file x_dialog.c.
void x_dialog_hotkeys | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 2613 of file x_dialog.c.
void x_dialog_raise_all | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 2695 of file x_dialog.c.
void generic_msg_dialog | ( | const char * | msg | ) |
Definition at line 2751 of file x_dialog.c.
int generic_confirm_dialog | ( | const char * | msg | ) |
Definition at line 2776 of file x_dialog.c.
char* generic_filesel_dialog | ( | const char * | msg, |
const char * | templ, | ||
gint | flags | ||
) |
Definition at line 2807 of file x_dialog.c.
void find_text_dialog_response | ( | GtkWidget * | w, |
gint | response, | ||
GSCHEM_TOPLEVEL * | w_current | ||
) |
Definition at line 2908 of file x_dialog.c.
void find_text_dialog | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 2957 of file x_dialog.c.
void hide_text_dialog_response | ( | GtkWidget * | w, |
gint | response, | ||
GSCHEM_TOPLEVEL * | w_current | ||
) |
Definition at line 3046 of file x_dialog.c.
void hide_text_dialog | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 3077 of file x_dialog.c.
void show_text_dialog_response | ( | GtkWidget * | widget, |
gint | response, | ||
GSCHEM_TOPLEVEL * | w_current | ||
) |
Definition at line 3147 of file x_dialog.c.
void show_text_dialog | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 3178 of file x_dialog.c.
void select_all_text_in_textview | ( | GtkTextView * | textview | ) |
Definition at line 3247 of file x_dialog.c.
int text_view_calculate_real_tab_width | ( | GtkTextView * | textview, |
int | tab_size | ||
) |
Definition at line 3262 of file x_dialog.c.
void major_changed_dialog | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 3297 of file x_dialog.c.
static void close_confirmation_dialog_class_init | ( | CloseConfirmationDialogClass * | klass | ) | [static] |
static void close_confirmation_dialog_init | ( | CloseConfirmationDialog * | self | ) | [static] |
Definition at line 3467 of file x_dialog.c.
static void close_confirmation_dialog_set_property | ( | GObject * | object, |
guint | property_id, | ||
const GValue * | value, | ||
GParamSpec * | pspec | ||
) | [static] |
Definition at line 3849 of file x_dialog.c.
static void close_confirmation_dialog_get_property | ( | GObject * | object, |
guint | property_id, | ||
GValue * | value, | ||
GParamSpec * | pspec | ||
) | [static] |
static GObject * close_confirmation_dialog_constructor | ( | GType | type, |
guint | n_construct_properties, | ||
GObjectConstructParam * | construct_params | ||
) | [static] |
GList * close_confirmation_dialog_get_selected_pages | ( | CloseConfirmationDialog * | dialog | ) |
The returned list must be freed.
[in] | dialog | The dialog. |
Definition at line 3964 of file x_dialog.c.
GType close_confirmation_dialog_get_type | ( | ) |
static gint count_pages | ( | GtkTreeModel * | model | ) | [static] |
[in] | model | The tree model. |
Definition at line 3485 of file x_dialog.c.
static gchar* get_page_name | ( | GtkTreeModel * | model, |
GtkTreeIter * | piter | ||
) | [static] |
If piter is NULL, the name for the first page of the model is returned. Otherwise, it returns the name for the page defined by the pointed iterator.
The returned value must be freed by caller.
[in] | model | The tree model. |
[in] | piter | A pointer on a GtkTreeIter of model or NULL. |
Definition at line 3514 of file x_dialog.c.
static void close_confirmation_dialog_set_page_name | ( | GtkTreeViewColumn * | tree_column, |
GtkCellRenderer * | cell, | ||
GtkTreeModel * | tree_model, | ||
GtkTreeIter * | iter, | ||
gpointer | data | ||
) | [static] |
[in] | tree_column | A GtkTreeColumn. |
[in] | cell | The GtkCellRenderer that is being rendered by tree_column. |
[in] | tree_model | The GtkTreeModel being rendered. |
[in] | iter | A GtkTreeIter of the current row rendered. |
[in] | data | . |
Definition at line 3547 of file x_dialog.c.
static void close_confirmation_dialog_callback_renderer_toggled | ( | GtkCellRendererToggle * | cell_renderer, |
gchar * | path, | ||
gpointer | user_data | ||
) | [static] |
[in] | cell_renderer | The GtkCellRendererToggle. |
[in] | path | The GtkTreePath to the concerned row in model. |
[in] | user_data | The dialog as user data. |
Definition at line 3574 of file x_dialog.c.
static GtkWidget* close_confirmation_dialog_build_page_list | ( | CloseConfirmationDialog * | dialog | ) | [static] |
The treeview displays the page names with check boxes.
[in] | dialog | The dialog. |
Definition at line 3608 of file x_dialog.c.
static gboolean get_selected_pages | ( | GtkTreeModel * | model, |
GtkTreePath * | path, | ||
GtkTreeIter * | iter, | ||
gpointer | data | ||
) | [static] |
It builds from the tree model a list of PAGEs for which a save action has been requested. Each selected page is appended to the GList pointed by data
[in] | model | The tree model. |
[in] | path | . |
[in] | iter | . |
[in] | data | A pointer on a GList* to fill. |
Definition at line 3933 of file x_dialog.c.
void x_dialog_close_changed_page | ( | GSCHEM_TOPLEVEL * | w_current, |
PAGE * | page | ||
) |
It displays a message dialog inviting the user to cancel the closing, or to discard the changes or to save the changes to a file.
[in] | w_current | The toplevel environment. |
[in] | page | The page to close. |
Definition at line 3989 of file x_dialog.c.
gboolean x_dialog_close_window | ( | GSCHEM_TOPLEVEL * | w_current | ) |
The user is given the possibility to save the pages that currently have unsaved changes, if any.
It returns TRUE if the user really accepts the close of the window. Otherwise the user has somehow cancelled and the window must not be closed.
[in] | w_current | The toplevel environment. |
Definition at line 4059 of file x_dialog.c.
int x_dialog_validate_attribute | ( | GtkWindow * | parent, |
char * | attribute | ||
) |
parent | The parent window which spawned this dialog box. |
attribute | The attribute to be validated. |
Definition at line 4151 of file x_dialog.c.
void x_dialog_edit_pin_type | ( | GSCHEM_TOPLEVEL * | w_current, |
const GList * | obj_list | ||
) |
Definition at line 4177 of file x_dialog.c.
char generic_textstring[256] = "refdes=R" |
Definition at line 87 of file x_dialog.c.
GtkWidget* stwindow |
int start_find |
Definition at line 2900 of file x_dialog.c.
PAGE* remember_page |
Definition at line 2901 of file x_dialog.c.
gpointer close_confirmation_dialog_parent_class = NULL [static] |
Definition at line 3386 of file x_dialog.c.