added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / workbench / prefs / screenmode / main.c
blobdfb0b355a81f09ad676ecc3d7e5cfce73d29a411
1 /*
2 Copyright © 2003-2006, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #define MUIMASTER_YES_INLINE_STDARG
7 #define DEBUG 0
9 #include <aros/debug.h>
10 #include <dos/dos.h>
12 #include <proto/muimaster.h>
13 #include <proto/intuition.h>
15 #include <zune/systemprefswindow.h>
17 #include "locale.h"
18 #include "smeditor.h"
20 #define VERSION "ScreenMode Preferences 1.2 (18.02.2006)"
21 #define COPYRIGHT "Copyright © 1995-2006, The AROS Development Team"
23 static const char vers[] = VERSION;
24 static const char version[] = "$VER: " VERSION "\n";
27 int __nocommandline = 1;
29 int main()
31 Object *app, *win;
33 Locale_Initialize();
35 app = ApplicationObject,
36 MUIA_Application_Title, (IPTR) __(MSG_NAME),
37 MUIA_Application_Version, (IPTR) vers,
38 MUIA_Application_Copyright, (IPTR) COPYRIGHT,
39 MUIA_Application_Author, (IPTR) "The AROS Development Team",
40 MUIA_Application_Description, (IPTR) __(MSG_NAME),
41 MUIA_Application_SingleTask, TRUE,
42 MUIA_Application_Base, (IPTR) "SCREENMODEPREF",
43 SubWindow, (IPTR)(win = SystemPrefsWindowObject,
44 MUIA_Window_ID, MAKE_ID('S','W','I','N'),
45 WindowContents, (IPTR) SMEditorObject,
46 End,
47 End),
48 End;
50 if (app)
52 set(win, MUIA_Window_Open, TRUE);
54 DoMethod(app, MUIM_Application_Execute);
56 MUI_DisposeObject(app);
58 Locale_Deinitialize();
60 return RETURN_ERROR;
62 else
64 D(bug("screenmode preferences: couldn't create application"));
67 Locale_Deinitialize();
69 return RETURN_OK;