2 Copyright © 2010, 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>
16 #include <proto/utility.h>
17 #include <proto/dos.h>
19 #include <stdlib.h> /* for exit() */
23 #include <intuition/intuition.h>
24 #include <intuition/gadgetclass.h>
26 #include <libraries/mui.h>
27 #include <zune/systemprefswindow.h>
29 #include <prefs/palette.h>
32 #include "paleditor.h"
37 #include <aros/debug.h>
39 #define VERSION "$VER: Palette 1.1 (04.11.2011) AROS Dev Team"
40 /*********************************************************************************************/
42 int main(int argc
, char **argv
)
50 if (ReadArguments(argc
, argv
))
52 if (ARG(USE
) || ARG(SAVE
))
54 Prefs_HandleArgs((STRPTR
)ARG(FROM
), ARG(USE
), ARG(SAVE
));
58 application
= (Object
*)ApplicationObject
,
59 MUIA_Application_Title
, __(MSG_WINTITLE
),
60 MUIA_Application_Version
, (IPTR
) VERSION
,
61 MUIA_Application_Description
, __(MSG_WINTITLE
),
62 MUIA_Application_Base
, (IPTR
) "PALETTEPREF",
63 SubWindow
, (IPTR
)(window
= (Object
*)SystemPrefsWindowObject
,
64 MUIA_Window_ID
, ID_PALT
,
65 WindowContents
, (IPTR
) PalEditorObject
,
70 if (application
!= NULL
)
72 SET(window
, MUIA_Window_Open
, TRUE
);
73 DoMethod(application
, MUIM_Application_Execute
);
75 MUI_DisposeObject(application
);
81 Locale_Deinitialize();
85 /*********************************************************************************************/