gschem

o_misc.c File Reference

#include <config.h>
#include <stdio.h>
#include <ctype.h>
#include <libgen.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "gschem.h"
Include dependency graph for o_misc.c:

Go to the source code of this file.

Defines

#define FIND_WINDOW_HALF_SIZE   (5000)

Functions

void o_edit (GSCHEM_TOPLEVEL *w_current, GList *list)
void o_lock (GSCHEM_TOPLEVEL *w_current)
void o_unlock (GSCHEM_TOPLEVEL *w_current)
void o_rotate_world_update (GSCHEM_TOPLEVEL *w_current, int centerx, int centery, int angle, GList *list)
 Rotate all objects in list.
void o_mirror_world_update (GSCHEM_TOPLEVEL *w_current, int centerx, int centery, GList *list)
void o_edit_show_hidden_lowlevel (GSCHEM_TOPLEVEL *w_current, const GList *o_list)
void o_edit_show_hidden (GSCHEM_TOPLEVEL *w_current, const GList *o_list)
int o_edit_find_text (GSCHEM_TOPLEVEL *w_current, const GList *o_list, char *stext, int descend, int skip)
void o_edit_hide_specific_text (GSCHEM_TOPLEVEL *w_current, const GList *o_list, char *stext)
void o_edit_show_specific_text (GSCHEM_TOPLEVEL *w_current, const GList *o_list, char *stext)
OBJECT * o_update_component (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
 Update a component.
void o_autosave_backups (GSCHEM_TOPLEVEL *w_current)
 Do autosave on all pages that are marked.

Variables

OBJECT * last_o = NULL
int skiplast

Define Documentation

#define FIND_WINDOW_HALF_SIZE   (5000)

Definition at line 345 of file o_misc.c.


Function Documentation

void o_edit ( GSCHEM_TOPLEVEL w_current,
GList *  list 
)
Todo:
probably should go back and do the same for o_copy o_move o_delete...
Todo:
Finish function documentation!!!
Function Description

Definition at line 48 of file o_misc.c.

Here is the call graph for this function:

void o_lock ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 107 of file o_misc.c.

Here is the call graph for this function:

void o_unlock ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 146 of file o_misc.c.

Here is the call graph for this function:

void o_rotate_world_update ( GSCHEM_TOPLEVEL w_current,
int  centerx,
int  centery,
int  angle,
GList *  list 
)
Function Description
Given an object list, and the center of rotation (centerx,centery, this function traverses all the selection list, rotating each object through angle angle. The list contains a given object and all its attributes (refdes, pinname, pinlabel, ...). There is a second pass to run the rotate hooks of non-simple objects, like pin or complex objects, for example.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in]centerxCenter x coordinate of rotation.
[in]centeryCenter y coordinate of rotation.
[in]angleAngle to rotate the objects through.
[in]listThe list of objects to rotate.

Definition at line 188 of file o_misc.c.

Here is the call graph for this function:

void o_mirror_world_update ( GSCHEM_TOPLEVEL w_current,
int  centerx,
int  centery,
GList *  list 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 244 of file o_misc.c.

Here is the call graph for this function:

void o_edit_show_hidden_lowlevel ( GSCHEM_TOPLEVEL w_current,
const GList *  o_list 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 294 of file o_misc.c.

Here is the call graph for this function:

void o_edit_show_hidden ( GSCHEM_TOPLEVEL w_current,
const GList *  o_list 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 324 of file o_misc.c.

Here is the call graph for this function:

int o_edit_find_text ( GSCHEM_TOPLEVEL w_current,
const GList *  o_list,
char *  stext,
int  descend,
int  skip 
)
Todo:
Finish function documentation!!!
Function Description
Todo:
Only descends into the first source schematic

Definition at line 357 of file o_misc.c.

Here is the call graph for this function:

void o_edit_hide_specific_text ( GSCHEM_TOPLEVEL w_current,
const GList *  o_list,
char *  stext 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 469 of file o_misc.c.

Here is the call graph for this function:

void o_edit_show_specific_text ( GSCHEM_TOPLEVEL w_current,
const GList *  o_list,
char *  stext 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 503 of file o_misc.c.

Here is the call graph for this function:

OBJECT* o_update_component ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Function Description
Updates o_current to the latest version of the symbol available in the symbol library, while preserving any attributes set in the current schematic. On success, returns the new OBJECT which replaces o_current on the page; o_current is deleted. On failure, returns NULL, and o_current is left unchanged.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object.
[in,out]o_currentThe OBJECT to be updated.
Returns:
the new OBJECT that replaces o_current.

Definition at line 547 of file o_misc.c.

Here is the call graph for this function:

void o_autosave_backups ( GSCHEM_TOPLEVEL w_current)
Function Description
Looks for pages with the do_autosave_backup flag activated and autosaves them.
Parameters:
[in]w_currentThe GSCHEM_TOPLEVEL object to search for autosave's.

Definition at line 650 of file o_misc.c.


Variable Documentation

OBJECT* last_o = NULL

Definition at line 347 of file o_misc.c.

int skiplast

Definition at line 348 of file o_misc.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines