pcb 4.1.1
An interactive printed circuit board layout editor.
|
#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"
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 [] |
Definition at line 29 of file library.c.
Referenced by build_library_dialog(), LibraryChanged(), and pick_net().
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().
void lesstif_show_library | ( | void | ) |
Definition at line 172 of file library.c.
References library_dialog, LibraryChanged(), and mainwind.
Referenced by DoWindows().
static void libnode_select | ( | Widget | w, |
void * | v, | ||
XmListCallbackStruct * | cbs | ||
) | [static] |
Definition at line 66 of file library.c.
References LibraryEntryType::AllocatedMemory, args, Concat(), EMPTY, LibraryMenuType::Entry, last_pick, Library, LoadElementToBuffer(), LibraryType::Menu, LibraryEntryType::Package, PASTEBUFFER, PASTEBUFFER_MODE, SetMode(), LibraryEntryType::Template, and LibraryEntryType::Value.
Referenced by build_library_dialog().
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().
Definition at line 131 of file library.c.
References args, build_library_dialog(), last_pick, Library, library_list, library_strings, malloc(), LibraryType::Menu, LibraryType::MenuN, n, LibraryMenuType::Name, pcb_basename(), pick_net(), stdarg, and XmStringCreatePCB().
Referenced by lesstif_show_library().
Definition at line 164 of file library.c.
References build_library_dialog().
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] |
Definition at line 39 of file library.c.
References args, LibraryMenuType::Entry, LibraryMenuType::EntryN, last_pick, libnode_list, libnode_strings, Library, LibraryEntryType::ListEntry, malloc(), LibraryType::Menu, n, stdarg, and XmStringCreatePCB().
Referenced by library_browse(), and LibraryChanged().
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().
{ {"LibraryChanged", 0, LibraryChanged, librarychanged_help, librarychanged_syntax}, {"LibraryShow", 0, LibraryShow, libraryshow_help, libraryshow_syntax}, }
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] |
const char libraryshow_syntax[] = "LibraryShow()" [static] |
int n [static] |
Definition at line 28 of file library.c.
Referenced by build_library_dialog(), LibraryChanged(), and pick_net().