#include "demo.h" #ifndef MIN #define MIN(a,b) ((a) < (b) ? (a) : (b)) #endif #ifndef MAX #define MAX(a,b) ((a) > (b) ? (a) : (b)) #endif #ifndef _parent #define _parent(o) ({ Object *p = NULL; get(o, MUIA_Parent, &p); p; }) #endif /* A simple demo application to show some new features of MUI 5.0. */ struct MUI_CustomClass *register_mcc; struct MUI_CustomClass *titles_mcc; struct MUI_CustomClass *drop_mcc; struct MUI_CustomClass *label_mcc; struct MUI_CustomClass *tab_mcc; struct MUI_CustomClass *throbber_mcc; static const unsigned char throbber[] = { 0x42, 0x5a, 0x68, 0x39, 0x31, 0x41, 0x59, 0x26, 0x53, 0x59, 0x40, 0x80, 0x19, 0x87, 0x00, 0x00, 0x28, 0x7f, 0xff, 0xed, 0x64, 0xd6, 0x4d, 0x66, 0xd7, 0xff, 0xff, 0xff, 0xff, 0x26, 0x93, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfd, 0xff, 0xff, 0xff, 0xfd, 0xff, 0xff, 0xef, 0xff, 0x69, 0x2c, 0xe0, 0x0f, 0x10, 0x3b, 0x7d, 0x70, 0x32, 0xed, 0xe3, 0x3d, 0xe8, 0x7a, 0xaf, 0x6b, 0x79, 0x5d, 0x03, 0xb6, 0xec, 0xf4, 0x63, 0x81, 0xa3, 0xd0, 0x69, 0x77, 0x98, 0xd9, 0xba, 0x40, 0x62, 0x27, 0xaa, 0x9b, 0x0c, 0x51, 0x15, 0x3f, 0x42, 0x6a, 0x7a, 0x69, 0xa9, 0xe0, 0x4d, 0x32, 0x64, 0xd5, 0x3c, 0x69, 0x4f, 0x0d, 0x4d, 0x47, 0xb5, 0x47, 0xea, 0x9e, 0xa6, 0xf4, 0xa6, 0x9b, 0xd2, 0x87, 0xb5, 0x31, 0x34, 0xd4, 0x6d, 0x1b, 0x4d, 0x29, 0x88, 0x00, 0x0c, 0x81, 0xa0, 0x34, 0x00, 0x00, 0x7a, 0x80, 0x3d, 0x43, 0x6a, 0x01, 0xa0, 0xc8, 0x00, 0x00, 0x00, 0x34, 0x00, 0x01, 0xa6, 0x92, 0x62, 0x0d, 0x09, 0xa3, 0x45, 0x3c, 0x53, 0xd3, 0x53, 0xd4, 0x9b, 0x29, 0x9a, 0x43, 0xd4, 0x69, 0xb5, 0x34, 0x0d, 0x01, 0xa0, 0x0d, 0x00, 0xd0, 0x00, 0x00, 0x00, 0x1a, 0x00, 0x00, 0x00, 0x00, 0x1a, 0x00, 0x06, 0x81, 0xa0, 0x1a, 0x00, 0x00, 0x0f, 0x53, 0x11, 0xa1, 0xa0, 0x34, 0xc8, 0x91, 0x35, 0x26, 0x51, 0xa7, 0xfa, 0xa9, 0xe4, 0x9e, 0xa6, 0xd1, 0xa2, 0x0f, 0x53, 0xd3, 0x28, 0xc2, 0x7a, 0x1a, 0x10, 0xc2, 0x60, 0x80, 0x64, 0x68, 0x62, 0x60, 0x04, 0xd0, 0xc0, 0x46, 0x46, 0x26, 0x10, 0x06, 0x26, 0x86, 0x80, 0xd3, 0x43, 0x02, 0x1a, 0x1a, 0x0c, 0x9a, 0x69, 0xa6, 0x8c, 0x9a, 0x69, 0xa6, 0x86, 0x8d, 0x03, 0x6a, 0x0f, 0x41, 0x26, 0x94, 0x8a, 0x12, 0x64, 0xd2, 0x79, 0x3c, 0xa8, 0x7e, 0xa2, 0x7e, 0xa3, 0x53, 0x23, 0xd0, 0x9a, 0x60, 0x9a, 0x69, 0x91, 0xb5, 0x03, 0x4d, 0x34, 0x7a, 0x46, 0x86, 0x8d, 0x32, 0x18, 0x01, 0x19, 0x30, 0x98, 0x99, 0x00, 0x32, 0x69, 0xa6, 0x83, 0x21, 0x93, 0x4d, 0x06, 0x20, 0xc9, 0x91, 0xa6, 0x26, 0x08, 0xd0, 0x68, 0x31, 0x32, 0x34, 0xc4, 0x32, 0x0d, 0x32, 0x0d, 0x19, 0x06, 0x9a, 0x03, 0x46, 0x86, 0x83, 0x23, 0x40, 0xd0, 0x68, 0x00, 0x01, 0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, 0x42, 0x04, 0x84, 0xda, 0x04, 0x09, 0x69, 0x00, 0x18, 0x08, 0xf0, 0xb2, 0x27, 0xdc, 0xb9, 0x1e, 0xcb, 0xbc, 0xa5, 0x76, 0x64, 0x0d, 0x9a, 0x17, 0x25, 0xf0, 0x07, 0x32, 0x0f, 0xc6, 0x3e, 0x26, 0x33, 0xed, 0xa1, 0xf8, 0x5e, 0x9a, 0x3f, 0x9a, 0xfb, 0xb9, 0xaf, 0x83, 0x6f, 0xb9, 0xd1, 0x8c, 0xd6, 0xb2, 0x1a, 0x04, 0x3a, 0xe6, 0xa1, 0xce, 0x7f, 0x1b, 0x10, 0x55, 0x88, 0x9b, 0x60, 0x67, 0x6e, 0x00, 0x99, 0xdb, 0x7f, 0x57, 0x00, 0xc1, 0x83, 0x18, 0x9a, 0xa6, 0x99, 0x67, 0xc6, 0x8a, 0x2b, 0x0f, 0x73, 0x2c, 0x10, 0x1e, 0xdd, 0x46, 0x06, 0xbe, 0xcc, 0x62, 0x59, 0x74, 0x57, 0xc0, 0x54, 0x6c, 0x23, 0xac, 0x25, 0x65, 0x1c, 0x51, 0x08, 0x29, 0x5a, 0x20, 0x15, 0x65, 0x68, 0xac, 0x48, 0x24, 0x9d, 0x92, 0x44, 0x2e, 0xc8, 0x89, 0x97, 0x32, 0xa6, 0x4c, 0x07, 0x11, 0x62, 0x49, 0x06, 0xc7, 0x74, 0xae, 0x56, 0x93, 0x97, 0x32, 0x20, 0xcb, 0x8d, 0xd2, 0x3f, 0x76, 0x70, 0x00, 0x43, 0x94, 0xf1, 0xeb, 0xc6, 0xc3, 0xbf, 0xc9, 0x82, 0x44, 0x1b, 0x54, 0xae, 0xc5, 0x7e, 0x89, 0x83, 0xf1, 0x85, 0x95, 0x8c, 0x76, 0x72, 0xd9, 0x93, 0x20, 0xd6, 0x26, 0xad, 0x96, 0x06, 0x9e, 0x60, 0x88, 0x39, 0x00, 0x88, 0x01, 0xa5, 0xa9, 0x1a, 0xba, 0x92, 0xd0,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0c, 0x18, 0xc5, 0x2a, 0x51, 0x98, 0x4c, 0x60, 0x96, 0xa1, 0x51, 0x46, 0xd2, 0x55, 0x66, 0x06, 0x15, 0x22, 0x30, 0xc1, 0x14, 0x44, 0x45, 0x54, 0x14, 0x11, 0x45, 0x20, 0xab, 0x02, 0x91, 0x54, 0x14, 0x05, 0x82, 0xa8, 0x45, 0x51, 0x45, 0x2d, 0x2d, 0x94, 0x5b, 0x59, 0x0a, 0x2d, 0x50, 0xa2, 0xd1, 0x1a, 0xd5, 0x06, 0x31, 0x88, 0xcb, 0x5a, 0x2c, 0x52, 0xa2, 0x5b, 0x55, 0xa1, 0x30, 0x10, 0xdc, 0x26, 0x40, 0x10, 0x6e, 0x8c, 0x00, 0x84, 0x46, 0xb1, 0xeb, 0xbc, 0xad, 0x5d, 0x39, 0xad, 0x6d, 0x55, 0x4e, 0x8a, 0x97, 0x61, 0x54, 0x52, 0x25, 0x3b, 0xa0, 0xec, 0x18, 0xd5, 0xd6, 0x19, 0xa0, 0x41, 0x07, 0x90, 0xee, 0xb2, 0x2f, 0xaf, 0x76, 0x19, 0x75, 0x75, 0xb6, 0x2e, 0xd1, 0x48, 0x6d, 0x14, 0xa1, 0x40, 0x43, 0x86, 0x72, 0x01, 0x35, 0x8d, 0x56, 0xa6, 0x61, 0x4e, 0x34, 0xa3, 0x06, 0x1d, 0x92, 0xe9, 0xe3, 0x06, 0x0a, 0xc8, 0x89, 0x46, 0x4a, 0x55, 0x30, 0x76, 0x6c, 0xb9, 0x13, 0xa1, 0xd7, 0x3b, 0xdf, 0x45, 0xb7, 0x7c, 0x0b, 0xcf, 0x30, 0x60, 0xe9, 0x67, 0x39, 0xe5, 0x87, 0x49, 0x0d, 0xdf, 0x30, 0x5a, 0x68, 0xff, 0xb2, 0x1d, 0x3b, 0xd1, 0xd9, 0x22, 0x24, 0x79, 0x83, 0xcd, 0x9f, 0x4d, 0x52, 0xc0, 0x81, 0xe4, 0xbc, 0xf3, 0xfd, 0x71, 0x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, 0x74, 0x4a, 0xe7, 0xa3, 0x12, 0x07, 0x04, 0x90, 0x64, 0x30, 0x30, 0x01, 0x88, 0x80, 0x02, 0x57, 0xad, 0x52, 0x5c, 0xb5, 0x7f, 0x41, 0xb8, 0x6a, 0xc4, 0xa3, 0x5f, 0x02, 0x7d, 0x77, 0xd7, 0x40, 0xc7, 0x8e, 0xfa, 0xf5, 0x9d, 0x0c, 0xa3, 0xa6, 0xae, 0x03, 0x03, 0x2e, 0x3c, 0x3f, 0x23, 0x2d, 0xf5, 0x09, 0xc2, 0xdf, 0xc6, 0x41, 0x02, 0x2e, 0x4d, 0xb4, 0x51, 0xac, 0x62, 0x21, 0x24, 0x86, 0xe6, 0x2d, 0x16, 0xd3, 0xd5, 0x1d, 0x09, 0x19, 0x42, 0xd5, 0x88, 0x25, 0x1a, 0x8c, 0xaf, 0x4a, 0xfb, 0x7f, 0xd5, 0xdc, 0x4a, 0x7e, 0x25, 0xef, 0xf8, 0x00, 0xc9, 0x40, 0x90, 0x8f, 0x06, 0x86, 0xa9, 0x0a, 0x55, 0x80, 0xc9, 0x16, 0x08, 0x84, 0x10, 0x55, 0x1c, 0x52, 0x15, 0xb6, 0x12, 0x82, 0xac, 0x51, 0x83, 0x20, 0xa4, 0x45, 0x44, 0x42, 0x0a, 0x2a, 0xd4, 0x01, 0x8c, 0xdf, 0x7b, 0xd1, 0x8f, 0xec, 0x65, 0x36, 0xfb, 0xb7, 0x56, 0x8a, 0x96, 0x9a, 0x0c, 0x66, 0x92, 0x31, 0x20, 0x0b, 0x22, 0xa9, 0x18, 0x2c, 0x46, 0x2a, 0xa8, 0xb2, 0x20, 0xa4, 0x50, 0x44, 0x64, 0x88, 0x84, 0x54, 0x60, 0xb0, 0x41, 0x05, 0x14, 0x20, 0xa8, 0x24, 0x01, 0x15, 0x84, 0x18, 0x80, 0xb0, 0x92, 0x31, 0x21, 0x15, 0x48, 0x89, 0x06, 0x0c, 0x10, 0x04, 0x48, 0x8c, 0x74, 0x8d,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 0x48, 0xc4, 0x82, 0x22, 0x02, 0x28, 0x9e, 0xbc, 0xb4, 0x6a, 0x56, 0xa5, 0x15, 0x16, 0x02, 0x5b, 0x56, 0x2a, 0x2a, 0xc1, 0x11, 0x05, 0x51, 0x48, 0x2a, 0xaa, 0x22, 0x28, 0xab, 0x05, 0x44, 0x46, 0x24, 0x55, 0x51, 0x45, 0x16, 0x31, 0x08, 0x31, 0x05, 0x01, 0x62, 0x32, 0x0b, 0x08, 0x28, 0x2a, 0x22, 0x45, 0x48, 0xb2, 0x2c, 0x11, 0x82, 0xc8, 0x8c, 0x06, 0x30, 0x63, 0x22, 0xc1, 0x18, 0xaa, 0x04, 0x22, 0xa9, 0x08, 0xb4, 0x6d, 0x1a, 0xad, 0x2d, 0x41, 0x41, 0x51, 0x15, 0x2d, 0x25, 0x51, 0x05, 0x0d, 0x79, 0xb5, 0x18, 0xb2, 0x60, 0xb8, 0xae, 0xba, 0x6c, 0xb6, 0xd9, 0xbb, 0xbe, 0x86, 0xe3, 0xa0, 0x48, 0x24, 0x80, 0x41, 0x2a, 0x14, 0x29, 0x31, 0x97, 0xe4, 0x4d, 0xdb, 0xc6, 0x14, 0x53, 0x64, 0x3e, 0x38, 0xe0, 0x46, 0x9b, 0xfb, 0xc7, 0xcb, 0x94, 0x3e, 0x34, 0xb1, 0x24, 0x88, 0x00, 0xaa, 0x57, 0xef, 0xd9, 0x53, 0x55, 0x0b, 0xaa, 0x15, 0x4b, 0x19, 0xb3, 0x69, 0x28, 0x4c, 0x53, 0xd0, 0xce, 0x86, 0x75, 0xcc, 0xdb, 0xe1, 0x00, 0x70, 0xa2, 0x20, 0x15, 0x87, 0x10, 0x2d, 0x49, 0x82, 0x21, 0x39, 0x51, 0x11, 0x56, 0xac, 0x08, 0x9e, 0x2d, 0xba, 0xe5, 0xcb, 0xd1, 0x12, 0x23, 0x04, 0x3f, 0x30, 0x40, 0x35, 0x7a, 0xee, 0x23, 0x60, 0x3a, 0xed, 0xc8, 0x8a, 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x97, 0x16, 0x75, 0x47, 0xdf, 0xd9, 0x2f, 0xfe, 0x2e, 0xe4, 0x8a, 0x70, 0xa1, 0x20, 0x81, 0x00, 0x33, 0x0e, }; #define THROBBER_WIDTH 576 #define THROBBER_HEIGHT 16 #define THROBBER_DEPTH 32 #define THROBBER_FORMAT MUIV_Pixmap_Format_ARGB32 #define THROBBER_COMPRESSION MUIV_Pixmap_Compression_BZip2 #define THROBBER_SIZE 3696 #define THROBBER_IMAGES 36 /* ------------------------------------------------------------------------- */ static const char *titlePositions[] = { "top", "bottom", NULL }; /* ------------------------------------------------------------------------- */ #define MUIM_Titles_AddTab (TAG_USER|0x0001) struct MUIP_Titles_AddTab { ULONG MethodID; ULONG activateNewTab; }; /* ------------------------------------------------------------------------- */ static ULONG Tab_NEW(struct IClass *cl, Object *obj, Msg msg) { return (ULONG)DoSuperNew(cl, obj, MUIA_Group_Horiz, TRUE, MUIA_Draggable, TRUE, MUIA_Dropable, TRUE, MUIA_UserData, 0xcafecafe, Child, NewObject(label_mcc->mcc_Class, NULL, TAG_MORE, inittags(msg)), Child, NewObject(throbber_mcc->mcc_Class, NULL, TAG_DONE), TAG_MORE, inittags(msg)); } static ULONG Tab_AskMinMax( struct IClass *cl, Object *obj, struct MUIP_AskMinMax *msg) { DoSuperMethodA(cl, obj, (Msg)msg); msg->MinMaxInfo->MinWidth += 32; return 0; } DISPATCHER(Tab_Dispatcher) { switch(msg->MethodID) { case OM_NEW : return Tab_NEW(cl, obj, (APTR)msg); case MUIM_AskMinMax : return Tab_AskMinMax(cl, obj, (APTR)msg); } return DoSuperMethodA(cl, obj, msg); } /* ------------------------------------------------------------------------- */ #define MUIM_Throbber_Animate (TAG_USER|0x0001) /* ------------------------------------------------------------------------- */ struct ThrobberData { ULONG frame; BOOL added; struct MUI_InputHandlerNode ihn; }; static ULONG Throbber_NEW(struct IClass *cl, Object *obj, Msg msg) { if((obj = DoSuperNew(cl, obj, MUIA_FillArea, FALSE, MUIA_Weight, 0, MUIA_DoubleBuffer, TRUE, InnerSpacing(0, 0), MUIA_Pixmap_Width, THROBBER_WIDTH, MUIA_Pixmap_Height, THROBBER_HEIGHT, MUIA_Pixmap_Format, THROBBER_FORMAT, MUIA_Pixmap_Data, throbber, MUIA_Pixmap_Compression, THROBBER_COMPRESSION, MUIA_Pixmap_CompressedSize, THROBBER_SIZE, TAG_MORE, inittags(msg))) != NULL) { struct ThrobberData *data = INST_DATA(cl, obj); data->ihn.ihn_Object = obj; data->ihn.ihn_Flags = MUIIHNF_TIMER; data->ihn.ihn_Millis = 30; data->ihn.ihn_Method = MUIM_Throbber_Animate; } return (ULONG)obj; } static ULONG Throbber_AskMinMax(UNUSED struct IClass *cl, Object *obj, struct MUIP_AskMinMax *msg) { DoSuperMethodA(cl, obj, (Msg)msg); msg->MinMaxInfo->MinWidth = THROBBER_WIDTH / THROBBER_IMAGES; msg->MinMaxInfo->MinHeight = THROBBER_HEIGHT; msg->MinMaxInfo->MaxWidth = THROBBER_WIDTH / THROBBER_IMAGES; msg->MinMaxInfo->MaxHeight = THROBBER_HEIGHT; msg->MinMaxInfo->DefWidth = THROBBER_WIDTH / THROBBER_IMAGES; msg->MinMaxInfo->DefHeight = THROBBER_HEIGHT; return 0; } static ULONG Throbber_Show(struct IClass *cl, Object *obj, Msg msg) { ULONG rc = DoSuperMethodA(cl, obj, (Msg)msg); if(rc) { struct ThrobberData *data = INST_DATA(cl, obj); if (data->added == FALSE) { DoMethod(_app(obj), MUIM_Application_AddInputHandler, &data->ihn); data->added = TRUE; } } return rc; } static ULONG Throbber_Hide(struct IClass *cl, Object *obj, Msg msg) { struct ThrobberData *data = INST_DATA(cl, obj); if (data->added == TRUE) { DoMethod(_app(obj), MUIM_Application_RemInputHandler, &data->ihn); data->added = FALSE; } return DoSuperMethodA(cl, obj, (Msg)msg); } static ULONG Throbber_Draw(struct IClass *cl, Object *obj, struct MUIP_Draw *msg) { struct ThrobberData *data = INST_DATA(cl, obj); //DoSuperMethodA(cl, obj, (Msg)msg); if(msg->flags & (MADF_DRAWOBJECT | MADF_DRAWUPDATE)) { DoMethod(obj, MUIM_DrawBackground, _mleft(obj), _mtop(obj), _mwidth(obj), _mheight(obj), 0, 0, 0); DoMethod(obj, MUIM_Pixmap_DrawSection, data->frame * THROBBER_WIDTH / THROBBER_IMAGES, 0, THROBBER_WIDTH / THROBBER_IMAGES, THROBBER_HEIGHT, muiRenderInfo(obj), _mleft(obj) + (_mwidth(obj) - THROBBER_WIDTH / THROBBER_IMAGES) / 2, _mtop(obj) + (_mheight(obj) - THROBBER_HEIGHT) / 2, 0xffffffff); } return 0; } static ULONG Throbber_Animate(struct IClass *cl, Object *obj, UNUSED Msg msg) { struct ThrobberData *data = INST_DATA(cl, obj); data->frame++; if (data->frame >= THROBBER_IMAGES) data->frame = 0; MUI_Redraw(obj, MADF_DRAWUPDATE); return 0; } DISPATCHER(Throbber_Dispatcher) { switch(msg->MethodID) { case OM_NEW : return Throbber_NEW(cl, obj, (APTR)msg); case MUIM_AskMinMax : return Throbber_AskMinMax(cl, obj, (APTR)msg); case MUIM_Show : return Throbber_Show(cl, obj, (APTR)msg); case MUIM_Hide : return Throbber_Hide(cl, obj, (APTR)msg); case MUIM_Draw : return Throbber_Draw(cl, obj, (APTR)msg); case MUIM_Throbber_Animate : return Throbber_Animate(cl, obj, (APTR)msg); } return DoSuperMethodA(cl, obj, msg); } /* ------------------------------------------------------------------------- */ struct Titles_Data { ULONG pageCount; }; static ULONG Titles_NEW(struct IClass *cl, Object *obj, Msg msg) { if((obj = DoSuperNew(cl, obj, MUIA_CycleChain, TRUE, MUIA_Title_Sortable, TRUE, MUIA_Title_Newable, TRUE, TAG_MORE, inittags(msg))) != NULL) { struct Titles_Data *data = INST_DATA(cl, obj); data->pageCount = 0; } return (ULONG)obj; } static ULONG Titles_Close(struct IClass *cl, Object *obj, struct MUIP_Title_Close *msg) { ULONG tabCount; // let Title class remove and dispose the tab object AND the corresponding page object DoSuperMethodA(cl, obj, (Msg)msg); // close the window as soon as the last tab was closed tabCount = -1; get(obj, MUIA_Group_ChildCount, &tabCount); if(tabCount == 0) set(_win(obj), MUIA_Window_CloseRequest, TRUE); return 0; } static ULONG Titles_CreateNewButton(UNUSED struct IClass *cl, Object *obj, UNUSED Msg msg) { Object *newButton; if((newButton = TextObject, MUIA_Text_Contents, "+", MUIA_Text_Copy, FALSE, MUIA_Text_SetMax, TRUE, End) != NULL) { DoMethod(newButton, MUIM_Notify, MUIA_Pressed, FALSE, obj, 1, MUIM_Titles_AddTab); } return (ULONG)newButton; } static ULONG Titles_AddTab(struct IClass *cl, Object *obj, struct MUIP_Titles_AddTab *msg) { struct Titles_Data *data = INST_DATA(cl, obj); Object *parent = _parent(obj); Object *gparent = _parent(parent); // put all groups in "change" mode if(DoMethod(gparent, MUIM_Group_InitChange)) { if(DoMethod(parent, MUIM_Group_InitChange)) { if(DoMethod(obj, MUIM_Group_InitChange)) { char titleStr[32]; char contentStr[32]; data->pageCount++; snprintf(titleStr, sizeof(titleStr), "page %ld title", data->pageCount); snprintf(contentStr, sizeof(contentStr), "page %ld contents", data->pageCount), // add the new tab to the Title object DoMethod(obj, OM_ADDMEMBER, NewObject(tab_mcc->mcc_Class, NULL, MUIA_Text_Contents, titleStr, TAG_DONE)); DoMethod(obj, MUIM_Group_ExitChange); // add the new page object to our parent group DoMethod(parent, OM_ADDMEMBER, TextObject, MUIA_Text_Contents, contentStr, MUIA_Text_SetMin, FALSE, MUIA_Text_SetMax, FALSE, End); // make the new page the active one if this is desired if(msg->activateNewTab == TRUE) set(parent, MUIA_Group_ActivePage, MUIV_Group_ActivePage_Last); } DoMethod(parent, MUIM_Group_ExitChange); } DoMethod(gparent, MUIM_Group_ExitChange); } return 0; } DISPATCHER(Titles_Dispatcher) { switch(msg->MethodID) { case OM_NEW : return Titles_NEW(cl, obj, (APTR)msg); case MUIM_Title_Close : return Titles_Close(cl, obj, (APTR)msg); case MUIM_Title_CreateNewButton : return Titles_CreateNewButton(cl, obj, (APTR)msg); case MUIM_Titles_AddTab : return Titles_AddTab(cl, obj, (APTR)msg); } return DoSuperMethodA(cl, obj, msg); } /* ------------------------------------------------------------------------- */ static ULONG Register_NEW(struct IClass *cl, Object *obj, Msg msg) { Object *positionCycle; Object *closableCheckmark; Object *addButton; Object *dragDest; Object *reg; Object *titles; if((obj = DoSuperNew(cl, obj, MUIA_Group_Horiz, FALSE, Child, HGroup, Child, LLabel("Position:"), Child, positionCycle = Cycle(titlePositions), End, Child, HGroup, Child, closableCheckmark = CheckMark(FALSE), Child, Label("Close button"), Child, HSpace(0), End, Child, HGroup, MUIA_Group_SameSize, TRUE, Child, addButton = KeyButton("add new tab", 'a'), Child, dragDest = NewObject(drop_mcc->mcc_Class,NULL,TAG_DONE), End, Child, reg = VGroup, Child, titles = NewObject(titles_mcc->mcc_Class, NULL, TAG_DONE), End, TAG_MORE, inittags(msg))) != NULL) { ULONG i; DoMethod(positionCycle, MUIM_Notify, MUIA_Cycle_Active, MUIV_EveryTime, titles, 3, MUIM_Set, MUIA_Title_Position, MUIV_TriggerValue); DoMethod(closableCheckmark, MUIM_Notify, MUIA_Selected, MUIV_EveryTime, titles, 3, MUIM_Set, MUIA_Title_Closable, MUIV_TriggerValue); DoMethod(addButton, MUIM_Notify, MUIA_Pressed, FALSE, titles, 2, MUIM_Titles_AddTab, TRUE); // add some initial tabs for(i = 0; i < 3; i++) DoMethod(titles, MUIM_Titles_AddTab, FALSE); set(reg, MUIA_Group_ActivePage, MUIV_Group_ActivePage_First); } return (ULONG)obj; } DISPATCHER(Register_Dispatcher) { switch(msg->MethodID) { case OM_NEW : return Register_NEW(cl, obj, (APTR)msg); } return DoSuperMethodA(cl, obj, msg); } /* ------------------------------------------------------------------------- */ static ULONG Drop_NEW(struct IClass *cl, Object *obj, Msg msg) { obj = DoSuperNew(cl, obj, MUIA_Text_Contents, "drop here", MUIA_Text_PreParse, "\033c", MUIA_Frame, MUIV_Frame_Button, TAG_MORE, inittags(msg)); return (ULONG)obj; } static ULONG Drop_DragQuery(UNUSED struct IClass *cl,UNUSED Object *obj,struct MUIP_DragQuery *msg) { return (muiUserData(msg->obj) == 0xcafecafe) ? MUIV_DragQuery_Accept : MUIV_DragQuery_Refuse; } static ULONG Drop_DragDrop(UNUSED struct IClass *cl,UNUSED Object *obj,UNUSED struct MUIP_DragDrop *msg) { char *text; get(msg->obj, MUIA_Text_Contents, &text); set(obj, MUIA_Text_Contents, text); return 0; } DISPATCHER(Drop_Dispatcher) { switch(msg->MethodID) { case OM_NEW : return Drop_NEW(cl, obj, (APTR)msg); case MUIM_DragQuery : return Drop_DragQuery(cl, obj, (APTR)msg); case MUIM_DragDrop : return Drop_DragDrop(cl, obj, (APTR)msg); } return DoSuperMethodA(cl, obj, msg); } /* ------------------------------------------------------------------------- */ static ULONG Label_NEW(struct IClass *cl, Object *obj, Msg msg) { // create a simple label and forbid any text effects like style or color obj = DoSuperNew(cl, obj, MUIA_Text_PreParse, "\033-", TAG_MORE, inittags(msg)); return (ULONG)obj; } DISPATCHER(Label_Dispatcher) { switch(msg->MethodID) { case OM_NEW : return Label_NEW(cl, obj, (APTR)msg); } return DoSuperMethodA(cl, obj, msg); } /* ------------------------------------------------------------------------- */ int main(UNUSED int argc, UNUSED char *argv[]) { Object *app, *window; Object *test; init(); /* Check if certain classes can be instanciated as these require specific libraries */ /* to be available. Otherwise creating the application will fail without any good */ /* reason. */ if((test = ObjectmapObject, End) == NULL) fail(NULL, "Could not create instance of Objectmap.mui. Is btree.library missing?"); else MUI_DisposeObject(test); /* Create the new custom class with a call to MUI_CreateCustomClass(). */ /* Caution: This function returns not a struct IClass, but a */ /* struct MUI_CustomClass which contains a struct IClass to be */ /* used with NewObject() calls. */ /* Note well: MUI creates the dispatcher hook for you, you may */ /* *not* use its h_Data field! If you need custom data, use the */ /* cl_UserData of the IClass structure! */ if (!(register_mcc = MUI_CreateCustomClass(NULL, MUIC_Group, NULL, 0, ENTRY(Register_Dispatcher)))) fail(NULL,"Could not create register custom class."); if (!(titles_mcc = MUI_CreateCustomClass(NULL, MUIC_Title, NULL, sizeof(struct Titles_Data), ENTRY(Titles_Dispatcher)))) fail(NULL,"Could not create register custom class."); if (!(drop_mcc = MUI_CreateCustomClass(NULL, MUIC_Text, NULL, 0, ENTRY(Drop_Dispatcher)))) fail(NULL,"Could not create drop custom class."); if (!(label_mcc = MUI_CreateCustomClass(NULL, MUIC_Text, NULL, 0, ENTRY(Label_Dispatcher)))) fail(NULL,"Could not create label custom class."); if (!(tab_mcc = MUI_CreateCustomClass(NULL, MUIC_Group, NULL, 0, ENTRY(Tab_Dispatcher)))) fail(NULL,"Could not create tab custom class."); if (!(throbber_mcc = MUI_CreateCustomClass(NULL, MUIC_Pixmap, NULL, sizeof(struct ThrobberData), ENTRY(Throbber_Dispatcher)))) fail(NULL,"Could not create throbber custom class."); // set up a specific name for our classes register_mcc->mcc_Class->cl_ID = (ClassID)"Title/Register"; titles_mcc->mcc_Class->cl_ID = (ClassID)"Title/Titles"; drop_mcc->mcc_Class->cl_ID = (ClassID)"Title/Drop"; label_mcc->mcc_Class->cl_ID = (ClassID)"Title/Label"; tab_mcc->mcc_Class->cl_ID = (ClassID)"Title/Tab"; throbber_mcc->mcc_Class->cl_ID = (ClassID)"Title/Throbber"; app = ApplicationObject, MUIA_Application_Title , "Title", MUIA_Application_Version , "$VER: Title 21.4 (24.01.2017)", MUIA_Application_Copyright , "(C) 2015-2020 Thore Boeckelmann", MUIA_Application_Author , "Thore Boeckelmann", MUIA_Application_Description, "Demonstrate the use of Title.mui in MUI 5.0", MUIA_Application_Base , "TITLE", SubWindow, window = WindowObject, MUIA_Window_Title, "Dynamic and draggable register objects using Title.mui", MUIA_Window_ID, MAKE_ID('T','I','T','L'), WindowContents, NewObject(register_mcc->mcc_Class, NULL, TAG_DONE), End, End; if (!app) fail(app,"Failed to create Application."); DoMethod(window, MUIM_Notify, MUIA_Window_CloseRequest, TRUE, app, 2, MUIM_Application_ReturnID, MUIV_Application_ReturnID_Quit); set(window, MUIA_Window_Open, TRUE); /* ** This is the ideal input loop for an object oriented MUI application. ** Everything is encapsulated in classes, no return ids need to be used, ** we just call a single method which does all the dirty work. */ DoMethod(app, MUIM_Application_Run); set(window, MUIA_Window_Open, FALSE); /* ** Shut down... */ MUI_DisposeObject(app); /* dispose all objects. */ MUI_DeleteCustomClass(register_mcc); /* delete the custom class. */ MUI_DeleteCustomClass(titles_mcc); /* delete the custom class. */ MUI_DeleteCustomClass(drop_mcc); /* delete the custom class. */ MUI_DeleteCustomClass(label_mcc); /* delete the custom class. */ MUI_DeleteCustomClass(tab_mcc); /* delete the custom class. */ MUI_DeleteCustomClass(throbber_mcc); /* delete the custom class. */ fail(NULL, NULL); /* exit, app is already disposed. */ // just to please the compiler return 0; }