#include "spice.h"
#include "sced.h"
#include "scedmacs.h"
Go to the source code of this file.
|
char * | HYtostr (struct hprlist *h) |
|
char * | HYtoascii (struct hprlist *h) |
|
struct hprlist * | HYfromascii (char *str) |
|
char * | HYgetentry (struct hprlist *h) |
|
struct hprlist * | HYcopy (struct hprlist *h) |
|
struct hyEnt * | HYcopyEnt (struct hyEnt *hent) |
|
void | HYfree (struct hprlist *h) |
|
static bool | hyeditor () |
|
static void | hydelcol () |
|
static void | hysetcol () |
|
static void | hytext () |
|
static void | hycursor () |
|
static struct hprlist * | hylist () |
|
static struct sHtxt * | input () |
|
char * | KbEdit (char *s, int x, int y, int bg, int fg, int cc) |
|
struct hprlist * | HYedit (struct hprlist *h, int x, int y, int bg, int fg, int cc, int hc) |
|
void | KbRepaint (int x, int y) |
|
void | KbCursor (int x, int y) |
|
static void | hydelcol (int col, int num) |
|
static void | hysetcol (int col) |
|
static void | hytext (int draw, int ncols) |
|
static void | hycursor (int draw) |
|
void | HYinit () |
|
void | HYadd (struct hyEnt *ent) |
|
void | HYdel (struct hyEnt *ent) |
|
void | HYtransform (struct o *Pointer, struct o *NewPointer) |
|
void | HYtransformStretch (struct o *Pointer, struct o *NewPointer, long RefX, long RefY, long NewX, long NewY) |
|
void | HYundoTransform () |
|
void | HYclearUndoFlags () |
|
void | HYdeleteReference (struct o *Pointer) |
|
#define hyBase ((struct hyEnt**)Parameters.kpCellDesc->sHY) |
void HYadd |
( |
struct hyEnt * |
ent | ) |
|
void HYclearUndoFlags |
( |
| ) |
|
Definition at line 146 of file hypertxt.c.
153 for (hh = h; hh; hh = hh->
hlNext) {
165 else if (hh->
hlEnt) {
struct hyEnt * HYcopyEnt(struct hyEnt *hent)
void HYadd(struct hyEnt *ent)
static void hycursor |
( |
int |
draw | ) |
|
|
static |
Definition at line 689 of file hypertxt.c.
694 int i, x, y,
w, realcol;
697 for (i = 0; i <
HY.
col; i++) {
void HYdel |
( |
struct hyEnt * |
ent | ) |
|
static void hydelcol |
( |
int |
col, |
|
|
int |
num |
|
) |
| |
|
static |
Definition at line 557 of file hypertxt.c.
564 if (col < 0 || col > 255)
572 for ( ; col < num; col++) {
void HYdeleteReference |
( |
struct o * |
Pointer | ) |
|
Definition at line 1085 of file hypertxt.c.
1093 struct hyEnt **hent, **h0;
1098 for (hent =
hyBase; *hent; hent = h0) {
1101 if ((*hent)->hyPointer != Pointer) {
1103 for (p = (*hent)->hyParent; p; p = p->
pNext)
1109 for (p = (*hent)->hyParent; p; p = pnext) {
1113 (*hent)->hyParent =
NULL;
1115 (*hent)->hyPointer =
NULL;
1116 (*hent)->hyOldPointer =
NULL;
1118 (*hent)->hyUndo =
False;
1121 for ( ; *hent; hent++)
struct hprlist* HYedit |
( |
struct hprlist * |
h, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
bg, |
|
|
int |
fg, |
|
|
int |
cc, |
|
|
int |
hc |
|
) |
| |
Definition at line 341 of file hypertxt.c.
365 for (i = 0,hh = h; hh; hh = hh->
hlNext) {
368 for (j = 0; j < k; j++) {
static struct hprlist * hylist()
struct hyEnt * HYcopyEnt(struct hyEnt *hent)
char * HYgetentry(struct hprlist *h)
Definition at line 429 of file hypertxt.c.
461 if (
HY.
col <= 0)
continue;
469 if (hret->
c ==
'\b') {
471 if (
HY.
col == 0)
continue;
476 for (i =
HY.
col; ; i++) {
487 if (hret->
c == 339 || hret->
c == 127) {
493 for (i =
HY.
col; ; i++) {
504 if (hret->
c ==
'\025' ||
515 if (hret->
c ==
'\033') {
524 if (((
char) hret->
c <
' ') || ((
char) hret->
c >
'~'))
529 for (i =
HY.
col; i < 256; i++) {
static struct sHtxt * input()
Definition at line 205 of file hypertxt.c.
void HYdel(struct hyEnt *ent)
struct hprlist* HYfromascii |
( |
char * |
str | ) |
|
Definition at line 63 of file hypertxt.c.
75 *t && (*t !=
'(' || *(t+1) !=
'|' || *(t+2) !=
'|'); t++) ;
89 strncpy(hh->
hlText,s,tt-s);
101 sscanf(t+3,
"%d:%d %d",
105 while (*s && *s !=
')') s++;
void HYadd(struct hyEnt *ent)
char* HYgetentry |
( |
struct hprlist * |
h | ) |
|
Definition at line 834 of file hypertxt.c.
847 for (hent =
hyBase; *hent; hent++) {
848 if ((*hent)->hyPointer ==
NULL && (
849 (*hent)->hyRefType ==
HY_NODE ||
850 (*hent)->hyRefType ==
HY_BRAN ||
851 (*hent)->hyRefType ==
HY_DEVN)) {
Definition at line 719 of file hypertxt.c.
static char buf[MAXPROMPT]
struct hyEnt * HYcopyEnt(struct hyEnt *hent)
void HYadd(struct hyEnt *ent)
static void hysetcol |
( |
int |
col | ) |
|
|
static |
Definition at line 588 of file hypertxt.c.
593 if (col < 0 || col > 255)
static void hytext |
( |
int |
draw, |
|
|
int |
ncols |
|
) |
| |
|
static |
Definition at line 618 of file hypertxt.c.
625 int i, k, realcol, endcol;
629 for (i = 0; i <
HY.
col; i++) {
static char buf[MAXPROMPT]
char* HYtoascii |
( |
struct hprlist * |
h | ) |
|
Definition at line 38 of file hypertxt.c.
48 for (hh = h; hh; hh = hh->
hlNext) {
53 sprintf(tbuf,
"(||%d:%d %d||)",
static char buf[MAXPROMPT]
char* HYtostr |
( |
struct hprlist * |
h | ) |
|
Definition at line 15 of file hypertxt.c.
24 for (hh = h; hh; hh = hh->
hlNext) {
27 strcat(buf,
"<unknown>");
static char buf[MAXPROMPT]
char * HYgetentry(struct hprlist *h)
void HYtransform |
( |
struct o * |
Pointer, |
|
|
struct o* |
NewPointer |
|
) |
| |
Definition at line 916 of file hypertxt.c.
931 for (hent =
hyBase; *hent; hent++) {
933 if (Pointer == (*hent)->hyPointer) {
934 (*hent)->hyOldX = (*hent)->hyX;
935 (*hent)->hyOldY = (*hent)->hyY;
936 (*hent)->hyOldPointer = (*hent)->hyPointer;
937 TPoint(&((*hent)->hyX),&((*hent)->hyY));
938 (*hent)->hyPointer = NewPointer;
939 (*hent)->hyUndo =
True;
941 switch ((*hent)->hyOrient) {
968 (*hent)->hyOldOrient = (*hent)->hyOrient;
void HYtransformStretch |
( |
struct o * |
Pointer, |
|
|
struct o* |
NewPointer, |
|
|
long |
RefX, |
|
|
long |
RefY, |
|
|
long |
NewX, |
|
|
long |
NewY |
|
) |
| |
Definition at line 988 of file hypertxt.c.
995 struct p *
p,*q,*ptmp;
1004 for (hent =
hyBase; *hent; hent++) {
1006 if ((*hent)->hyPointer != Pointer)
1008 p = ((
struct w *)Pointer->
oRep)->wPath;
1011 if (q ==
NULL)
break;
1014 if (
InPath(20,p,(*hent)->hyX,(*hent)->hyY) ==
NULL) {
1018 if (RefX == p->
pX && RefY == p->
pY) {
1019 x1 = q->
pX - (*hent)->hyX;
1020 y1 = q->
pY - (*hent)->hyY;
1022 else if (RefX == q->
pX && RefY == q->
pY) {
1023 x1 = (*hent)->hyX - p->
pX;
1024 y1 = (*hent)->hyY - p->
pY;
1035 (*hent)->hyOldX = (*hent)->hyX;
1036 (*hent)->hyOldY = (*hent)->hyY;
1037 (*hent)->hyOldPointer = (*hent)->hyPointer;
1038 (*hent)->hyX += (NewX-RefX)*d;
1039 (*hent)->hyY += (NewY-RefY)*d;
1040 (*hent)->hyPointer = NewPointer;
1041 (*hent)->hyUndo =
True;
Definition at line 1049 of file hypertxt.c.
1052 struct hyEnt **hent;
1057 for (hent =
hyBase; *hent; hent++) {
1059 if ((*hent)->hyUndo) {
1060 (*hent)->
hyX = (*hent)->hyOldX;
1061 (*hent)->hyY = (*hent)->hyOldY;
1062 (*hent)->hyPointer = (*hent)->hyOldPointer;
1063 (*hent)->hyOrient = (*hent)->hyOldOrient;
1064 (*hent)->hyUndo =
False;
static struct sHtxt * input |
( |
| ) |
|
|
static |
Definition at line 786 of file hypertxt.c.
790 static struct sHtxt hret;
797 request.fp = (FILE*)0;
union response::@11 reply
void KbCursor |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
char* KbEdit |
( |
char * |
s, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
bg, |
|
|
int |
fg, |
|
|
int |
cc |
|
) |
| |
Definition at line 279 of file hypertxt.c.
292 static char editbuf[256];
303 for (t =
s; t && *t; t++) {
315 for (i = 0; i < 256; i++) {
324 while (*tt !=
'\0') {
void KbRepaint |
( |
int |
x, |
|
|
int |
y |
|
) |
| |