]>
Commit | Line | Data |
---|---|---|
4353a8df VZ |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/univ/chkconf.h | |
3 | // Purpose: wxUniversal-specific configuration options checks | |
4 | // Author: Vadim Zeitlin | |
5 | // Created: 2006-09-28 (extracted from wx/chkconf.h) | |
4353a8df VZ |
6 | // Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org> |
7 | // Licence: wxWindows licence | |
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | #ifndef _WX_UNIV_CHKCONF_H_ | |
11 | #define _WX_UNIV_CHKCONF_H_ | |
12 | ||
aedb3881 VZ |
13 | #if wxUSE_OWNER_DRAWN |
14 | /* | |
15 | It is not clear if owner-drawn code makes much sense for wxUniv in the | |
16 | first place but in any case it doesn't link currently (at least under | |
17 | wxMSW but probably elsewhere too) as there is no wxUniv-specific | |
18 | wxOwnerDrawnBase implementation so disable it for now. | |
19 | */ | |
20 | #undef wxUSE_OWNER_DRAWN | |
21 | #define wxUSE_OWNER_DRAWN 0 | |
22 | #endif /* wxUSE_OWNER_DRAWN */ | |
23 | ||
4353a8df VZ |
24 | #if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN |
25 | # ifdef wxABORT_ON_CONFIG_ERROR | |
26 | # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus" | |
27 | # else | |
28 | # undef wxUSE_POPUPWIN | |
29 | # define wxUSE_POPUPWIN 1 | |
30 | # endif | |
31 | #endif | |
32 | ||
33 | #if wxUSE_COMBOBOX | |
34 | # if !wxUSE_LISTBOX | |
35 | # ifdef wxABORT_ON_CONFIG_ERROR | |
36 | # error "wxComboBox requires wxListBox in wxUniversal" | |
37 | # else | |
38 | # undef wxUSE_LISTBOX | |
39 | # define wxUSE_LISTBOX 1 | |
40 | # endif | |
41 | # endif | |
42 | #endif /* wxUSE_COMBOBOX */ | |
43 | ||
44 | #if wxUSE_RADIOBTN | |
45 | # if !wxUSE_CHECKBOX | |
46 | # ifdef wxABORT_ON_CONFIG_ERROR | |
47 | # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal" | |
48 | # else | |
49 | # undef wxUSE_CHECKBOX | |
50 | # define wxUSE_CHECKBOX 1 | |
51 | # endif | |
52 | # endif | |
53 | #endif /* wxUSE_RADIOBTN */ | |
54 | ||
55 | #if wxUSE_TEXTCTRL | |
56 | # if !wxUSE_CARET | |
57 | # ifdef wxABORT_ON_CONFIG_ERROR | |
58 | # error "wxTextCtrl requires wxCaret in wxUniversal" | |
59 | # else | |
60 | # undef wxUSE_CARET | |
61 | # define wxUSE_CARET 1 | |
62 | # endif | |
63 | # endif /* wxUSE_CARET */ | |
64 | ||
65 | # if !wxUSE_SCROLLBAR | |
66 | # ifdef wxABORT_ON_CONFIG_ERROR | |
67 | # error "wxTextCtrl requires wxScrollBar in wxUniversal" | |
68 | # else | |
69 | # undef wxUSE_SCROLLBAR | |
70 | # define wxUSE_SCROLLBAR 1 | |
71 | # endif | |
72 | # endif /* wxUSE_SCROLLBAR */ | |
73 | #endif /* wxUSE_TEXTCTRL */ | |
74 | ||
75 | ||
76 | /* Themes checks */ | |
77 | #ifndef wxUSE_ALL_THEMES | |
78 | # ifdef wxABORT_ON_CONFIG_ERROR | |
79 | # error "wxUSE_ALL_THEMES must be defined" | |
80 | # else | |
81 | # define wxUSE_ALL_THEMES 1 | |
82 | # endif | |
83 | #endif /* wxUSE_ALL_THEMES */ | |
84 | ||
85 | #ifndef wxUSE_THEME_GTK | |
86 | # ifdef wxABORT_ON_CONFIG_ERROR | |
87 | # error "wxUSE_THEME_GTK must be defined" | |
88 | # else | |
89 | # define wxUSE_THEME_GTK 1 | |
90 | # endif | |
91 | #endif /* wxUSE_THEME_GTK */ | |
92 | ||
93 | #ifndef wxUSE_THEME_METAL | |
94 | # ifdef wxABORT_ON_CONFIG_ERROR | |
95 | # error "wxUSE_THEME_METAL must be defined" | |
96 | # else | |
97 | # define wxUSE_THEME_METAL 1 | |
98 | # endif | |
99 | #endif /* wxUSE_THEME_METAL */ | |
100 | ||
101 | #ifndef wxUSE_THEME_MONO | |
102 | # ifdef wxABORT_ON_CONFIG_ERROR | |
103 | # error "wxUSE_THEME_MONO must be defined" | |
104 | # else | |
105 | # define wxUSE_THEME_MONO 1 | |
106 | # endif | |
107 | #endif /* wxUSE_THEME_MONO */ | |
108 | ||
109 | #ifndef wxUSE_THEME_WIN32 | |
110 | # ifdef wxABORT_ON_CONFIG_ERROR | |
111 | # error "wxUSE_THEME_WIN32 must be defined" | |
112 | # else | |
113 | # define wxUSE_THEME_WIN32 1 | |
114 | # endif | |
115 | #endif /* wxUSE_THEME_WIN32 */ | |
116 | ||
117 | #if !wxUSE_ALL_THEMES && wxUSE_THEME_METAL && !wxUSE_THEME_WIN32 | |
118 | # ifdef wxABORT_ON_CONFIG_ERROR | |
119 | # error "Metal theme requires Win32 one" | |
120 | # else | |
121 | # undef wxUSE_THEME_WIN32 | |
122 | # define wxUSE_THEME_WIN32 1 | |
123 | # endif | |
124 | #endif /* wxUSE_THEME_METAL && !wxUSE_THEME_WIN32 */ | |
125 | ||
126 | #endif /* _WX_UNIV_CHKCONF_H_ */ | |
127 |