2 * Amiga Generic Set - set of libraries and includes to ease sw development for all Amiga platforms
3 * Copyright (C) 2001-2011 Tomasz Wiszkowski Tomasz.Wiszkowski at gmail.com.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 #ifndef _GENERICMUI_H_
21 #define _GENERICMUI_H_
23 #include "GenericOOP.h"
24 #include "LibrarySpool.h"
25 #include <intuition/classes.h>
26 #include <libclass/muimaster.h>
27 #include <intuition/classusr.h>
30 #define MUI_MakeObject(a, b...) MUIMaster->MUI_MakeObjectA(a, ARRAY(b))
33 #define ButtonObject TextObject, \
35 MUIA_Font, MUIV_Font_Button,\
36 MUIA_Text_PreParse, "\033c",\
37 MUIA_Background, MUII_ButtonBack,\
38 MUIA_InputMode, MUIV_InputMode_RelVerify
40 #define CheckmarkObject(state, title) \
42 MUIA_Group_Horiz, true, \
43 MUIA_InputMode, MUIV_InputMode_Toggle, \
44 MUIA_ShowSelState, false, \
47 MUIA_Image_Spec, MUII_CheckMark, \
48 MUIA_Background, MUII_ButtonBack, \
49 MUIA_Image_FreeVert, true, \
50 MUIA_ShowSelState, false, \
54 MUIA_Text_Contents, title, \
55 MUIA_ShowSelState, false, \
59 extern MUIMasterIFace
*MUIMaster
;
63 class GenericMUI
: public GenericOOP
67 Object
*MUI_MakeObjectX(long Name
, ...);
68 Object
*MUI_NewObject(const char* Name
, unsigned long FirstTag
, ...);
72 #endif //_GENERICMUI_H_