!
! This file demonstrates the 8 different ways an XmtChooser widget can
! display a choice.  Use 'mockup choosers' to run it.
! This file also demonstrates using icons with the XmtChooser widget, and
! the String-to-PixmapList converter, and the concept of color tables.
! It also makes interesting use of XmtLayout constraint resources.
!

*Background: gray
*Foreground: navy
*FontList: \
  *-helvetica-medium-r-*-*-*-140-*=R,\
  *-helvetica-bold-r-*-*-*-140-*=B,\
  *-helvetica-bold-o-*-*-*-140-*=I

choosers.xmtChildren: XmtLayout layout;

*layout.xmtChildren: XmtChooser c1, c2, c3, c4, c5, c6, c7, c8;
*layout.layout: Row{ c1 c2 c3 c4 } Row{c5 c6 c7 c8}

*XmtChooser.layoutFrameType: Box
*XmtChooser.layoutFrameLineType: EtchedIn
*XmtChooser.layoutFrameThickness: 4
*XmtChooser.layoutCaptionPosition: Top
*XmtChooser.layoutCaptionJustification: Left

*c1.strings: "WWW", "Gopher", "WAIS", "ftp", "telnet"
*c2.strings: "From: field", "To: field", "Subject: field", "All Headers", "Body"
*c3.strings:\
"Times", "Helvetica", "Schoolbook", "Courier"\
"Palatino", "AvantGarde", "Garamond", "Lucida", "Symbol"
*c4.strings:\
"Bob", "Ben", "Chris", "Doug", "Ellen", "Heather", "Jane",\
"Lisa", "Matt", "Owen", "Postmaster"
*c7.strings: "Plain", "Oblique", "Bold", "Bold-Oblique"
*c8.strings: "Forward", "Backward", "First", "Last", "Done"


*c5.labelType: XmPIXMAP
*c6.labelType: XmPIXMAP

*c5.pixmaps: "note1_1", "note1_2", "note1_4", "note1_8", "note1_16"
*c5.selectPixmaps: "note1_1", "note1_2", "note1_4", "note1_8", "note1_16" \
			 : background = gray85

*c6.pixmaps: "mouse", "fax", "disk", "speaker"
*c6.selectPixmaps: "mouse", "fax", "disk", "speaker" : background = gray85

*c1.chooserType: RadioBox
*c2.chooserType: CheckBox
*c3.chooserType: RadioList
*c4.chooserType: CheckList
*c5.chooserType: RadioPalette
*c6.chooserType: CheckPalette
*c7.chooserType: Option
*c8.chooserType: ButtonBox

*c1.layoutCaption: @fBRadio Box@fI\nProtocol:
*c2.layoutCaption: @fBCheck Box@fI\nSearch:
*c3.layoutCaption: @fBRadio List@fI\nFont Family:
*c4.layoutCaption: @fBCheck List@fI\nRecipients:
*c5.layoutCaption: @fBRadio Palette@fI\nNotes:
*c6.layoutCaption: @fBCheck Palette@fI\nDevice:
*c7.layoutCaption: @fBOption Menu@fI\nFont Style:
*c8.layoutCaption: @fBButton Box@fI\nSearch:


_Pixmaps_*mouse: \
32 32 2 1\n\
  s foreground c black\n\
: s background c white\n\
:::::::::    :::  ::::::::::::::\n\
:::::    ::::::::: :::::::::::::\n\
     :::::::::::  ::::::::::::::\n\
::::::::::::::  ::::::::::::::::\n\
::::::::::::  ::::::::::::::::::\n\
::::::::::: ::::::::::::::::::::\n\
::::::::::::    ::::::::::::::::\n\
:::::::::::::::  :::::::::::::::\n\
:::::::::::::::  :::::::::::::::\n\
::::::::::::::    ::::::::::::::\n\
:::::::::               ::::::::\n\
:::::::: ::::::::::::::: :::::::\n\
::::::: :::     :     ::: ::::::\n\
::::::: :::     :     ::: ::::::\n\
::::::: : : ::: : ::: : : ::::::\n\
::::::: : :     :     : : ::::::\n\
::::::: : :     :     : : ::::::\n\
::::::: : :     :     : : ::::::\n\
::::::: : ::::::::::::: : ::::::\n\
::::::: : ::::::::::::: : ::::::\n\
::::::: : ::::::::::::: : ::::::\n\
::::::: : ::::::::::::: : ::::::\n\
::::::: : ::::::::::::: : ::::::\n\
::::::: : ::::::::::::: : ::::::\n\
::::::: :: ::::::::::: :: ::::::\n\
::::::: : :           : : ::::::\n\
::::::: ::::::::::::::::: ::::::\n\
::::::: :               : ::::::\n\
:::::::: ::::::::::::::: :::::::\n\
::::::: ::::::::::::::::: ::::::\n\
::::::: ::::::::::::::::: ::::::\n\
::::::::                 :::::::\n\

_Pixmaps_*fax: \
32 32 2 1\n\
  s foreground c black\n\
: s background c white\n\
::::::                    ::::::\n\
:::::: :::::::::::::::::: ::::::\n\
:::::: :::::::::::::::::: ::::::\n\
:::::: :::::::::::::::::: ::::::\n\
:::::: :::::::::::::::::: ::::::\n\
:::::: :::::::::::::::::: ::::::\n\
:::::: :::::::::::::::::: ::::::\n\
:::::: :::::::::::::::::: ::::::\n\
       ::::::::::::::::::       \n\
       ::::::::::::::::::       \n\
       ::::::::::::::::::       \n\
       ::::::::::::::::::       \n\
:::::: :::::::::::::::::: ::::::\n\
:::::: :::::::::::::::::: ::::::\n\
  :::: :::::::::::::::::: ::::  \n\
  ::::                    ::::  \n\
  ::::::::::::::::::::::::::::  \n\
  ::::::::::::::::::::::::::::  \n\
  ::::::::::::::::::::::::::::  \n\
  ::::::::            ::::::::  \n\
  :::::                  :::::  \n\
  :::                      :::  \n\
  :::                      :::  \n\
  ::       ::::::::::       ::  \n\
  ::        ::::::::        ::  \n\
  :         ::::::::         :  \n\
  :         ::::::::         :  \n\
  :       ::::::::::::       :  \n\
  ::    ::::::::::::::::    ::  \n\
  ::  ::::::::::::::::::::  ::  \n\
  ::::::::::::::::::::::::::::  \n\
  ::::::::::::::::::::::::::::  \n\

_Pixmaps_*disk: \
32 32 2 1 \n\
  c white 	 s background \n\
. c black	 s foreground \n\
 .............................. \n\
.    .                    .    .\n\
.    .                    .    .\n\
.    .                    . .. .\n\
.    .                    . .. .\n\
.    .                    .    .\n\
.    .                    .    .\n\
.    .                    .    .\n\
.    .                    .    .\n\
.    .                    .    .\n\
.    .                    .    .\n\
.    .                    .    .\n\
.    .                    .    .\n\
.    .                    .    .\n\
.    .                    .    .\n\
.    .                    .    .\n\
.     ....................     .\n\
.                              .\n\
.                              .\n\
.                              .\n\
.                              .\n\
.        .................     .\n\
.       .                 .    .\n\
.       .  ....           .    .\n\
.       .  .  .           .    .\n\
.       .  .  .           .    .\n\
.       .  .  .           .    .\n\
.       .  .  .           .    .\n\
.       .  .  .           .    .\n\
 .      .  ....           .    .\n\
  .     .                 .    .\n\
   ............................ \n\

_Pixmaps_*speaker: \
32 32 2 1\n\
  s foreground c black\n\
