/*     
(c) Copyright 1988-1994 Microsoft Corporation.

Microsoft Bars&Pipes Professional Source Code License

This License governs use of the accompanying Software.
Microsoft hopes you find this Software useful.

You are licensed to do anything you want with the Software.

In return, we simply require that you agree:

1.      Not to remove any copyright notices from the Software.

2.      That the Software comes "as is", with no warranties.
        None whatsoever. This means no implied warranty of merchantability or
        fitness for a particular purpose or any warranty of non-infringement.
        Also, you must pass this disclaimer on whenever you distribute the Software.

3.      That we will not be liable for any of those types of damages known as indirect,
        special, consequential, or incidental related to the Software or this License,
        to the maximum extent the law permits. Also, you must pass this limitation of
        liability on whenever you distribute the Software.

4.      That if you sue anyone over patents that you think may apply to the Software
        for that person s use of the Software, your license to the Software ends automatically.

5.      That the patent rights Microsoft is licensing only apply to the Software,
        not to any derivatives you make.

6.      That your rights under the License end automatically if you breach this in any way.
*/

#include "/CompilerSpecific.h"
#include <intuition/intuition.h>

// MUST be included in Prbufopt.c

#define MPLGADGET       1  //measures per line
#define MPLGADGETUP     2
#define MPLGADGETDOWN   3

#define FSPGADGET       4  // full staves per page
#define FSPGADGETUP     5
#define FSPGADGETDOWN   6

#define NSPGADGET       7  // note spacing
#define NSPGADGETUP     8
#define NSPGADGETDOWN   9

#define OKAYGADGET     10  // na what ... :-))
#define CANCELGADGET   11


/* Measures per line gadget. */
struct PropInfo PrbGadget1SInfo = {
  AUTOKNOB+FREEHORIZ,
  -16384, -1,
  16384, -1,
};

struct Image PrbImage1 = {
  0,0,
  102,6,
  0,
  NULL,
  0x0000,0x0000,
  NULL
};

struct IntuiText PrbIText1 = {
  0,2,JAM2,
  -120,1,
  NULL,
#ifdef GERMAN
  "Takte/Zeile  :",
#else
  "Measures/line:",
#endif
  NULL
};

struct Gadget PrbGadget1 = {

  NULL,
  145,25,
  163,10,
  GFLG_GADGHBOX|GFLG_GADGHIMAGE,
  RELVERIFY|GADGIMMEDIATE,
  PROPGADGET,
  (APTR)&PrbImage1,
  NULL,
  &PrbIText1,
  0,
  (APTR)&PrbGadget1SInfo,
  MPLGADGET,
  NULL
};

/* Staves per page gadget. */

struct PropInfo PrbGadget2SInfo = {
  AUTOKNOB+FREEHORIZ,
  -16384, -1,
  16384, -1,
};

struct Image PrbImage2 = {
  0,0,
  102,6,
  0,
  NULL,
  0x0000,0x0000,
  NULL
};

struct IntuiText PrbIText2 = {
  0,2,JAM2,
  -120,1,
  NULL,
#ifdef GERMAN
  "Systeme/Seite:",
#else
  "Staves/page  :",
#endif
  NULL
};

struct Gadget PrbGadget2 = {
  &PrbGadget1,
  145,37,
  163,10,
  GFLG_GADGHBOX|GFLG_GADGHIMAGE,
  RELVERIFY|GADGIMMEDIATE,
  PROPGADGET,
  (APTR)&PrbImage2,
  NULL,
  &PrbIText2,
  0,
  (APTR)&PrbGadget2SInfo,
  FSPGADGET,
  NULL
};

/* Note Spacing gadget. */

struct PropInfo PrbGadget3SInfo = {
  AUTOKNOB+FREEHORIZ,
  -16384, -1,
  16384, -1,
};

struct Image PrbImage3 = {
  0,0,
  102,6,
  0,
  NULL,
  0x0000,0x0000,
  NULL
};

struct IntuiText PrbIText3 = {
  0,2,JAM2,
  -120,1,
  NULL,
#ifdef GERMAN
  "Notenabstand :",
#else
  "Note Spacing :",
#endif
  NULL
};

struct Gadget PrbGadget3 = {
  &PrbGadget2,
  145,49,
  163,10,
  GFLG_GADGHBOX|GFLG_GADGHIMAGE,
  RELVERIFY|GADGIMMEDIATE,
  PROPGADGET,
  (APTR)&PrbImage3,
  NULL,
  &PrbIText3,
  0,
  (APTR)&PrbGadget3SInfo,
  NSPGADGET,
  NULL
};

/* Okay gadget. */
struct IntuiText PrbIText4 = {
  4,0,JAM1,
  14,2,
  NULL,
  "Okay",
  NULL
  };

struct Gadget PrbGadget4 = {
  &PrbGadget3,
  249,70,
  60,11,
  GFLG_GADGHBOX|GFLG_GADGHIMAGE,
  RELVERIFY|GADGIMMEDIATE,
  BOOLGADGET,
  (APTR)NULL,
  NULL,
  &PrbIText4,
  0,
  NULL,
  OKAYGADGET,
  NULL
  };


/* Cancel gadget. */
struct IntuiText PrbIText5 = {
  4,0,JAM1,
  7,2,
  NULL,
  "Cancel",
  NULL
  };

struct Gadget PrbGadget5 = {
  &PrbGadget4,
  324,70,
  60,11,
  GFLG_GADGHBOX|GFLG_GADGHIMAGE,
  RELVERIFY|GADGIMMEDIATE,
  BOOLGADGET,
  (APTR)NULL,
  NULL,
  &PrbIText5,
  0,
  NULL,
  CANCELGADGET,
  NULL
  };


static struct NewWindow PrbNewWindowStructure1 = {
        178,50,
        400,90,
        6,1,
        GADGETUP+GADGETDOWN+MOUSEMOVE,
        ACTIVATE+NOCAREREFRESH,
        &PrbGadget5,
        NULL,
        NULL,
        NULL,
        NULL,
        5,5,
        -1,-1,
        CUSTOMSCREEN
};
