*Foreground: navy
*Background: gray
*XmtMenu*background: gray70

*fontList: *-helvetica-medium-r-*-*-*-140-*,\
	   *-helvetica-medium-o-*-*-*-140-*=I,\
	   *-helvetica-bold-r-*-*-*-140-*=B,\
	   *-helvetica-bold-o-*-*-*-140-*=BI,\
	   *-helvetica-medium-r-*-*-*-80-*=8,\
	   *-helvetica-medium-r-*-*-*-100-*=10,\
	   *-helvetica-medium-r-*-*-*-120-*=12,\
	   *-helvetica-medium-r-*-*-*-140-*=14,\
	   *-helvetica-medium-r-*-*-*-180-*=18,\
	   *-helvetica-medium-r-*-*-*-240-*=24,\
	   *-times-medium-r-*-*-*-140-*=times,\
	   *-helvetica-medium-r-*-*-*-140-*=helvetica,\
	   *-new century schoolbook-medium-r-*-*-*-140-*=schoolbook,\
	   *-courier-medium-r-*-*-*-140-*=courier

popup.xmtChildren: XmDrawingArea drawingarea;
*drawingarea.xmtChildren: unmanaged XmtPopupMenu menu1, menu2;

*drawingarea.width: 200
*drawingarea.height: 200

*menu1.menuPost: <Btn3Down>
*menu1.menuAccelerator: <Key>F4
*menu2.menuPost: Shift<Btn3Down>
*menu2.menuAccelerator: Shift<Key>F4

*XmtMenu.acceleratorFontTag: I

*menu1.items: \
Title   "@fBOperations"; \
	----;\
	"_Move" [Ctrl-M] move();\
	"_Scale" [Ctrl-S] scale();\
	"_Rotate\n  clockwise" [Ctrl-R] rotate();\
	----;\
Title	"@fBOptions";\
	----;\
	"Show _Grid" | "Hide _Grid" [Ctrl-G] toggle_grid(); 

*menu2.items: \
Title	"@fBPreferences"; \
	----;\
Tearoff	"Colors" -> colors;\
Tearoff	"Patterns" -> patterns;\
Tearoff	"Fonts" -> fonts;\
Tearoff	"Style" -> styles;\
Tearoff	"Size" -> sizes;

*colors.items:\
Title "@fBColors";\
yellow:	"    " set_color(1); \
red:	"    " set_color(2); \
green:	"    " set_color(3); \
blue:	"    " set_color(4); \
Title " "; \
black:	"    " set_color(5); \
gray1:  "    " set_color(6); \
gray2:  "    " set_color(7); \
white:	"    " set_color(8); 

*colors.numColumns: 2
*colors.packing: XmPACK_COLUMN
*colors.yellow.background: yellow
*colors.red.background: red
*colors.green.background: green
*colors.blue.background: blue
*colors.black.background: black
*colors.gray1.background: gray50
*colors.gray2.background: gray75
*colors.white.background: white

*patterns.numColumns:3
*patterns.packing: XmPACK_COLUMN
*patterns.items:\
	Pixmap "diag1_3";  Pixmap "diag2_2";  Pixmap "diag3_1";\
	Pixmap "fence1";   Pixmap "fence2";   Pixmap "fence3" ;\
	Pixmap "tweed2_2"; Pixmap "tweed4_3"; Pixmap "tweed4_4";

*fonts.items: "@f[times]Times";	"@f[helvetica]Helvetica"; \
		"@f[schoolbook]New Century Schoolbook";	"@f[courier]Courier";

*sizes.items: "@f[8]8 pt."; "@f[10]10 pt."; "@f[12]12 pt.";\
		 "@f[14]14 pt."; "@f[18]18 pt."; "@f[24]24 pt.";

*styles.items: "plain"; "@fIitalic"; "@fBbold"; "@f(BIbolditalic";

_Bitmaps_*diag1_3: \
#define diag1_3_width 16\n\
#define diag1_3_height 16\n\
static char diag1_3_bits[] = {\n\
 0x44,0x44,0x88,0x88,0x11,0x11,0x22,0x22,0x44,0x44,0x88,0x88,0x11,0x11,0x22,\n\
 0x22,0x44,0x44,0x88,0x88,0x11,0x11,0x22,0x22,0x44,0x44,0x88,0x88,0x11,0x11,\n\
 0x22,0x22};
