Remove ObjcPose.h since nothing is using it anymore.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,67 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: wx/cocoa/ObjcPose.h
|
|
||||||
// Purpose: Macros for initializing poseAs, among other things
|
|
||||||
// Author: David Elliott
|
|
||||||
// Modified by:
|
|
||||||
// Created: 2002/12/03
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) 2002 David Elliott <dfe@cox.net>
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifndef __WX_COCOA_PRIVATE_POSER_H__
|
|
||||||
#define __WX_COCOA_PRIVATE_POSER_H__
|
|
||||||
|
|
||||||
/*-------------------------------------------------------------------------
|
|
||||||
Objective-C Poser class initialization
|
|
||||||
-------------------------------------------------------------------------*/
|
|
||||||
#ifdef __OBJC__
|
|
||||||
#import <objc/objc-class.h>
|
|
||||||
#import <Foundation/NSObjCRuntime.h>
|
|
||||||
|
|
||||||
class wxPoseAsInitializer
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxPoseAsInitializer()
|
|
||||||
: m_next(sm_first)
|
|
||||||
{
|
|
||||||
sm_first = this;
|
|
||||||
}
|
|
||||||
virtual ~wxPoseAsInitializer()
|
|
||||||
{
|
|
||||||
sm_first = m_next;
|
|
||||||
}
|
|
||||||
static void InitializePosers()
|
|
||||||
{
|
|
||||||
while(sm_first)
|
|
||||||
{
|
|
||||||
delete sm_first;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
protected:
|
|
||||||
wxPoseAsInitializer *m_next;
|
|
||||||
static wxPoseAsInitializer *sm_first;
|
|
||||||
};
|
|
||||||
|
|
||||||
class wxDummyForPoseAsInitializer
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxDummyForPoseAsInitializer(void*) {}
|
|
||||||
};
|
|
||||||
|
|
||||||
#define WX_IMPLEMENT_POSER(poser) \
|
|
||||||
class wxPoseAsInitializerFor##poser: public wxPoseAsInitializer \
|
|
||||||
{ \
|
|
||||||
protected: \
|
|
||||||
virtual ~wxPoseAsInitializerFor##poser() \
|
|
||||||
{ \
|
|
||||||
class_poseAs([poser class],[poser superclass]); \
|
|
||||||
} \
|
|
||||||
}; \
|
|
||||||
wxDummyForPoseAsInitializer wxDummyPoseAsInitializerFor##poser(new wxPoseAsInitializerFor##poser)
|
|
||||||
|
|
||||||
#else // __OBJC__
|
|
||||||
#warning "Objective-C++ Only!"
|
|
||||||
#endif // __OBJC__
|
|
||||||
|
|
||||||
#endif // __WX_COCOA_PRIVATE_POSER_H__
|
|
@@ -16,7 +16,6 @@
|
|||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
#include "wx/cocoa/NSMenu.h"
|
#include "wx/cocoa/NSMenu.h"
|
||||||
#include "wx/cocoa/ObjcPose.h"
|
|
||||||
|
|
||||||
#import <Foundation/NSNotification.h>
|
#import <Foundation/NSNotification.h>
|
||||||
#include "wx/cocoa/objc/NSMenu.h"
|
#include "wx/cocoa/objc/NSMenu.h"
|
||||||
|
@@ -22,8 +22,6 @@
|
|||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
#include "wx/cocoa/ObjcPose.h"
|
|
||||||
|
|
||||||
#include "wx/cocoa/NSTableDataSource.h"
|
#include "wx/cocoa/NSTableDataSource.h"
|
||||||
#include "wx/cocoa/NSTableView.h"
|
#include "wx/cocoa/NSTableView.h"
|
||||||
#import <AppKit/NSTableView.h>
|
#import <AppKit/NSTableView.h>
|
||||||
|
@@ -22,7 +22,6 @@
|
|||||||
#include "wx/window.h"
|
#include "wx/window.h"
|
||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
#include "wx/cocoa/ObjcPose.h"
|
|
||||||
#include "wx/cocoa/NSView.h"
|
#include "wx/cocoa/NSView.h"
|
||||||
|
|
||||||
#import <Foundation/NSNotification.h>
|
#import <Foundation/NSNotification.h>
|
||||||
|
@@ -23,7 +23,6 @@
|
|||||||
#include "wx/menuitem.h"
|
#include "wx/menuitem.h"
|
||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
#include "wx/cocoa/ObjcPose.h"
|
|
||||||
#include "wx/cocoa/NSWindow.h"
|
#include "wx/cocoa/NSWindow.h"
|
||||||
|
|
||||||
#import <Foundation/NSNotification.h>
|
#import <Foundation/NSNotification.h>
|
||||||
|
@@ -22,7 +22,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/cocoa/ObjcRef.h"
|
#include "wx/cocoa/ObjcRef.h"
|
||||||
#include "wx/cocoa/ObjcPose.h"
|
|
||||||
#include "wx/cocoa/autorelease.h"
|
#include "wx/cocoa/autorelease.h"
|
||||||
#include "wx/cocoa/mbarman.h"
|
#include "wx/cocoa/mbarman.h"
|
||||||
#include "wx/cocoa/NSApplication.h"
|
#include "wx/cocoa/NSApplication.h"
|
||||||
@@ -38,11 +37,6 @@
|
|||||||
// wxNSApplicationObserver singleton.
|
// wxNSApplicationObserver singleton.
|
||||||
static wxObjcAutoRefFromAlloc<wxNSApplicationObserver*> sg_cocoaAppObserver = [[wxNSApplicationObserver alloc] init];
|
static wxObjcAutoRefFromAlloc<wxNSApplicationObserver*> sg_cocoaAppObserver = [[wxNSApplicationObserver alloc] init];
|
||||||
|
|
||||||
// ========================================================================
|
|
||||||
// wxPoseAsInitializer
|
|
||||||
// ========================================================================
|
|
||||||
wxPoseAsInitializer *wxPoseAsInitializer::sm_first = NULL;
|
|
||||||
|
|
||||||
// ========================================================================
|
// ========================================================================
|
||||||
// wxNSApplicationDelegate
|
// wxNSApplicationDelegate
|
||||||
// ========================================================================
|
// ========================================================================
|
||||||
@@ -131,10 +125,6 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Posing must be completed before any instances of the Objective-C
|
|
||||||
// classes being posed as are created.
|
|
||||||
wxPoseAsInitializer::InitializePosers();
|
|
||||||
|
|
||||||
return wxAppBase::Initialize(argc, argv);
|
return wxAppBase::Initialize(argc, argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -86,8 +86,6 @@
|
|||||||
#include "wx/app.h"
|
#include "wx/app.h"
|
||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
#include "wx/cocoa/ObjcPose.h"
|
|
||||||
|
|
||||||
#import <AppKit/NSComboBox.h>
|
#import <AppKit/NSComboBox.h>
|
||||||
#import <Foundation/NSNotification.h>
|
#import <Foundation/NSNotification.h>
|
||||||
#import <Foundation/NSString.h>
|
#import <Foundation/NSString.h>
|
||||||
|
@@ -30,7 +30,6 @@
|
|||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/cocoa/ObjcPose.h"
|
|
||||||
#include "wx/cocoa/autorelease.h"
|
#include "wx/cocoa/autorelease.h"
|
||||||
#include "wx/cocoa/string.h"
|
#include "wx/cocoa/string.h"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user