home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Encyclopedia of Graphics File Formats Companion
/
GFF_CD.ISO
/
software
/
unix
/
saoimage
/
sao1_07.tar
/
panel
/
menumain.h
< prev
next >
Wrap
Text File
|
1991-01-02
|
13KB
|
264 lines
/* Scale button: MainA1 */
#define MainA1_offo_width 37
#define MainA1_offo_height 12
static char MainA1_offo_label[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x00, 0x00, 0x08, 0x00, 0x04, 0x01,
0x00, 0x08, 0x00, 0x04, 0x01, 0x00, 0x08, 0x00, 0x04, 0xe0, 0x70, 0x08,
0x03, 0x38, 0x10, 0x89, 0x88, 0x04, 0xc0, 0x08, 0xc0, 0x48, 0x08, 0x02,
0x09, 0xb0, 0xc8, 0x0f, 0x02, 0x09, 0x88, 0x48, 0x00, 0x04, 0x11, 0x89,
0x88, 0x08, 0xf8, 0xe0, 0x70, 0x09, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00 };
static char MainA1_offo_mask[] = {
0xfc, 0x01, 0x00, 0x1c, 0x00, 0xfe, 0x03, 0x00, 0x1c, 0x00, 0xfe, 0x03,
0x00, 0x1c, 0x00, 0x8e, 0xf3, 0xf9, 0x9c, 0x07, 0xfe, 0xfb, 0xff, 0xdd,
0x0f, 0xfe, 0xfd, 0xff, 0xfd, 0x1f, 0xff, 0xbf, 0xff, 0xfd, 0x1f, 0xe7,
0x1f, 0xfc, 0xfd, 0x1f, 0x8f, 0xbf, 0xff, 0xfd, 0x1f, 0xff, 0xff, 0xff,
0xff, 0x1f, 0xfe, 0xfb, 0xff, 0xdf, 0x1f, 0xfc, 0xf1, 0xf9, 0x9f, 0x0f };
static int MainA1_offo_breaks[] = { 10, 18, 26, 29, 37 };
static ButtonLabel MainA1_offo = {
(unsigned char *)MainA1_offo_label, (unsigned char *)MainA1_offo_mask,
MainA1_offo_width, MainA1_offo_height,
0.5, 0.5, 0, 0, /* placement */
5, 5, 0, MainA1_offo_breaks };
#define MainA1_offi_width 35
#define MainA1_offi_height 12
static char MainA1_offi_label[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x03, 0x00, 0x63, 0x00,
0x00, 0x03, 0x00, 0x63, 0x00, 0x00, 0x03, 0x00, 0x0f, 0x3e, 0x1e, 0xf3,
0x01, 0x3e, 0x63, 0x33, 0x1b, 0x03, 0x78, 0x03, 0x30, 0x1b, 0x03, 0x63,
0x03, 0x3e, 0xfb, 0x03, 0x63, 0x63, 0x33, 0x1b, 0x00, 0x63, 0x63, 0x33,
0x1b, 0x03, 0x3e, 0x3e, 0x6e, 0xf3, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 };
static char MainA1_offi_mask[] = {
0x7f, 0x00, 0x80, 0x07, 0x00, 0xff, 0x00, 0x80, 0x07, 0x00, 0xff, 0x00,
0x80, 0x07, 0x00, 0xff, 0x7f, 0xbf, 0xff, 0x03, 0xff, 0xff, 0xff, 0xff,
0x07, 0xff, 0xff, 0xff, 0xff, 0x07, 0xff, 0xf7, 0xff, 0xff, 0x07, 0xff,
0xf7, 0xff, 0xff, 0x07, 0xf7, 0xf7, 0xff, 0xff, 0x07, 0xff, 0xff, 0xff,
0xff, 0x07, 0xff, 0xff, 0xff, 0xff, 0x07, 0x7f, 0x7f, 0xff, 0xff, 0x03 };
static int MainA1_offi_breaks[] = { 8, 16, 24, 27, 35 };
static ButtonLabel MainA1_offi = {
(unsigned char *)MainA1_offi_label, (unsigned char *)MainA1_offi_mask,
MainA1_offi_width, MainA1_offi_height,
0.5, 0.5, 0, 0, /* placement */
5, 5, 0, MainA1_offi_breaks };
static ButtonLook MainA1_look = {
&MainA1_offo, NULL, &MainA1_offo, NULL,
&MainA1_offi, NULL, &MainA1_offi, NULL };
static ButtonFeel MainA1_feel = {
"MainA1", 2,
{ BTNCoMode, BTNCoWhile },
{ 0x0004, 0x0004 },
{ 0x0000, 0x0004 },
{ 7, 0, 0, 0 } };
/* Color button: MainA2 */
#define MainA2_offo_width 38
#define MainA2_offo_height 12
static char MainA2_offo_label[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x20, 0x00, 0x00, 0x0c, 0x01,
0x20, 0x00, 0x00, 0x04, 0x02, 0x20, 0x00, 0x00, 0x02, 0xc2, 0x21, 0x1c,
0x1a, 0x02, 0x20, 0x22, 0x22, 0x06, 0x02, 0x10, 0x24, 0x41, 0x02, 0x02,
0x12, 0x24, 0x41, 0x02, 0x04, 0x12, 0x24, 0x41, 0x02, 0x0c, 0x21, 0x22,
0x22, 0x02, 0xf0, 0xc0, 0x21, 0x1c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00 };
static char MainA2_offo_mask[] = {
0xf8, 0x01, 0x70, 0x00, 0x00, 0xfe, 0x03, 0x70, 0x00, 0x00, 0xfe, 0x07,
0x70, 0x00, 0x00, 0x9f, 0xe7, 0x73, 0x3e, 0x3f, 0x0f, 0xf7, 0x77, 0x7f,
0x3f, 0x07, 0xff, 0xff, 0xff, 0x3f, 0x07, 0x7f, 0xff, 0xf7, 0x0f, 0x0f,
0x3f, 0xfe, 0xe3, 0x07, 0x9f, 0x7f, 0xff, 0xf7, 0x07, 0xfe, 0xff, 0xff,
0xff, 0x07, 0xfe, 0xf3, 0x77, 0x7f, 0x07, 0xf8, 0xe1, 0x73, 0x3e, 0x07 };
static int MainA2_offo_breaks[] = { 11, 20, 23, 32, 38 };
static ButtonLabel MainA2_offo = {
(unsigned char *)MainA2_offo_label, (unsigned char *)MainA2_offo_mask,
MainA2_offo_width, MainA2_offo_height,
0.5, 0.5, 0, 0, /* placement */
5, 5, 0, MainA2_offo_breaks };
#define MainA2_offi_width 34
#define MainA2_offi_height 12
static char MainA2_offi_label[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x06, 0x00, 0x00, 0xc6, 0x00,
0x06, 0x00, 0x00, 0xc3, 0x00, 0x06, 0x00, 0x00, 0x03, 0x7c, 0xe6, 0xf3,
0x01, 0x03, 0xc6, 0x36, 0xb6, 0x01, 0x03, 0xc6, 0x36, 0x36, 0x00, 0xc3,
0xc6, 0x36, 0x36, 0x00, 0xc3, 0xc6, 0x36, 0x36, 0x00, 0xc6, 0xc6, 0x36,
0x36, 0x00, 0x7c, 0x7c, 0xe6, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static char MainA2_offi_mask[] = {
0xfe, 0x00, 0x0f, 0x00, 0x00, 0xff, 0x01, 0x0f, 0x00, 0x00, 0xff, 0x01,
0x0f, 0x00, 0x00, 0xef, 0xff, 0xff, 0xff, 0x03, 0xe7, 0xff, 0xff, 0xff,
0x03, 0x07, 0xff, 0xff, 0xff, 0x03, 0xe7, 0xef, 0x7f, 0xff, 0x03, 0xe7,
0xef, 0x7f, 0x7f, 0x00, 0xef, 0xef, 0x7f, 0x7f, 0x00, 0xff, 0xff, 0xff,
0x7f, 0x00, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xfe, 0xfe, 0xff, 0x7f, 0x00 };
static int MainA2_offi_breaks[] = { 9, 17, 20, 28, 34 };
static ButtonLabel MainA2_offi = {
(unsigned char *)MainA2_offi_label, (unsigned char *)MainA2_offi_mask,
MainA2_offi_width, MainA2_offi_height,
0.5, 0.5, 0, 0, /* placement */
5, 5, 0, MainA2_offi_breaks };
static ButtonLook MainA2_look = {
&MainA2_offo, NULL, &MainA2_offo, NULL,
&MainA2_offi, NULL, &MainA2_offi, NULL };
static ButtonFeel MainA2_feel = {
"MainA2", 2,
{ BTNCoMode, BTNCoWhile },
{ 0x0004, 0x0004 },
{ 0x0000, 0x0004 },
{ 8, 0, 0, 0 } };
/* Cursor button: MainA3 */
#define MainA3_offo_width 48
#define MainA3_offo_height 12
static char MainA3_offo_label[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00,
0x0c, 0x01, 0x00, 0x00, 0x00, 0x00, 0x04, 0x02, 0x00, 0x00, 0x00, 0x00,
0x02, 0x12, 0xd2, 0x78, 0x70, 0x68, 0x02, 0x10, 0x32, 0x84, 0x88, 0x18,
0x02, 0x10, 0x12, 0x04, 0x04, 0x09, 0x02, 0x12, 0x12, 0x78, 0x04, 0x09,
0x04, 0x12, 0x12, 0x80, 0x04, 0x09, 0x0c, 0x11, 0x13, 0x84, 0x88, 0x08,
0xf0, 0xe0, 0x12, 0x78, 0x70, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static char MainA3_offo_mask[] = {
0xf8, 0x01, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x03, 0x00, 0x00, 0x00, 0x00,
0xfe, 0x07, 0x00, 0x00, 0x00, 0x00, 0x9f, 0x3f, 0xff, 0xfd, 0xf8, 0xfc,
0x0f, 0x3f, 0xff, 0xff, 0xfd, 0xfd, 0x07, 0x3f, 0xff, 0xff, 0xff, 0xff,
0x07, 0x3f, 0x7f, 0xfe, 0xdf, 0x3f, 0x0f, 0x3f, 0x3f, 0xfe, 0x8f, 0x1f,
0x9f, 0xbf, 0x3f, 0xfe, 0xdf, 0x1f, 0xfe, 0xff, 0x3f, 0xfe, 0xff, 0x1f,
0xfe, 0xfb, 0x3f, 0xfe, 0xfd, 0x1d, 0xf8, 0xf1, 0x3f, 0xfc, 0xf8, 0x1c };
static int MainA3_offo_breaks[] = { 11, 19, 25, 33, 42, 48 };
static ButtonLabel MainA3_offo = {
(unsigned char *)MainA3_offo_label, (unsigned char *)MainA3_offo_mask,
MainA3_offo_width, MainA3_offo_height,
0.5, 0.5, 0, 0, /* placement */
6, 6, 0, MainA3_offo_breaks };
#define MainA3_offi_width 44
#define MainA3_offi_height 12
static char MainA3_offi_label[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00,
0xc6, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc3, 0x00, 0x00, 0x00, 0x00, 0x00,
0x03, 0xc6, 0x3e, 0x8f, 0xcf, 0x07, 0x03, 0xc6, 0xb6, 0xd9, 0xd8, 0x06,
0x03, 0xc6, 0x86, 0xc3, 0xd8, 0x00, 0xc3, 0xc6, 0x06, 0xcf, 0xd8, 0x00,
0xc3, 0xc6, 0x06, 0xdc, 0xd8, 0x00, 0xc6, 0xc6, 0x86, 0xd9, 0xd8, 0x00,
0x7c, 0xfc, 0x06, 0x8f, 0xcf, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static char MainA3_offi_mask[] = {
0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x01, 0x00, 0x00, 0x00, 0x00,
0xff, 0x01, 0x00, 0x00, 0x00, 0x00, 0xef, 0xef, 0xff, 0xdf, 0xff, 0x0f,
0xe7, 0xef, 0xff, 0xff, 0xff, 0x0f, 0x07, 0xef, 0xff, 0xff, 0xff, 0x0f,
0xe7, 0xef, 0xff, 0xff, 0xfd, 0x0f, 0xe7, 0xef, 0xcf, 0xff, 0xfd, 0x01,
0xef, 0xef, 0xcf, 0xff, 0xfd, 0x01, 0xff, 0xff, 0xcf, 0xff, 0xff, 0x01,
0xff, 0xff, 0xcf, 0xff, 0xff, 0x01, 0xfe, 0xfe, 0x8f, 0xdf, 0xff, 0x01 };
static int MainA3_offi_breaks[] = { 9, 17, 23, 30, 38, 44 };
static ButtonLabel MainA3_offi = {
(unsigned char *)MainA3_offi_label, (unsigned char *)MainA3_offi_mask,
MainA3_offi_width, MainA3_offi_height,
0.5, 0.5, 0, 0, /* placement */
6, 6, 0, MainA3_offi_breaks };
static ButtonLook MainA3_look = {
&MainA3_offo, NULL, &MainA3_offo, NULL,
&MainA3_offi, NULL, &MainA3_offi, NULL };
static ButtonFeel MainA3_feel = {
"MainA3", 2,
{ BTNCoMode, BTNCoWhile },
{ 0x0004, 0x0004 },
{ 0x0000, 0x0004 },
{ 2, 0, 0, 0 } };
/* Pan button: MainA4 */
#define MainA4_offo_width 24
#define MainA4_offo_height 12
static char MainA4_offo_label[] = {
0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x82, 0x00, 0x00, 0x82, 0x00, 0x00,
0x82, 0x1c, 0x3a, 0x82, 0x22, 0x46, 0x7e, 0x30, 0x42, 0x02, 0x2c, 0x42,
0x02, 0x22, 0x42, 0x02, 0x22, 0x42, 0x02, 0x5c, 0x42, 0x00, 0x00, 0x00 };
static char MainA4_offo_mask[] = {
0xff, 0x00, 0x00, 0xff, 0x01, 0x00, 0xff, 0x01, 0x00, 0xc7, 0x3f, 0x7f,
0xc7, 0x7f, 0xff, 0xff, 0x7f, 0xff, 0xff, 0x7f, 0xef, 0xff, 0x7f, 0xe7,
0x07, 0x7f, 0xe7, 0x07, 0xff, 0xe7, 0x07, 0xff, 0xe7, 0x07, 0xfe, 0xe7 };
static int MainA4_offo_breaks[] = { 8, 16, 24 };
static ButtonLabel MainA4_offo = {
(unsigned char *)MainA4_offo_label, (unsigned char *)MainA4_offo_mask,
MainA4_offo_width, MainA4_offo_height,
0.5, 0.5, 0, 0, /* placement */
3, 3, 0, MainA4_offo_breaks };
#define MainA4_offi_width 24
#define MainA4_offi_height 12
static char MainA4_offi_label[] = {
0x00, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x63, 0x00, 0x00, 0x63, 0x00, 0x00,
0x63, 0x1e, 0x3f, 0x63, 0x33, 0x63, 0x3f, 0x30, 0x63, 0x03, 0x3e, 0x63,
0x03, 0x33, 0x63, 0x03, 0x33, 0x63, 0x03, 0x6e, 0x63, 0x00, 0x00, 0x00 };
static char MainA4_offi_mask[] = {
0x7f, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xf7, 0xbf, 0x7f,
0xf7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf7, 0xff, 0xff, 0xf7,
0x87, 0xff, 0xf7, 0x87, 0xff, 0xf7, 0x87, 0xff, 0xf7, 0x07, 0xff, 0xf7 };
static int MainA4_offi_breaks[] = { 8, 16, 24 };
static ButtonLabel MainA4_offi = {
(unsigned char *)MainA4_offi_label, (unsigned char *)MainA4_offi_mask,
MainA4_offi_width, MainA4_offi_height,
0.5, 0.5, 0, 0, /* placement */
3, 3, 0, MainA4_offi_breaks };
static ButtonLook MainA4_look = {
&MainA4_offo, NULL, &MainA4_offo, NULL,
&MainA4_offi, NULL, &MainA4_offi, NULL };
static ButtonFeel MainA4_feel = {
"MainA4", 2,
{ BTNCoMode, BTNCoWhile },
{ 0x0004, 0x0004 },
{ 0x0000, 0x0004 },
{ 10, 0, 0, 0 } };
/* etc button: MainA5 */
#define MainA5_offo_width 22
#define MainA5_offo_height 14
static char MainA5_offo_label[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0x00,
0x18, 0x1e, 0x0e, 0x24, 0x04, 0x11, 0x42, 0x84, 0x00, 0x7e, 0x84, 0x00,
0x02, 0x84, 0x00, 0x44, 0x04, 0x11, 0x38, 0x18, 0x0e, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static char MainA5_offo_mask[] = {
0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x0e, 0x00, 0x3c, 0x3f, 0x1f,
0x7e, 0xbf, 0x3f, 0xff, 0xff, 0x3f, 0xff, 0xce, 0x3b, 0xff, 0xce, 0x01,
0xff, 0xce, 0x3b, 0xff, 0xfe, 0x3f, 0xfe, 0xbe, 0x3f, 0x7c, 0x3c, 0x1f,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static int MainA5_offo_breaks[] = { 8, 14, 22 };
static ButtonLabel MainA5_offo = {
(unsigned char *)MainA5_offo_label, (unsigned char *)MainA5_offo_mask,
MainA5_offo_width, MainA5_offo_height,
0.5, 0.5, 0, 0, /* placement */
3, 3, 0, MainA5_offo_breaks };
#define MainA5_offi_width 22
#define MainA5_offi_height 14
static char MainA5_offi_label[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x06, 0x00,
0x3e, 0x9f, 0x0f, 0x63, 0xc6, 0x18, 0x63, 0xc6, 0x00, 0x7f, 0xc6, 0x00,
0x03, 0xc6, 0x18, 0x63, 0xc6, 0x18, 0x3e, 0x9c, 0x0f, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static char MainA5_offi_mask[] = {
0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x0f, 0x00, 0xff, 0xff, 0x1f,
0xff, 0xff, 0x3f, 0xff, 0xff, 0x3f, 0xff, 0xef, 0x3d, 0xff, 0xef, 0x3d,
0xff, 0xef, 0x3d, 0xff, 0xff, 0x3f, 0xff, 0xff, 0x3f, 0x7f, 0xfe, 0x1f,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static int MainA5_offi_breaks[] = { 8, 14, 22 };
static ButtonLabel MainA5_offi = {
(unsigned char *)MainA5_offi_label, (unsigned char *)MainA5_offi_mask,
MainA5_offi_width, MainA5_offi_height,
0.5, 0.5, 0, 0, /* placement */
3, 3, 0, MainA5_offi_breaks };
static ButtonLook MainA5_look = {
&MainA5_offo, NULL, &MainA5_offo, NULL,
&MainA5_offi, NULL, &MainA5_offi, NULL };
static ButtonFeel MainA5_feel = {
"MainA5", 2,
{ BTNCoMode, BTNCoWhile },
{ 0x0004, 0x0004 },
{ 0x0000, 0x0004 },
{ 3, 0, 0, 0 } };
static ButtonSpec MainA[] = {
{ &MainA1_look, &MainA1_feel },
{ &MainA2_look, &MainA2_feel },
{ &MainA3_look, &MainA3_feel },
{ &MainA4_look, &MainA4_feel },
{ &MainA5_look, &MainA5_feel } };
static BoxGeometry MainA_geo =
{ 0, 5, 5, 1, 5.000000, 1.000000, 0.000000, 0.000000, 0, 1 };
void MakeMainPanel ( box, parent, gc, visual, background )
BoxParent *parent;
ButtonBox box[1];
GC gc;
Visual *visual;
unsigned long background;
{
box[0] = MakeButtonBox(&parent[0], gc, visual, background,
&MainA_geo, MainA, 0);
}