revert between 56095 -> 55830 in arch
[AROS.git] / workbench / prefs / printer / main.c
blob6c182c3f9d33f269297a038a4d580fe2f3b23075
1 /*
2 Copyright © 1995-2016, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 /*********************************************************************************************/
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 "locale.h"
20 #include "editor.h"
21 #include "args.h"
22 #include "prefs.h"
24 #include <aros/debug.h>
26 #define VERSION "$VER: Printer 0.1 (31.1.2011) AROS Dev Team"
27 /*********************************************************************************************/
29 int main(int argc, char **argv)
31 Object *application;
32 Object *window;
34 D(bug("[printer prefs] InitLocale\n"));
35 Locale_Initialize();
37 D(bug("[printer prefs] started\n"));
39 /* init */
40 if (ReadArguments(argc, argv))
42 D(bug("[printer prefs] initialized\n"));
43 if (ARG(USE) || ARG(SAVE))
45 Prefs_HandleArgs((STRPTR)ARG(FROM), ARG(USE), ARG(SAVE));
47 else
49 application = (Object *)ApplicationObject,
50 MUIA_Application_Author, (IPTR)"Jason McMullan <jason.mcmullan@gmail.com>",
51 MUIA_Application_Copyright, (IPTR)"2012, AROS Team",
52 MUIA_Application_Title, __(MSG_WINTITLE),
53 MUIA_Application_Version, (IPTR) VERSION,
54 MUIA_Application_Description, __(MSG_WINTITLE),
55 MUIA_Application_SingleTask, TRUE,
56 MUIA_Application_Base, (IPTR) "PRINTERPREF",
57 SubWindow, (IPTR)(window =
58 SystemPrefsWindowObject,
59 MUIA_Window_ID, ID_PTXT,
60 WindowContents, (IPTR)
61 PrinterEditorObject,
62 End,
63 End),
64 End;
66 if (application != NULL)
68 SET(window, MUIA_Window_Open, TRUE);
69 DoMethod(application, MUIM_Application_Execute);
71 MUI_DisposeObject(application);
74 FreeArguments();
77 Locale_Deinitialize();
78 return 0;
81 /*********************************************************************************************/