fixing compiles under certain flags
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -39,10 +39,6 @@ END_EVENT_TABLE()
|
|||||||
#pragma mark -
|
#pragma mark -
|
||||||
#pragma mark Tool Implementation
|
#pragma mark Tool Implementation
|
||||||
|
|
||||||
#if wxOSX_USE_COCOA
|
|
||||||
#define wxOSX_USE_NATIVE_TOOLBAR 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// private classes
|
// private classes
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -162,6 +158,7 @@ public:
|
|||||||
|
|
||||||
void UpdateLabel()
|
void UpdateLabel()
|
||||||
{
|
{
|
||||||
|
#if wxOSX_USE_NATIVE_TOOLBAR
|
||||||
if ( m_toolbarItem )
|
if ( m_toolbarItem )
|
||||||
{
|
{
|
||||||
// strip mnemonics from the label for compatibility with the usual
|
// strip mnemonics from the label for compatibility with the usual
|
||||||
@@ -174,6 +171,7 @@ public:
|
|||||||
wxCFStringRef sh( GetShortHelp(), GetToolBarFontEncoding() );
|
wxCFStringRef sh( GetShortHelp(), GetToolBarFontEncoding() );
|
||||||
[m_toolbarItem setToolTip:sh.AsNSString()];
|
[m_toolbarItem setToolTip:sh.AsNSString()];
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Action()
|
void Action()
|
||||||
@@ -256,6 +254,8 @@ private:
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if wxOSX_USE_NATIVE_TOOLBAR
|
||||||
|
|
||||||
@interface wxNSToolbarItem : NSToolbarItem
|
@interface wxNSToolbarItem : NSToolbarItem
|
||||||
{
|
{
|
||||||
wxToolBarTool* impl;
|
wxToolBarTool* impl;
|
||||||
@@ -284,6 +284,8 @@ private:
|
|||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@interface wxNSToolBarButton : NSButton
|
@interface wxNSToolBarButton : NSButton
|
||||||
{
|
{
|
||||||
@@ -298,6 +300,8 @@ private:
|
|||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
#if wxOSX_USE_NATIVE_TOOLBAR
|
||||||
|
|
||||||
@implementation wxNSToolbarItem
|
@implementation wxNSToolbarItem
|
||||||
|
|
||||||
- (id)initWithItemIdentifier: (NSString*) identifier
|
- (id)initWithItemIdentifier: (NSString*) identifier
|
||||||
@@ -374,6 +378,8 @@ private:
|
|||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
@implementation wxNSToolBarButton
|
@implementation wxNSToolBarButton
|
||||||
|
|
||||||
- (id)initWithFrame:(NSRect)frame
|
- (id)initWithFrame:(NSRect)frame
|
||||||
|
@@ -60,7 +60,9 @@ wxGLContext::~wxGLContext()
|
|||||||
IMPLEMENT_CLASS(wxGLCanvas, wxWindow)
|
IMPLEMENT_CLASS(wxGLCanvas, wxWindow)
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(wxGLCanvas, wxWindow)
|
BEGIN_EVENT_TABLE(wxGLCanvas, wxWindow)
|
||||||
|
#if wxOSX_USE_CARBON
|
||||||
EVT_SIZE(wxGLCanvas::OnSize)
|
EVT_SIZE(wxGLCanvas::OnSize)
|
||||||
|
#endif
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
wxGLCanvas::wxGLCanvas(wxWindow *parent,
|
wxGLCanvas::wxGLCanvas(wxWindow *parent,
|
||||||
|
Reference in New Issue
Block a user