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