Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / prefs / font / main.c
blob6aae45f75e086de767ef1fed20aadc1d2f02e8cd
1 /*
2 Copyright © 2003-2004, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #define MUIMASTER_YES_INLINE_STDARG
8 #include <proto/intuition.h>
9 #include <proto/muimaster.h>
10 #include <libraries/mui.h>
11 #include <zune/systemprefswindow.h>
13 #include "locale.h"
14 #include "args.h"
15 #include "fpeditor.h"
17 #define VERSION "$VER: Fonts 0.1 ("ADATE") ©AROS Dev Team"
19 int main(void)
21 Object *application, *window;
23 Locale_Initialize();
25 if (ReadArguments())
27 /* FIXME: handle arguments... */
29 // FROM - import prefs from this file at start
30 // USE - 'use' the loaded prefs immediately, don't open window.
31 // SAVE - 'save' the lodaed prefs immediately, don't open window.
33 FreeArguments();
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,
44 End,
45 End),
46 End;
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);
57 Locale_Deinitialize();
59 return 0;