1 /****************************************************************************
3 * preferences.h -- Lunapaint, *
4 * http://developer.berlios.de/projects/lunapaintami/ *
5 * Copyright (C) 2006, 2007, Hogne Titlestad <hogga@sub-ether.org> *
6 * Copyright (C) 2009-2011 LunaPaint Development Team *
8 * This program is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation; either version 2 of the License, or *
11 * (at your option) any later version. *
13 * This program is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU General Public License for more details. *
18 * You should have received a copy of the GNU General Public License *
19 * along with this program; if not, write to the Free Software Foundation, *
20 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
22 ****************************************************************************/
24 #ifndef _preferences_h_
25 #define _preferences_h_
31 #include "aros/aros.h"
34 #include <exec/types.h>
35 #include <libraries/asl.h>
36 #include <libraries/mui.h>
37 #include <cybergraphx/cybergraphics.h>
40 #include <proto/exec.h>
41 #include <proto/intuition.h>
42 #include <proto/gadtools.h>
43 #include <proto/muimaster.h>
44 #include <proto/graphics.h>
45 #include <proto/cybergraphics.h>
46 #include <proto/iffparse.h>
47 #include <clib/alib_protos.h>
49 #include <prefs/prefhdr.h>
52 #include <aros/debug.h>
58 #define ID_LUNAPAINT MAKE_ID('L','U','N','A')
59 #define SCREENMODE_TYPE_WORKBENCH 0
60 #define SCREENMODE_TYPE_CLONE 1
61 #define SCREENMODE_TYPE_OWN 2
63 extern struct Hook PrefsHandler_hook
;
65 extern Object
*PrefsWindow
; // The prefs window
66 extern Object
*PrefsScrnMdType
; // Screen mode type
67 extern Object
*PrefsLayBackMode
; // Layer background mode
68 extern Object
*PrefsBtnUse
; // Use button
69 extern Object
*PrefsBtnSave
; // Save button
70 extern Object
*PrefsBtnCancel
; // Cancel button
71 extern Object
*PrefsCycScrType
; // Screen type cycle
74 void Init_PrefsWindow ( );
77 Save program preferences
79 BOOL
savePreferences ( );
82 Load program preferences
84 BOOL
loadPreferences ( );