2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
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>
20 #include "sereditor.h"
25 #include <aros/debug.h>
27 #define VERSION "$VER: Serial 2.1 (05.01.2010) AROS Dev Team"
28 /*********************************************************************************************/
30 int main(int argc
, char **argv
)
35 D(bug("[serial prefs] InitLocale\n"));
38 D(bug("[serial prefs] started\n"));
41 if (ReadArguments(argc
, argv
))
43 D(bug("[serial prefs] initialized\n"));
44 if (ARG(USE
) || ARG(SAVE
))
46 Prefs_HandleArgs((STRPTR
)ARG(FROM
), ARG(USE
), ARG(SAVE
));
50 application
= (Object
*)ApplicationObject
,
51 MUIA_Application_Title
, __(MSG_WINTITLE
),
52 MUIA_Application_Version
, (IPTR
) VERSION
,
53 MUIA_Application_Description
, __(MSG_WINTITLE
),
54 MUIA_Application_Base
, (IPTR
) "SERIALPREF",
55 SubWindow
, (IPTR
)(window
= (Object
*)SystemPrefsWindowObject
,
56 MUIA_Window_ID
, ID_SERL
,
57 WindowContents
, (IPTR
) SerEditorObject
,
62 if (application
!= NULL
)
64 SET(window
, MUIA_Window_Open
, TRUE
);
65 DoMethod(application
, MUIM_Application_Execute
);
67 MUI_DisposeObject(application
);
73 Locale_Deinitialize();
77 /*********************************************************************************************/