From c2bcd5e07c6fc86654efacde737bb597cec6fafa Mon Sep 17 00:00:00 2001 From: mazze Date: Sat, 5 May 2012 15:52:32 +0000 Subject: [PATCH] Some unused things removed. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@44750 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/tools/commodities/startmenu/logodata.h | 182 ------- workbench/tools/commodities/startmenu/main.c | 567 --------------------- workbench/tools/commodities/startmenu/main.h | 10 - .../tools/commodities/startmenu/mmakefile.src | 19 - workbench/tools/commodities/startmenu/settings.h | 16 - workbench/tools/commodities/startmenu/support.c | 36 -- workbench/tools/commodities/startmenu/support.h | 6 - workbench/utilities/Presenter/main.c | 27 - workbench/utilities/Presenter/mmakefile.src | 15 - workbench/utilities/Presenter/presentation.c | 210 -------- workbench/utilities/Presenter/presentation.h | 17 - workbench/utilities/Presenter/presenter.c | 91 ---- workbench/utilities/Presenter/presenter.h | 17 - 13 files changed, 1213 deletions(-) delete mode 100644 workbench/tools/commodities/startmenu/logodata.h delete mode 100644 workbench/tools/commodities/startmenu/main.c delete mode 100644 workbench/tools/commodities/startmenu/main.h delete mode 100644 workbench/tools/commodities/startmenu/mmakefile.src delete mode 100644 workbench/tools/commodities/startmenu/settings.h delete mode 100644 workbench/tools/commodities/startmenu/support.c delete mode 100644 workbench/tools/commodities/startmenu/support.h delete mode 100644 workbench/utilities/Presenter/main.c delete mode 100644 workbench/utilities/Presenter/mmakefile.src delete mode 100644 workbench/utilities/Presenter/presentation.c delete mode 100644 workbench/utilities/Presenter/presentation.h delete mode 100644 workbench/utilities/Presenter/presenter.c delete mode 100644 workbench/utilities/Presenter/presenter.h diff --git a/workbench/tools/commodities/startmenu/logodata.h b/workbench/tools/commodities/startmenu/logodata.h deleted file mode 100644 index 9f511332a9..0000000000 --- a/workbench/tools/commodities/startmenu/logodata.h +++ /dev/null @@ -1,182 +0,0 @@ -/* - Copyright © 1995-2001, The AROS Development Team. All rights reserved. - $Id$ -*/ - -#define LOGO1_WIDTH 45 -#define LOGO1_HEIGHT 16 -#define LOGO1_MODULO 48 - -#define LOGO1_COLORS 256 - -ULONG logo1_pal[] = -{ - 0x00d6d6d4,0x00161614,0x003e3e3c,0x00666264,0x002a020c,0x007a7674, - 0x008a8684,0x0046020c,0x00b2122c,0x009e9e9c,0x00660214,0x00b2aeac, - 0x00aa5264,0x0086021c,0x008a162c,0x00bababc,0x0092021c,0x006e6e6c, - 0x00a64254,0x00bebebc,0x005a1224,0x009a021c,0x00ca7684,0x00c2c2c4, - 0x007a6264,0x009e0224,0x00965e64,0x00cacacc,0x00aa364c,0x00a2626c, - 0x00422e34,0x00ae0224,0x00323234,0x0022020c,0x00565654,0x00b66274, - 0x00b20224,0x0056363c,0x00cececc,0x00724a54,0x00aa2e44,0x000e0e0c, - 0x00322e2c,0x00ba0224,0x008e8e8c,0x00b65a6c,0x001a0204,0x00a67e84, - 0x00caa6ac,0x00a63244,0x004e4e4c,0x009e9a9c,0x00ba727c,0x002a2624, - 0x00a68284,0x00d2d2d4,0x00ba0e2c,0x00ae364c,0x00a65264,0x00222224, - 0x004e0214,0x007a3a4c,0x00ae223c,0x0042363c,0x00be0224,0x00120204, - 0x00ceb6bc,0x00c26e7c,0x0042020c,0x000a0a0c,0x00b29ea4,0x007a021c, - 0x004a4a4c,0x00060204,0x00560214,0x00be6274,0x00b64254,0x00c2324c, - 0x00aa8e94,0x00c20a2c,0x00c20224,0x00a6a2a4,0x00860e24,0x005a0e1c, - 0x00b60e2c,0x000e0204,0x0036020c,0x00c22244,0x00261a1c,0x00620214, - 0x001e0e14,0x00c21634,0x00c65e74,0x00d2c6c4,0x00827e7c,0x00b61a34, - 0x005e5e5c,0x00a65e6c,0x004e262c,0x00464244,0x00b6b2b4,0x00320a14, - 0x006e0214,0x00aaa6a4,0x00c60224,0x00c67284,0x00c66274,0x00c23a54, - 0x002e020c,0x00c2465c,0x00aa9a9c,0x0036222c,0x00b68e94,0x00cac6c4, - 0x001e1a1c,0x00a63a4c,0x00ba4a64,0x00522e34,0x00060604,0x008a021c, - 0x00524e54,0x000a0204,0x005e0214,0x00120e14,0x00aeaaac,0x00b6b6b4, - 0x00ca7a8c,0x00a60224,0x005e5a5c,0x00ae828c,0x00463a3c,0x00524a4c, - 0x006a6664,0x00565254,0x00c2062c,0x001a020c,0x0022060c,0x00c6c6c4, - 0x007a7a7c,0x00b61634,0x00363634,0x00262624,0x0016060c,0x004a4644, - 0x00ca667c,0x001a161c,0x00c2bebc,0x00bebabc,0x00a2a2a4,0x00a26674, - 0x001a060c,0x0026020c,0x00120e0c,0x000e0a0c,0x0032020c,0x00cac6cc, - 0x00d6d2d4,0x007a767c,0x00b61234,0x00aa3a54,0x003e3a3c,0x00cecacc, - 0x00d2cecc,0x00bab6b4,0x00322e34,0x006a666c,0x006a0214,0x0096021c, - 0x00363234,0x005a5654,0x00b60224,0x00262224,0x00c66e7c,0x00ca6274, - 0x008e021c,0x00b2aaac,0x00a29e9c,0x005e1224,0x00a20224,0x00ae2e44, - 0x00be0e2c,0x004e4a4c,0x00625e5c,0x00720214,0x00564e54,0x001e020c, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff -}; - -UBYTE logo1_data[] = -{ - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x09,0x8a,0x2c,0x13,0x00,0x00,0x00,0x00,0x00,0x17,0xb6,0xa8, - 0xa8,0x22,0x7d,0x00,0x00,0x00,0x0f,0xb6,0x8c,0x78,0xb0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x9d,0x45,0xa3,0x00,0x00,0xab,0x99,0x99,0x99,0xa5,0x37,0x00,0x00,0x17,0x72,0x7b,0xb5, - 0xa9,0xab,0x91,0x0f,0x00,0x94,0x29,0x35,0xa9,0x48,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x00,0x00,0x13,0x99,0x49,0x06,0x00,0x00,0x20,0x78,0x13,0x5e,0x7b,0xb6,0x00,0x00,0x63,0x7b,0x67,0x00, - 0x00,0x1b,0x91,0x11,0x00,0x20,0xa4,0x9b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x16,0x90,0x7e,0x63,0x5a,0x58,0xb8,0x9c,0x9c,0x63,0x8f,0x00,0x00,0x5e,0x7b,0x17,0x7d,0x76,0x9d,0x00,0x00, - 0x00,0x00,0xa0,0x63,0x9c,0xa0,0x91,0x03,0x9d,0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x6d,0x50,0xa7,0x49,0x77,0x3c,0x56,0xb4,0x5b,0x65,0x14,0x6b,0x4c,0x1e,0x96,0x74,0x3d,0x8e,0x2d,0xac,0x16, - 0x7e,0x7e,0x6f,0x62,0x16,0x23,0x53,0x44,0x6c,0x79,0x3f,0x69,0x69,0x90,0x90,0x90,0xad,0x90,0x34,0x70,0xaf,0x00,0x00,0x00, - 0x00,0x00,0x00,0x6b,0x2b,0x9a,0x79,0x87,0x76,0x41,0xaa,0x50,0x21,0xb9,0x04,0x55,0x87,0xae,0x50,0xa6,0x21,0x50,0x68,0x68, - 0x50,0x40,0x55,0x47,0x50,0x50,0x50,0x50,0x50,0xa7,0x79,0x19,0x86,0x68,0x68,0x38,0x3e,0x9f,0x0c,0x81,0x93,0x00,0x00,0x00, - 0x00,0x00,0x00,0x57,0x0d,0x49,0x9a,0x0a,0x77,0x79,0x10,0x68,0x97,0x2e,0x55,0x49,0x59,0x50,0x68,0x77,0x55,0x1f,0x50,0x50, - 0x68,0x0a,0x41,0x1f,0x1f,0x19,0x68,0x68,0x68,0x7f,0x49,0x52,0x54,0x9e,0x8b,0x5f,0x5f,0x28,0x1d,0x46,0xa1,0x00,0x00,0x00, - 0x00,0x00,0x9c,0x86,0x3c,0x04,0x40,0x50,0x50,0x6c,0x4a,0x68,0x56,0x7a,0x24,0x59,0x55,0x56,0xaa,0x40,0x04,0x97,0x0d,0x15, - 0x59,0x79,0x75,0x3a,0x27,0x76,0x25,0x18,0x83,0x7b,0xab,0x64,0x89,0x9b,0x9b,0x9b,0x9b,0x9b,0xa1,0x89,0x37,0x00,0x00,0x00, - 0x00,0x00,0x30,0x50,0x55,0xb7,0x68,0x68,0x68,0x47,0x21,0x40,0x07,0x3c,0x68,0x68,0xb2,0x88,0x14,0x9f,0x1a,0x02,0x45,0x49, - 0x29,0x85,0x89,0x00,0xa2,0x11,0x3b,0x7b,0x72,0xb8,0x7d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x69,0x68,0xa7,0x2b,0x50,0x50,0x50,0x50,0x1f,0x68,0x19,0x0e,0x1c,0x61,0x4e,0x7c,0x0f,0x37,0x00,0x9c,0x13,0x67, - 0x0f,0x00,0x00,0x00,0x00,0x00,0xa2,0x89,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x4d,0x50,0x68,0x50,0x68,0x68,0x68,0x54,0x28,0x1d,0x6e,0x13,0x37,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x42,0x50,0x50,0x68,0x50,0x9e,0x12,0x2f,0x7d,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x5c,0x68,0x54,0x1c,0x2f,0x7d,0x37,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x9b,0xb3,0x1d,0x7c,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0xa2,0x17,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 -}; - -#define LOGO2_WIDTH 44 -#define LOGO2_HEIGHT 16 -#define LOGO2_MODULO 48 - -#define LOGO2_COLORS 256 - -ULONG logo2_pal[] = -{ - 0x00fefefc,0x00565654,0x00ce7e0c,0x00feb604,0x00b20204,0x00620204, - 0x00f6ce0c,0x003e3e3c,0x00fed204,0x007a7a7c,0x00e6d214,0x002a2a2c, - 0x00b28614,0x00f6e20c,0x004a0204,0x00d65e0c,0x005e4e4c,0x008a8a54, - 0x00aeaeac,0x00e6e6e4,0x0026221c,0x009a9234,0x00725adc,0x00d2d2d4, - 0x00eaeaec,0x00a25a1c,0x00f2520c,0x00dededc,0x00622624,0x006a6284, - 0x00320204,0x00eeeeec,0x00c2c2c4,0x001a1a1c,0x009e923c,0x00766e94, - 0x00960204,0x008e7ecc,0x00969694,0x00e60204,0x007a5e4c,0x00f2f2f4, - 0x008e8e8c,0x00766e44,0x00121214,0x00fa3604,0x00424244,0x00f6f6f4, - 0x006a1614,0x009a9a9c,0x007e7e7c,0x009a5a44,0x00bababc,0x00765edc, - 0x00964a24,0x00fe8604,0x009a92bc,0x00be1e0c,0x00422224,0x004e4e4c, - 0x00a21a1c,0x00363634,0x00a2a2a4,0x00626264,0x000a0a0c,0x008e86b4, - 0x00860a0c,0x00967674,0x00e21e0c,0x008672dc,0x008a6e44,0x00763a1c, - 0x00fa8204,0x00da9e14,0x00828284,0x00fe6a04,0x00bab6cc,0x007e0204, - 0x00fafafc,0x00ea960c,0x00cacacc,0x006e6e6c,0x007a7674,0x00160204, - 0x00422a2c,0x00762e1c,0x007e4a44,0x00ca0204,0x006e564c,0x0076728c, - 0x00461a1c,0x00060604,0x00020204,0x00fa0604,0x00662224,0x00cac6dc, - 0x009e8ee4,0x00dadadc,0x00864e4c,0x004a4a4c,0x002e1214,0x00fe9e04, - 0x00322224,0x009686a4,0x00ba9614,0x002e2e2c,0x00521e1c,0x00c2bed4, - 0x008676dc,0x008e5e5c,0x006e4e4c,0x00aaaa9c,0x00b6b6b4,0x00863e3c, - 0x00a6a6a4,0x003a2a2c,0x005a5a5c,0x00cacadc,0x00727274,0x00e60a04, - 0x005a4e4c,0x008a161c,0x007a1614,0x008a7274,0x00868684,0x00666664, - 0x00dedeec,0x009a86e4,0x0052524c,0x00aeaaa4,0x00323234,0x005a2224, - 0x003a3a3c,0x00cececc,0x00c6c2d4,0x00262624,0x00a27264,0x00ca1a0c, - 0x00822624,0x00f20a04,0x00d6d6d4,0x00a2621c,0x00360a0c,0x00161614, - 0x00464644,0x009e7a6c,0x00aaa6b4,0x0052464c,0x00b2b2b4,0x00524e4c, - 0x005e5a54,0x003e3634,0x000e0e0c,0x001e1e1c,0x00c2babc,0x005e5654, - 0x00a29a9c,0x00c6c6c4,0x008a76e4,0x003a0604,0x00920604,0x00bebebc, - 0x008a7ae4,0x008a8a8c,0x00e2e2e4,0x00ca0604,0x00767674,0x006a6a6c, - 0x00aaaaac,0x00222224,0x003e3e44,0x006e5254,0x005e5e5c,0x00525254, - 0x002e2e34,0x00e6d614,0x00929294,0x00a61e14,0x007a768c,0x004e2224, - 0x00562624,0x00565254,0x004e4a4c,0x008e8a5c,0x009e92c4,0x006a2224, - 0x00564e4c,0x008a76dc,0x00cecadc,0x00625e5c,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, - 0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff -}; - -UBYTE logo2_data[] = -{ - 0x00,0x00,0x00,0x00,0x00,0x00,0x17,0x85,0xa1,0x18,0x1b,0x00,0x00,0x00,0x00,0x00,0x85,0xa8,0xa8,0xa8,0xa8,0xa8,0x50,0x00, - 0x00,0x94,0xa8,0xa8,0xa8,0x94,0x8c,0x00,0x00,0x00,0x00,0x18,0x12,0xa8,0xa8,0xa8,0xa8,0x29,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x81,0x15,0x2b,0x0b,0x90,0x8c,0x47,0x33,0xa1,0x00,0x00,0x00,0x76,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x7c, - 0x00,0x99,0x5c,0x5c,0x5c,0x5c,0x5c,0xad,0x29,0x00,0xa1,0x98,0x5c,0x5c,0x5c,0x5c,0x5c,0x94,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x29,0x11,0x0a,0x06,0x9b,0x5c,0x09,0x13,0x88,0x2d,0x89,0x43,0x4e,0x00,0x17,0xb0,0xa3,0xa3,0xa3,0x4a,0x2c,0x5c, - 0x34,0x3e,0x09,0x09,0x09,0x09,0x63,0x5c,0x7d,0x2f,0x1b,0x70,0xa8,0x6f,0xa8,0x6f,0xa8,0x50,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0xb7,0x0d,0x08,0x0c,0x90,0x5b,0x38,0x45,0x67,0x44,0x5d,0xa5,0x7b,0x7f,0xbb,0x45,0x45,0x45,0x45,0x45,0xb2,0x5c, - 0x3f,0xbb,0x45,0x45,0x45,0x45,0x60,0x84,0x5b,0xb8,0x9e,0x45,0x45,0x45,0x45,0x45,0x9e,0x7e,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x6f,0x0a,0x08,0x03,0x46,0x2c,0x84,0x92,0x16,0x25,0x3c,0x27,0x57,0x42,0x41,0x16,0x16,0x16,0x16,0x16,0x16,0x23,0x5c, - 0xad,0x35,0x16,0x16,0x16,0x16,0x16,0x59,0x5c,0x1d,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x4c,0x4e,0x00,0x00,0x00,0x00,0x00, - 0x00,0x22,0x08,0x03,0x4f,0x95,0x5c,0xba,0x56,0xbc,0x6b,0x6d,0x57,0x04,0x24,0xab,0x5f,0x6b,0x6b,0x34,0x6b,0x4c,0x07,0x5c, - 0xa6,0x5f,0x6b,0x6b,0x34,0x6b,0x6b,0x34,0x5c,0xad,0x5f,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x85,0x00,0x00,0x00,0x00,0x00,0x00, - 0x13,0x68,0x03,0x65,0x19,0x07,0x98,0x62,0x39,0x01,0x5b,0x96,0x24,0x24,0x4d,0x6a,0x01,0x5c,0x5b,0x5b,0x5b,0x5c,0x5c,0x84, - 0x20,0x99,0x63,0x29,0x00,0x00,0x00,0x00,0x5b,0x90,0x51,0x5b,0x5c,0x5c,0x5b,0xaa,0x17,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x50,0x49,0x65,0x48,0x28,0x5b,0x2e,0xb1,0x8b,0xab,0x5c,0x82,0x5e,0x4d,0x05,0x8e,0x01,0x5c,0xa9,0xae,0x5c,0x2c,0xa6,0x9d, - 0x1f,0x99,0x82,0x1b,0x00,0x00,0x00,0x2f,0x5c,0x3b,0xa4,0x31,0x63,0x07,0x8f,0x5c,0xa9,0x13,0x00,0x00,0x00,0x00,0x00,0x00, - 0x17,0x02,0x37,0x0f,0x3b,0x5c,0xba,0x27,0x27,0x8a,0x82,0x5c,0x10,0x05,0x0e,0x64,0x95,0x5c,0x32,0x1b,0x2e,0x5b,0x12,0x2f, - 0x00,0x07,0x8f,0x61,0x00,0x00,0x00,0x17,0x5c,0x3f,0x13,0x00,0x2f,0x18,0x1b,0x99,0x5c,0x12,0x00,0x00,0x00,0x00,0x00,0x00, - 0x4e,0x19,0x4b,0x36,0x69,0x2c,0x71,0x27,0x57,0x24,0x3b,0x5c,0x3b,0x1e,0x1e,0x97,0x01,0x5c,0x09,0x29,0x9d,0x5c,0x90,0x29, - 0x00,0x09,0x5c,0x72,0x00,0x00,0x00,0x09,0x5c,0x26,0x29,0x00,0x00,0x00,0x00,0xac,0x5c,0x72,0x4e,0x00,0x00,0x00,0x00,0x00, - 0x00,0x91,0x1a,0x58,0x5c,0x07,0x1c,0x79,0x7a,0x30,0xb5,0x5c,0x87,0x73,0x53,0xa6,0x01,0x5c,0x32,0x29,0x00,0x3b,0x5c,0xa8, - 0x00,0x8c,0x5c,0x82,0x1f,0x00,0x8c,0x98,0x87,0x9d,0x4e,0x00,0x00,0x00,0xa4,0x8f,0x5c,0x12,0x4e,0x00,0x00,0x00,0x00,0x00, - 0x00,0x1b,0x55,0x63,0x5c,0x5b,0x69,0x69,0x69,0x69,0x99,0x5c,0x5c,0x3b,0x87,0xa1,0xa7,0x5c,0x32,0x2f,0x00,0x17,0x5c,0x82, - 0x18,0x00,0xa6,0x5c,0x98,0x99,0x5b,0x40,0xb0,0xa4,0x3f,0x07,0xaa,0x07,0x98,0x5c,0x3d,0x9d,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x50,0x63,0x14,0xa9,0x99,0x99,0x99,0xa9,0x99,0x99,0x99,0x3f,0x70,0x13,0x7c,0xa9,0x7c,0x2f,0x00,0x00,0xa6,0x82, - 0xa8,0x00,0x00,0x2a,0x3d,0xae,0x2e,0x31,0x61,0x00,0x51,0x07,0x84,0x84,0x07,0x7d,0xa1,0x18,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x61,0x93,0x1c,0xb9,0x83,0xb3,0x3a,0x66,0x14,0xac,0x50,0x1f,0x00,0x00,0x18,0x13,0x4e,0x00,0x00,0x00,0x18, - 0x18,0x4e,0x00,0x00,0x29,0x13,0x13,0x1f,0x00,0x00,0x00,0x18,0x18,0x18,0x18,0x1f,0x2f,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x29,0x9c,0x6e,0xb4,0x5a,0x54,0x78,0xb0,0x85,0x1f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x00,0x00,0x2f,0x18,0x1b,0x1b,0x13,0x29,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 -}; diff --git a/workbench/tools/commodities/startmenu/main.c b/workbench/tools/commodities/startmenu/main.c deleted file mode 100644 index 7d707804c1..0000000000 --- a/workbench/tools/commodities/startmenu/main.c +++ /dev/null @@ -1,567 +0,0 @@ -/* - Copyright © 1995-2001, The AROS Development Team. All rights reserved. - $Id$ -*/ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -#include -#include - -#define CATCOMP_NUMBERS -#define CATCOMP_STRINGS -#define CATCOMP_ARRAY - -#include "../strings.h" - -#include "main.h" -#include "support.h" -#include "settings.h" -#include "logodata.h" - -/************************************************************************************/ - -UBYTE version[] = "$VER: StartMenu 0.2 (13.10.2001)"; - -#define ARG_TEMPLATE "CX_PRIORITY=PRI/N/K,HIDE/S" - -#define ARG_PRI 0 -#define ARG_HIDE 1 -#define NUM_ARGS 2 - -struct IntuitionBase *IntuitionBase = NULL; -struct GfxBase *GfxBase = NULL; -struct Library *CyberGfxBase = NULL; -struct Library *LayersBase = NULL; -struct Library *CxBase = NULL; -struct LocaleBase *LocaleBase = NULL; - -/* Libraries to open */ -struct LibTable -{ - APTR lT_Library; - STRPTR lT_Name; - ULONG lT_Version; -} -libTable[] = -{ - { &IntuitionBase, "intuition.library", 39L }, - { &GfxBase, "graphics.library", 39L }, - { &CyberGfxBase, "cybergraphics.library", 39L }, - { &LayersBase, "layers.library", 39L }, - { &CxBase, "commodities.library", 39L }, - { NULL } -}; - -static struct NewBroker nb = -{ - NB_VERSION, - NULL, - NULL, - NULL, - NBU_NOTIFY | NBU_UNIQUE, - 0, - 0, - NULL, - 0 -}; - -static struct Catalog *catalogPtr; - -static struct MsgPort *cxport; - -static struct RDArgs *myargs; -static struct Screen *scr; -static struct Window *panelwin; -static struct DrawInfo *dri; -static struct TextFont *scrfont; -static struct RastPort *panelrp; - -static CxObj *cxbroker, *cxcust; -static UBYTE *logodata; -static ULONG *logopal; -static UWORD *scrpens; -static ULONG cxmask, panelmask; -static WORD scrfontw, scrfonth, logowidth, logoheight, logocols, logomod; -static WORD logobutwidth, logobutheight, panelbutheight, panelwidth, panelheight, visiblepanelheight; -static WORD panelstuffy, logobutposx, logobutposy, logoposx, logoposy; -static WORD scrwidth, scrheight, scrdepth, shinepen, shadowpen, bgpen; -static WORD textpen, hitextpen; -static BOOL quitme, disabled, is_truecolor, panellogodown; - -static LONG args[NUM_ARGS]; -static char s[256]; - -static struct Task *maintask; -static ULONG actionbit; -static ULONG actionmask; - -static BOOL tohide; -static BOOL hidden; -#define MINIMUM_VISIBLE 3 - -STRPTR getCatalog(struct Catalog *catalogPtr, ULONG id) -{ - STRPTR string; - - if(catalogPtr) - string = GetCatalogStr(catalogPtr, id, CatCompArray[id].cca_Str); - else - string = CatCompArray[id].cca_Str; - - return(string); -} - -static void HideAction(CxMsg *msg,CxObj *obj) -{ - struct InputEvent *ie = (struct InputEvent *)CxMsgData(msg); - - if (ie->ie_Class == IECLASS_RAWMOUSE) - { - tohide = ie->ie_position.ie_xy.ie_y < (scrheight - visiblepanelheight); - if (tohide != hidden) - { - hidden = tohide; - Signal(maintask, actionmask); - } - } -} - -static void HandleHide(void) -{ - if (tohide) - while (--visiblepanelheight > MINIMUM_VISIBLE) - MoveWindow(panelwin, 0, 1); - else - while (++visiblepanelheight < panelheight) - MoveWindow(panelwin, 0, -1); -} - -/************************************************************************************/ - -static void Cleanup(char *msg) -{ - struct Message *cxmsg; - struct LibTable *tmpLibTable = libTable; - - if(msg) - { - printf("%s", msg); - } - - if(IntuitionBase) - { - if(panelwin) - CloseWindow(panelwin); - - if(dri) - FreeScreenDrawInfo(scr, dri); - - if(scr) - UnlockPubScreen(0, scr); - } - - if(CxBase) - if (cxbroker) - DeleteCxObjAll(cxbroker); - - if(cxport) - { - while((cxmsg = GetMsg(cxport))) - { - ReplyMsg(cxmsg); - } - DeleteMsgPort(cxport); - } - - if(myargs) - FreeArgs(myargs); - - if(LocaleBase) - { - CloseCatalog(catalogPtr); - CloseLibrary((struct Library *)LocaleBase); /* Passing NULL is valid */ - kprintf("Closed locale.library!\n"); - } - - while(tmpLibTable->lT_Name) /* Check for name rather than pointer */ - { - if((*(struct Library **)tmpLibTable->lT_Library)) - { - CloseLibrary((*(struct Library **)tmpLibTable->lT_Library)); - kprintf("Closed %s!\n", tmpLibTable->lT_Name); - } - - tmpLibTable++; - } - - if(actionbit) - FreeSignal(actionbit); - - exit(0); -} - -/************************************************************************************/ - -static void DosError(void) -{ - Fault(IoErr(),0,s,255); - Cleanup(s); -} - -/************************************************************************************/ - -static void Init(void) -{ -#if USE_LOGO2 - logopal = logo2_pal; - logodata = logo2_data; - - logowidth = LOGO2_WIDTH; - logoheight = LOGO2_HEIGHT; - logocols = LOGO2_COLORS; - logomod = LOGO2_MODULO; -#else - logopal = logo1_pal; - logodata = logo1_data; - - logowidth = LOGO1_WIDTH; - logoheight = LOGO1_HEIGHT; - logocols = LOGO1_COLORS; - logomod = LOGO1_MODULO; -#endif -} - -/************************************************************************************/ - -static void OpenLibs(void) -{ - struct LibTable *tmpLibTable = libTable; - UBYTE tmpString[128]; /* petah: What if library name plus error message exceeds 128 bytes? */ - - if((LocaleBase = (struct LocaleBase *)OpenLibrary("locale.library", 40))) - { - catalogPtr = OpenCatalog(NULL, "Sys/Commodities.catalog", OC_BuiltInLanguage, "english", TAG_DONE); - } - else - kprintf("Warning: Can't open locale.library V40!\n"); - - while(tmpLibTable->lT_Library) - { - if(!((*(struct Library **)tmpLibTable->lT_Library = OpenLibrary(tmpLibTable->lT_Name, tmpLibTable->lT_Version)))) - { - sprintf(tmpString, getCatalog(catalogPtr, MSG_CANT_OPEN_LIB), tmpLibTable->lT_Name, tmpLibTable->lT_Version); - Cleanup(tmpString); - } - else - kprintf("Library %s opened!\n", tmpLibTable->lT_Name); - - tmpLibTable++; - } -} - -/************************************************************************************/ - -static void GetArguments(void) -{ - if (!(myargs = ReadArgs(ARG_TEMPLATE, args, 0))) - { - DosError(); - } - - if (args[ARG_PRI]) nb.nb_Pri = *(LONG *)args[ARG_PRI]; -} - -/************************************************************************************/ - -static void InitCX(void) -{ - if (!(cxport = CreateMsgPort())) - { - Cleanup(getCatalog(catalogPtr, MSG_CANT_CREATE_MSGPORT)); - } - - nb.nb_Port = cxport; - - cxmask = 1L << cxport->mp_SigBit; - - if (!(cxbroker = CxBroker(&nb, 0))) - { - Cleanup(getCatalog(catalogPtr, MSG_CANT_CREATE_BROKER)); - } - - if (args[ARG_HIDE]) - { - if (!(cxcust = CxCustom(HideAction, 0))) - { - Cleanup(getCatalog(catalogPtr, MSG_CANT_CREATE_CUSTOM)); - } - - AttachCxObj(cxbroker, cxcust); - } - ActivateCxObj(cxbroker, 1); - -} - -/***********************************************************************************/ - -static void GetVisual(void) -{ - if (!(scr = LockPubScreen(NULL))) - { - Cleanup(getCatalog(catalogPtr, MSG_CANT_LOCK_SCR)); - } - - if (!(dri = GetScreenDrawInfo(scr))) - { - Cleanup("Can't get screen drawinfo! (This shouldn't happen?!)\n"); - } - - scrwidth = scr->Width; - scrheight = scr->Height; - - scrdepth = GetBitMapAttr(scr->RastPort.BitMap, BMA_DEPTH); - if (scrdepth > 8) is_truecolor = TRUE; - - scrfont = dri->dri_Font; - scrfontw = scrfont->tf_XSize; - scrfonth = scrfont->tf_YSize; - - scrpens = dri->dri_Pens; - shinepen = scrpens[SHINEPEN]; - shadowpen = scrpens[SHADOWPEN]; - bgpen = scrpens[BACKGROUNDPEN]; - textpen = scrpens[TEXTPEN]; - hitextpen = scrpens[HIGHLIGHTTEXTPEN]; - -} - -/***********************************************************************************/ - -static void RenderPanelLogo(BOOL recessed) -{ - RenderFrame(panelrp, - dri, - logobutposx, - logobutposy, - logobutposx + logobutwidth - 1, - logobutposy + logobutheight - 1, - recessed); - - if (is_truecolor) - { - FillPixelArray(panelrp, - logobutposx + 1, - logobutposy + 1, - logobutwidth - 2, - logobutheight - 2, - logopal[0]); - - WriteLUTPixelArray(logodata, - 0, - 0, - logomod, - panelrp, - logopal, - logoposx + (recessed ? 1 : 0), - logoposy + (recessed ? 1 : 0), - logowidth, - logoheight, - CTABFMT_XRGB8); - } - -} - -/***********************************************************************************/ - -static void RenderPanelWin(void) -{ - if (!panelwin) return; - - RenderFrame(panelrp, dri, 0, 0, panelwidth - 1, panelheight -1, FALSE); - - SetAPen(panelrp, bgpen); - RectFill(panelrp, 1, 1, panelwidth - 2, panelheight - 2); - - RenderPanelLogo(panellogodown); -} - -/***********************************************************************************/ - -static void MakePanelWin(void) -{ - WORD h1, h2; - - h1 = scrfonth + BUTTON_EXTRA_HEIGHT; - h2 = logoheight + LOGO_EXTRA_HEIGHT; - - panelwidth = scrwidth; - - panelbutheight = (h1 > h2) ? h1 : h2; - panelheight = panelbutheight + PANEL_EXTRA_HEIGHT; - panelstuffy = (panelheight - panelbutheight) / 2; - - logobutwidth = logowidth + LOGO_EXTRA_WIDTH; - logobutheight = panelbutheight; - - logobutposx = LOGO_POS_X; - logobutposy = panelstuffy; - - logoposx = logobutposx + LOGO_EXTRA_WIDTH / 2; - logoposy = logobutposy + (logobutheight - logoheight) / 2; - - panelwin = OpenWindowTags(0, WA_PubScreen, scr, - WA_Left, 0, - WA_Top, scrheight - panelheight, - WA_Width, scrwidth, - WA_Height, panelheight, - WA_Borderless, TRUE, - WA_RMBTrap, TRUE, - WA_SimpleRefresh, FALSE, - WA_BackFill, LAYERS_NOBACKFILL, - WA_IDCMP, IDCMP_MOUSEBUTTONS | IDCMP_REFRESHWINDOW, - TAG_DONE); - - if(!panelwin) - Cleanup(getCatalog(catalogPtr, MSG_CANT_CREATE_WIN)); - - visiblepanelheight = panelheight; - - if(args[ARG_HIDE] && (panelwin->WLayer->LayerInfo->Flags & LIFLG_SUPPORTS_OFFSCREEN_LAYERS)) - { - maintask = FindTask(0); - actionbit = AllocSignal(-1); - actionmask = 1 << actionbit; - - tohide = TRUE; - hidden = TRUE; - HandleHide(); - } - else - args[ARG_HIDE] = actionbit = actionmask = 0; - - panelmask = 1L << panelwin->UserPort->mp_SigBit; - panelrp = panelwin->RPort; - - SetFont(panelrp, scrfont); - - RenderPanelWin(); -} - -/************************************************************************************/ - -static void HandleCx(void) -{ - CxMsg *msg; - - while((msg = (CxMsg *)GetMsg(cxport))) - { - switch(CxMsgType(msg)) - { - case CXM_COMMAND: - switch(CxMsgID(msg)) - { - case CXCMD_DISABLE: - ActivateCxObj(cxbroker,0L); - disabled = TRUE; - break; - - case CXCMD_ENABLE: - ActivateCxObj(cxbroker,1L); - disabled = FALSE; - break; - - case CXCMD_KILL: - quitme = TRUE; - break; - - } /* switch(CxMsgID(msg)) */ - break; - - } /* switch (CxMsgType(msg))*/ - - ReplyMsg((struct Message *)msg); - - } /* while((msg = (CxMsg *)GetMsg(cxport))) */ -} - -/************************************************************************************/ - -static void HandlePanel(void) -{ - struct IntuiMessage *msg; - - while((msg = (struct IntuiMessage *)GetMsg(panelwin->UserPort))) - { - switch(msg->Class) - { - case IDCMP_REFRESHWINDOW: - BeginRefresh(panelwin); - RenderPanelWin(); - EndRefresh(panelwin, TRUE); - break; - - } /* switch(msg->Class) */ - - } /* while ((msg = (struct IntuiMessage *)GetMsg(panelwin->UserPort))) */ -} - -/************************************************************************************/ - -static void HandleAll(void) -{ - ULONG sigs; - - while(!quitme) - { - sigs = Wait(cxmask | panelmask | actionmask | SIGBREAKF_CTRL_C); - - if (sigs & actionmask) HandleHide(); - if (sigs & cxmask) HandleCx(); - if (sigs & panelmask) HandlePanel(); - if (sigs & SIGBREAKF_CTRL_C) quitme = TRUE; - - } /* while(!quitme) */ - -} - -/************************************************************************************/ - -int main(void) -{ - Init(); - OpenLibs(); - - nb.nb_Name = getCatalog(catalogPtr, MSG_STARTMENU_CXNAME); - nb.nb_Title = getCatalog(catalogPtr, MSG_STARTMENU_CXTITLE); - nb.nb_Descr = getCatalog(catalogPtr, MSG_STARTMENU_CXDESCR); - - GetArguments(); - GetVisual(); - MakePanelWin(); - InitCX(); - HandleAll(); - Cleanup(0); - - return 0; -} - - -/************************************************************************************/ diff --git a/workbench/tools/commodities/startmenu/main.h b/workbench/tools/commodities/startmenu/main.h deleted file mode 100644 index 319ace4fb4..0000000000 --- a/workbench/tools/commodities/startmenu/main.h +++ /dev/null @@ -1,10 +0,0 @@ -/* - Copyright © 1995-2001, The AROS Development Team. All rights reserved. - $Id$ -*/ - -extern struct IntuitionBase *IntuitionBase; -extern struct GfxBase *GfxBase; -extern struct Library *CyberGfxBase; -extern struct Library *LayersBase; -extern struct Library *CxBase; diff --git a/workbench/tools/commodities/startmenu/mmakefile.src b/workbench/tools/commodities/startmenu/mmakefile.src deleted file mode 100644 index 42ce50923b..0000000000 --- a/workbench/tools/commodities/startmenu/mmakefile.src +++ /dev/null @@ -1,19 +0,0 @@ -# $Id$ -# -# Makefile to make the StartMenu commodity. - -include $(TOP)/config/make.cfg - -FILES := main support - -EXEDIR := $(AROSDIR)/Tools/Commodities - -##MM- workbench : workbench-tools -##MM workbench-tools : includes linklibs - -#%build_prog mmake=workbench-tools \ -# progname=StartMenu targetdir=$(EXEDIR) \ -# files=$(FILES) uselibs="amiga arosc m" - -%common - diff --git a/workbench/tools/commodities/startmenu/settings.h b/workbench/tools/commodities/startmenu/settings.h deleted file mode 100644 index 1b9c2f6aff..0000000000 --- a/workbench/tools/commodities/startmenu/settings.h +++ /dev/null @@ -1,16 +0,0 @@ -/* - Copyright © 1995-2001, The AROS Development Team. All rights reserved. - $Id$ -*/ - -#define LOGO_EXTRA_WIDTH 8 -#define LOGO_EXTRA_HEIGHT 4 - -#define LOGO_POS_X 4 - -#define BUTTON_EXTRA_WIDTH 8 -#define BUTTON_EXTRA_HEIGHT 4 - -#define PANEL_EXTRA_HEIGHT 6 - -#define USE_LOGO2 0 diff --git a/workbench/tools/commodities/startmenu/support.c b/workbench/tools/commodities/startmenu/support.c deleted file mode 100644 index 1e471cc136..0000000000 --- a/workbench/tools/commodities/startmenu/support.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - Copyright © 1995-2001, The AROS Development Team. All rights reserved. - $Id$ -*/ - -#include -#include -#include - -#include "main.h" -#include "support.h" - -void RenderFrame(struct RastPort *rp, struct DrawInfo *dri, WORD x1, WORD y1, WORD x2, WORD y2, BOOL recessed) -{ - WORD pen1 = dri->dri_Pens[SHINEPEN]; - WORD pen2 = dri->dri_Pens[SHADOWPEN]; - - if (recessed) - { - pen1 ^= pen2; - pen2 ^= pen1; - pen1 ^= pen2; - } - - SetDrMd(rp, JAM2); - SetAPen(rp, pen1); - - RectFill(rp, x1, y1, x2, y1); - RectFill(rp, x1, y1 + 1, x1, y2); - - SetAPen(rp, pen2); - - RectFill(rp, x2, y1 + 1, x2, y2); - RectFill(rp, x1 + 1, y2, x2 - 1, y2); -} - diff --git a/workbench/tools/commodities/startmenu/support.h b/workbench/tools/commodities/startmenu/support.h deleted file mode 100644 index a4dc736796..0000000000 --- a/workbench/tools/commodities/startmenu/support.h +++ /dev/null @@ -1,6 +0,0 @@ -/* - Copyright © 1995-2001, The AROS Development Team. All rights reserved. - $Id$ -*/ - -void RenderFrame(struct RastPort *rp, struct DrawInfo *dri, WORD x1, WORD y1, WORD x2, WORD y2, BOOL recessed); diff --git a/workbench/utilities/Presenter/main.c b/workbench/utilities/Presenter/main.c deleted file mode 100644 index 55f12268fa..0000000000 --- a/workbench/utilities/Presenter/main.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - Copyright © 2003-2004, The AROS Development Team. All rights reserved. - $Id$ -*/ - -#define MUIMASTER_YES_INLINE_STDARG - -#include -#include -#include -#include -#include - -#include "presenter.h" - -int main(void) -{ - Object *application; - - if ((application = PresenterObject, End) != NULL) - { - DoMethod(application, MUIM_Application_Execute); - MUI_DisposeObject(application); - } - - return 0; -} diff --git a/workbench/utilities/Presenter/mmakefile.src b/workbench/utilities/Presenter/mmakefile.src deleted file mode 100644 index ea58dc188b..0000000000 --- a/workbench/utilities/Presenter/mmakefile.src +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright © 2003-2004, The AROS Development Team. All rights reserved. -# $Id$ - -include $(TOP)/config/make.cfg - -FILES := main presenter presentation -EXEDIR := $(AROSDIR)/Utilities - -#MM workbench-utilities-presenter : includes linklibs - -%build_prog mmake=workbench-utilities-presenter \ - progname=Presenter targetdir=$(EXEDIR) \ - files=$(FILES) uselibs="mui arossupport amiga arosc m" - -%common diff --git a/workbench/utilities/Presenter/presentation.c b/workbench/utilities/Presenter/presentation.c deleted file mode 100644 index f0837cdea6..0000000000 --- a/workbench/utilities/Presenter/presentation.c +++ /dev/null @@ -1,210 +0,0 @@ -/* - Copyright © 2003-2004, The AROS Development Team. All rights reserved. - $Id$ -*/ - -#define MUIMASTER_YES_INLINE_STDARG - -#include -#include -#include -#include -#include -#include -#include - -#include "presentation.h" - -/*** Instance data **********************************************************/ -struct Presentation_DATA -{ - ULONG ssd_ChildCount; - struct MUI_EventHandlerNode ssd_EHN; -}; - -/*** Macros *****************************************************************/ -#define SETUP_INST_DATA struct Presentation_DATA *data = INST_DATA(CLASS, self) - -/*** Methods ****************************************************************/ -Object *Presentation__OM_NEW -( - Class *CLASS, Object *self, struct opSet *message -) -{ - self = (Object *) DoSuperNewTags - ( - CLASS, self, NULL, - - InnerSpacing(4, 4), - - /* Add content here ... */ - - TAG_MORE, (IPTR) message->ops_AttrList - ); - - return self; -} - -IPTR Presentation__OM_ADDMEMBER -( - Class *CLASS, Object *self, struct opMember *message -) -{ - IPTR success = DoSuperMethodA(CLASS, self, (Msg) message); - - if (success) - { - SETUP_INST_DATA; - data->ssd_ChildCount++; - } - - return success; -} - -IPTR Presentation__OM_REMMEMBER -( - Class *CLASS, Object *self, struct opMember *message -) -{ - IPTR success = DoSuperMethodA(CLASS, self, (Msg) message); - - if (success) - { - SETUP_INST_DATA; - data->ssd_ChildCount--; - } - - return success; -} - -IPTR Presentation__OM_SET -( - Class *CLASS, Object *self, struct opSet *message -) -{ - SETUP_INST_DATA; - struct TagItem *tstate = message->ops_AttrList; - struct TagItem *tag; - - while ((tag = NextTagItem(&tstate)) != NULL) - { - switch (tag->ti_Tag) - { - case MUIA_Group_ActivePage: - switch (tag->ti_Data) - { - case MUIV_Group_ActivePage_Next: - if - ( - XGET(self, MUIA_Group_ActivePage) - >= data->ssd_ChildCount - 1 - ) - { - tag->ti_Tag = TAG_IGNORE; - } - break; - - case MUIV_Group_ActivePage_Prev: - if (XGET(self, MUIA_Group_ActivePage) <= 0) - { - tag->ti_Tag = TAG_IGNORE; - } - break; - } - break; - } - } - - return DoSuperMethodA(CLASS, self, (Msg) message); -} - -IPTR Presentation__MUIM_Setup -( - Class *CLASS, Object *self, struct MUIP_Setup *message -) -{ - if (DoSuperMethodA(CLASS, self, (Msg) message)) - { - SETUP_INST_DATA; - - data->ssd_EHN.ehn_Events = IDCMP_RAWKEY; - data->ssd_EHN.ehn_Priority = 0; - data->ssd_EHN.ehn_Flags = 0; - data->ssd_EHN.ehn_Object = self; - data->ssd_EHN.ehn_Class = CLASS; - - DoMethod - ( - _win(self), MUIM_Window_AddEventHandler, (IPTR) &data->ssd_EHN - ); - - return TRUE; - } - - return FALSE; -} - -IPTR Presentation__MUIM_Cleanup -( - Class *CLASS, Object *self, struct MUIP_Cleanup *message -) -{ - SETUP_INST_DATA; - - DoMethod - ( - _win(self), MUIM_Window_RemEventHandler, (IPTR) &data->ssd_EHN - ); - - return DoSuperMethodA(CLASS, self, (Msg) message); -} - -IPTR Presentation__MUIM_HandleEvent -( - Class *CLASS, Object *self, struct MUIP_HandleEvent *message -) -{ - if (message->imsg != NULL) - { - switch (message->imsg->Class) - { - case IDCMP_RAWKEY: - switch (message->imsg->Code) - { - case CURSORRIGHT: - /* Next slide --------------------------------------*/ - SET - ( - self, MUIA_Group_ActivePage, - MUIV_Group_ActivePage_Next - ); - break; - - case CURSORLEFT: - /* Previous slide ----------------------------------*/ - SET - ( - self, MUIA_Group_ActivePage, - MUIV_Group_ActivePage_Prev - ); - break; - } - break; - } - } - - return MUI_EventHandlerRC_Eat; -} - -/*** Setup ******************************************************************/ -ZUNE_CUSTOMCLASS_7 -( - Presentation, NULL, MUIC_Group, NULL, - OM_NEW, struct opSet *, - OM_ADDMEMBER, struct opMember *, - OM_REMMEMBER, struct opMember *, - OM_SET, struct opSet *, - MUIM_Setup, struct MUIP_Setup *, - MUIM_Cleanup, struct MUIP_Cleanup *, - MUIM_HandleEvent, struct MUIP_HandleEvent * -); diff --git a/workbench/utilities/Presenter/presentation.h b/workbench/utilities/Presenter/presentation.h deleted file mode 100644 index 0a12378427..0000000000 --- a/workbench/utilities/Presenter/presentation.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef _PRESENTATION_H_ -#define _PRESENTATION_H_ - -/* - Copyright © 2003-2004, The AROS Development Team. All rights reserved. - $Id$ -*/ - -#include - -/*** Variables **************************************************************/ -extern struct MUI_CustomClass *Presentation_CLASS; - -/*** Macros *****************************************************************/ -#define PresentationObject BOOPSIOBJMACRO_START(Presentation_CLASS->mcc_Class) - -#endif /* _PRESENTATION_H_ */ diff --git a/workbench/utilities/Presenter/presenter.c b/workbench/utilities/Presenter/presenter.c deleted file mode 100644 index 27c24b789f..0000000000 --- a/workbench/utilities/Presenter/presenter.c +++ /dev/null @@ -1,91 +0,0 @@ -/* - Copyright © 2003-2004, The AROS Development Team. All rights reserved. - $Id$ -*/ - -#define MUIMASTER_YES_INLINE_STDARG - -#include -#include -#include -#include -#include -#include -#include - -#include "presentation.h" -#include "presenter.h" - -/*** Instance data **********************************************************/ -struct Presenter_DATA -{ - Object *pd_Window; -}; - -/*** Macros *****************************************************************/ -#define SETUP_INST_DATA struct Presenter_DATA *data = INST_DATA(CLASS, self) - -/*** Methods ****************************************************************/ -Object *Presenter__OM_NEW -( - Class *CLASS, Object *self, struct opSet *message -) -{ - Object *window; - - self = (Object *) DoSuperNewTags - ( - CLASS, self, NULL, - - SubWindow, (IPTR) (window = WindowObject, - MUIA_Window_Title, (IPTR) "Presenter", - MUIA_Window_Activate, TRUE, - MUIA_Window_Width, 800, - MUIA_Window_Height, 600, - - WindowContents, (IPTR) (PresentationObject, - End), - End), - - TAG_MORE, (IPTR) message->ops_AttrList - ); - - if (self != NULL) - { - SETUP_INST_DATA; - - /* Store instance data ---------------------------------------------*/ - data->pd_Window = window; - - /* Setup notifications ---------------------------------------------*/ - DoMethod - ( - window, MUIM_Notify, MUIA_Window_CloseRequest, TRUE, - (IPTR) self, 2, MUIM_Application_ReturnID, MUIV_Application_ReturnID_Quit - ); - } - - return self; -} - -IPTR Presenter__MUIM_Application_Execute -( - Class *CLASS, Object *self, Msg message -) -{ - SETUP_INST_DATA; - - SET(data->pd_Window, MUIA_Window_Open, TRUE); - DoSuperMethodA(CLASS, self, message); - SET(data->pd_Window, MUIA_Window_Open, FALSE); - - return TRUE; -} - -/*** Setup ******************************************************************/ -ZUNE_CUSTOMCLASS_2 -( - Presenter, NULL, MUIC_Application, NULL, - OM_NEW, struct opSet *, - MUIM_Application_Execute, Msg -); diff --git a/workbench/utilities/Presenter/presenter.h b/workbench/utilities/Presenter/presenter.h deleted file mode 100644 index 6809c78fea..0000000000 --- a/workbench/utilities/Presenter/presenter.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef _PRESENTER_H_ -#define _PRESENTER_H_ - -/* - Copyright © 2003-2004, The AROS Development Team. All rights reserved. - $Id$ -*/ - -#include - -/*** Variables **************************************************************/ -extern struct MUI_CustomClass *Presenter_CLASS; - -/*** Macros *****************************************************************/ -#define PresenterObject BOOPSIOBJMACRO_START(Presenter_CLASS->mcc_Class) - -#endif /* _PRESENTER_H_ */ -- 2.11.4.GIT