]> git.saurik.com Git - wxWidgets.git/blame - include/wx/univ/chkconf.h
Better fix
[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
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"
17# else
18# undef wxUSE_POPUPWIN
19# define wxUSE_POPUPWIN 1
20# endif
21#endif
22
23#if wxUSE_COMBOBOX
24# if !wxUSE_LISTBOX
25# ifdef wxABORT_ON_CONFIG_ERROR
26# error "wxComboBox requires wxListBox in wxUniversal"
27# else
28# undef wxUSE_LISTBOX
29# define wxUSE_LISTBOX 1
30# endif
31# endif
32#endif /* wxUSE_COMBOBOX */
33
34#if wxUSE_RADIOBTN
35# if !wxUSE_CHECKBOX
36# ifdef wxABORT_ON_CONFIG_ERROR
37# error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
38# else
39# undef wxUSE_CHECKBOX
40# define wxUSE_CHECKBOX 1
41# endif
42# endif
43#endif /* wxUSE_RADIOBTN */
44
45#if wxUSE_TEXTCTRL
46# if !wxUSE_CARET
47# ifdef wxABORT_ON_CONFIG_ERROR
48# error "wxTextCtrl requires wxCaret in wxUniversal"
49# else
50# undef wxUSE_CARET
51# define wxUSE_CARET 1
52# endif
53# endif /* wxUSE_CARET */
54
55# if !wxUSE_SCROLLBAR
56# ifdef wxABORT_ON_CONFIG_ERROR
57# error "wxTextCtrl requires wxScrollBar in wxUniversal"
58# else
59# undef wxUSE_SCROLLBAR
60# define wxUSE_SCROLLBAR 1
61# endif
62# endif /* wxUSE_SCROLLBAR */
63#endif /* wxUSE_TEXTCTRL */
64
65
66/* Themes checks */
67#ifndef wxUSE_ALL_THEMES
68# ifdef wxABORT_ON_CONFIG_ERROR
69# error "wxUSE_ALL_THEMES must be defined"
70# else
71# define wxUSE_ALL_THEMES 1
72# endif
73#endif /* wxUSE_ALL_THEMES */
74
75#ifndef wxUSE_THEME_GTK
76# ifdef wxABORT_ON_CONFIG_ERROR
77# error "wxUSE_THEME_GTK must be defined"
78# else
79# define wxUSE_THEME_GTK 1
80# endif
81#endif /* wxUSE_THEME_GTK */
82
83#ifndef wxUSE_THEME_METAL
84# ifdef wxABORT_ON_CONFIG_ERROR
85# error "wxUSE_THEME_METAL must be defined"
86# else
87# define wxUSE_THEME_METAL 1
88# endif
89#endif /* wxUSE_THEME_METAL */
90
91#ifndef wxUSE_THEME_MONO
92# ifdef wxABORT_ON_CONFIG_ERROR
93# error "wxUSE_THEME_MONO must be defined"
94# else
95# define wxUSE_THEME_MONO 1
96# endif
97#endif /* wxUSE_THEME_MONO */
98
99#ifndef wxUSE_THEME_WIN32
100# ifdef wxABORT_ON_CONFIG_ERROR
101# error "wxUSE_THEME_WIN32 must be defined"
102# else
103# define wxUSE_THEME_WIN32 1
104# endif
105#endif /* wxUSE_THEME_WIN32 */
106
107#if !wxUSE_ALL_THEMES && wxUSE_THEME_METAL && !wxUSE_THEME_WIN32
108# ifdef wxABORT_ON_CONFIG_ERROR
109# error "Metal theme requires Win32 one"
110# else
111# undef wxUSE_THEME_WIN32
112# define wxUSE_THEME_WIN32 1
113# endif
114#endif /* wxUSE_THEME_METAL && !wxUSE_THEME_WIN32 */
115
116#endif /* _WX_UNIV_CHKCONF_H_ */
117