revert between 56095 -> 55830 in arch
[AROS.git] / workbench / prefs / reqtools / main.c
blobd9e09c18b5d2e38150619609943e466e1858d100
1 /*
2 Copyright © 2013-2016, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 /*********************************************************************************************/
8 #define MUIMASTER_YES_INLINE_STDARG
10 #define DEBUG 0
11 #include <aros/debug.h>
13 #include <proto/alib.h>
14 #include <proto/intuition.h>
15 #include <proto/muimaster.h>
17 #include <zune/systemprefswindow.h>
19 #include "locale.h"
20 #include "reqtoolseditor.h"
21 #include "args.h"
22 #include "prefs.h"
24 #define VERSION "$VER: ReqTools 41.0 (11.09.2013) AROS Dev Team"
26 /*********************************************************************************************/
28 int main(int argc, char **argv)
30 Object *application;
31 Object *window;
33 Locale_Initialize();
35 /* init */
36 if (ReadArguments(argc, argv))
38 if (ARG(USE) || ARG(SAVE))
40 Prefs_HandleArgs((STRPTR)ARG(FROM), ARG(USE), ARG(SAVE));
42 else
44 application = (Object *)ApplicationObject,
45 MUIA_Application_Title, __(MSG_WINDOW_TITLE),
46 MUIA_Application_Version, (IPTR) VERSION,
47 MUIA_Application_Description, __(MSG_WINDOW_TITLE),
48 MUIA_Application_SingleTask, TRUE,
49 MUIA_Application_Base, (IPTR) "REQTOOLSPREF",
50 SubWindow, (IPTR)(window = (Object *)SystemPrefsWindowObject,
51 MUIA_Window_ID, MAKE_ID('R', 'Q', 'T', 'S'),
52 WindowContents, (IPTR) ReqToolsEditorObject,
53 End,
54 End),
55 End;
57 if (application != NULL)
59 SET(window, MUIA_Window_Open, TRUE);
60 DoMethod(application, MUIM_Application_Execute);
62 MUI_DisposeObject(application);
65 FreeArguments();
68 Locale_Deinitialize();
69 return 0;