2015-04-07 20:19:05 -04:00
|
|
|
/**
|
|
|
|
* Common header for widget classes
|
2015-04-07 17:08:28 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef WX_COMMON_H
|
|
|
|
#define WX_COMMON_H
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
2015-06-12 16:50:27 -04:00
|
|
|
// Disable annoying warning
|
2015-05-27 11:37:02 -04:00
|
|
|
#ifndef __WXMAC__
|
|
|
|
#pragma clang diagnostic push
|
|
|
|
#pragma clang diagnostic ignored "-Wpotentially-evaluated-expression"
|
|
|
|
#endif
|
|
|
|
|
2015-04-07 17:08:28 -04:00
|
|
|
#ifdef WX_PRECOMP
|
|
|
|
#include "wx_pch.h"
|
|
|
|
#endif
|
|
|
|
#ifndef WX_PRECOMP
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#endif
|
|
|
|
|
2015-05-12 16:30:22 -04:00
|
|
|
// Common helpers/functionality
|
|
|
|
#include <wx/debug.h>
|
2015-06-12 16:50:27 -04:00
|
|
|
#include <wx/utils.h>
|
|
|
|
#include <wx/version.h>
|
2015-05-12 16:30:22 -04:00
|
|
|
#include <wx/cmdline.h>
|
|
|
|
#include <wx/config.h>
|
2015-06-12 16:50:27 -04:00
|
|
|
#include <wx/font.h>
|
2015-04-10 15:11:15 -04:00
|
|
|
#include <wx/stdpaths.h>
|
2015-06-12 16:50:27 -04:00
|
|
|
#include <wx/platinfo.h>
|
2015-04-10 15:11:15 -04:00
|
|
|
#include <wx/filename.h>
|
2015-04-16 09:37:20 -04:00
|
|
|
#include <wx/artprov.h>
|
2015-04-10 15:11:15 -04:00
|
|
|
|
2015-05-27 11:37:02 -04:00
|
|
|
#ifndef __WXMAC__
|
|
|
|
#pragma clang diagnostic pop
|
|
|
|
#endif
|
|
|
|
|
2015-06-12 16:50:27 -04:00
|
|
|
// Define a check for font-control bug
|
|
|
|
// in wxWidgets < 3.0.3 and OS X >= 10.10
|
|
|
|
static inline bool HAS_FONT_BUG()
|
|
|
|
{
|
|
|
|
#ifndef __WXMAC__
|
|
|
|
return false;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if wxCHECK_VERSION(3,0,3)
|
|
|
|
return false;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
wxPlatformInfo info;
|
|
|
|
return (info.GetOSMajorVersion() == 10 && info.GetOSMinorVersion() > 9);
|
|
|
|
}
|
|
|
|
|
2015-05-12 16:30:22 -04:00
|
|
|
// Tyro-specific variables
|
2015-04-09 17:16:28 -04:00
|
|
|
#include "definitions.h"
|
|
|
|
|
2015-04-07 17:08:28 -04:00
|
|
|
#endif /* WX_COMMON_H */
|
|
|
|
|