added wxUSE_HEADERCTRL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -619,6 +619,14 @@
|
||||
# endif
|
||||
#endif /* !defined(wxUSE_GRID) */
|
||||
|
||||
#ifndef wxUSE_HEADERCTRL
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxUSE_HEADERCTRL must be defined."
|
||||
# else
|
||||
# define wxUSE_HEADERCTRL 0
|
||||
# endif
|
||||
#endif /* !defined(wxUSE_HEADERCTRL) */
|
||||
|
||||
#ifndef wxUSE_HELP
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxUSE_HELP must be defined."
|
||||
@@ -627,6 +635,14 @@
|
||||
# endif
|
||||
#endif /* !defined(wxUSE_HELP) */
|
||||
|
||||
#ifndef wxUSE_HEADERCTRL
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxUSE_HEADERCTRL must be defined."
|
||||
# else
|
||||
# define wxUSE_HEADERCTRL 0
|
||||
# endif
|
||||
#endif /* !defined(wxUSE_HEADERCTRL) */
|
||||
|
||||
#ifndef wxUSE_HYPERLINKCTRL
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxUSE_HYPERLINKCTRL must be defined."
|
||||
@@ -1305,11 +1321,13 @@
|
||||
wxUSE_CHOICE || \
|
||||
wxUSE_GAUGE || \
|
||||
wxUSE_GRID || \
|
||||
wxUSE_HEADERCTRL || \
|
||||
wxUSE_LISTBOX || \
|
||||
wxUSE_LISTCTRL || \
|
||||
wxUSE_NOTEBOOK || \
|
||||
wxUSE_RADIOBOX || \
|
||||
wxUSE_RADIOBTN || \
|
||||
wxUSE_REARRANGECTRL || \
|
||||
wxUSE_SCROLLBAR || \
|
||||
wxUSE_SLIDER || \
|
||||
wxUSE_SPINBTN || \
|
||||
@@ -1407,13 +1425,26 @@
|
||||
|
||||
#if !wxUSE_ODCOMBOBOX
|
||||
# if wxUSE_BITMAPCOMBOBOX
|
||||
# error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
|
||||
# else
|
||||
# undef wxUSE_BITMAPCOMBOBOX
|
||||
# define wxUSE_BITMAPCOMBOBOX 0
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
|
||||
# else
|
||||
# undef wxUSE_BITMAPCOMBOBOX
|
||||
# define wxUSE_BITMAPCOMBOBOX 0
|
||||
# endif
|
||||
# endif
|
||||
#endif /* !wxUSE_ODCOMBOBOX */
|
||||
|
||||
#if !wxUSE_HEADERCTRL
|
||||
# if wxUSE_DATAVIEWCTRL || wxUSE_GRID
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxDataViewCtrl and wxGrid require wxHeaderCtrl"
|
||||
# else
|
||||
# undef wxUSE_HEADERCTRL
|
||||
# define wxUSE_HEADERCTRL 1
|
||||
# endif
|
||||
# endif
|
||||
#endif /* !wxUSE_HEADERCTRL */
|
||||
|
||||
/* don't attempt to use native status bar on the platforms not having it */
|
||||
#ifndef wxUSE_NATIVE_STATUSBAR
|
||||
# define wxUSE_NATIVE_STATUSBAR 0
|
||||
|
@@ -13,6 +13,8 @@
|
||||
|
||||
#include "wx/bitmap.h"
|
||||
|
||||
#if wxUSE_HEADERCTRL
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// constants
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -268,5 +270,8 @@ private:
|
||||
bool m_sort,
|
||||
m_sortAscending;
|
||||
};
|
||||
|
||||
#endif // wxUSE_HEADERCTRL
|
||||
|
||||
#endif // _WX_HEADERCOL_H_
|
||||
|
||||
|
@@ -13,6 +13,8 @@
|
||||
|
||||
#include "wx/control.h"
|
||||
|
||||
#if wxUSE_HEADERCTRL
|
||||
|
||||
#include "wx/dynarray.h"
|
||||
#include "wx/vector.h"
|
||||
|
||||
@@ -461,4 +463,6 @@ typedef void (wxEvtHandler::*wxHeaderCtrlEventFunction)(wxHeaderCtrlEvent&);
|
||||
|
||||
#define EVT_HEADER_DRAGGING_CANCELLED(id, fn) wx__DECLARE_HEADER_EVT(DRAGGING_CANCELLED, id, fn)
|
||||
|
||||
#endif // wxUSE_HEADERCTRL
|
||||
|
||||
#endif // _WX_HEADERCTRL_H_
|
||||
|
@@ -691,6 +691,7 @@
|
||||
#define wxUSE_FILEPICKERCTRL 1 // wxFilePickerCtrl
|
||||
#define wxUSE_FONTPICKERCTRL 1 // wxFontPickerCtrl
|
||||
#define wxUSE_GAUGE 1 // wxGauge
|
||||
#define wxUSE_HEADERCTRL 1 // wxHeaderCtrl
|
||||
#define wxUSE_HYPERLINKCTRL 1 // wxHyperlinkCtrl
|
||||
#define wxUSE_LISTBOX 1 // wxListBox
|
||||
#define wxUSE_LISTCTRL 1 // wxListCtrl
|
||||
|
@@ -691,6 +691,7 @@
|
||||
#define wxUSE_FILEPICKERCTRL 1 // wxFilePickerCtrl
|
||||
#define wxUSE_FONTPICKERCTRL 1 // wxFontPickerCtrl
|
||||
#define wxUSE_GAUGE 1 // wxGauge
|
||||
#define wxUSE_HEADERCTRL 1 // wxHeaderCtrl
|
||||
#define wxUSE_HYPERLINKCTRL 1 // wxHyperlinkCtrl
|
||||
#define wxUSE_LISTBOX 1 // wxListBox
|
||||
#define wxUSE_LISTCTRL 1 // wxListCtrl
|
||||
|
@@ -691,6 +691,7 @@
|
||||
#define wxUSE_FILEPICKERCTRL 1 // wxFilePickerCtrl
|
||||
#define wxUSE_FONTPICKERCTRL 1 // wxFontPickerCtrl
|
||||
#define wxUSE_GAUGE 1 // wxGauge
|
||||
#define wxUSE_HEADERCTRL 1 // wxHeaderCtrl
|
||||
#define wxUSE_HYPERLINKCTRL 1 // wxHyperlinkCtrl
|
||||
#define wxUSE_LISTBOX 1 // wxListBox
|
||||
#define wxUSE_LISTCTRL 1 // wxListCtrl
|
||||
|
@@ -691,6 +691,7 @@
|
||||
#define wxUSE_FILEPICKERCTRL 1 // wxFilePickerCtrl
|
||||
#define wxUSE_FONTPICKERCTRL 1 // wxFontPickerCtrl
|
||||
#define wxUSE_GAUGE 1 // wxGauge
|
||||
#define wxUSE_HEADERCTRL 1 // wxHeaderCtrl
|
||||
#define wxUSE_HYPERLINKCTRL 1 // wxHyperlinkCtrl
|
||||
#define wxUSE_LISTBOX 1 // wxListBox
|
||||
#define wxUSE_LISTCTRL 1 // wxListCtrl
|
||||
|
@@ -692,6 +692,7 @@
|
||||
#define wxUSE_FILEPICKERCTRL 1 // wxFilePickerCtrl
|
||||
#define wxUSE_FONTPICKERCTRL 1 // wxFontPickerCtrl
|
||||
#define wxUSE_GAUGE 1 // wxGauge
|
||||
#define wxUSE_HEADERCTRL 1 // wxHeaderCtrl
|
||||
#define wxUSE_HYPERLINKCTRL 1 // wxHyperlinkCtrl
|
||||
#define wxUSE_LISTBOX 1 // wxListBox
|
||||
#define wxUSE_LISTCTRL 1 // wxListCtrl
|
||||
|
@@ -691,6 +691,7 @@
|
||||
#define wxUSE_FILEPICKERCTRL 1 // wxFilePickerCtrl
|
||||
#define wxUSE_FONTPICKERCTRL 1 // wxFontPickerCtrl
|
||||
#define wxUSE_GAUGE 1 // wxGauge
|
||||
#define wxUSE_HEADERCTRL 1 // wxHeaderCtrl
|
||||
#define wxUSE_HYPERLINKCTRL 1 // wxHyperlinkCtrl
|
||||
#define wxUSE_LISTBOX 1 // wxListBox
|
||||
#define wxUSE_LISTCTRL 1 // wxListCtrl
|
||||
|
@@ -687,6 +687,7 @@
|
||||
#define wxUSE_FILEPICKERCTRL 1 // wxFilePickerCtrl
|
||||
#define wxUSE_FONTPICKERCTRL 1 // wxFontPickerCtrl
|
||||
#define wxUSE_GAUGE 1 // wxGauge
|
||||
#define wxUSE_HEADERCTRL 1 // wxHeaderCtrl
|
||||
#define wxUSE_HYPERLINKCTRL 1 // wxHyperlinkCtrl
|
||||
#define wxUSE_LISTBOX 1 // wxListBox
|
||||
#define wxUSE_LISTCTRL 1 // wxListCtrl
|
||||
|
@@ -690,6 +690,7 @@
|
||||
#define wxUSE_FILEPICKERCTRL 1 // wxFilePickerCtrl
|
||||
#define wxUSE_FONTPICKERCTRL 1 // wxFontPickerCtrl
|
||||
#define wxUSE_GAUGE 1 // wxGauge
|
||||
#define wxUSE_HEADERCTRL 1 // wxHeaderCtrl
|
||||
#define wxUSE_HYPERLINKCTRL 1 // wxHyperlinkCtrl
|
||||
#define wxUSE_LISTBOX 1 // wxListBox
|
||||
#define wxUSE_LISTCTRL 1 // wxListCtrl
|
||||
|
Reference in New Issue
Block a user