OLD | NEW |
1 enum | 1 enum |
2 { | 2 { |
3 Qdir, | 3 Qdir, |
4 Qacme, | 4 Qacme, |
5 Qcons, | 5 Qcons, |
6 Qconsctl, | 6 Qconsctl, |
7 Qdraw, | 7 Qdraw, |
8 Qeditout, | 8 Qeditout, |
9 Qindex, | 9 Qindex, |
10 Qlabel, | 10 Qlabel, |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 int a0; | 456 int a0; |
457 int a1; | 457 int a1; |
458 }; | 458 }; |
459 | 459 |
460 enum | 460 enum |
461 { | 461 { |
462 /* fbufalloc() guarantees room off end of BUFSIZE */ | 462 /* fbufalloc() guarantees room off end of BUFSIZE */ |
463 BUFSIZE = Maxblock+IOHDRSZ, /* size from fbufalloc() */ | 463 BUFSIZE = Maxblock+IOHDRSZ, /* size from fbufalloc() */ |
464 RBUFSIZE = BUFSIZE/sizeof(Rune), | 464 RBUFSIZE = BUFSIZE/sizeof(Rune), |
465 EVENTSIZE = 256, | 465 EVENTSIZE = 256, |
466 Scrollwid = 12, /* width of scroll bar */ | |
467 Scrollgap = 4, /* gap right of scroll bar */ | |
468 Margin = 4, /* margin around text */ | |
469 Border = 2 /* line between rows, cols, windows */ | |
470 }; | 466 }; |
471 | 467 |
| 468 #define Scrollwid scalesize(display, 12) |
| 469 #define Scrollgap scalesize(display, 4) |
| 470 #define Margin scalesize(display, 4) |
| 471 #define Border scalesize(display, 2) |
| 472 #define ButtonBorder scalesize(display, 2) |
| 473 |
472 #define QID(w,q) ((w<<8)|(q)) | 474 #define QID(w,q) ((w<<8)|(q)) |
473 #define WIN(q) ((((ulong)(q).path)>>8) & 0xFFFFFF) | 475 #define WIN(q) ((((ulong)(q).path)>>8) & 0xFFFFFF) |
474 #define FILE(q) ((q).path & 0xFF) | 476 #define FILE(q) ((q).path & 0xFF) |
475 | 477 |
476 #undef FALSE | 478 #undef FALSE |
477 #undef TRUE | 479 #undef TRUE |
478 | 480 |
479 enum | 481 enum |
480 { | 482 { |
481 FALSE, | 483 FALSE, |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 Channel *mouseexit0; /* chan(int) */ | 565 Channel *mouseexit0; /* chan(int) */ |
564 Channel *mouseexit1; /* chan(int) */ | 566 Channel *mouseexit1; /* chan(int) */ |
565 Channel *cexit; /* chan(int) */ | 567 Channel *cexit; /* chan(int) */ |
566 Channel *cerr; /* chan(char*) */ | 568 Channel *cerr; /* chan(char*) */ |
567 Channel *cedit; /* chan(int) */ | 569 Channel *cedit; /* chan(int) */ |
568 Channel *cwarn; /* chan(void*)[1] (really chan(unit)[1]) */ | 570 Channel *cwarn; /* chan(void*)[1] (really chan(unit)[1]) */ |
569 | 571 |
570 QLock editoutlk; | 572 QLock editoutlk; |
571 | 573 |
572 #define STACK 65536 | 574 #define STACK 65536 |
OLD | NEW |