]>
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_ 
  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. 
  21     #undef wxUSE_OWNER_DRAWN 
  22     #define wxUSE_OWNER_DRAWN 0 
  23 #endif /* wxUSE_OWNER_DRAWN */ 
  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" 
  29 #        undef wxUSE_POPUPWIN 
  30 #        define wxUSE_POPUPWIN 1 
  36 #        ifdef wxABORT_ON_CONFIG_ERROR 
  37 #            error "wxComboBox requires wxListBox in wxUniversal" 
  40 #            define wxUSE_LISTBOX 1 
  43 #endif /* wxUSE_COMBOBOX */ 
  47 #        ifdef wxABORT_ON_CONFIG_ERROR 
  48 #            error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal" 
  50 #            undef wxUSE_CHECKBOX 
  51 #            define wxUSE_CHECKBOX 1 
  54 #endif /* wxUSE_RADIOBTN */ 
  58 #        ifdef wxABORT_ON_CONFIG_ERROR 
  59 #            error "wxTextCtrl requires wxCaret in wxUniversal" 
  62 #            define wxUSE_CARET 1 
  64 #    endif /* wxUSE_CARET */ 
  67 #        ifdef wxABORT_ON_CONFIG_ERROR 
  68 #            error "wxTextCtrl requires wxScrollBar in wxUniversal" 
  70 #            undef wxUSE_SCROLLBAR 
  71 #            define wxUSE_SCROLLBAR 1 
  73 #    endif /* wxUSE_SCROLLBAR */ 
  74 #endif /* wxUSE_TEXTCTRL */ 
  78 #ifndef wxUSE_ALL_THEMES 
  79 #   ifdef wxABORT_ON_CONFIG_ERROR 
  80 #       error "wxUSE_ALL_THEMES must be defined" 
  82 #       define wxUSE_ALL_THEMES 1 
  84 #endif /* wxUSE_ALL_THEMES */ 
  86 #ifndef wxUSE_THEME_GTK 
  87 #   ifdef wxABORT_ON_CONFIG_ERROR 
  88 #       error "wxUSE_THEME_GTK must be defined" 
  90 #       define wxUSE_THEME_GTK 1 
  92 #endif /* wxUSE_THEME_GTK */ 
  94 #ifndef wxUSE_THEME_METAL 
  95 #   ifdef wxABORT_ON_CONFIG_ERROR 
  96 #       error "wxUSE_THEME_METAL must be defined" 
  98 #       define wxUSE_THEME_METAL 1 
 100 #endif /* wxUSE_THEME_METAL */ 
 102 #ifndef wxUSE_THEME_MONO 
 103 #   ifdef wxABORT_ON_CONFIG_ERROR 
 104 #       error "wxUSE_THEME_MONO must be defined" 
 106 #       define wxUSE_THEME_MONO 1 
 108 #endif /* wxUSE_THEME_MONO */ 
 110 #ifndef wxUSE_THEME_WIN32 
 111 #   ifdef wxABORT_ON_CONFIG_ERROR 
 112 #       error "wxUSE_THEME_WIN32 must be defined" 
 114 #       define wxUSE_THEME_WIN32 1 
 116 #endif /* wxUSE_THEME_WIN32 */ 
 118 #if !wxUSE_ALL_THEMES && wxUSE_THEME_METAL && !wxUSE_THEME_WIN32 
 119 #   ifdef wxABORT_ON_CONFIG_ERROR 
 120 #       error "Metal theme requires Win32 one" 
 122 #       undef wxUSE_THEME_WIN32 
 123 #       define wxUSE_THEME_WIN32 1 
 125 #endif /* wxUSE_THEME_METAL && !wxUSE_THEME_WIN32 */ 
 127 #endif /* _WX_UNIV_CHKCONF_H_ */