: s background c white\n\
::::::::::::::::::::::::::::::::\n\
::::::::::::::::::::::::::::::::\n\
:::::::::::::::::::::::::: :::::\n\
:::::::::::::::::::::::::: :::::\n\
:::::::::::::::::::::::::: :::::\n\
:::::::::::::::::::::::::: :::::\n\
::::::::::::::::::::::: :: :::::\n\
::::::::::::::::::::::: :: :::::\n\
::::::::::::::::::::::: :: :::::\n\
:::::::::::::::::::: :: :: :::::\n\
::::::::::::  :::::: :: :: :::::\n\
:::::::::::   :::::: :: :: :::::\n\
::::::::::  : ::: :: :: :: :::::\n\
:::::::::  :: ::: :: :: :: :::::\n\
::::      ::: : : :: :: :: :::::\n\
::::  ::: ::: : : :: :: :: :::::\n\
::::  ::: ::: : : :: :: :: :::::\n\
::::  ::: ::: : : :: :: :: :::::\n\
::::  ::: ::: : : :: :: :: :::::\n\
::::      ::: ::: :: :: :: :::::\n\
:::::::::  :: ::: :: :: :: :::::\n\
::::::::::  : :::::: :: :: :::::\n\
:::::::::::   :::::: :: :: :::::\n\
::::::::::::  ::::::::: :: :::::\n\
::::::::::::::::::::::: :: :::::\n\
::::::::::::::::::::::: :: :::::\n\
::::::::::::::::::::::: :: :::::\n\
:::::::::::::::::::::::::: :::::\n\
:::::::::::::::::::::::::: :::::\n\
:::::::::::::::::::::::::: :::::\n\
:::::::::::::::::::::::::: :::::\n\
::::::::::::::::::::::::::::::::\n\

_Bitmaps_*note1_1: \
#define note1_1_width 16\n\
#define note1_1_height 24\n\
static char note1_1_bits[] = {\n\
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\n\
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x0f,\n\
 0x30,0x1e,0x38,0x3c,0x38,0x38,0x78,0x38,0xf0,0x18,0xe0,0x0f,0x00,0x00,0x00,\n\
 0x00,0x00,0x00};
_Bitmaps_*note1_16: \
#define note1_16_width 16\n\
#define note1_16_height 24\n\
static char note1_16_bits[] = {\n\
 0x00,0x04,0x00,0x04,0x00,0x0c,0x00,0x0c,0x00,0x1c,0x00,0x34,0x00,0x4c,0x00,\n\
 0x4c,0x00,0x9c,0x00,0xb4,0x00,0xc4,0x00,0xc4,0x00,0xc4,0x00,0x44,0xc0,0x47,\n\
 0xe0,0x27,0xf0,0x07,0xf0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\n\
 0x00,0x00,0x00};
_Bitmaps_*note1_2: \
#define note1_2_width 16\n\
#define note1_2_height 24\n\
static char note1_2_bits[] = {\n\
 0x00,0x04,0x00,0x04,0x00,0x04,0x00,0x04,0x00,0x04,0x00,0x04,0x00,0x04,0x00,\n\
 0x04,0x00,0x04,0x00,0x04,0x00,0x04,0x00,0x04,0x00,0x04,0x00,0x04,0xc0,0x07,\n\
 0x60,0x06,0x30,0x06,0x30,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\n\
 0x00,0x00,0x00};
_Bitmaps_*note1_32: \
#define note1_32_width 16\n\
#define note1_32_height 24\n\
static char note1_32_bits[] = {\n\
 0x00,0x04,0x00,0x04,0x00,0x0c,0x00,0x0c,0x00,0x1c,0x00,0x3c,0x00,0x6c,0x00,\n\
 0x5c,0x00,0xbc,0x00,0xec,0x00,0xdc,0x00,0xb4,0x00,0xe4,0x00,0x44,0xc0,0x47,\n\
 0xe0,0x27,0xf0,0x07,0xf0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\n\
 0x00,0x00,0x00};
_Bitmaps_*note1_4: \
#define note1_4_width 16\n\
#define note1_4_height 24\n\
static char note1_4_bits[] = {\n\
 0x00,0x04,0x00,0x04,0x00,0x04,0x00,0x04,0x00,0x04,0x00,0x04,0x00,0x04,0x00,\n\
 0x04,0x00,0x04,0x00,0x04,0x00,0x04,0x00,0x04,0x00,0x04,0x00,0x04,0xc0,0x07,\n\
 0xe0,0x07,0xf0,0x07,0xf0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\n\
 0x00,0x00,0x00};
_Bitmaps_*note1_8: \
#define note1_8_width 16\n\
#define note1_8_height 24\n\
static char note1_8_bits[] = {\n\
 0x00,0x04,0x00,0x04,0x00,0x0c,0x00,0x0c,0x00,0x1c,0x00,0x34,0x00,0x44,0x00,\n\
 0x44,0x00,0x84,0x00,0x84,0x00,0x84,0x00,0x84,0x00,0x44,0x00,0x04,0xc0,0x07,\n\
 0xe0,0x07,0xf0,0x07,0xf0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\n\
 0x00,0x00,0x00};

