}
}
-// SetNeedsDisplay would not invalidate the children
-
-//
-// Databrowser
-//
-
-OSStatus wxMacControl::SetSelectionFlags( DataBrowserSelectionFlags options )
-{
- return SetDataBrowserSelectionFlags( m_controlRef , options ) ;
-}
-
-OSStatus wxMacControl::AddListViewColumn( DataBrowserListViewColumnDesc *columnDesc,
- DataBrowserTableViewColumnIndex position )
-{
- return AddDataBrowserListViewColumn( m_controlRef , columnDesc, position ) ;
-}
-
-OSStatus wxMacControl::AutoSizeListViewColumns()
-{
- return AutoSizeDataBrowserListViewColumns(m_controlRef) ;
-}
-
-OSStatus wxMacControl::SetHasScrollBars( bool horiz , bool vert )
-{
- return SetDataBrowserHasScrollBars( m_controlRef , horiz , vert ) ;
-}
-
-OSStatus wxMacControl::SetTableViewHiliteStyle( DataBrowserTableViewHiliteStyle hiliteStyle )
-{
- return SetDataBrowserTableViewHiliteStyle( m_controlRef , hiliteStyle ) ;
-}
-
-OSStatus wxMacControl::SetListViewHeaderBtnHeight(UInt16 height)
-{
- return SetDataBrowserListViewHeaderBtnHeight( m_controlRef ,height ) ;
-}
-
-OSStatus wxMacControl::SetCallbacks(const DataBrowserCallbacks * callbacks)
-{
- return SetDataBrowserCallbacks( m_controlRef , callbacks ) ;
-}
-
-OSStatus wxMacControl::UpdateItems( DataBrowserItemID container, UInt32 numItems,
- const DataBrowserItemID* items,
- DataBrowserPropertyID preSortProperty,
- DataBrowserPropertyID propertyID )
-{
- return UpdateDataBrowserItems( m_controlRef , container, numItems, items, preSortProperty, propertyID ) ;
-}
-
-bool wxMacControl::IsItemSelected( DataBrowserItemID item )
-{
- return IsDataBrowserItemSelected( m_controlRef , item ) ;
-}
-
-OSStatus wxMacControl::AddItems( DataBrowserItemID container, UInt32 numItems,
- const DataBrowserItemID* items,
- DataBrowserPropertyID preSortProperty )
-{
- return AddDataBrowserItems( m_controlRef , container, numItems, items, preSortProperty ) ;
-}
-
-OSStatus wxMacControl::RemoveItems( DataBrowserItemID container, UInt32 numItems,
- const DataBrowserItemID* items,
- DataBrowserPropertyID preSortProperty )
-{
- return RemoveDataBrowserItems( m_controlRef , container, numItems, items, preSortProperty ) ;
-}
-
-OSStatus wxMacControl::RevealItem( DataBrowserItemID item,
- DataBrowserPropertyID propertyID,
- DataBrowserRevealOptions options )
-{
- return RevealDataBrowserItem( m_controlRef , item , propertyID , options ) ;
-}
-
-OSStatus wxMacControl::SetSelectedItems(UInt32 numItems,
- const DataBrowserItemID * items,
- DataBrowserSetOption operation )
-{
- return SetDataBrowserSelectedItems( m_controlRef , numItems , items, operation ) ;
-}
-
-OSStatus wxMacControl::GetSelectionAnchor( DataBrowserItemID * first, DataBrowserItemID * last )
-{
- return GetDataBrowserSelectionAnchor( m_controlRef , first , last ) ;
-}
-
//
// Tab Control
//
}
#endif
+wxMacPortSaver::wxMacPortSaver( GrafPtr port )
+{
+ ::GetPort( &m_port ) ;
+ ::SetPort( port ) ;
+}
+
+wxMacPortSaver::~wxMacPortSaver()
+{
+ ::SetPort( m_port ) ;
+}
+
#endif // wxUSE_GUI