/* * ClipTool (Udklipsværktøj) - A Commodities Exchange Application * Copyright (C) 1994 Torsten Poulin * * imagegads.c - creates the button bar. * Images generated with IconEdit V38.7 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * The author can be contacted by mail at * Torsten Poulin * Banebrinken 99, 2, 77 * DK-2400 Copenhagen NV * Denmark * or via email: torsten@diku.dk * * $Log: imagegads.c,v $ * Revision 1.1 94/02/20 21:31:03 Torsten * Initial revision * */ static char const RCSid[] = "$Id: imagegads.c,v 1.1 94/02/20 21:31:03 Torsten Exp $"; #include "cliptool.h" /* * Two bitplane images */ static UWORD chip openI1Data[] = { /* Plane 0 */ 0x3FFF,0xFFFF,0xF000,0xC000,0x0000,0x1C00,0xC000,0x0FC0, 0x3C00,0xC000,0x3033,0x3C00,0xC000,0x000F,0x3C00,0xC1F0, 0x003F,0x3C00,0xC60F,0xFF00,0x3C00,0xC600,0x0300,0x3C00, 0xC600,0x0300,0x3C00,0xC603,0xFFFF,0xFC00,0xC60C,0x0003, 0x3C00,0xC630,0x000C,0x3C00,0xC6C0,0x0030,0x3C00,0xC700, 0x00C0,0x3C00,0xC7FF,0xFF00,0x3C00,0xC000,0x0000,0x3C00, 0xDFFF,0xFFFF,0xFC00,0x3FFF,0xFFFF,0xF000, /* Plane 1 */ 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xF000,0x3000,0x0FC0, 0x3000,0x3000,0x3033,0x3000,0x3000,0x000F,0x3000,0x3000, 0x003F,0x3000,0x31F0,0x0000,0x3000,0x31FF,0xFC00,0x3000, 0x31FF,0xFC00,0x3000,0x31FC,0x0000,0x3000,0x31F0,0x0000, 0x3000,0x31C0,0x0000,0x3000,0x3100,0x0000,0x3000,0x3000, 0x0000,0x3000,0x3000,0x0000,0x3000,0x3000,0x0000,0x3000, 0x3FFF,0xFFFF,0xF000,0x0000,0x0000,0x0000, }; static UWORD chip openI2Data[] = { /* Plane 0 */ 0x3FFF,0xFFFF,0xF000,0xFFFF,0xFFFF,0xFC00,0xE000,0x0000, 0x0C00,0xE000,0x07E0,0x1C00,0xE000,0x1819,0x9C00,0xE000, 0x0007,0x9C00,0xE0F8,0x001F,0x9C00,0xE307,0xFF80,0x1C00, 0xE300,0x0180,0x1C00,0xE300,0x0180,0x1C00,0xE301,0xFFFF, 0xFC00,0xE306,0x0001,0x9C00,0xE318,0x0006,0x1C00,0xE360, 0x0018,0x1C00,0xE380,0x0060,0x1C00,0xE3FF,0xFF80,0x1C00, 0xE000,0x0000,0x1C00,0x3FFF,0xFFFF,0xF000, /* Plane 1 */ 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xF000,0x3FFF,0xFFFF, 0xF000,0x3800,0x07E0,0x1000,0x3800,0x1819,0x9000,0x3800, 0x0007,0x9000,0x3800,0x001F,0x9000,0x38F8,0x0000,0x1000, 0x38FF,0xFE00,0x1000,0x38FF,0xFE00,0x1000,0x38FE,0x0000, 0x1000,0x38F8,0x0000,0x1000,0x38E0,0x0000,0x1000,0x3880, 0x0000,0x1000,0x3800,0x0000,0x1000,0x3800,0x0000,0x1000, 0x3800,0x0000,0x1000,0x0000,0x0000,0x0000, }; static struct Image openI1 = { 0, 0, /* Upper left corner */ 38, 18, 2, /* Width, Height, Depth */ openI1Data, /* Image data */ 0x0003, 0x0000, /* PlanePick, PlaneOnOff */ NULL }; static struct Image openI2 = { 0, 0, 38, 18, 2, openI2Data, 0x0003, 0x0000, NULL }; static UWORD chip save1I1Data[] = { /* Plane 0 */ 0x3FFF,0xFFFF,0xF000,0xC000,0x0000,0x1C00,0xC000,0x03F0, 0x3C00,0xC000,0xCC0C,0x3C00,0xC000,0xF000,0x3C00,0xC000, 0xFC00,0x3C00,0xC1F8,0x0000,0x3C00,0xC607,0xFFFF,0x3C00, 0xC600,0x0003,0x3C00,0xC7FF,0xFFFF,0x3C00,0xC600,0x0003, 0x3C00,0xC600,0x0003,0x3C00,0xC600,0x0003,0x3C00,0xC600, 0x0003,0x3C00,0xC600,0x0003,0x3C00,0xC7FF,0xFFFF,0x3C00, 0xDFFF,0xFFFF,0xFC00,0x3FFF,0xFFFF,0xF000, /* Plane 1 */ 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xF000,0x3000,0x03F0, 0x3000,0x3000,0xCC0C,0x3000,0x3000,0xF000,0x3000,0x3000, 0xFC00,0x3000,0x3000,0x0000,0x3000,0x31F8,0x0000,0x3000, 0x31FF,0xFFFC,0x3000,0x3000,0x0000,0x3000,0x3000,0x0000, 0x3000,0x3000,0x0000,0x3000,0x3000,0x0000,0x3000,0x3000, 0x0000,0x3000,0x3000,0x0000,0x3000,0x3000,0x0000,0x3000, 0x3FFF,0xFFFF,0xF000,0x0000,0x0000,0x0000, }; static UWORD chip save1I2Data[] = { /* Plane 0 */ 0x3FFF,0xFFFF,0xF000,0xFFFF,0xFFFF,0xFC00,0xE000,0x0000, 0x0C00,0xE000,0x01F8,0x1C00,0xE000,0x6606,0x1C00,0xE000, 0x7800,0x1C00,0xE000,0x7E00,0x1C00,0xE0FC,0x0000,0x1C00, 0xE303,0xFFFF,0x9C00,0xE300,0x0001,0x9C00,0xE3FF,0xFFFF, 0x9C00,0xE300,0x0001,0x9C00,0xE300,0x0001,0x9C00,0xE300, 0x0001,0x9C00,0xE300,0x0001,0x9C00,0xE300,0x0001,0x9C00, 0xE3FF,0xFFFF,0x9C00,0x3FFF,0xFFFF,0xF000, /* Plane 1 */ 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xF000,0x3FFF,0xFFFF, 0xF000,0x3800,0x01F8,0x1000,0x3800,0x6606,0x1000,0x3800, 0x7800,0x1000,0x3800,0x7E00,0x1000,0x3800,0x0000,0x1000, 0x38FC,0x0000,0x1000,0x38FF,0xFFFE,0x1000,0x3800,0x0000, 0x1000,0x3800,0x0000,0x1000,0x3800,0x0000,0x1000,0x3800, 0x0000,0x1000,0x3800,0x0000,0x1000,0x3800,0x0000,0x1000, 0x3800,0x0000,0x1000,0x0000,0x0000,0x0000, }; static struct Image save1I1 = { 0, 0, 38, 18, 2, save1I1Data, 0x0003, 0x0000, NULL }; static struct Image save1I2 = { 0, 0, 38, 18, 2, save1I2Data, 0x0003, 0x0000, NULL }; static UWORD chip cutI1Data[] = { /* Plane 0 */ 0x3FFF,0xFFFF,0xF000,0xC000,0x0000,0x1C00,0xC000,0x0000, 0x3C00,0xC000,0x0003,0xFC00,0xC7F8,0x003C,0x7C00,0xCC0E, 0x03C3,0xBC00,0xC603,0x0C1C,0x3C00,0xC3FF,0xD060,0x3C00, 0xC000,0xF780,0x3C00,0xC000,0xFD80,0x3C00,0xC1FF,0xD060, 0x3C00,0xC603,0x0C1C,0x3C00,0xCC0E,0x03C3,0xBC00,0xC7F8, 0x003C,0x7C00,0xC000,0x0003,0xFC00,0xC000,0x0000,0x3C00, 0xDFFF,0xFFFF,0xFC00,0x3FFF,0xFFFF,0xF000, /* Plane 1 */ 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xF000,0x3000,0x0000, 0x3000,0x3000,0x0000,0x3000,0x3000,0x0003,0xB000,0x3000, 0x003C,0x3000,0x3000,0x03E0,0x3000,0x3000,0x0F80,0x3000, 0x3000,0x0800,0x3000,0x3000,0x0200,0x3000,0x3000,0x0F80, 0x3000,0x3000,0x03E0,0x3000,0x3000,0x003C,0x3000,0x3000, 0x0003,0xB000,0x3000,0x0000,0x3000,0x3000,0x0000,0x3000, 0x3FFF,0xFFFF,0xF000,0x0000,0x0000,0x0000, }; static UWORD chip cutI2Data[] = { /* Plane 0 */ 0x3FFF,0xFFFF,0xF000,0xFFFF,0xFFFF,0xFC00,0xE000,0x0000, 0x0C00,0xE000,0x0000,0x1C00,0xE000,0x0001,0xFC00,0xE3FC, 0x001E,0x3C00,0xE607,0x01E1,0xDC00,0xE301,0x860E,0x1C00, 0xE1FF,0xE830,0x1C00,0xE000,0x7BC0,0x1C00,0xE000,0x7EC0, 0x1C00,0xE0FF,0xE830,0x1C00,0xE301,0x860E,0x1C00,0xE607, 0x01E1,0xDC00,0xE3FC,0x001E,0x3C00,0xE000,0x0001,0xFC00, 0xE000,0x0000,0x1C00,0x3FFF,0xFFFF,0xF000, /* Plane 1 */ 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xF000,0x3FFF,0xFFFF, 0xF000,0x3800,0x0000,0x1000,0x3800,0x0000,0x1000,0x3800, 0x0001,0xD000,0x3800,0x001E,0x1000,0x3800,0x01F0,0x1000, 0x3800,0x07C0,0x1000,0x3800,0x0400,0x1000,0x3800,0x0100, 0x1000,0x3800,0x07C0,0x1000,0x3800,0x01F0,0x1000,0x3800, 0x001E,0x1000,0x3800,0x0001,0xD000,0x3800,0x0000,0x1000, 0x3800,0x0000,0x1000,0x0000,0x0000,0x0000, }; static struct Image cutI1 = { 0, 0, 38, 18, 2, cutI1Data, 0x0003, 0x0000, NULL }; static struct Image cutI2 = { 0, 0, 38, 18, 2, cutI2Data, 0x0003, 0x0000, NULL }; static UWORD chip copyI1Data[] = { /* Plane 0 */ 0x3FFF,0xFFFF,0xF000,0xC000,0x0000,0x1C00,0xC07F,0xFFC0, 0x3C00,0xC040,0x0040,0x3C00,0xC040,0xFFFE,0x3C00,0xC040, 0x8002,0x3C00,0xC383,0x0002,0x3C00,0xC3FB,0xC002,0x3C00, 0xC3FF,0xF002,0x3C00,0xC0FF,0xFC02,0x3C00,0xC04F,0xF002, 0x3C00,0xC043,0xC002,0x3C00,0xC043,0x0002,0x3C00,0xC07C, 0x8002,0x3C00,0xC000,0x8002,0x3C00,0xC000,0xFFFE,0x3C00, 0xDFFF,0xFFFF,0xFC00,0x3FFF,0xFFFF,0xF000, /* Plane 1 */ 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xF000,0x3000,0x0000, 0x3000,0x3000,0x0000,0x3000,0x3000,0x0000,0x3000,0x3000, 0x7FFC,0x3000,0x3000,0x7FFC,0x3000,0x3181,0x3FFC,0x3000, 0x30F9,0xCFFC,0x3000,0x300F,0xF3FC,0x3000,0x3001,0xCFFC, 0x3000,0x3001,0x3FFC,0x3000,0x3000,0x7FFC,0x3000,0x3000, 0x7FFC,0x3000,0x3000,0x7FFC,0x3000,0x3000,0x0000,0x3000, 0x3FFF,0xFFFF,0xF000,0x0000,0x0000,0x0000, }; static UWORD chip copyI2Data[] = { /* Plane 0 */ 0x3FFF,0xFFFF,0xF000,0xFFFF,0xFFFF,0xFC00,0xE000,0x0000, 0x0C00,0xE03F,0xFFE0,0x1C00,0xE020,0x0020,0x1C00,0xE020, 0x7FFF,0x1C00,0xE020,0x4001,0x1C00,0xE1C1,0x8001,0x1C00, 0xE1FD,0xE001,0x1C00,0xE1FF,0xF801,0x1C00,0xE07F,0xFE01, 0x1C00,0xE027,0xF801,0x1C00,0xE021,0xE001,0x1C00,0xE021, 0x8001,0x1C00,0xE03E,0x4001,0x1C00,0xE000,0x4001,0x1C00, 0xE000,0x7FFF,0x1C00,0x3FFF,0xFFFF,0xF000, /* Plane 1 */ 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xF000,0x3FFF,0xFFFF, 0xF000,0x3800,0x0000,0x1000,0x3800,0x0000,0x1000,0x3800, 0x0000,0x1000,0x3800,0x3FFE,0x1000,0x3800,0x3FFE,0x1000, 0x38C0,0x9FFE,0x1000,0x387C,0xE7FE,0x1000,0x3807,0xF9FE, 0x1000,0x3800,0xE7FE,0x1000,0x3800,0x9FFE,0x1000,0x3800, 0x3FFE,0x1000,0x3800,0x3FFE,0x1000,0x3800,0x3FFE,0x1000, 0x3800,0x0000,0x1000,0x0000,0x0000,0x0000, }; static struct Image copyI1 = { 0, 0, 38, 18, 2, copyI1Data, 0x0003, 0x0000, NULL }; static struct Image copyI2 = { 0, 0, 38, 18, 2, copyI2Data, 0x0003, 0x0000, NULL }; static UWORD chip pasteI1Data[] = { /* Plane 0 */ 0x3FFF,0xFFFF,0xF000,0xC000,0x0000,0x1C00,0xC000,0x7800, 0x3C00,0xC000,0x4800,0x3C00,0xC000,0x4800,0x3C00,0xC007, 0xFF80,0x3C00,0xC006,0x0180,0x3C00,0xC007,0xFF80,0x3C00, 0xC01E,0x01E0,0x3C00,0xC019,0xFE60,0x3C00,0xC018,0x7860, 0x3C00,0xC018,0x4860,0x3C00,0xC018,0x4860,0x3C00,0xC018, 0x7860,0x3C00,0xC01E,0x01E0,0x3C00,0xC007,0xFF80,0x3C00, 0xDFFF,0xFFFF,0xFC00,0x3FFF,0xFFFF,0xF000, /* Plane 1 */ 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xF000,0x3000,0x0000, 0x3000,0x3000,0x0000,0x3000,0x3000,0x0000,0x3000,0x3000, 0x0000,0x3000,0x3000,0x0000,0x3000,0x3001,0xFE00,0x3000, 0x3000,0x0000,0x3000,0x3007,0xFF80,0x3000,0x3007,0xFF80, 0x3000,0x3007,0xCF80,0x3000,0x3007,0xCF80,0x3000,0x3007, 0xFF80,0x3000,0x3001,0xFE00,0x3000,0x3000,0x0000,0x3000, 0x3FFF,0xFFFF,0xF000,0x0000,0x0000,0x0000, }; static UWORD chip pasteI2Data[] = { /* Plane 0 */ 0x3FFF,0xFFFF,0xF800,0xFFFF,0xFFFF,0xFC00,0xE000,0x0000, 0x0C00,0xE000,0x3C00,0x1C00,0xE000,0x2400,0x1C00,0xE000, 0x2400,0x1C00,0xE003,0xFFC0,0x1C00,0xE003,0x00C0,0x1C00, 0xE003,0xFFC0,0x1C00,0xE00F,0x00F0,0x1C00,0xE00C,0xFF30, 0x1C00,0xE00C,0x3C30,0x1C00,0xE00C,0x2430,0x1C00,0xE00C, 0x2430,0x1C00,0xE00C,0x3C30,0x1C00,0xE00F,0x00F0,0x1C00, 0xE003,0xFFC0,0x1C00,0x3FFF,0xFFFF,0xF000, /* Plane 1 */ 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xF000,0x3FFF,0xFFFF, 0xF000,0x3800,0x0000,0x1000,0x3800,0x0000,0x1000,0x3800, 0x0000,0x1000,0x3800,0x0000,0x1000,0x3800,0x0000,0x1000, 0x3800,0xFF00,0x1000,0x3800,0x0000,0x1000,0x3803,0xFFC0, 0x1000,0x3803,0xFFC0,0x1000,0x3803,0xE7C0,0x1000,0x3803, 0xE7C0,0x1000,0x3803,0xFFC0,0x1000,0x3800,0xFF00,0x1000, 0x3800,0x0000,0x1000,0x0000,0x0000,0x0000, }; static struct Image pasteI1 = { 0, 0, 38, 18, 2, pasteI1Data, 0x0003, 0x0000, NULL }; static struct Image pasteI2 = { 0, 0, 38, 18, 2, pasteI2Data, 0x0003, 0x0000, NULL }; static UWORD chip prevI1Data[] = { /* Plane 0 */ 0x3FFF,0xFFFF,0xF000,0xC000,0x0000,0x1C00,0xC000,0x0000, 0x3C00,0xC000,0x0380,0x3C00,0xC000,0x0C80,0x3C00,0xC000, 0x3080,0x3C00,0xC000,0xC080,0x3C00,0xC003,0x0080,0x3C00, 0xC00C,0x0080,0x3C00,0xC008,0x0080,0x3C00,0xC002,0x0080, 0x3C00,0xC000,0x8080,0x3C00,0xC000,0x2080,0x3C00,0xC000, 0x0880,0x3C00,0xC000,0x0280,0x3C00,0xC000,0x0000,0x3C00, 0xDFFF,0xFFFF,0xFC00,0x3FFF,0xFFFF,0xF000, /* Plane 1 */ 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xF000,0x3000,0x0000, 0x3000,0x3000,0x0180,0x3000,0x3000,0x0180,0x3000,0x3000, 0x0180,0x3000,0x3000,0x0180,0x3000,0x3000,0x0180,0x3000, 0x3000,0x0180,0x3000,0x3004,0x0180,0x3000,0x3001,0x0180, 0x3000,0x3000,0x4180,0x3000,0x3000,0x1180,0x3000,0x3000, 0x0580,0x3000,0x3000,0x0180,0x3000,0x3000,0x0000,0x3000, 0x3FFF,0xFFFF,0xF000,0x0000,0x0000,0x0000, }; static UWORD chip prevI2Data[] = { /* Plane 0 */ 0x3FFF,0xFFFF,0xF000,0xFFFF,0xFFFF,0xFC00,0xE000,0x0000, 0x0C00,0xE000,0x0000,0x1C00,0xE000,0x01C0,0x1C00,0xE000, 0x0640,0x1C00,0xE000,0x1840,0x1C00,0xE000,0x6040,0x1C00, 0xE001,0x8040,0x1C00,0xE006,0x0040,0x1C00,0xE004,0x0040, 0x1C00,0xE001,0x0040,0x1C00,0xE000,0x4040,0x1C00,0xE000, 0x1040,0x1C00,0xE000,0x0440,0x1C00,0xE000,0x0140,0x1C00, 0xE000,0x0000,0x1C00,0x3FFF,0xFFFF,0xF000, /* Plane 1 */ 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xF000,0x3FFF,0xFFFF, 0xF000,0x3800,0x0000,0x1000,0x3800,0x00C0,0x1000,0x3800, 0x00C0,0x1000,0x3800,0x00C0,0x1000,0x3800,0x00C0,0x1000, 0x3800,0x00C0,0x1000,0x3800,0x00C0,0x1000,0x3802,0x00C0, 0x1000,0x3800,0x80C0,0x1000,0x3800,0x20C0,0x1000,0x3800, 0x08C0,0x1000,0x3800,0x02C0,0x1000,0x3800,0x00C0,0x1000, 0x3800,0x0000,0x1000,0x0000,0x0000,0x0000, }; static struct Image prevI1 = { 0, 0, 38, 18, 2, prevI1Data, 0x0003, 0x0000, NULL }; static struct Image prevI2 = { 0, 0, 38, 18, 2, prevI2Data, 0x0003, 0x0000, NULL }; static UWORD chip nextI1Data[] = { /* Plane 0 */ 0x3FFF,0xFFFF,0xF000,0xC000,0x0000,0x1C00,0xC000,0x0000, 0x3C00,0xC007,0x0000,0x3C00,0xC006,0x4000,0x3C00,0xC006, 0x1000,0x3C00,0xC006,0x0400,0x3C00,0xC006,0x0100,0x3C00, 0xC006,0x0040,0x3C00,0xC006,0x0040,0x3C00,0xC006,0x0100, 0x3C00,0xC006,0x0400,0x3C00,0xC006,0x1000,0x3C00,0xC006, 0x4000,0x3C00,0xC007,0x0000,0x3C00,0xC000,0x0000,0x3C00, 0xDFFF,0xFFFF,0xFC00,0x3FFF,0xFFFF,0xF000, /* Plane 1 */ 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xF000,0x3000,0x0000, 0x3000,0x3004,0x0000,0x3000,0x3004,0x8000,0x3000,0x3004, 0x2000,0x3000,0x3004,0x0800,0x3000,0x3004,0x0200,0x3000, 0x3004,0x0080,0x3000,0x3004,0x00C0,0x3000,0x3004,0x0300, 0x3000,0x3004,0x0C00,0x3000,0x3004,0x3000,0x3000,0x3004, 0xC000,0x3000,0x3005,0x0000,0x3000,0x3000,0x0000,0x3000, 0x3FFF,0xFFFF,0xF000,0x0000,0x0000,0x0000, }; static UWORD chip nextI2Data[] = { /* Plane 0 */ 0x3FFF,0xFFFF,0xF000,0xFFFF,0xFFFF,0xFC00,0xE000,0x0000, 0x0C00,0xE000,0x0000,0x1C00,0xE003,0x8000,0x1C00,0xE003, 0x2000,0x1C00,0xE003,0x0800,0x1C00,0xE003,0x0200,0x1C00, 0xE003,0x0080,0x1C00,0xE003,0x0020,0x1C00,0xE003,0x0020, 0x1C00,0xE003,0x0080,0x1C00,0xE003,0x0200,0x1C00,0xE003, 0x0800,0x1C00,0xE003,0x2000,0x1C00,0xE003,0x8000,0x1C00, 0xE000,0x0000,0x1C00,0x3FFF,0xFFFF,0xF000, /* Plane 1 */ 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xF000,0x3FFF,0xFFFF, 0xF000,0x3800,0x0000,0x1000,0x3802,0x0000,0x1000,0x3802, 0x4000,0x1000,0x3802,0x1000,0x1000,0x3802,0x0400,0x1000, 0x3802,0x0100,0x1000,0x3802,0x0040,0x1000,0x3802,0x0060, 0x1000,0x3802,0x0180,0x1000,0x3802,0x0600,0x1000,0x3802, 0x1800,0x1000,0x3802,0x6000,0x1000,0x3802,0x8000,0x1000, 0x3800,0x0000,0x1000,0x0000,0x0000,0x0000, }; static struct Image nextI1 = { 0, 0, 38, 18, 2, nextI1Data, 0x0003, 0x0000, NULL }; static struct Image nextI2 = { 0, 0, 38, 18, 2, nextI2Data, 0x0003, 0x0000, NULL }; static UWORD chip killI1Data[] = { /* Plane 0 */ 0x3FFF,0xFFFF,0xF000,0xC000,0x0000,0x1C00,0xC000,0x0000, 0x3C00,0xC001,0xFE00,0x3C00,0xC007,0xFF80,0x3C00,0xC01C, 0x78E0,0x3C00,0xC03C,0x78F0,0x3C00,0xC03F,0xFFF0,0x3C00, 0xC007,0xFF80,0x3C00,0xC001,0xFE00,0x3C00,0xC000,0xFC00, 0x3C00,0xC3C0,0x780F,0x3C00,0xC1FE,0x03FE,0x3C00,0xC003, 0xFF00,0x3C00,0xC0EF,0x87CC,0x3C00,0xC0F8,0x007C,0x3C00, 0xDFFF,0xFFFF,0xFC00,0x3FFF,0xFFFF,0xF000, /* Plane 1 */ 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xF000,0x3000,0x0000, 0x3000,0x3000,0x0000,0x3000,0x3000,0x0000,0x3000,0x3000, 0x0000,0x3000,0x3000,0x0000,0x3000,0x3000,0x0000,0x3000, 0x3000,0x0000,0x3000,0x3000,0x0000,0x3000,0x3000,0x0000, 0x3000,0x3040,0x0008,0x3000,0x3002,0x0300,0x3000,0x3000, 0x0000,0x3000,0x3020,0x0000,0x3000,0x3008,0x0040,0x3000, 0x3FFF,0xFFFF,0xF000,0x0000,0x0000,0x0000, }; static UWORD chip killI2Data[] = { /* Plane 0 */ 0x3FFF,0xFFFF,0xF000,0xFFFF,0xFFFF,0xFC00,0xE000,0x0000, 0x0C00,0xE000,0x0000,0x1C00,0xE000,0xFF00,0x1C00,0xE003, 0xFFC0,0x1C00,0xE00E,0x3C70,0x1C00,0xE01E,0x3C78,0x1C00, 0xE01F,0xFFF8,0x1C00,0xE003,0xFFC0,0x1C00,0xE000,0xFF00, 0x1C00,0xE000,0x7E00,0x1C00,0xE1E0,0x3C07,0x9C00,0xE0FF, 0x01FF,0x1C00,0xE001,0xFF80,0x1C00,0xE077,0xC3E6,0x1C00, 0xE07C,0x003E,0x1C00,0x3FFF,0xFFFF,0xF000, /* Plane 1 */ 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xF000,0x3FFF,0xFFFF, 0xF000,0x3800,0x0000,0x1000,0x3800,0x0000,0x1000,0x3800, 0x0000,0x1000,0x3800,0x0000,0x1000,0x3800,0x0000,0x1000, 0x3800,0x0000,0x1000,0x3800,0x0000,0x1000,0x3800,0x0000, 0x1000,0x3800,0x0000,0x1000,0x3820,0x0004,0x1000,0x3801, 0x0180,0x1000,0x3800,0x0000,0x1000,0x3810,0x0000,0x1000, 0x3804,0x0020,0x1000,0x0000,0x0000,0x0000, }; static struct Image killI1 = { 0, 0, 38, 18, 2, killI1Data, 0x0003, 0x0000, NULL }; static struct Image killI2 = { 0, 0, 38, 18, 2, killI2Data, 0x0003, 0x0000, NULL }; /* * One bitplane images */ static UWORD chip ONEopenI1Data[] = { /* Plane 0 */ 0xFFFF,0xFFFF,0xFC00,0xC000,0x0000,0x0C00,0xC000,0x0FC0, 0x0C00,0xC000,0x3033,0x0C00,0xC000,0x000F,0x0C00,0xC1F0, 0x003F,0x0C00,0xC60F,0xFF00,0x0C00,0xC600,0x0300,0x0C00, 0xC600,0x0300,0x0C00,0xC603,0xFFFF,0xCC00,0xC60C,0x0003, 0x0C00,0xC630,0x000C,0x0C00,0xC6C0,0x0030,0x0C00,0xC700, 0x00C0,0x0C00,0xC7FF,0xFF00,0x0C00,0xC000,0x0000,0x0C00, 0xC000,0x0000,0x0C00,0xFFFF,0xFFFF,0xFC00, }; static struct Image ONEopenI1 = { 0, 0, 38, 18, 1, ONEopenI1Data, 0x0001, 0x0000, NULL }; static UWORD chip ONEsave1I1Data[] = { /* Plane 0 */ 0xFFFF,0xFFFF,0xFC00,0xC000,0x0000,0x0C00,0xC000,0x03F0, 0x0C00,0xC000,0xCC0C,0x0C00,0xC000,0xF000,0x0C00,0xC000, 0xFC00,0x0C00,0xC1F8,0x0000,0x0C00,0xC607,0xFFFF,0x0C00, 0xC600,0x0003,0x0C00,0xC7FF,0xFFFF,0x0C00,0xC600,0x0003, 0x0C00,0xC600,0x0003,0x0C00,0xC600,0x0003,0x0C00,0xC600, 0x0003,0x0C00,0xC600,0x0003,0x0C00,0xC7FF,0xFFFF,0x0C00, 0xC000,0x0000,0x0C00,0xFFFF,0xFFFF,0xFC00, }; static struct Image ONEsave1I1 = { 0, 0, 38, 18, 1, ONEsave1I1Data, 0x0001, 0x0000, NULL }; static UWORD chip ONEcutI1Data[] = { /* Plane 0 */ 0xFFFF,0xFFFF,0xFC00,0xC000,0x0000,0x0C00,0xC000,0x0000, 0x0C00,0xC000,0x0003,0xCC00,0xC7F8,0x003C,0x4C00,0xCC0E, 0x03C3,0x8C00,0xC603,0x0C1C,0x0C00,0xC3FF,0xD060,0x0C00, 0xC000,0xF780,0x0C00,0xC000,0xFD80,0x0C00,0xC1FF,0xD060, 0x0C00,0xC603,0x0C1C,0x0C00,0xCC0E,0x03C3,0x8C00,0xC7F8, 0x003C,0x4C00,0xC000,0x0003,0xCC00,0xC000,0x0000,0x0C00, 0xC000,0x0000,0x0C00,0xFFFF,0xFFFF,0xFC00, }; static struct Image ONEcutI1 = { 0, 0, 38, 18, 1, ONEcutI1Data, 0x0001, 0x0000, NULL }; static UWORD chip ONEcopyI1Data[] = { /* Plane 0 */ 0xFFFF,0xFFFF,0xFC00,0xC000,0x0000,0x0C00,0xC07F,0xFFC0, 0x0C00,0xC040,0x0040,0x0C00,0xC040,0xFFFE,0x0C00,0xC040, 0x8002,0x0C00,0xC383,0x0002,0x0C00,0xC3FB,0xC002,0x0C00, 0xC3FF,0xF002,0x0C00,0xC0FF,0xFC02,0x0C00,0xC04F,0xF002, 0x0C00,0xC043,0xC002,0x0C00,0xC043,0x0002,0x0C00,0xC07C, 0x8002,0x0C00,0xC000,0x8002,0x0C00,0xC000,0xFFFE,0x0C00, 0xC000,0x0000,0x0C00,0xFFFF,0xFFFF,0xFC00, }; static struct Image ONEcopyI1 = { 0, 0, 38, 18, 1, ONEcopyI1Data, 0x0001, 0x0000, NULL }; static UWORD chip ONEpasteI1Data[] = { /* Plane 0 */ 0xFFFF,0xFFFF,0xFC00,0xC000,0x0000,0x0C00,0xC000,0x7800, 0x0C00,0xC000,0x4800,0x0C00,0xC000,0x4800,0x0C00,0xC007, 0xFF80,0x0C00,0xC006,0x0180,0x0C00,0xC007,0xFF80,0x0C00, 0xC01E,0x01E0,0x0C00,0xC019,0xFE60,0x0C00,0xC018,0x7860, 0x0C00,0xC018,0x4860,0x0C00,0xC018,0x4860,0x0C00,0xC018, 0x7860,0x0C00,0xC01E,0x01E0,0x0C00,0xC007,0xFF80,0x0C00, 0xC000,0x0000,0x0C00,0xFFFF,0xFFFF,0xFC00, }; static struct Image ONEpasteI1 = { 0, 0, 38, 18, 1, ONEpasteI1Data, 0x0001, 0x0000, NULL }; static UWORD chip ONEprevI1Data[] = { /* Plane 0 */ 0xFFFF,0xFFFF,0xFC00,0xC000,0x0000,0x0C00,0xC000,0x0000, 0x0C00,0xC000,0x0380,0x0C00,0xC000,0x0F80,0x0C00,0xC000, 0x3F80,0x0C00,0xC000,0xFF80,0x0C00,0xC003,0xFF80,0x0C00, 0xC00F,0xFF80,0x0C00,0xC00F,0xFF80,0x0C00,0xC003,0xFF80, 0x0C00,0xC000,0xFF80,0x0C00,0xC000,0x3F80,0x0C00,0xC000, 0x0F80,0x0C00,0xC000,0x0380,0x0C00,0xC000,0x0000,0x0C00, 0xC000,0x0000,0x0C00,0xFFFF,0xFFFF,0xFC00, }; static struct Image ONEprevI1 = { 0, 0, 38, 18, 1, ONEprevI1Data, 0x0001, 0x0000, NULL }; static UWORD chip ONEnextI1Data[] = { /* Plane 0 */ 0xFFFF,0xFFFF,0xFC00,0xC000,0x0000,0x0C00,0xC000,0x0000, 0x0C00,0xC007,0x0000,0x0C00,0xC007,0xC000,0x0C00,0xC007, 0xF000,0x0C00,0xC007,0xFC00,0x0C00,0xC007,0xFF00,0x0C00, 0xC007,0xFFC0,0x0C00,0xC007,0xFFC0,0x0C00,0xC007,0xFF00, 0x0C00,0xC007,0xFC00,0x0C00,0xC007,0xF000,0x0C00,0xC007, 0xC000,0x0C00,0xC007,0x0000,0x0C00,0xC000,0x0000,0x0C00, 0xC000,0x0000,0x0C00,0xFFFF,0xFFFF,0xFC00, }; static struct Image ONEnextI1 = { 0, 0, 38, 18, 1, ONEnextI1Data, 0x0001, 0x0000, NULL }; static UWORD chip ONEkillI1Data[] = { /* Plane 0 */ 0xFFFF,0xFFFF,0xFC00,0xC000,0x0000,0x0C00,0xC000,0x0000, 0x0C00,0xC001,0xFE00,0x0C00,0xC007,0xFF80,0x0C00,0xC01C, 0x78E0,0x0C00,0xC03C,0x78F0,0x0C00,0xC03F,0xFFF0,0x0C00, 0xC007,0xFF80,0x0C00,0xC001,0xFE00,0x0C00,0xC000,0xFC00, 0x0C00,0xC3C0,0x780F,0x0C00,0xC1FE,0x03FE,0x0C00,0xC003, 0xFF00,0x0C00,0xC0EF,0x87CC,0x0C00,0xC0F8,0x007C,0x0C00, 0xC000,0x0000,0x0C00,0xFFFF,0xFFFF,0xFC00, }; static struct Image ONEkillI1 = { 0, 0, 38, 18, 1, ONEkillI1Data, 0x0001, 0x0000, NULL }; static struct Gadget *createbutton(struct Gadget *, struct NewGadget *, struct Image *, struct Image *, long, long); struct Gadget *createbuttonbar(struct Gadget **glist, void *vi, BOOL simple) { struct NewGadget ng; struct Gadget *gad; long leftedge; gad = CreateContext(glist); /* Initialize common values */ ng.ng_VisualInfo = vi; ng.ng_TextAttr = NULL; ng.ng_GadgetText = NULL; ng.ng_Width = 38; ng.ng_Height = 18; ng.ng_TopEdge = yoffset + 1; leftedge = xoffset + 2; if (simple) { gad = createbutton(gad,&ng,&ONEopenI1,NULL,leftedge,BBGD_OPEN); gad = createbutton(gad,&ng,&ONEsave1I1,NULL,leftedge+=39,BBGD_SAVE); gad = createbutton(gad,&ng,&ONEcutI1,NULL,leftedge+=39+4,BBGD_CUT); gad = createbutton(gad,&ng,&ONEcopyI1,NULL,leftedge+=39,BBGD_COPY); gad = createbutton(gad,&ng,&ONEpasteI1,NULL,leftedge+=39,BBGD_PASTE); gad = createbutton(gad,&ng,&ONEprevI1,NULL,leftedge+=39+4,BBGD_PREV); gad = createbutton(gad,&ng,&ONEnextI1,NULL,leftedge+=39,BBGD_NEXT); gad = createbutton(gad,&ng,&ONEkillI1,NULL,leftedge+=39+4,BBGD_KILL); } else { gad = createbutton(gad,&ng,&openI1,&openI2,leftedge,BBGD_OPEN); gad = createbutton(gad,&ng,&save1I1,&save1I2,leftedge+=39,BBGD_SAVE); gad = createbutton(gad,&ng,&cutI1,&cutI2,leftedge+=39+4,BBGD_CUT); gad = createbutton(gad,&ng,©I1,©I2,leftedge+=39,BBGD_COPY); gad = createbutton(gad,&ng,&pasteI1,&pasteI2,leftedge+=39,BBGD_PASTE); gad = createbutton(gad,&ng,&prevI1,&prevI2,leftedge+=39+4,BBGD_PREV); gad = createbutton(gad,&ng,&nextI1,&nextI2,leftedge+=39,BBGD_NEXT); gad = createbutton(gad,&ng,&killI1,&killI2,leftedge+=39+4,BBGD_KILL); } return gad; } static struct Gadget *createbutton(struct Gadget *gad, struct NewGadget *ng, struct Image *image1, struct Image *image2, long left, long id) { ng->ng_LeftEdge = left; ng->ng_GadgetID = id; gad = CreateGadget(GENERIC_KIND, gad, ng, TAG_END); gad->GadgetType |= GTYP_BOOLGADGET; gad->Activation = GACT_RELVERIFY; gad->MutualExclude = 0; gad->SpecialInfo = NULL; gad->GadgetRender = image1; gad->SelectRender = image2; gad->Flags = GFLG_GADGIMAGE | (image2 ? GFLG_GADGHIMAGE : GFLG_GADGHCOMP); return gad; }