// Copyright 1998 Acorn Computers Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#include "main.h"

#include "tboxclass.h"
#include "toolbox.h"
#include "window.h"
#include "quit.h"
#include "menu.h"

static int toolbox_events[] =
{
    WritableField_ValueChanged,
    RadioButton_StateChanged,
    Menu_Selection,
    Toolbox_ObjectAutoCreated,
    Window_HasBeenHidden,
    ActionButton_Selected
};

static int wimp_messages[] =
{
    Wimp_MPrintSave,
    Wimp_MPrintInit,
    Wimp_MPrintError,
    Wimp_MPrintTypeOdd,
    Wimp_MPrintTypeKnown,
    Wimp_MSetPrinter
};

_kernel_oserror *err;    /* Global Error block */

PalTask abc_task;

int
main()
{
  int mask =  Wimp_Poll_RedrawWindowRequestMask
  	    | Wimp_Poll_UserMessageMask
  	    | Wimp_Poll_UserMessageRecordedMask
  	    | Wimp_Poll_UserMessageAcknowledgeMask;

  abc_task.SetEventMask( abc_task.GetEventMask() & ~mask);

  abc_task.InitialiseAndRun( 0, 310, wimp_messages, toolbox_events, WORKING_DIR);
}
