Adapted to recent changes of %build_linklib.
[AROS-Contrib.git] / FryingPan / framework / Generic / GenericMUI.h
blobc9d2fbbd5161f8b70d3b3d7df9d13119e5c49e49
1 /*
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.
4 *
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.
9 *
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>
29 #undef MUI_MakeObject
30 #define MUI_MakeObject(a, b...) MUIMaster->MUI_MakeObjectA(a, ARRAY(b))
31 #undef MUI_NewObject
33 #define ButtonObject TextObject, \
34 ButtonFrame, \
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) \
41 GroupObject, \
42 MUIA_Group_Horiz, true, \
43 MUIA_InputMode, MUIV_InputMode_Toggle, \
44 MUIA_ShowSelState, false, \
45 Child, ImageObject, \
46 ImageButtonFrame, \
47 MUIA_Image_Spec, MUII_CheckMark, \
48 MUIA_Background, MUII_ButtonBack, \
49 MUIA_Image_FreeVert, true, \
50 MUIA_ShowSelState, false, \
51 MUIA_Weight, 0, \
52 End, \
53 Child, TextObject, \
54 MUIA_Text_Contents, title, \
55 MUIA_ShowSelState, false, \
56 End, \
57 End
59 extern MUIMasterIFace *MUIMaster;
61 namespace GenNS
63 class GenericMUI : public GenericOOP
65 protected:
67 Object *MUI_MakeObjectX(long Name, ...);
68 Object *MUI_NewObject(const char* Name, unsigned long FirstTag, ...);
72 #endif //_GENERICMUI_H_