pcb 4.1.1
An interactive printed circuit board layout editor.

library.c File Reference

#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include "xincludes.h"
#include "compat.h"
#include "global.h"
#include "data.h"
#include "misc.h"
#include "set.h"
#include "buffer.h"
#include "hid.h"
#include "../hidint.h"
#include "lesstif.h"
Include dependency graph for library.c:

Go to the source code of this file.

Defines

#define stdarg(t, v)   XtSetArg(args[n], t, v); n++

Functions

static void pick_net (int pick)
static void library_browse (Widget w, void *v, XmListCallbackStruct *cbs)
static void libnode_select (Widget w, void *v, XmListCallbackStruct *cbs)
static int build_library_dialog ()
static char * pcb_basename (char *p)
static int LibraryChanged (int argc, char **argv, Coord x, Coord y)
static int LibraryShow (int argc, char **argv, Coord x, Coord y)
void lesstif_show_library ()

Variables

static Arg args [30]
static int n
static Widget library_dialog = 0
static Widget library_list
static Widget libnode_list
static XmString * library_strings = 0
static XmString * libnode_strings = 0
static int last_pick = -1
static const char libraryshow_syntax [] = "LibraryShow()"
static const char libraryshow_help [] = "Displays the library window."
HID_Action lesstif_library_action_list []

Define Documentation

#define stdarg (   t,
 
)    XtSetArg(args[n], t, v); n++

Definition at line 29 of file library.c.

Referenced by build_library_dialog(), LibraryChanged(), and pick_net().


Function Documentation

static int build_library_dialog ( ) [static]

Definition at line 85 of file library.c.

References args, libnode_list, libnode_select(), library_browse(), library_dialog, library_list, mainwind, n, and stdarg.

Referenced by LibraryChanged(), and LibraryShow().

Here is the call graph for this function:

void lesstif_show_library ( void  )

Definition at line 172 of file library.c.

References library_dialog, LibraryChanged(), and mainwind.

Referenced by DoWindows().

Here is the call graph for this function:

static void libnode_select ( Widget  w,
void *  v,
XmListCallbackStruct *  cbs 
) [static]
static void library_browse ( Widget  w,
void *  v,
XmListCallbackStruct *  cbs 
) [static]

Definition at line 60 of file library.c.

References pick_net().

Referenced by build_library_dialog().

Here is the call graph for this function:

static int LibraryChanged ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int LibraryShow ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 164 of file library.c.

References build_library_dialog().

Here is the call graph for this function:

static char* pcb_basename ( char *  p) [static]

Definition at line 122 of file library.c.

Referenced by LibraryChanged().

static void pick_net ( int  pick) [static]

Variable Documentation

Arg args[30] [static]

Definition at line 27 of file library.c.

Referenced by build_library_dialog(), libnode_select(), LibraryChanged(), and pick_net().

int last_pick = -1 [static]

Definition at line 36 of file library.c.

Referenced by libnode_select(), LibraryChanged(), and pick_net().

Initial value:

Definition at line 182 of file library.c.

Widget libnode_list

Definition at line 32 of file library.c.

Referenced by build_library_dialog(), and pick_net().

XmString* libnode_strings = 0 [static]

Definition at line 35 of file library.c.

Referenced by pick_net().

Widget library_dialog = 0 [static]

Definition at line 31 of file library.c.

Referenced by build_library_dialog(), and lesstif_show_library().

Widget library_list [static]

Definition at line 32 of file library.c.

Referenced by build_library_dialog(), and LibraryChanged().

XmString* library_strings = 0 [static]

Definition at line 34 of file library.c.

Referenced by LibraryChanged().

const char libraryshow_help[] = "Displays the library window." [static]

Definition at line 156 of file library.c.

const char libraryshow_syntax[] = "LibraryShow()" [static]

Definition at line 153 of file library.c.

int n [static]

Definition at line 28 of file library.c.

Referenced by build_library_dialog(), LibraryChanged(), and pick_net().