kernel.resource: Make includes part of compiler-includes
[AROS.git] / workbench / prefs / printer / main.c
blob2c5bfbf99c2021092a656883ae18f9d9e9c322bf
1 /*
2 Copyright © 1995-2011, 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 (01.31.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_Base, (IPTR) "PRINTERPREF",
56 SubWindow, (IPTR)(window =
57 SystemPrefsWindowObject,
58 MUIA_Window_ID, ID_PTXT,
59 WindowContents, (IPTR)
60 PrinterEditorObject,
61 End,
62 End),
63 End;
65 if (application != NULL)
67 SET(window, MUIA_Window_Open, TRUE);
68 DoMethod(application, MUIM_Application_Execute);
70 MUI_DisposeObject(application);
73 FreeArguments();
76 Locale_Deinitialize();
77 return 0;
80 /*********************************************************************************************/