|
gschem
|
#include <config.h>#include <missing.h>#include <stdio.h>#include "gschem.h"
Go to the source code of this file.
Defines | |
| #define | GSCHEM_THEME_ICON_NAME "geda-gschem" |
Functions | |
| void | x_window_setup (GSCHEM_TOPLEVEL *w_current) |
| void | x_window_setup_gc (GSCHEM_TOPLEVEL *w_current) |
| void | x_window_free_gc (GSCHEM_TOPLEVEL *w_current) |
| void | x_window_create_drawing (GtkWidget *drawbox, GSCHEM_TOPLEVEL *w_current) |
| void | x_window_setup_draw_events (GSCHEM_TOPLEVEL *w_current) |
| static GtkWidget * | x_window_stock_pixmap (const char *stock, GSCHEM_TOPLEVEL *w_current) |
| Creates a new GtkImage displaying a GTK stock icon if available. | |
| static void | x_window_invoke_macro (GtkEntry *entry, void *userdata) |
| void | x_window_create_main (GSCHEM_TOPLEVEL *w_current) |
| void | x_window_close (GSCHEM_TOPLEVEL *w_current) |
| void | x_window_close_all (GSCHEM_TOPLEVEL *w_current) |
| PAGE * | x_window_open_page (GSCHEM_TOPLEVEL *w_current, const gchar *filename) |
| Opens a new page from a file. | |
| void | x_window_set_current_page (GSCHEM_TOPLEVEL *w_current, PAGE *page) |
| Changes the current page. | |
| gint | x_window_save_page (GSCHEM_TOPLEVEL *w_current, PAGE *page, const gchar *filename) |
| Saves a page to a file. | |
| void | x_window_close_page (GSCHEM_TOPLEVEL *w_current, PAGE *page) |
| Closes a page. | |
| void | x_window_set_default_icon (void) |
| Setup default icon for GTK windows. | |
| #define GSCHEM_THEME_ICON_NAME "geda-gschem" |
Definition at line 31 of file x_window.c.
| void x_window_setup | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 38 of file x_window.c.

| void x_window_setup_gc | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 77 of file x_window.c.
| void x_window_free_gc | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 92 of file x_window.c.
| void x_window_create_drawing | ( | GtkWidget * | drawbox, |
| GSCHEM_TOPLEVEL * | w_current | ||
| ) |
Definition at line 102 of file x_window.c.
| void x_window_setup_draw_events | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 130 of file x_window.c.

| static GtkWidget* x_window_stock_pixmap | ( | const char * | stock, |
| GSCHEM_TOPLEVEL * | w_current | ||
| ) | [static] |
If a stock GTK icon with the requested name was not found, this function falls back to the bitmap icons provided in the distribution.
| stock | Name of the stock icon ("new", "open", etc.) |
| w_current | Schematic top level |
Definition at line 186 of file x_window.c.
| static void x_window_invoke_macro | ( | GtkEntry * | entry, |
| void * | userdata | ||
| ) | [static] |
| void x_window_create_main | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 247 of file x_window.c.

| void x_window_close | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 543 of file x_window.c.

| void x_window_close_all | ( | GSCHEM_TOPLEVEL * | w_current | ) |
Definition at line 662 of file x_window.c.

| PAGE* x_window_open_page | ( | GSCHEM_TOPLEVEL * | w_current, |
| const gchar * | filename | ||
| ) |
If there is no page for filename in toplevel's list of pages, it creates a new PAGE, loads the file in it and returns a pointer on the new page. Otherwise it returns a pointer on the existing page.
If the filename passed is NULL, this function creates an empty, untitled page. The name of the untitled page is build from configuration data ('untitled-name') and a counter for uniqueness.
The opened page becomes the current page of toplevel.
| [in] | w_current | The toplevel environment. |
| [in] | filename | The name of the file to open or NULL for a blank page. |
Definition at line 700 of file x_window.c.

| void x_window_set_current_page | ( | GSCHEM_TOPLEVEL * | w_current, |
| PAGE * | page | ||
| ) |
It changes the toplevel's current page to page, draws it and updates the user interface.
page has to be in the list of PAGEs attached to toplevel.
| [in] | w_current | The toplevel environment. |
| [in] | page | The page to become current page. |
Definition at line 800 of file x_window.c.

| gint x_window_save_page | ( | GSCHEM_TOPLEVEL * | w_current, |
| PAGE * | page, | ||
| const gchar * | filename | ||
| ) |
It returns the value returned by function f_save() trying to save page page to file filename (1 on success, 0 on failure).
page may not be the current page of toplevel. The current page of toplevel is not affected by this function.
| [in] | w_current | The toplevel environment. |
| [in] | page | The page to save. |
| [in] | filename | The name of the file in which to save page. |
Definition at line 842 of file x_window.c.

| void x_window_close_page | ( | GSCHEM_TOPLEVEL * | w_current, |
| PAGE * | page | ||
| ) |
If necessary, the current page of toplevel is changed to the next valid page or to a new untitled page.
| [in] | w_current | The toplevel environment. |
| [in] | page | The page to close. |
Definition at line 921 of file x_window.c.

| void x_window_set_default_icon | ( | void | ) |
Definition at line 987 of file x_window.c.