]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/chkconf.h
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)
6 // Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_UNIV_CHKCONF_H_
11 #define _WX_UNIV_CHKCONF_H_
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.
20 #undef wxUSE_OWNER_DRAWN
21 #define wxUSE_OWNER_DRAWN 0
22 #endif /* wxUSE_OWNER_DRAWN */
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"
28 # undef wxUSE_POPUPWIN
29 # define wxUSE_POPUPWIN 1
35 # ifdef wxABORT_ON_CONFIG_ERROR
36 # error "wxComboBox requires wxListBox in wxUniversal"
39 # define wxUSE_LISTBOX 1
42 #endif /* wxUSE_COMBOBOX */
46 # ifdef wxABORT_ON_CONFIG_ERROR
47 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
49 # undef wxUSE_CHECKBOX
50 # define wxUSE_CHECKBOX 1
53 #endif /* wxUSE_RADIOBTN */
57 # ifdef wxABORT_ON_CONFIG_ERROR
58 # error "wxTextCtrl requires wxCaret in wxUniversal"
61 # define wxUSE_CARET 1
63 # endif /* wxUSE_CARET */
66 # ifdef wxABORT_ON_CONFIG_ERROR
67 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
69 # undef wxUSE_SCROLLBAR
70 # define wxUSE_SCROLLBAR 1
72 # endif /* wxUSE_SCROLLBAR */
73 #endif /* wxUSE_TEXTCTRL */
77 #ifndef wxUSE_ALL_THEMES
78 # ifdef wxABORT_ON_CONFIG_ERROR
79 # error "wxUSE_ALL_THEMES must be defined"
81 # define wxUSE_ALL_THEMES 1
83 #endif /* wxUSE_ALL_THEMES */
85 #ifndef wxUSE_THEME_GTK
86 # ifdef wxABORT_ON_CONFIG_ERROR
87 # error "wxUSE_THEME_GTK must be defined"
89 # define wxUSE_THEME_GTK 1
91 #endif /* wxUSE_THEME_GTK */
93 #ifndef wxUSE_THEME_METAL
94 # ifdef wxABORT_ON_CONFIG_ERROR
95 # error "wxUSE_THEME_METAL must be defined"
97 # define wxUSE_THEME_METAL 1
99 #endif /* wxUSE_THEME_METAL */
101 #ifndef wxUSE_THEME_MONO
102 # ifdef wxABORT_ON_CONFIG_ERROR
103 # error "wxUSE_THEME_MONO must be defined"
105 # define wxUSE_THEME_MONO 1
107 #endif /* wxUSE_THEME_MONO */
109 #ifndef wxUSE_THEME_WIN32
110 # ifdef wxABORT_ON_CONFIG_ERROR
111 # error "wxUSE_THEME_WIN32 must be defined"
113 # define wxUSE_THEME_WIN32 1
115 #endif /* wxUSE_THEME_WIN32 */
117 #if !wxUSE_ALL_THEMES && wxUSE_THEME_METAL && !wxUSE_THEME_WIN32
118 # ifdef wxABORT_ON_CONFIG_ERROR
119 # error "Metal theme requires Win32 one"
121 # undef wxUSE_THEME_WIN32
122 # define wxUSE_THEME_WIN32 1
124 #endif /* wxUSE_THEME_METAL && !wxUSE_THEME_WIN32 */
126 #endif /* _WX_UNIV_CHKCONF_H_ */