Hint added.
[AROS.git] / workbench / prefs / reqtools / main.c
blob04e72a432fff64fae16bbfb67be1f3397c01753a
1 /*
2 Copyright © 2013, 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_Base, (IPTR) "REQTOOLSPREF",
49 SubWindow, (IPTR)(window = (Object *)SystemPrefsWindowObject,
50 MUIA_Window_ID, MAKE_ID('R', 'Q', 'T', 'S'),
51 WindowContents, (IPTR) ReqToolsEditorObject,
52 End,
53 End),
54 End;
56 if (application != NULL)
58 SET(window, MUIA_Window_Open, TRUE);
59 DoMethod(application, MUIM_Application_Execute);
61 MUI_DisposeObject(application);
64 FreeArguments();
67 Locale_Deinitialize();
68 return 0;