Debian Codegraph @

src/af/xap/xp/xap_Features.h

raw
1 /* AbiSource Application Framework
2 * Copyright (c) 2004 Hubert Figuiere
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301 USA.
18 */
19
20 /*
21 * Port to Maemo Development Platform
22 * Author: INdT - Renato Araujo <[email protected]>
23 */
24
25
26 #ifndef __XAP_FEATURES_H__
27 #define __XAP_FEATURES_H__
28
29 #ifdef HAVE_CONFIG_H
30 #include "config.h"
31 #endif
32
33 #ifdef TOOLKIT_COCOA
34 # include "xap_CocoaFeatures.h"
35 #elif defined(TOOLKIT_WIN)
36 # include "xap_Win32Features.h"
37 #elif defined(TOOLKIT_GTK_ALL)
38 # include "xap_UnixFeatures.h"
39 #endif
40
41 #if defined(EMBEDDED_TARGET)
42 # include "xap_EmbeddedFeatures.h"
43 #endif
44
45
46
47 /**
48 Quartz don't like XOR drawing. So choose an alternate method.
49 But since X11 don't like altenate method, we have to keep XOR in the code.
50
51 Platforms: pick up the one you prefer. By defautl XOR since it worked since
52 */
53 #ifndef XAP_DONTUSE_XOR
54 # define XAP_DONTUSE_XOR 0
55 #endif
56
57 /**
58 On MacOS (X), apps can be open without any window so we should allow this.
59 This require some heavy changes to the framework. Disabled by default.
60 */
61 #ifndef XAP_SINGLE_XAPAPP
62 # define XAP_SINGLE_XAPAPP 0
63 #endif
64
65
66 /**
67 Tell if we must not ask before exiting AbiWord (quit)
68 */
69 #ifndef XAP_DONT_CONFIRM_QUIT
70 # define XAP_DONT_CONFIRM_QUIT 0
71 #endif
72
73
74 /**
75 Define to 1 if you don't inline XPMs into code but load them from disk files.
76 MacOS X store them as PNG inside the bundle.
77
78 In the future, this should be 1 for UNIX as well.
79 */
80 #ifndef XAP_DONT_INLINE_XPM
81 # define XAP_DONT_INLINE_XPM 0
82 #endif
83
84 /**
85 Define to 1 if Preferences should be under Tool
86 XAP_PREFSMENU_UNDER_TOOLS
87 */
88 #ifndef XAP_PREFSMENU_UNDER_TOOLS
89 # define XAP_PREFSMENU_UNDER_TOOLS 0
90 #endif
91
92 #endif