]>
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)
7 // Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_UNIV_CHKCONF_H_
12 #define _WX_UNIV_CHKCONF_H_
14 #if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
15 # ifdef wxABORT_ON_CONFIG_ERROR
16 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
18 # undef wxUSE_POPUPWIN
19 # define wxUSE_POPUPWIN 1
25 # ifdef wxABORT_ON_CONFIG_ERROR
26 # error "wxComboBox requires wxListBox in wxUniversal"
29 # define wxUSE_LISTBOX 1
32 #endif /* wxUSE_COMBOBOX */
36 # ifdef wxABORT_ON_CONFIG_ERROR
37 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
39 # undef wxUSE_CHECKBOX
40 # define wxUSE_CHECKBOX 1
43 #endif /* wxUSE_RADIOBTN */
47 # ifdef wxABORT_ON_CONFIG_ERROR
48 # error "wxTextCtrl requires wxCaret in wxUniversal"
51 # define wxUSE_CARET 1
53 # endif /* wxUSE_CARET */
56 # ifdef wxABORT_ON_CONFIG_ERROR
57 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
59 # undef wxUSE_SCROLLBAR
60 # define wxUSE_SCROLLBAR 1
62 # endif /* wxUSE_SCROLLBAR */
63 #endif /* wxUSE_TEXTCTRL */
67 #ifndef wxUSE_ALL_THEMES
68 # ifdef wxABORT_ON_CONFIG_ERROR
69 # error "wxUSE_ALL_THEMES must be defined"
71 # define wxUSE_ALL_THEMES 1
73 #endif /* wxUSE_ALL_THEMES */
75 #ifndef wxUSE_THEME_GTK
76 # ifdef wxABORT_ON_CONFIG_ERROR
77 # error "wxUSE_THEME_GTK must be defined"
79 # define wxUSE_THEME_GTK 1
81 #endif /* wxUSE_THEME_GTK */
83 #ifndef wxUSE_THEME_METAL
84 # ifdef wxABORT_ON_CONFIG_ERROR
85 # error "wxUSE_THEME_METAL must be defined"
87 # define wxUSE_THEME_METAL 1
89 #endif /* wxUSE_THEME_METAL */
91 #ifndef wxUSE_THEME_MONO
92 # ifdef wxABORT_ON_CONFIG_ERROR
93 # error "wxUSE_THEME_MONO must be defined"
95 # define wxUSE_THEME_MONO 1
97 #endif /* wxUSE_THEME_MONO */
99 #ifndef wxUSE_THEME_WIN32
100 # ifdef wxABORT_ON_CONFIG_ERROR
101 # error "wxUSE_THEME_WIN32 must be defined"
103 # define wxUSE_THEME_WIN32 1
105 #endif /* wxUSE_THEME_WIN32 */
107 #if !wxUSE_ALL_THEMES && wxUSE_THEME_METAL && !wxUSE_THEME_WIN32
108 # ifdef wxABORT_ON_CONFIG_ERROR
109 # error "Metal theme requires Win32 one"
111 # undef wxUSE_THEME_WIN32
112 # define wxUSE_THEME_WIN32 1
114 #endif /* wxUSE_THEME_METAL && !wxUSE_THEME_WIN32 */
116 #endif /* _WX_UNIV_CHKCONF_H_ */