use for all targets
[AROS.git] / workbench / prefs / appearance / main.c
blob47733616da028ebdbf313f9992689136a58da445
1 /*
2 Copyright © 2013, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 /*********************************************************************************************/
8 #define DEBUG 0
9 #include <aros/debug.h>
11 #define MUIMASTER_YES_INLINE_STDARG
13 #include <proto/alib.h>
14 #include <proto/intuition.h>
15 #include <proto/muimaster.h>
17 #include <zune/systemprefswindow.h>
19 #include "appearanceeditor.h"
20 #include "args.h"
21 #include "locale.h"
23 #define VERSION "$VER: Appearance 1.0 (04.09.2013) AROS Dev Team"
24 /*********************************************************************************************/
26 int main(int argc, char **argv)
28 Object *application;
29 Object *window;
31 D(bug("[AppearancePrefs] InitLocale\n"));
32 Locale_Initialize();
34 D(bug("[AppearancePrefs] started\n"));
36 /* init */
37 if (ReadArguments(argc, argv))
39 D(bug("[AppearancePrefs] initialized\n"));
40 if (ARG(USE) || ARG(SAVE))
42 // Prefs_HandleArgs((STRPTR)ARG(FROM), ARG(USE), ARG(SAVE));
44 else
46 application = (Object *)ApplicationObject,
47 MUIA_Application_Title, __(MSG_WINTITLE),
48 MUIA_Application_Version, (IPTR) VERSION,
49 MUIA_Application_Description, __(MSG_WINTITLE),
50 MUIA_Application_Base, (IPTR) "APPEARPREF",
51 SubWindow, (IPTR)(window = (Object *)SystemPrefsWindowObject,
52 // MUIA_Window_ID, ID_SERL,
53 WindowContents, (IPTR) AppearanceEditorObject,
54 End,
55 End),
56 End;
58 if (application != NULL)
60 SET(window, MUIA_Window_Open, TRUE);
61 DoMethod(application, MUIM_Application_Execute);
63 MUI_DisposeObject(application);
66 FreeArguments();
69 Locale_Deinitialize();
70 return 0;
73 /*********************************************************************************************/