2 Copyright © 2003-2011, The AROS Development Team. All rights reserved.
6 #define MUIMASTER_YES_INLINE_STDARG
8 #include <proto/alib.h>
9 #include <proto/intuition.h>
10 #include <proto/muimaster.h>
12 #include <libraries/mui.h>
13 #include <zune/systemprefswindow.h>
20 #define VERSION "$VER: Fonts 0.2 ("ADATE") ©AROS Dev Team"
22 int main(int argc
, char **argv
)
24 Object
*application
, *window
;
28 if (ReadArguments(argc
, argv
))
30 if (ARG(USE
) || ARG(SAVE
))
32 Prefs_HandleArgs((STRPTR
)ARG(FROM
), ARG(USE
), ARG(SAVE
));
36 application
= (Object
*)ApplicationObject
,
37 MUIA_Application_Title
, __(MSG_NAME
),
38 MUIA_Application_Version
, (IPTR
) VERSION
,
39 MUIA_Application_Description
, __(MSG_DESCRIPTION
),
40 MUIA_Application_Base
, (IPTR
) "FONTPREF",
41 SubWindow
, (IPTR
) (window
= (Object
*)SystemPrefsWindowObject
,
42 MUIA_Window_ID
, MAKE_ID('F','W','I','N'),
43 WindowContents
, (IPTR
) FPEditorObject
,
48 if (application
!= NULL
)
50 SET(window
, MUIA_Window_Open
, TRUE
);
51 DoMethod(application
, MUIM_Application_Execute
);
52 SET(window
, MUIA_Window_Open
, FALSE
);
54 MUI_DisposeObject(application
);
60 Locale_Deinitialize();