#if wxUSE_GUI
#include "wx/listbox.h"
+#include "wx/mac/carbon/dc.h"
+#include "wx/mac/carbon/dcclient.h"
+#include "wx/mac/carbon/dcmemory.h"
class WXDLLEXPORT wxMacCGContextStateSaver
{
typedef wxMacUPP<NMProcPtr,NMUPP,NewNMUPP,DisposeNMUPP> wxMacNMUPP;
-template <typename refType> class wxMacCFRefHolder
-{
-public :
- wxMacCFRefHolder()
- : m_ref(NULL) , m_release(false)
- {
- }
-
- wxMacCFRefHolder( refType ref , bool release = true )
- : m_ref(ref) , m_release(release)
- {
- }
-
- ~wxMacCFRefHolder()
- {
- Release();
- }
-
- void Release()
- {
- if ( m_release && m_ref != NULL )
- CFRelease( m_ref );
- m_ref = NULL;
- }
-
- refType Detach()
- {
- refType val = m_ref;
- m_release = false;
- m_ref = NULL;
- return val;
- }
-
- void Set( refType ref , bool release = true )
- {
- Release();
- m_release = release;
- m_ref = ref;
- }
-
- operator refType () const { return m_ref; }
-
- wxMacCFRefHolder& operator=(refType r)
- {
- Set( r );
- return *this;
- }
-private :
- refType m_ref;
- bool m_release;
-
- DECLARE_NO_COPY_CLASS( wxMacCFRefHolder )
-};
-
#if wxUSE_GUI
class wxMacToolTipTimer ;
#if wxUSE_TIMER
wxMacToolTipTimer* m_timer ;
#endif
- wxMacCFStringHolder m_helpTextRef ;
+ wxCFStringRef m_helpTextRef ;
} ;
// Quartz
protected :
wxString m_label;
- wxMacCFStringHolder m_cfLabel;
+ wxCFStringRef m_cfLabel;
void * m_data;
SInt32 m_order;
DataBrowserPropertyID m_colId;