gschem
|
#include <config.h>
#include "gschem.h"
Go to the source code of this file.
Functions | |
static void | x_fileselect_setup_filechooser_filters (GtkFileChooser *filechooser) |
Creates filter for file chooser. | |
static void | x_fileselect_callback_update_preview (GtkFileChooser *chooser, gpointer user_data) |
Updates the preview when the selection changes. | |
static void | x_fileselect_add_preview (GtkFileChooser *filechooser) |
Adds a preview to a file chooser. | |
void | x_fileselect_open (GSCHEM_TOPLEVEL *w_current) |
Opens a file chooser for opening one or more schematics. | |
void | x_fileselect_save (GSCHEM_TOPLEVEL *w_current) |
Opens a file chooser for saving the current page. | |
int | x_fileselect_load_backup (void *user_data, GString *message) |
Load/Backup selection dialog. |
static void x_fileselect_setup_filechooser_filters | ( | GtkFileChooser * | filechooser | ) | [static] |
[in] | filechooser | The file chooser to add filter to. |
Definition at line 36 of file x_fileselect.c.
static void x_fileselect_callback_update_preview | ( | GtkFileChooser * | chooser, |
gpointer | user_data | ||
) | [static] |
It updates the preview widget with the name of the newly selected file.
[in] | chooser | The file chooser to add the preview to. |
[in] | user_data | A pointer on the preview widget. |
Definition at line 76 of file x_fileselect.c.
static void x_fileselect_add_preview | ( | GtkFileChooser * | filechooser | ) | [static] |
The Preview object is inserted in a frame and alignment widget for accurate positionning.
Other widgets can be added to this preview area for example to enable/disable the preview. Currently, the preview is always active.
Function x_fileselect_callback_update_preview() is connected to the signal 'update-preview' of GtkFileChooser so that it redraws the preview area every time a new file is selected.
[in] | filechooser | The file chooser to add the preview to. |
Definition at line 117 of file x_fileselect.c.
void x_fileselect_open | ( | GSCHEM_TOPLEVEL * | w_current | ) |
The function updates the user interface.
At the end of the function, the w_current->toplevel's current page is set to the page of the last loaded page.
[in] | w_current | The GSCHEM_TOPLEVEL environment. |
Definition at line 166 of file x_fileselect.c.
void x_fileselect_save | ( | GSCHEM_TOPLEVEL * | w_current | ) |
If the user cancels the operation (with the cancel button), the page is not saved.
The function updates the user interface.
[in] | w_current | The GSCHEM_TOPLEVEL environment. |
Definition at line 226 of file x_fileselect.c.
int x_fileselect_load_backup | ( | void * | user_data, |
GString * | message | ||
) |
[in] | user_data | The TOPLEVEL object. |
[in] | message | Message to display to user. |
Definition at line 320 of file x_fileselect.c.