Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
wxcompat.hh
1 #ifndef WXCOMPAT_HH
2 #define WXCOMPAT_HH
3 
4 /// This file defines a few stable wx commands for functions that have changed over
5 /// different wx version
6 
7 #if wxCHECK_VERSION(2, 9, 0)
8  #define WXCOMPAT_wxFD_SAVE wxFD_SAVE
9  #define WXCOMPAT_wxFD_OPEN wxFD_OPEN
10  #define WXCOMPAT_wxFD_MULTIPLE wxFD_MULTIPLE
11  #define WXCOMPAT_wxFD_FILE_MUST_EXIST wxFD_FILE_MUST_EXIST
12  #define WXCOMPAT_wxFD_OVERWRITE_PROMPT wxFD_OVERWRITE_PROMPT
13  #define WXCOMPAT_wxBitmapToggleButton wxBitmapToggleButton
14  #define WXCOMPAT_ScW_OnPaint(event) HandleOnPaint(event)
15  #define WXCOMPAT_DC_OK IsOk
16 #else
17  #define WXCOMPAT_wxFD_SAVE wxSAVE
18  #define WXCOMPAT_wxFD_OPEN wxOPEN
19  #define WXCOMPAT_wxFD_MULTIPLE wxMULTIPLE
20  #define WXCOMPAT_wxFD_FILE_MUST_EXIST wxFILE_MUST_EXIST
21  #define WXCOMPAT_wxFD_OVERWRITE_PROMPT wxOVERWRITE_PROMPT
22  #define WXCOMPAT_wxBitmapToggleButton wxToggleBitmapButton
23  #define WXCOMPAT_ScW_OnPaint(event) OnPaint(event)
24  #define WXCOMPAT_DC_OK Ok
25 #endif
26 
27 #endif // WXCOMPAT_HH