_Bitmaps_*diag2_2: \
#define diag2_2_width 16\n\
#define diag2_2_height 16\n\
static char diag2_2_bits[] = {\n\
 0x33,0x33,0x66,0x66,0xcc,0xcc,0x99,0x99,0x33,0x33,0x66,0x66,0xcc,0xcc,0x99,\n\
 0x99,0x33,0x33,0x66,0x66,0xcc,0xcc,0x99,0x99,0x33,0x33,0x66,0x66,0xcc,0xcc,\n\
 0x99,0x99};
_Bitmaps_*diag3_1: \
#define diag3_1_width 16\n\
#define diag3_1_height 16\n\
static char diag3_1_bits[] = {\n\
 0xbb,0xbb,0x77,0x77,0xee,0xee,0xdd,0xdd,0xbb,0xbb,0x77,0x77,0xee,0xee,0xdd,\n\
 0xdd,0xbb,0xbb,0x77,0x77,0xee,0xee,0xdd,0xdd,0xbb,0xbb,0x77,0x77,0xee,0xee,\n\
 0xdd,0xdd};
_Bitmaps_*fence1: \
#define fence1_width 16\n\
#define fence1_height 16\n\
static char fence1_bits[] = {\n\
 0x83,0x81,0xc6,0x00,0x9c,0x00,0x38,0x00,0xf0,0x01,0xc0,0x03,0x10,0x06,0x30,\n\
 0x0c,0x30,0x0c,0x60,0x08,0xc0,0x03,0x80,0x07,0x00,0x1c,0x00,0x39,0x00,0x63,\n\
 0x81,0xc1};
_Bitmaps_*fence2: \
#define fence2_width 16\n\
#define fence2_height 16\n\
static char fence2_bits[] = {\n\
 0x3f,0xfc,0x70,0x0e,0xe0,0x04,0xc0,0x01,0x80,0x03,0x00,0x03,0x60,0x06,0x60,\n\
 0x06,0x60,0x06,0x60,0x06,0xc0,0x00,0xc0,0x01,0x80,0x03,0x20,0x07,0x70,0x0e,\n\
 0x3f,0xfc};
_Bitmaps_*fence3: \
#define fence3_width 16\n\
#define fence3_height 16\n\
static char fence3_bits[] = {\n\
 0xec,0x31,0x6c,0x70,0x0c,0xe0,0x06,0x40,0x06,0x00,0x03,0x00,0x03,0x00,0x01,\n\
 0x80,0x01,0x80,0x00,0xc0,0x00,0xc0,0x00,0x60,0x02,0x60,0x07,0x30,0x0e,0x36,\n\
 0x8c,0x37};
_Bitmaps_*tweed2_2: \
#define tweed2_2_width 16\n\
#define tweed2_2_height 16\n\
static char tweed2_2_bits[] = {\n\
 0xe2,0x21,0x2e,0xed,0xb7,0x74,0x84,0x47,0xe2,0x21,0x2e,0xed,0x48,0x8b,0x7b,\n\
 0xb8,0x1d,0xde,0xd1,0x12,0xb7,0x74,0x84,0x47,0xe2,0x21,0x2e,0xed,0xb7,0x74,\n\
 0x84,0x47};
_Bitmaps_*tweed4_3: \
#define tweed4_3_width 16\n\
#define tweed4_3_height 16\n\
static char tweed4_3_bits[] = {\n\
 0xc2,0x25,0x0e,0xe9,0x97,0x70,0xa4,0x43,0x3d,0xda,0xf1,0x16,0x68,0x8f,0x5b,\n\
 0xbc,0x3d,0xda,0xf1,0x16,0x68,0x8f,0x5b,0xbc,0xc2,0x25,0x0e,0xe9,0x97,0x70,\n\
 0xa4,0x43};
_Bitmaps_*tweed4_4: \
#define tweed4_4_width 16\n\
#define tweed4_4_height 16\n\
static char tweed4_4_bits[] = {\n\
 0xd2,0x2d,0x1e,0xe1,0x87,0x78,0xb4,0x4b,0x2d,0xd2,0xe1,0x1e,0x78,0x87,0x4b,\n\
 0xb4,0x2d,0xd2,0xe1,0x1e,0x78,0x87,0x4b,0xb4,0xd2,0x2d,0x1e,0xe1,0x87,0x78,\n\
 0xb4,0x4b};
