home *** CD-ROM | disk | FTP | other *** search
- /* AboutBox.c */
- /*****************************************************************************/
- /* */
- /* Stupid Fred's Text Editor */
- /* Written by Thomas R. Lawrence, 1993 - 1994. */
- /* */
- /* This software is Public Domain; it may be used for any purpose */
- /* whatsoever without restriction. */
- /* */
- /* This package is distributed in the hope that it will be useful, */
- /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
- /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */
- /* */
- /* Thomas R. Lawrence can be reached at tomlaw@world.std.com. */
- /* */
- /*****************************************************************************/
-
- #include "MiscInfo.h"
- #include "Debug.h"
- #include "Audit.h"
- #include "Definitions.h"
-
- #include "AboutBox.h"
- #include "Menus.h"
- #include "WindowDispatcher.h"
- #include "Memory.h"
- #include "DataMunging.h"
- #include "Main.h"
-
-
- #define WIDTH (420)
- #define HEIGHT (240)
-
- #define IPWidth (304)
- #define IPHeight (54)
- #define IPX ((WIDTH - IPWidth) / 2)
- #define IPY (22)
-
- #define PresentsY (IPY + IPHeight + 2)
-
- #define StupidWidth (376)
- #define StupidHeight (27)
- #define StupidX ((WIDTH - StupidWidth) / 2)
- #define StupidY (PresentsY + 42)
-
- #define InfoStartY (StupidY + StupidHeight + 20)
-
- #define QuillWidth (32)
- #define QuillHeight (32)
- #define QuillX (WIDTH - QuillWidth - 12)
- #define QuillY (12)
-
- static char IntegralProductionsdx[] =
- {
- 0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x30,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x30,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0xF8,0x00,0x30,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x03,0xFE,0x00,0x30,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x07,0x7E,0x00,0x30,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x06,0x3E,0x00,0x30,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x0C,0x1E,0x00,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x0C,0x00,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x1C,0x00,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x1C,0x00,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x1C,0x00,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x1C,0x00,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x3C,0x00,0x00,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,
- 0x00,0x38,0x00,0x00,0x00,0x00,0x1F,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x80,0x0F,0xFC,0x00,0x00,0x00,0x03,0xC0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x00,0x00,
- 0x00,0x38,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x03,0x07,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,
- 0x00,0x38,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x03,0x03,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,
- 0x00,0x38,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x03,0x01,0x80,0x00,0x00,0x00,0xC0,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,
- 0x00,0x38,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x03,0x01,0x80,0x00,0x00,0x00,0xC0,0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,
- 0x00,0x38,0x00,0x00,0x00,0x00,0x06,0x06,0x78,0xFE,0x1E,0x01,0xF0,0x33,0x8F,0x81,0x80,0x03,0x01,0x99,0xC3,0xE0,0x1E,0xCF,0x1E,0x03,0xC7,0xF3,0x01,0xF0,0x33,0xC1,0xE8,0x00,0x00,0x7B,0x3E,0x70,
- 0x00,0x38,0x00,0x00,0x00,0x00,0x06,0x1F,0x9C,0x30,0x21,0x83,0x1E,0xFD,0x90,0xC1,0x80,0x03,0x01,0xFE,0xC4,0x30,0x31,0xC3,0x06,0x0C,0x61,0x8F,0x02,0x18,0xFC,0xE3,0x18,0x00,0x00,0xC7,0x0C,0x20,
- 0x00,0x38,0x00,0x00,0x00,0x00,0x06,0x06,0x0C,0x30,0x60,0x86,0x1C,0x30,0x30,0x61,0x80,0x03,0x03,0x18,0x0C,0x18,0x60,0xC3,0x06,0x18,0x71,0x83,0x06,0x0C,0x30,0x63,0x08,0x00,0x01,0x83,0x0E,0x40,
- 0x00,0x78,0x00,0x00,0x00,0x00,0x06,0x06,0x0C,0x30,0x40,0xC6,0x0C,0x30,0x30,0x61,0x80,0x03,0x06,0x18,0x08,0x18,0x40,0xC3,0x06,0x10,0x31,0x83,0x04,0x0C,0x30,0x63,0x08,0x00,0x01,0x03,0x06,0x40,
- 0x00,0x78,0x00,0x00,0x00,0x00,0x06,0x06,0x0C,0x30,0xFF,0xC6,0x0C,0x30,0x00,0x61,0x80,0x03,0xF8,0x18,0x18,0x0C,0xC0,0xC3,0x06,0x30,0x01,0x83,0x0C,0x06,0x30,0x63,0xC0,0x00,0x03,0x03,0x03,0x80,
- 0x00,0x78,0x00,0x00,0x00,0x00,0x06,0x06,0x0C,0x30,0xC0,0x07,0x0C,0x30,0x01,0xE1,0x80,0x03,0x00,0x18,0x18,0x0C,0xC0,0xC3,0x06,0x30,0x01,0x83,0x0C,0x06,0x30,0x61,0xF0,0x00,0x03,0x03,0x03,0x80,
- 0x00,0x78,0x00,0x00,0x00,0x00,0x06,0x06,0x0C,0x30,0xC0,0x03,0x18,0x30,0x06,0x61,0x80,0x03,0x00,0x18,0x18,0x0C,0xC0,0xC3,0x06,0x30,0x01,0x83,0x0C,0x06,0x30,0x60,0x78,0x00,0x03,0x03,0x03,0x80,
- 0x00,0x78,0x00,0x00,0x00,0x00,0x06,0x06,0x0C,0x30,0xC0,0x01,0xF0,0x30,0x18,0x61,0x80,0x03,0x00,0x18,0x18,0x0C,0xC0,0xC3,0x06,0x30,0x01,0x83,0x0C,0x06,0x30,0x60,0x1C,0x00,0x03,0x03,0x02,0xC0,
- 0x00,0x78,0x00,0x00,0x00,0x00,0x06,0x06,0x0C,0x30,0xE0,0xC2,0x00,0x30,0x30,0x61,0x80,0x03,0x00,0x18,0x0C,0x08,0xC0,0xC3,0x06,0x38,0x31,0x83,0x06,0x04,0x30,0x62,0x0C,0x00,0x03,0x03,0x04,0x60,
- 0x00,0x78,0x00,0x00,0x00,0x00,0x06,0x06,0x0C,0x30,0x71,0x84,0x00,0x30,0x30,0x61,0x80,0x03,0x00,0x18,0x0C,0x18,0x60,0xC3,0x06,0x1C,0x61,0x83,0x06,0x0C,0x30,0x62,0x0C,0x00,0x01,0x83,0x08,0x70,
- 0x00,0x78,0x00,0x00,0x00,0x00,0x06,0x06,0x0C,0x12,0x7F,0x07,0xF8,0x30,0x38,0xE1,0x80,0x03,0x00,0x18,0x06,0x10,0x71,0xF3,0x8F,0x8F,0xC0,0x93,0x03,0x08,0x30,0x63,0x18,0x00,0x01,0xC7,0xD8,0x38,
- 0x00,0x70,0x00,0x00,0x00,0x00,0x1F,0x9F,0xBF,0x1C,0x1E,0x03,0xFE,0xFC,0x1F,0x77,0xE0,0x0F,0xC0,0x7E,0x03,0xE0,0x1E,0xC1,0xF6,0x07,0x80,0xEF,0xC1,0xF0,0xFD,0xFA,0xF0,0x00,0x00,0x7B,0x3C,0x7C,
- 0x00,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x70,0x07,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x60,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x60,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0xF0,0xE0,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0xF8,0xC0,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0xFD,0x80,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0xFF,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x3E,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x07,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
- };
-
- static char StupidFredTextEditor[] =
- {
- 0x07,0xF2,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x00,0x07,0xFF,0xFC,0x00,0x00,0x00,0x00,0x07,0xE0,0x60,0x00,0x00,0x00,0x7F,0xFF,0xC0,0x00,0x00,0x00,0x00,0x40,0x00,0x3F,0xFF,0xE0,0x00,0xFC,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
- 0x1C,0x1F,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3C,0x00,0x01,0xF0,0x7C,0x00,0x00,0x00,0x00,0x01,0xE0,0xF0,0x00,0x00,0x00,0x78,0xE3,0xC0,0x00,0x00,0x00,0x00,0xC0,0x00,0x0F,0x83,0xF0,0x00,0x3C,0x00,0x01,0x80,0x00,0x00,0x00,0x00,
- 0x38,0x07,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x1C,0x00,0x00,0xE0,0x1E,0x00,0x00,0x00,0x00,0x00,0xE0,0xF0,0x00,0x00,0x00,0x70,0xE1,0xC0,0x00,0x00,0x00,0x00,0xC0,0x00,0x07,0x00,0x70,0x00,0x1C,0x07,0x01,0x80,0x00,0x00,0x00,0x00,
- 0x70,0x03,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x1C,0x00,0x00,0xE0,0x06,0x00,0x00,0x00,0x00,0x00,0xE0,0xF0,0x00,0x00,0x00,0x60,0xE0,0xC0,0x00,0x00,0x00,0x00,0xC0,0x00,0x07,0x00,0x30,0x00,0x1C,0x07,0x01,0x80,0x00,0x00,0x00,0x00,
- 0x70,0x01,0x80,0xC0,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x1C,0x00,0x00,0xE0,0x03,0x00,0x00,0x00,0x00,0x00,0xE0,0x10,0x00,0x00,0x00,0xC0,0xE0,0x60,0x00,0x00,0x00,0x00,0xC0,0x00,0x07,0x00,0x18,0x00,0x1C,0x07,0x01,0x80,0x00,0x00,0x00,0x00,
- 0x78,0x00,0x83,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x00,0x00,0xE0,0x41,0x00,0x00,0x00,0x00,0x00,0xE0,0x20,0x00,0x00,0x00,0xC0,0xE0,0x60,0x00,0x00,0x00,0x03,0xC0,0x00,0x07,0x02,0x08,0x00,0x1C,0x00,0x07,0x80,0x00,0x00,0x00,0x00,
- 0x7C,0x00,0x0F,0xFC,0x38,0x0E,0x03,0x8F,0x00,0x70,0x0F,0x9C,0x00,0x00,0xE0,0x40,0x39,0xE0,0x7E,0x00,0x7C,0xE0,0x40,0x3E,0x00,0x00,0x00,0xE0,0x00,0xFC,0x1F,0xC7,0xFF,0xFC,0x00,0x07,0x02,0x00,0x0F,0x9C,0x07,0x1F,0xF8,0x1F,0xC0,0x39,0xE0,
- 0x3F,0x00,0x01,0xC1,0xF8,0x7E,0x1F,0xB1,0xC3,0xF0,0x38,0x7C,0x00,0x00,0xE0,0xC1,0xFB,0xE1,0xC7,0x01,0xC3,0xE0,0x00,0x71,0xC0,0x00,0x00,0xE0,0x03,0x8E,0x0F,0xC1,0xC1,0xC0,0x00,0x07,0x06,0x00,0x38,0x7C,0x3F,0x03,0x80,0x30,0x61,0xFB,0xE0,
- 0x1F,0xF0,0x01,0xC0,0x78,0x1E,0x07,0xC0,0xE0,0xF0,0x70,0x3C,0x00,0x00,0xE1,0xC0,0x7C,0xE3,0x83,0x83,0x81,0xE0,0x00,0xE0,0x60,0x00,0x00,0xE0,0x07,0x07,0x03,0xC1,0x01,0xC0,0x00,0x07,0x0E,0x00,0x70,0x3C,0x0F,0x03,0x80,0x60,0x30,0x7C,0xE0,
- 0x07,0xFE,0x01,0xC0,0x38,0x0E,0x03,0x80,0xE0,0x70,0x70,0x1C,0x00,0x00,0xFF,0xC0,0x38,0x03,0x01,0xC3,0x80,0xE0,0x00,0xE0,0x60,0x00,0x00,0xE0,0x06,0x03,0x81,0xE2,0x01,0xC0,0x00,0x07,0xFE,0x00,0x70,0x1C,0x07,0x03,0x80,0xE0,0x38,0x38,0x00,
- 0x00,0xFF,0x81,0xC0,0x38,0x0E,0x03,0x80,0x70,0x70,0xE0,0x1C,0x00,0x00,0xE1,0xC0,0x38,0x07,0x01,0xC7,0x00,0xE0,0x00,0xF0,0x20,0x00,0x00,0xE0,0x0E,0x03,0x80,0xE4,0x01,0xC0,0x00,0x07,0x06,0x00,0xE0,0x1C,0x07,0x03,0x81,0xC0,0x1C,0x38,0x00,
- 0x00,0x0F,0x81,0xC0,0x38,0x0E,0x03,0x80,0x70,0x70,0xE0,0x1C,0x00,0x00,0xE0,0xC0,0x38,0x07,0xFF,0xC7,0x00,0xE0,0x00,0xFE,0x00,0x00,0x00,0xE0,0x0F,0xFF,0x80,0xF8,0x01,0xC0,0x00,0x07,0x06,0x00,0xE0,0x1C,0x07,0x03,0x81,0xC0,0x1C,0x38,0x00,
- 0x00,0x03,0xC1,0xC0,0x38,0x0E,0x03,0x80,0x70,0x70,0xE0,0x1C,0x00,0x00,0xE0,0x40,0x38,0x07,0x00,0x07,0x00,0xE0,0x00,0x3F,0xC0,0x00,0x00,0xE0,0x0E,0x00,0x00,0x78,0x01,0xC0,0x00,0x07,0x02,0x00,0xE0,0x1C,0x07,0x03,0x81,0xC0,0x1C,0x38,0x00,
- 0x80,0x01,0xC1,0xC0,0x38,0x0E,0x03,0x80,0x70,0x70,0xE0,0x1C,0x00,0x00,0xE0,0x40,0x38,0x07,0x00,0x07,0x00,0xE0,0x00,0x0F,0xE0,0x00,0x00,0xE0,0x0E,0x00,0x00,0x7C,0x01,0xC0,0x00,0x07,0x02,0x04,0xE0,0x1C,0x07,0x03,0x81,0xC0,0x1C,0x38,0x00,
- 0xC0,0x01,0xC1,0xC0,0x38,0x0E,0x03,0x80,0x70,0x70,0xE0,0x1C,0x00,0x00,0xE0,0x00,0x38,0x07,0x00,0x07,0x00,0xE0,0x01,0x01,0xF0,0x00,0x00,0xE0,0x0E,0x00,0x00,0xDE,0x01,0xC0,0x00,0x07,0x00,0x0C,0xE0,0x1C,0x07,0x03,0x81,0xC0,0x1C,0x38,0x00,
- 0x60,0x01,0xC1,0xC0,0x38,0x0E,0x03,0x80,0x70,0x70,0xE0,0x1C,0x00,0x00,0xE0,0x00,0x38,0x07,0x00,0x07,0x00,0xE0,0x01,0x00,0xF0,0x00,0x00,0xE0,0x0E,0x00,0x01,0x8F,0x01,0xC0,0x00,0x07,0x00,0x18,0xE0,0x1C,0x07,0x03,0x81,0xC0,0x1C,0x38,0x00,
- 0x70,0x03,0x81,0xC0,0x38,0x1E,0x03,0x80,0xE0,0x70,0x70,0x1C,0x00,0x00,0xE0,0x00,0x38,0x03,0x80,0x03,0x80,0xE0,0x01,0x80,0x70,0x00,0x00,0xE0,0x07,0x00,0x03,0x07,0x01,0xC0,0x00,0x07,0x00,0x38,0x70,0x1C,0x07,0x03,0x80,0xE0,0x38,0x38,0x00,
- 0x78,0x03,0x01,0xC0,0x3C,0x2E,0x03,0xC0,0xE0,0x70,0x70,0x3C,0x00,0x00,0xE0,0x00,0x38,0x01,0x80,0x43,0x81,0xE0,0x00,0xC0,0x60,0x00,0x00,0xE0,0x03,0x00,0x86,0x07,0x81,0xC0,0x00,0x07,0x00,0x70,0x70,0x3C,0x07,0x03,0x80,0x60,0x30,0x38,0x00,
- 0x7E,0x0E,0x01,0xE2,0x1F,0xCF,0x03,0xE1,0xC0,0xF8,0x38,0x7E,0x00,0x01,0xF0,0x00,0x7C,0x00,0xE1,0x81,0xC3,0xF0,0x00,0xE0,0xE0,0x00,0x01,0xF0,0x01,0xC3,0x0E,0x07,0xE1,0xE2,0x00,0x0F,0x81,0xF0,0x38,0x7E,0x0F,0x83,0xC4,0x30,0x60,0x7C,0x00,
- 0x23,0xF8,0x00,0xFC,0x0F,0x0F,0xC3,0x9F,0x03,0xFE,0x0F,0x9F,0x80,0x07,0xFC,0x01,0xFF,0x00,0x7E,0x00,0x7C,0xFC,0x00,0x9F,0x80,0x00,0x07,0xFC,0x00,0xFC,0x3F,0x8F,0xF0,0xFC,0x00,0x3F,0xFF,0xF0,0x0F,0x9F,0xBF,0xE1,0xF8,0x1F,0xC1,0xFF,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
- };
-
- static char Quill[] =
- {
- 0x00,0x01,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x04,0x40,0x00,0x00,0x08,0x20,0x00,
- 0x00,0x10,0x10,0x00,0x00,0x20,0x08,0x00,0x00,0x40,0x64,0x00,0x00,0x81,0x2A,0x00,
- 0x01,0x02,0xB1,0x00,0x02,0x02,0x74,0x80,0x04,0x05,0x7C,0x40,0x08,0x04,0xC4,0x20,
- 0x10,0x02,0xF8,0x10,0x20,0x09,0x88,0x08,0x40,0x0F,0x70,0x04,0x80,0x03,0x20,0x02,
- 0x40,0x0B,0xC0,0x01,0x20,0x0F,0x00,0x02,0x10,0x06,0xC0,0x04,0x08,0x02,0x80,0x08,
- 0x04,0x06,0x00,0x10,0x02,0x06,0x00,0x20,0x01,0x04,0x00,0x40,0x00,0x84,0x00,0x80,
- 0x00,0x44,0x01,0x00,0x00,0x24,0x02,0x00,0x00,0x10,0x04,0x00,0x00,0x08,0x08,0x00,
- 0x00,0x04,0x10,0x00,0x00,0x02,0x20,0x00,0x00,0x01,0x40,0x00,0x00,0x00,0x80,0x00
- };
-
-
- struct AboutBoxWindowRec
- {
- WinType* ScreenID;
- GenericWindowRec* MyGenericWindow; /* how the window event dispatcher knows us */
- };
-
-
- static AboutBoxWindowRec* CurrentAboutBox = NIL;
-
-
- void ShowAboutBox(void)
- {
- if (CurrentAboutBox != NIL)
- {
- ActivateThisWindow(CurrentAboutBox->ScreenID);
- }
- else
- {
- CurrentAboutBox = (AboutBoxWindowRec*)AllocPtrCanFail(
- sizeof(AboutBoxWindowRec),"AboutBoxWindowRec");
- if (CurrentAboutBox == NIL)
- {
- FailurePoint1:
- return;
- }
- CurrentAboutBox->ScreenID = MakeNewWindow(eDocumentWindow,eWindowClosable,
- eWindowNotZoomable,eWindowNotResizable,DialogLeftEdge(WIDTH),
- DialogTopEdge(HEIGHT),WIDTH,HEIGHT,
- (void (*)(void*))&AboutBoxWindowUpdator,CurrentAboutBox);
- if (CurrentAboutBox->ScreenID == 0)
- {
- FailurePoint2:
- ReleasePtr((char*)CurrentAboutBox);
- CurrentAboutBox = NIL;
- goto FailurePoint1;
- }
- /* notify window management */
- CurrentAboutBox->MyGenericWindow
- = CheckInNewWindow(CurrentAboutBox->ScreenID,CurrentAboutBox,
- (void (*)(void*,MyBoolean,OrdType,OrdType,ModifierFlags))&AboutBoxWindowDoIdle,
- (void (*)(void*))&AboutBoxWindowBecomeActive,
- (void (*)(void*))&AboutBoxWindowBecomeInactive,
- (void (*)(void*))&AboutBoxWindowJustResized,
- (void (*)(OrdType,OrdType,ModifierFlags,void*))&AboutBoxWindowDoMouseDown,
- (void (*)(unsigned char,ModifierFlags,void*))&AboutBoxWindowDoKeyDown,
- (void (*)(void*))&AboutBoxWindowClose,
- (void (*)(void*))&AboutBoxWindowMenuSetup,
- (void (*)(void*,MenuItemType*))&AboutBoxWindowDoMenuCommand);
- if (CurrentAboutBox->MyGenericWindow == NIL)
- {
- FailurePoint3:
- KillWindow(CurrentAboutBox->ScreenID);
- goto FailurePoint2;
- }
- SetWindowName(CurrentAboutBox->ScreenID,"About TextEditor...");
- AboutBoxWindowUpdator(CurrentAboutBox);
- }
- }
-
-
- void HideAnyAboutBoxes(void)
- {
- if (CurrentAboutBox != NIL)
- {
- CheckPtrExistence(CurrentAboutBox);
- CheckOutDyingWindow(CurrentAboutBox->MyGenericWindow);
- KillWindow(CurrentAboutBox->ScreenID);
- ReleasePtr((char*)CurrentAboutBox);
- CurrentAboutBox = NIL;
- }
- }
-
-
- void AboutBoxWindowDoIdle(AboutBoxWindowRec* Window,
- MyBoolean CheckCursorFlag, OrdType XLoc, OrdType YLoc)
- {
- CheckPtrExistence(Window);
- ERROR(Window != CurrentAboutBox,PRERR(ForceAbort,
- "AboutBoxWindowDoIdle: window pointer inconsistency"));
- if (CheckCursorFlag)
- {
- SetArrowCursor();
- }
- }
-
-
- void AboutBoxWindowBecomeActive(AboutBoxWindowRec* Window)
- {
- CheckPtrExistence(Window);
- ERROR(Window != CurrentAboutBox,PRERR(ForceAbort,
- "AboutBoxWindowBecomeActive: window pointer inconsistency"));
- }
-
-
- void AboutBoxWindowBecomeInactive(AboutBoxWindowRec* Window)
- {
- CheckPtrExistence(Window);
- ERROR(Window != CurrentAboutBox,PRERR(ForceAbort,
- "AboutBoxWindowBecomeInactive: window pointer inconsistency"));
- }
-
-
- void AboutBoxWindowJustResized(AboutBoxWindowRec* Window)
- {
- EXECUTE(PRERR(ForceAbort,"AboutBoxWindowJustResized: about box can't resize"));
- }
-
-
- void AboutBoxWindowDoMouseDown(OrdType XLoc, OrdType YLoc,
- ModifierFlags Modifiers, AboutBoxWindowRec* Window)
- {
- CheckPtrExistence(Window);
- ERROR(Window != CurrentAboutBox,PRERR(ForceAbort,
- "AboutBoxWindowDoMouseDown: window pointer inconsistency"));
- }
-
-
- void AboutBoxWindowDoKeyDown(unsigned char KeyCode,
- ModifierFlags Modifiers, AboutBoxWindowRec* Window)
- {
- CheckPtrExistence(Window);
- ERROR(Window != CurrentAboutBox,PRERR(ForceAbort,
- "AboutBoxWindowDoKeyDown: window pointer inconsistency"));
- }
-
-
- void AboutBoxWindowClose(AboutBoxWindowRec* Window)
- {
- CheckPtrExistence(Window);
- ERROR(Window != CurrentAboutBox,PRERR(ForceAbort,
- "AboutBoxWindowClose: window pointer inconsistency"));
- HideAnyAboutBoxes();
- }
-
-
- static void DrawImage(WinType* Window, OrdType X, OrdType Y, OrdType Width,
- OrdType Height, char* RawData)
- {
- Bitmap* TheBitmap;
-
- TheBitmap = MakeBitmap(RawData,Width,Height,((Width + 7) / 8));
- if (TheBitmap != NIL)
- {
- SetClipRect(Window,0,0,WIDTH,HEIGHT);
- DrawBitmap(Window,X,Y,TheBitmap);
- DisposeBitmap(TheBitmap);
- }
- }
-
-
- static char VersionStr[] = "Version "VersionString;
- static char Presents[] = "Presents";
-
- #define NumberOfInfos (2)
- static char* Info[NumberOfInfos] =
- {
- "Written by Thomas R. Lawrence (tomlaw@world.std.com), 1993",
- "Developed on a Macintosh using THINK C 6.0."
- };
-
-
- void AboutBoxWindowUpdator(AboutBoxWindowRec* Window)
- {
- OrdType Top;
- long Scan;
-
- DrawImage(Window->ScreenID,IPX,IPY,IPWidth,IPHeight,IntegralProductionsdx);
- DrawTextLine(Window->ScreenID,GetScreenFont(),9,Presents,StrLen(Presents),
- (WIDTH - LengthOfText(GetScreenFont(),9,Presents,StrLen(Presents),ePlain)) / 2,
- PresentsY,ePlain);
- DrawImage(Window->ScreenID,StupidX,StupidY,StupidWidth,StupidHeight,
- StupidFredTextEditor);
- DrawImage(Window->ScreenID,QuillX,QuillY,QuillWidth,QuillHeight,Quill);
- Top = InfoStartY;
- for (Scan = 0; Scan < NumberOfInfos; Scan += 1)
- {
- ERROR(Info[Scan] == NIL,PRERR(ForceAbort,
- "AboutBoxUpdator: Forgot some infos"));
- DrawTextLine(Window->ScreenID,GetScreenFont(),9,Info[Scan],StrLen(Info[Scan]),
- (WIDTH - LengthOfText(GetScreenFont(),9,Info[Scan],
- StrLen(Info[Scan]),ePlain)) / 2,Top,ePlain);
- Top += GetFontHeight(GetScreenFont(),9);
- }
- DrawTextLine(Window->ScreenID,GetScreenFont(),9,VersionStr,StrLen(VersionStr),5,
- HEIGHT - GetFontHeight(GetScreenFont(),9) - 3,ePlain);
- }
-
-
- void AboutBoxWindowMenuSetup(AboutBoxWindowRec* Window)
- {
- CheckPtrExistence(Window);
- ERROR(Window != CurrentAboutBox,PRERR(ForceAbort,
- "AboutBoxWindowMenuSetup: window pointer inconsistency"));
- ChangeItemName(mCloseFile,"Close About Box");
- EnableMenuItem(mCloseFile);
- }
-
-
- void AboutBoxWindowDoMenuCommand(AboutBoxWindowRec* Window,
- MenuItemType* MenuItem)
- {
- CheckPtrExistence(Window);
- ERROR(Window != CurrentAboutBox,PRERR(ForceAbort,
- "AboutBoxWindowDoMenuCommand: window pointer inconsistency"));
- if (MenuItem == mCloseFile)
- {
- AboutBoxWindowClose(Window);
- }
- else
- {
- EXECUTE(PRERR(ForceAbort,"AboutBoxWindowDoMenuCommand: unknown command"));
- }
- }
-