2 Copyright © 1995-2016, The AROS Development Team. All rights reserved.
6 /*********************************************************************************************/
8 #define MUIMASTER_YES_INLINE_STDARG
10 #include <aros/debug.h>
12 #include <proto/alib.h>
13 #include <proto/intuition.h>
14 #include <proto/muimaster.h>
16 #include <libraries/mui.h>
17 #include <zune/systemprefswindow.h>
20 #include "registertab.h"
21 #include "page_language.h"
22 #include "page_region.h"
23 #include "page_timezone.h"
27 #define VERSION "$VER: Locale 2.4 (11.2.2014) AROS Dev Team"
29 /*********************************************************************************************/
31 int main(int argc
, char **argv
)
36 D(bug("[locale prefs] InitLocale\n"));
39 D(bug("[locale prefs] started\n"));
41 if (Prefs_Initialize())
43 if (ReadArguments(argc
, argv
))
45 D(bug("[locale prefs] initialized\n"));
46 if (ARG(USE
) || ARG(SAVE
))
48 Prefs_HandleArgs((STRPTR
)ARG(FROM
), ARG(USE
), ARG(SAVE
));
52 application
= (Object
*)ApplicationObject
,
53 MUIA_Application_Title
, __(MSG_WINTITLE
),
54 MUIA_Application_Version
, (IPTR
) VERSION
,
55 MUIA_Application_Description
, __(MSG_WINTITLE
),
56 MUIA_Application_SingleTask
, TRUE
,
57 MUIA_Application_Base
, (IPTR
) "LOCALEPREF",
58 SubWindow
, (IPTR
)(window
= (Object
*)SystemPrefsWindowObject
,
59 MUIA_Window_ID
, ID_LCLE
,
60 WindowContents
, (IPTR
) LocaleRegisterObject
,
65 if (application
!= NULL
)
67 SET(window
, MUIA_Window_Open
, TRUE
);
68 DoMethod(application
, MUIM_Application_Execute
);
70 MUI_DisposeObject(application
);
78 Locale_Deinitialize();