#pragma once

#ifdef __cplusplus
extern "C"
{
#endif

/* Standard headers */
#include <Appearance.h>
#include <AppleEvents.h>
#include <Controls.h>
#include <Devices.h>
#include <Dialogs.h>
#include <Errors.h>
#include <Events.h>
#include <Gestalt.h>
#include <Lists.h>
#include <Menus.h>
#include <MixedMode.h>
#include <OSUtils.h>
#include <PLStringFuncs.h>
#include <Processes.h>
#include <Quickdraw.h>
#include <Resources.h>
#include <Scrap.h>
#include <Sound.h>
#include <StandardFile.h>
#include <Strings.h>
#include <TextEdit.h>
#include <TextUtils.h>
#include <ToolUtils.h>
#include <Types.h>
#include <Windows.h>

/* Defines */
#define kBaseRes 128
#define kMaxSleep ((unsigned long)60L)
#define kMoveToFront (WindowPtr) - 1L

// Scrollbars are 16 pixels wide, with 1 pixel
// overlapping the window frame. Therefore, the
// drawing area should be inset 16 - 1 = 15 pixels.
#define kScrollbarAdjust 15

// Minimum width and height of a window
#define kMinWidth 150
#define kMinHeight 100

#define mApple kBaseRes
#define mFile (kBaseRes + 1)
#define mEdit (kBaseRes + 2)

#define iOpenURL 1
#define iQuit 2
#define iAbout 1

#define wMainWindow kBaseRes
#define wAbout (kBaseRes + 1)

#define maskCharCode (0xff)

#define kDisableButton 255
#define kEnableButton 0

#ifdef DEBUG_GC
#define DEBUG_PRINT(s, ...) printf(s, __VA_ARGS__)
#else
#define DEBUG_PRINT(s, ...)
#endif

#ifdef __cplusplus
}
#endif
