mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
Import r67258 of the wxWidgets trunk, which I expect will before
long become wxWidgets 2.9.2, which in turn is expected to be the last 2.9 release before the 3.0 stable release. Since the full wxWidgets distribution is rather large, I have imported only the parts that we use, on a subdirectory basis: art include/wx/*.* include/wx/aui include/wx/cocoa include/wx/generic include/wx/gtk include/wx/meta include/wx/msw include/wx/osx include/wx/persist include/wx/private include/wx/protocol include/wx/unix src/aui src/common src/generic src/gtk src/msw src/osx src/unix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7380 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
60
Externals/wxWidgets3/include/wx/osx/carbon/chkconf.h
vendored
Normal file
60
Externals/wxWidgets3/include/wx/osx/carbon/chkconf.h
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Name: wx/osx/carbon/chkconf.h
|
||||
* Purpose: Compiler-specific configuration checking
|
||||
* Author: Julian Smart
|
||||
* Modified by:
|
||||
* Created: 01/02/97
|
||||
* RCS-ID: $Id: chkconf.h 61926 2009-09-14 13:07:23Z SC $
|
||||
* Copyright: (c) Julian Smart
|
||||
* Licence: wxWindows licence
|
||||
*/
|
||||
|
||||
#ifndef _WX_OSX_CARBON_CHKCONF_H_
|
||||
#define _WX_OSX_CARBON_CHKCONF_H_
|
||||
|
||||
/*
|
||||
* native (1) or emulated (0) toolbar
|
||||
* also support old notation wxMAC_USE_NATIVE_TOOLBAR
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#ifdef wxMAC_USE_NATIVE_TOOLBAR
|
||||
#define wxOSX_USE_NATIVE_TOOLBAR wxMAC_USE_NATIVE_TOOLBAR
|
||||
#endif
|
||||
|
||||
#ifndef wxOSX_USE_NATIVE_TOOLBAR
|
||||
#define wxOSX_USE_NATIVE_TOOLBAR 1
|
||||
#endif
|
||||
|
||||
/*
|
||||
* text rendering system
|
||||
*/
|
||||
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
|
||||
|
||||
#define wxOSX_USE_CORE_TEXT 1
|
||||
// MLTE-TextControl uses ATSU
|
||||
#define wxOSX_USE_ATSU_TEXT 1
|
||||
|
||||
#else // platform < 10.5
|
||||
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
|
||||
#define wxOSX_USE_CORE_TEXT 1
|
||||
#else
|
||||
#define wxOSX_USE_CORE_TEXT 0
|
||||
#endif
|
||||
#define wxOSX_USE_ATSU_TEXT 1
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Audio System
|
||||
*/
|
||||
|
||||
#define wxOSX_USE_QUICKTIME 1
|
||||
#define wxOSX_USE_AUDIOTOOLBOX 0
|
||||
|
||||
#endif
|
||||
/* _WX_OSX_CARBON_CHKCONF_H_ */
|
||||
|
479
Externals/wxWidgets3/include/wx/osx/carbon/dataview.h
vendored
Normal file
479
Externals/wxWidgets3/include/wx/osx/carbon/dataview.h
vendored
Normal file
@ -0,0 +1,479 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/osx/carbon/dataview.h
|
||||
// Purpose: wxDataViewCtrl native implementation header for carbon
|
||||
// Author:
|
||||
// Id: $Id: dataview.h 57374 2009-01-27
|
||||
// Copyright: (c) 2009
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_DATAVIEWCTRL_CARBON_H_
|
||||
#define _WX_DATAVIEWCTRL_CARBON_H_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_GUI
|
||||
|
||||
#include "wx/osx/core/dataview.h"
|
||||
#include "wx/osx/private.h"
|
||||
|
||||
// ============================================================================
|
||||
// wxDataViewColumnNativeData
|
||||
// ============================================================================
|
||||
class wxDataViewColumnNativeData
|
||||
{
|
||||
public:
|
||||
//
|
||||
// constructors / destructor
|
||||
//
|
||||
wxDataViewColumnNativeData()
|
||||
{
|
||||
}
|
||||
wxDataViewColumnNativeData(DataBrowserPropertyID initPropertyID)
|
||||
:m_PropertyID(initPropertyID)
|
||||
{
|
||||
}
|
||||
|
||||
//
|
||||
// data access methods
|
||||
//
|
||||
DataBrowserPropertyID GetPropertyID() const
|
||||
{
|
||||
return m_PropertyID;
|
||||
}
|
||||
|
||||
void SetPropertyID(DataBrowserPropertyID newPropertyID)
|
||||
{
|
||||
m_PropertyID = newPropertyID;
|
||||
}
|
||||
|
||||
protected:
|
||||
private:
|
||||
//
|
||||
// variables
|
||||
//
|
||||
DataBrowserPropertyID m_PropertyID; // each column is identified by its unique property ID (NOT by the column's index)
|
||||
};
|
||||
|
||||
// ============================================================================
|
||||
// wxDataViewRendererNativeData
|
||||
// ============================================================================
|
||||
class wxDataViewRendererNativeData
|
||||
{
|
||||
public:
|
||||
//
|
||||
// constructors / destructor
|
||||
//
|
||||
wxDataViewRendererNativeData()
|
||||
{
|
||||
}
|
||||
wxDataViewRendererNativeData(DataBrowserPropertyType initPropertyType, DataBrowserItemDataRef initItemDataRef=NULL)
|
||||
:m_ItemDataRef(initItemDataRef), m_PropertyType(initPropertyType)
|
||||
{
|
||||
}
|
||||
|
||||
//
|
||||
// data access methods
|
||||
//
|
||||
DataBrowserItemDataRef GetItemDataRef() const
|
||||
{
|
||||
return m_ItemDataRef;
|
||||
}
|
||||
DataBrowserPropertyType GetPropertyType() const
|
||||
{
|
||||
return m_PropertyType;
|
||||
}
|
||||
|
||||
void SetItemDataRef(DataBrowserItemDataRef newItemDataRef)
|
||||
{
|
||||
m_ItemDataRef = newItemDataRef;
|
||||
}
|
||||
void SetPropertyType(DataBrowserPropertyType newPropertyType)
|
||||
{
|
||||
m_PropertyType = newPropertyType;
|
||||
}
|
||||
|
||||
protected:
|
||||
private:
|
||||
//
|
||||
// variables
|
||||
//
|
||||
DataBrowserItemDataRef m_ItemDataRef;
|
||||
|
||||
DataBrowserPropertyType m_PropertyType;
|
||||
};
|
||||
|
||||
// ============================================================================
|
||||
// wxMacDataBrowserTableViewControl
|
||||
// ============================================================================
|
||||
//
|
||||
// This is a wrapper class for the Mac OS X data browser environment.
|
||||
// It covers all data brower functionality for the native browser's list
|
||||
// and column style.
|
||||
//
|
||||
|
||||
// data browser's property IDs have a reserved ID range from 0 - 1023
|
||||
// therefore, the first usable property ID is 'kMinPropertyID'
|
||||
DataBrowserPropertyID const kMinPropertyID = 1024;
|
||||
|
||||
// array of data browser item IDs
|
||||
WX_DEFINE_ARRAY_SIZE_T(size_t,wxArrayDataBrowserItemID);
|
||||
|
||||
class wxMacDataBrowserTableViewControl : public wxMacControl
|
||||
{
|
||||
public:
|
||||
//
|
||||
// constructors / destructor
|
||||
//
|
||||
wxMacDataBrowserTableViewControl(wxWindow* peer, const wxPoint& pos, const wxSize& size, long style);
|
||||
wxMacDataBrowserTableViewControl()
|
||||
{
|
||||
}
|
||||
~wxMacDataBrowserTableViewControl();
|
||||
|
||||
//
|
||||
// callback handling
|
||||
//
|
||||
OSStatus SetCallbacks (DataBrowserCallbacks const* callbacks);
|
||||
OSStatus SetCustomCallbacks(DataBrowserCustomCallbacks const* customCallbacks);
|
||||
|
||||
//
|
||||
// DnD handling
|
||||
//
|
||||
OSStatus EnableAutomaticDragTracking(bool enable=true);
|
||||
|
||||
//
|
||||
// header handling
|
||||
//
|
||||
OSStatus GetHeaderDesc(DataBrowserPropertyID property, DataBrowserListViewHeaderDesc* desc) const;
|
||||
|
||||
OSStatus SetHeaderDesc(DataBrowserPropertyID property, DataBrowserListViewHeaderDesc* desc);
|
||||
|
||||
//
|
||||
// layout handling
|
||||
//
|
||||
OSStatus AutoSizeColumns();
|
||||
|
||||
OSStatus EnableCellSizeModification(bool enableHeight=true, bool enableWidth=true); // enables or disables the column width and row height modification (default: false)
|
||||
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
|
||||
OSStatus GetAttributes (OptionBits* attributes);
|
||||
#endif
|
||||
OSStatus GetColumnWidth (DataBrowserPropertyID column, UInt16 *width ) const; // returns the column width in pixels
|
||||
OSStatus GetDefaultColumnWidth(UInt16 *width ) const; // returns the default column width in pixels
|
||||
OSStatus GetDefaultRowHeight (UInt16 * height ) const;
|
||||
OSStatus GetHeaderButtonHeight(UInt16 *height );
|
||||
OSStatus GetPartBounds (DataBrowserItemID item, DataBrowserPropertyID property, DataBrowserPropertyPart part, Rect* bounds);
|
||||
OSStatus GetRowHeight (DataBrowserItemID item , UInt16 *height) const;
|
||||
OSStatus GetScrollPosition (UInt32* top, UInt32 *left) const;
|
||||
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
|
||||
OSStatus SetAttributes (OptionBits attributes);
|
||||
#endif
|
||||
OSStatus SetColumnWidth(DataBrowserPropertyID column, UInt16 width); // sets the column width in pixels
|
||||
OSStatus SetDefaultColumnWidth( UInt16 width );
|
||||
OSStatus SetDefaultRowHeight( UInt16 height );
|
||||
OSStatus SetHasScrollBars( bool horiz, bool vert );
|
||||
OSStatus SetHeaderButtonHeight( UInt16 height );
|
||||
OSStatus SetHiliteStyle(DataBrowserTableViewHiliteStyle hiliteStyle);
|
||||
OSStatus SetIndent(float Indent);
|
||||
OSStatus SetItemRowHeight( DataBrowserItemID item , UInt16 height);
|
||||
OSStatus SetScrollPosition( UInt32 top , UInt32 left );
|
||||
|
||||
//
|
||||
// column handling
|
||||
//
|
||||
OSStatus GetColumnCount (UInt32* numColumns) const;
|
||||
OSStatus GetColumnIndex (DataBrowserPropertyID propertyID, DataBrowserTableViewColumnIndex* index) const; // returns for the passed property the corresponding column index
|
||||
OSStatus GetFreePropertyID(DataBrowserPropertyID* propertyID) const; // this method returns a property id that is valid and currently not used; if it cannot be found 'errDataBrowerPropertyNotSupported' is returned
|
||||
OSStatus GetPropertyFlags (DataBrowserPropertyID propertyID, DataBrowserPropertyFlags *flags ) const;
|
||||
OSStatus GetPropertyID (DataBrowserItemDataRef itemData, DataBrowserPropertyID* propertyID) const; // returns for the passed item data reference the corresponding property ID
|
||||
OSStatus GetPropertyID (DataBrowserTableViewColumnIndex index, DataBrowserPropertyID* propertyID) const; // returns for the passed column index the corresponding property ID
|
||||
|
||||
OSStatus IsUsedPropertyID(DataBrowserPropertyID propertyID) const; // checks if passed property id is used by the control; no error is returned if the id exists
|
||||
|
||||
OSStatus RemoveColumnByProperty(DataBrowserTableViewColumnID propertyID);
|
||||
OSStatus RemoveColumnByIndex (DataBrowserTableViewColumnIndex index);
|
||||
|
||||
OSStatus SetColumnIndex (DataBrowserPropertyID propertyID, DataBrowserTableViewColumnIndex index);
|
||||
OSStatus SetDisclosureColumn(DataBrowserPropertyID propertyID, Boolean expandableRows=false);
|
||||
OSStatus SetPropertyFlags (DataBrowserPropertyID propertyID, DataBrowserPropertyFlags flags);
|
||||
|
||||
//
|
||||
// item handling
|
||||
//
|
||||
OSStatus AddItem(DataBrowserItemID container, DataBrowserItemID const* itemID) // adds a single item
|
||||
{
|
||||
return AddItems(container,1,itemID,kDataBrowserItemNoProperty);
|
||||
}
|
||||
OSStatus AddItems(DataBrowserItemID container, UInt32 numItems, DataBrowserItemID const* items, DataBrowserPropertyID preSortProperty); // adds items to the data browser
|
||||
|
||||
OSStatus GetFreeItemID(DataBrowserItemID* id) const; // this method returns an item id that is valid and currently not used; if it cannot be found 'errDataBrowserItemNotAdded' is returned
|
||||
OSStatus GetItemCount (ItemCount* numItems) const
|
||||
{
|
||||
return GetItemCount(kDataBrowserNoItem,true,kDataBrowserItemAnyState,numItems);
|
||||
}
|
||||
OSStatus GetItemCount (DataBrowserItemID container, Boolean recurse, DataBrowserItemState state, ItemCount* numItems) const;
|
||||
OSStatus GetItemID (DataBrowserTableViewRowIndex row, DataBrowserItemID* item) const;
|
||||
OSStatus GetItems (DataBrowserItemID container, Boolean recurse, DataBrowserItemState state, Handle items) const;
|
||||
OSStatus GetItemRow (DataBrowserItemID item, DataBrowserTableViewRowIndex* row) const;
|
||||
OSStatus GetItemState (DataBrowserItemID item, DataBrowserItemState* state) const;
|
||||
|
||||
OSStatus IsUsedItemID(DataBrowserItemID itemID) const; // checks if the passed id is in use
|
||||
|
||||
OSStatus RevealItem(DataBrowserItemID item, DataBrowserPropertyID propertyID, DataBrowserRevealOptions options) const;
|
||||
|
||||
OSStatus RemoveItem(DataBrowserItemID container, DataBrowserItemID const* itemID) // removes a single item
|
||||
{
|
||||
return RemoveItems(container,1,itemID,kDataBrowserItemNoProperty);
|
||||
}
|
||||
OSStatus RemoveItems(void) // removes all items
|
||||
{
|
||||
return RemoveItems(kDataBrowserNoItem,0,NULL,kDataBrowserItemNoProperty);
|
||||
}
|
||||
OSStatus RemoveItems(DataBrowserItemID container, UInt32 numItems, DataBrowserItemID const* items, DataBrowserPropertyID preSortProperty);
|
||||
|
||||
OSStatus UpdateItem(DataBrowserItemID container, DataBrowserItemID const* item) // updates all columns of the passed item
|
||||
{
|
||||
return UpdateItems(container,1,item,kDataBrowserItemNoProperty,kDataBrowserItemNoProperty);
|
||||
}
|
||||
OSStatus UpdateItems(void) // updates all items
|
||||
{
|
||||
return UpdateItems(kDataBrowserNoItem,0,NULL,kDataBrowserItemNoProperty,kDataBrowserItemNoProperty);
|
||||
}
|
||||
OSStatus UpdateItems(DataBrowserItemID container, UInt32 numItems, DataBrowserItemID const* items, DataBrowserPropertyID preSortProperty, DataBrowserPropertyID propertyID) const;
|
||||
|
||||
//
|
||||
// item selection
|
||||
//
|
||||
size_t GetSelectedItemIDs(wxArrayDataBrowserItemID& itemIDs) const; // returns the number of selected item and the item IDs in the array
|
||||
OSStatus GetSelectionAnchor(DataBrowserItemID *first, DataBrowserItemID *last) const;
|
||||
OSStatus GetSelectionFlags (DataBrowserSelectionFlags* flags) const;
|
||||
|
||||
bool IsItemSelected(DataBrowserItemID item) const;
|
||||
|
||||
OSStatus SetSelectionFlags(DataBrowserSelectionFlags flags);
|
||||
OSStatus SetSelectedItems (UInt32 numItems, DataBrowserItemID const* itemIDs, DataBrowserSetOption operation);
|
||||
|
||||
//
|
||||
// item sorting
|
||||
//
|
||||
OSStatus GetSortOrder (DataBrowserSortOrder* order) const;
|
||||
OSStatus GetSortProperty(DataBrowserPropertyID* propertyID) const;
|
||||
|
||||
OSStatus Resort(DataBrowserItemID container=kDataBrowserNoItem, Boolean sortChildren=true);
|
||||
|
||||
OSStatus SetSortOrder (DataBrowserSortOrder order);
|
||||
OSStatus SetSortProperty(DataBrowserPropertyID propertyID);
|
||||
|
||||
//
|
||||
// container handling
|
||||
//
|
||||
OSStatus CloseContainer(DataBrowserItemID containerID);
|
||||
|
||||
OSStatus OpenContainer(DataBrowserItemID containerID);
|
||||
|
||||
protected :
|
||||
//
|
||||
// standard callback functions
|
||||
//
|
||||
static pascal Boolean DataBrowserCompareProc (ControlRef browser, DataBrowserItemID itemOneID, DataBrowserItemID itemTwoID, DataBrowserPropertyID sortProperty);
|
||||
static pascal void DataBrowserGetContextualMenuProc(ControlRef browser, MenuRef* menu, UInt32* helpType, CFStringRef* helpItemString, AEDesc* selection);
|
||||
static pascal OSStatus DataBrowserGetSetItemDataProc (ControlRef browser, DataBrowserItemID itemID, DataBrowserPropertyID property, DataBrowserItemDataRef itemData, Boolean getValue);
|
||||
static pascal void DataBrowserItemNotificationProc (ControlRef browser, DataBrowserItemID itemID, DataBrowserItemNotification message, DataBrowserItemDataRef itemData);
|
||||
|
||||
virtual Boolean DataBrowserCompareProc (DataBrowserItemID itemOneID, DataBrowserItemID itemTwoID, DataBrowserPropertyID sortProperty) = 0;
|
||||
virtual void DataBrowserGetContextualMenuProc(MenuRef* menu, UInt32* helpType, CFStringRef* helpItemString, AEDesc* selection) = 0;
|
||||
virtual OSStatus DataBrowserGetSetItemDataProc (DataBrowserItemID itemID, DataBrowserPropertyID property, DataBrowserItemDataRef itemData, Boolean getValue) = 0;
|
||||
virtual void DataBrowserItemNotificationProc (DataBrowserItemID itemID, DataBrowserItemNotification message, DataBrowserItemDataRef itemData) = 0;
|
||||
|
||||
//
|
||||
// callback functions for customized types
|
||||
//
|
||||
static pascal void DataBrowserDrawItemProc(ControlRef browser, DataBrowserItemID itemID, DataBrowserPropertyID propertyID, DataBrowserItemState state, Rect const* rectangle, SInt16 bitDepth, Boolean colorDevice);
|
||||
static pascal Boolean DataBrowserEditItemProc(ControlRef browser, DataBrowserItemID itemID, DataBrowserPropertyID propertyID, CFStringRef theString, Rect* maxEditTextRect, Boolean* shrinkToFit);
|
||||
static pascal Boolean DataBrowserHitTestProc (ControlRef browser, DataBrowserItemID itemID, DataBrowserPropertyID propertyID, Rect const* theRect, Rect const* mouseRect);
|
||||
static pascal DataBrowserTrackingResult DataBrowserTrackingProc(ControlRef browser, DataBrowserItemID itemID, DataBrowserPropertyID propertyID, Rect const* theRect, Point startPt, EventModifiers modifiers);
|
||||
|
||||
virtual void DataBrowserDrawItemProc(DataBrowserItemID itemID, DataBrowserPropertyID propertyID, DataBrowserItemState state, Rect const* rectangle, SInt16 bitDepth, Boolean colorDevice) = 0;
|
||||
virtual Boolean DataBrowserEditItemProc(DataBrowserItemID itemID, DataBrowserPropertyID propertyID, CFStringRef theString, Rect* maxEditTextRect, Boolean* shrinkToFit) = 0;
|
||||
virtual Boolean DataBrowserHitTestProc (DataBrowserItemID itemID, DataBrowserPropertyID propertyID, Rect const* theRect, Rect const* mouseRect) = 0;
|
||||
virtual DataBrowserTrackingResult DataBrowserTrackingProc(DataBrowserItemID itemID, DataBrowserPropertyID propertyID, Rect const* theRect, Point startPt, EventModifiers modifiers) = 0;
|
||||
|
||||
//
|
||||
// callback functions for drag & drop
|
||||
///
|
||||
static pascal Boolean DataBrowserAcceptDragProc (ControlRef browser, DragReference dragRef, DataBrowserItemID itemID);
|
||||
static pascal Boolean DataBrowserAddDragItemProc(ControlRef browser, DragReference dragRef, DataBrowserItemID itemID, ItemReference* itemRef);
|
||||
static pascal Boolean DataBrowserReceiveDragProc(ControlRef browser, DragReference dragRef, DataBrowserItemID itemID);
|
||||
|
||||
virtual Boolean DataBrowserAcceptDragProc (DragReference dragRef, DataBrowserItemID itemID) = 0;
|
||||
virtual Boolean DataBrowserAddDragItemProc(DragReference dragRef, DataBrowserItemID itemID, ItemReference* itemRef) = 0;
|
||||
virtual Boolean DataBrowserReceiveDragProc(DragReference dragRef, DataBrowserItemID itemID) = 0;
|
||||
|
||||
//
|
||||
// event handler for hit testing
|
||||
///
|
||||
void* m_macDataViewCtrlEventHandler;
|
||||
|
||||
private:
|
||||
//
|
||||
// wxWidget internal stuff
|
||||
//
|
||||
DECLARE_ABSTRACT_CLASS(wxMacDataBrowserTableViewControl)
|
||||
};
|
||||
|
||||
// ============================================================================
|
||||
// wxMacDataBrowserListViewControl
|
||||
// ============================================================================
|
||||
//
|
||||
// This class is a wrapper for the native browser's list view style. It expands
|
||||
// the inherited functionality of the table view control class.
|
||||
// The term list view is in this case Mac OS X specific and is not related
|
||||
// to any wxWidget naming conventions.
|
||||
//
|
||||
class wxMacDataBrowserListViewControl : public wxMacDataBrowserTableViewControl
|
||||
{
|
||||
public:
|
||||
//
|
||||
// constructors / destructor
|
||||
//
|
||||
wxMacDataBrowserListViewControl(wxWindow* peer, wxPoint const& pos, wxSize const& size, long style) : wxMacDataBrowserTableViewControl(peer,pos,size,style)
|
||||
{
|
||||
}
|
||||
|
||||
//
|
||||
// column handling
|
||||
//
|
||||
OSStatus AddColumn(DataBrowserListViewColumnDesc *columnDesc, DataBrowserTableViewColumnIndex position);
|
||||
|
||||
protected:
|
||||
private:
|
||||
};
|
||||
|
||||
|
||||
// ============================================================================
|
||||
// wxMacDataViewDataBrowserListViewControl
|
||||
// ============================================================================
|
||||
//
|
||||
// This is the internal interface class between wxDataViewCtrl (wxWidget) and
|
||||
// the native data browser (Mac OS X carbon).
|
||||
//
|
||||
class wxMacDataViewDataBrowserListViewControl : public wxMacDataBrowserListViewControl, public wxDataViewWidgetImpl
|
||||
{
|
||||
public:
|
||||
//
|
||||
// constructors / destructor
|
||||
//
|
||||
wxMacDataViewDataBrowserListViewControl(wxWindow* peer, wxPoint const& pos, wxSize const& size, long style);
|
||||
|
||||
//
|
||||
// column related methods (inherited from wxDataViewWidgetImpl)
|
||||
//
|
||||
virtual bool ClearColumns ();
|
||||
virtual bool DeleteColumn (wxDataViewColumn* columnPtr);
|
||||
virtual void DoSetExpanderColumn(wxDataViewColumn const* columnPtr);
|
||||
virtual wxDataViewColumn* GetColumn (unsigned int pos) const;
|
||||
virtual int GetColumnPosition (wxDataViewColumn const* columnPtr) const;
|
||||
virtual bool InsertColumn (unsigned int pos, wxDataViewColumn* columnPtr);
|
||||
virtual void FitColumnWidthToContent(unsigned int WXUNUSED(pos)) { /*not implemented*/ }
|
||||
|
||||
//
|
||||
// item related methods (inherited from wxDataViewWidgetImpl)
|
||||
//
|
||||
virtual bool Add (wxDataViewItem const& parent, wxDataViewItem const& item);
|
||||
virtual bool Add (wxDataViewItem const& parent, wxDataViewItemArray const& items);
|
||||
virtual void Collapse (wxDataViewItem const& item);
|
||||
virtual void EnsureVisible(wxDataViewItem const& item, wxDataViewColumn const* columnPtr);
|
||||
virtual void Expand (wxDataViewItem const& item);
|
||||
virtual unsigned int GetCount () const;
|
||||
virtual wxRect GetRectangle (wxDataViewItem const& item, wxDataViewColumn const* columnPtr);
|
||||
virtual bool IsExpanded (wxDataViewItem const& item) const;
|
||||
virtual bool Reload ();
|
||||
virtual bool Remove (wxDataViewItem const& parent, wxDataViewItem const& item);
|
||||
virtual bool Remove (wxDataViewItem const& parent, wxDataViewItemArray const& item);
|
||||
virtual bool Update (wxDataViewColumn const* columnPtr);
|
||||
virtual bool Update (wxDataViewItem const& parent, wxDataViewItem const& item);
|
||||
virtual bool Update (wxDataViewItem const& parent, wxDataViewItemArray const& items);
|
||||
|
||||
//
|
||||
// model related methods
|
||||
//
|
||||
virtual bool AssociateModel(wxDataViewModel* model);
|
||||
|
||||
//
|
||||
// selection related methods (inherited from wxDataViewWidgetImpl)
|
||||
//
|
||||
virtual wxDataViewItem GetCurrentItem() const;
|
||||
virtual void SetCurrentItem(const wxDataViewItem& item);
|
||||
virtual int GetSelections(wxDataViewItemArray& sel) const;
|
||||
virtual bool IsSelected (wxDataViewItem const& item) const;
|
||||
virtual void Select (wxDataViewItem const& item);
|
||||
virtual void SelectAll ();
|
||||
virtual void Unselect (wxDataViewItem const& item);
|
||||
virtual void UnselectAll ();
|
||||
|
||||
//
|
||||
// sorting related methods
|
||||
//
|
||||
virtual wxDataViewColumn* GetSortingColumn () const;
|
||||
virtual void Resort ();
|
||||
|
||||
//
|
||||
// other methods (inherited from wxDataViewWidgetImpl)
|
||||
//
|
||||
virtual void DoSetIndent (int indent);
|
||||
virtual void HitTest (wxPoint const& point, wxDataViewItem& item, wxDataViewColumn*& columnPtr) const;
|
||||
virtual void SetRowHeight(wxDataViewItem const& item, unsigned int height);
|
||||
virtual void OnSize ();
|
||||
|
||||
//
|
||||
// other methods
|
||||
//
|
||||
wxDataViewCtrl* GetDataViewCtrl() const
|
||||
{
|
||||
return dynamic_cast<wxDataViewCtrl*>(GetWXPeer());
|
||||
}
|
||||
|
||||
protected:
|
||||
//
|
||||
// standard callback functions (inherited from wxMacDataBrowserTableViewControl)
|
||||
//
|
||||
virtual Boolean DataBrowserCompareProc (DataBrowserItemID itemOneID, DataBrowserItemID itemTwoID, DataBrowserPropertyID sortProperty);
|
||||
virtual void DataBrowserItemNotificationProc (DataBrowserItemID itemID, DataBrowserItemNotification message, DataBrowserItemDataRef itemData);
|
||||
virtual void DataBrowserGetContextualMenuProc(MenuRef* menu, UInt32* helpType, CFStringRef* helpItemString, AEDesc* selection);
|
||||
virtual OSStatus DataBrowserGetSetItemDataProc (DataBrowserItemID itemID, DataBrowserPropertyID propertyID, DataBrowserItemDataRef itemData, Boolean getValue);
|
||||
|
||||
//
|
||||
// callback functions for customized types (inherited from wxMacDataBrowserTableViewControl)
|
||||
//
|
||||
virtual void DataBrowserDrawItemProc(DataBrowserItemID itemID, DataBrowserPropertyID propertyID, DataBrowserItemState state, Rect const* rectangle, SInt16 bitDepth, Boolean colorDevice);
|
||||
virtual Boolean DataBrowserEditItemProc(DataBrowserItemID itemID, DataBrowserPropertyID propertyID, CFStringRef theString, Rect* maxEditTextRect, Boolean* shrinkToFit);
|
||||
virtual Boolean DataBrowserHitTestProc (DataBrowserItemID itemID, DataBrowserPropertyID propertyID, Rect const* theRect, Rect const* mouseRect);
|
||||
virtual DataBrowserTrackingResult DataBrowserTrackingProc(DataBrowserItemID itemID, DataBrowserPropertyID propertyID, Rect const* theRect, Point startPt, EventModifiers modifiers);
|
||||
|
||||
//
|
||||
// callback functions for drag & drop (inherited from wxMacDataBrowserTableViewControl)
|
||||
//
|
||||
virtual Boolean DataBrowserAcceptDragProc (DragReference dragRef, DataBrowserItemID itemID);
|
||||
virtual Boolean DataBrowserAddDragItemProc(DragReference dragRef, DataBrowserItemID itemID, ItemReference* itemRef);
|
||||
virtual Boolean DataBrowserReceiveDragProc(DragReference dragRef, DataBrowserItemID itemID);
|
||||
|
||||
//
|
||||
// drag & drop helper methods
|
||||
//
|
||||
wxDataFormat GetDnDDataFormat(wxDataObjectComposite* dataObjects);
|
||||
wxDataObjectComposite* GetDnDDataObjects(DragReference dragRef, ItemReference itemRef) const; // create the data objects from the native dragged object
|
||||
|
||||
//
|
||||
// other methods
|
||||
//
|
||||
wxDataViewColumn* GetColumnPtr(DataBrowserPropertyID propertyID) const; // returns for the passed property the corresponding pointer to a column; NULL is returned if not found
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
typedef wxMacDataViewDataBrowserListViewControl* wxMacDataViewDataBrowserListViewControlPointer;
|
||||
|
||||
#endif // WX_GUI
|
||||
#endif // _WX_MACCARBONDATAVIEWCTRL_H_
|
71
Externals/wxWidgets3/include/wx/osx/carbon/drawer.h
vendored
Normal file
71
Externals/wxWidgets3/include/wx/osx/carbon/drawer.h
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/osx/carbon/drawer.h
|
||||
// Purpose: Drawer child window class.
|
||||
// Drawer windows appear under their parent window and
|
||||
// behave like a drawer, opening and closing to reveal
|
||||
// content that does not need to be visible at all times.
|
||||
// Author: Jason Bagley
|
||||
// Modified by:
|
||||
// Created: 2004-30-01
|
||||
// RCS-ID: $Id: drawer.h 64943 2010-07-13 13:29:58Z VZ $
|
||||
// Copyright: (c) Jason Bagley; Art & Logic, Inc.
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_DRAWERWINDOW_H_
|
||||
#define _WX_DRAWERWINDOW_H_
|
||||
|
||||
#include "wx/toplevel.h"
|
||||
|
||||
//
|
||||
// NB: This is currently a private undocumented class -
|
||||
// it is stable, but the API is not and will change in the
|
||||
// near future
|
||||
//
|
||||
|
||||
#if ( MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_2 )
|
||||
|
||||
class WXDLLIMPEXP_ADV wxDrawerWindow : public wxTopLevelWindow
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxDrawerWindow)
|
||||
|
||||
public:
|
||||
|
||||
wxDrawerWindow();
|
||||
|
||||
wxDrawerWindow(wxWindow* parent,
|
||||
wxWindowID id,
|
||||
const wxString& title,
|
||||
wxSize size = wxDefaultSize,
|
||||
wxDirection edge = wxLEFT,
|
||||
const wxString& name = wxT("drawerwindow"))
|
||||
{
|
||||
this->Create(parent, id, title, size, edge, name);
|
||||
}
|
||||
|
||||
virtual ~wxDrawerWindow();
|
||||
|
||||
// Create a drawer window.
|
||||
// If parent is NULL, create as a tool window.
|
||||
// If parent is not NULL, then wxTopLevelWindow::Attach this window to parent.
|
||||
bool Create(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxString& title,
|
||||
wxSize size = wxDefaultSize,
|
||||
wxDirection edge = wxLEFT,
|
||||
const wxString& name = wxFrameNameStr);
|
||||
|
||||
bool Open(bool show = true); // open or close the drawer, possibility for async param, i.e. animate
|
||||
bool Close() { return this->Open(false); }
|
||||
bool IsOpen() const;
|
||||
|
||||
// Set the edge of the parent where the drawer attaches.
|
||||
bool SetPreferredEdge(wxDirection edge);
|
||||
wxDirection GetPreferredEdge() const;
|
||||
wxDirection GetCurrentEdge() const; // not necessarily the preferred, due to screen constraints
|
||||
};
|
||||
|
||||
#endif // defined( __WXMAC__ ) && TARGET_API_MAC_OSX && ( MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_2 )
|
||||
|
||||
#endif
|
||||
// _WX_DRAWERWINDOW_H_
|
34
Externals/wxWidgets3/include/wx/osx/carbon/evtloop.h
vendored
Normal file
34
Externals/wxWidgets3/include/wx/osx/carbon/evtloop.h
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/osx/carbon/evtloop.h
|
||||
// Purpose: declaration of wxEventLoop for wxMac
|
||||
// Author: Vadim Zeitlin
|
||||
// Modified by:
|
||||
// Created: 2006-01-12
|
||||
// RCS-ID: $Id: evtloop.h 65680 2010-09-30 11:44:45Z VZ $
|
||||
// Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_MAC_CARBON_EVTLOOP_H_
|
||||
#define _WX_MAC_CARBON_EVTLOOP_H_
|
||||
|
||||
struct OpaqueEventRef;
|
||||
typedef OpaqueEventRef *EventRef;
|
||||
|
||||
class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxCFEventLoop
|
||||
{
|
||||
public:
|
||||
wxGUIEventLoop();
|
||||
|
||||
protected:
|
||||
virtual int DoDispatchTimeout(unsigned long timeout);
|
||||
|
||||
virtual void DoRun();
|
||||
|
||||
virtual void DoStop();
|
||||
|
||||
virtual CFRunLoopRef CFGetCurrentRunLoop() const;
|
||||
};
|
||||
|
||||
#endif // _WX_MAC_CARBON_EVTLOOP_H_
|
||||
|
118
Externals/wxWidgets3/include/wx/osx/carbon/mimetype.h
vendored
Normal file
118
Externals/wxWidgets3/include/wx/osx/carbon/mimetype.h
vendored
Normal file
@ -0,0 +1,118 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/osx/carbon/mimetype.h
|
||||
// Purpose: Mac Carbon implementation for wx mime-related classes
|
||||
// Author: Ryan Norton
|
||||
// Modified by:
|
||||
// Created: 04/16/2005
|
||||
// RCS-ID: $Id: mimetype.h 64943 2010-07-13 13:29:58Z VZ $
|
||||
// Copyright: (c) 2005 Ryan Norton (<wxprojects@comcast.net>)
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _MIMETYPE_IMPL_H
|
||||
#define _MIMETYPE_IMPL_H
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/mimetype.h"
|
||||
|
||||
|
||||
class wxMimeTypesManagerImpl
|
||||
{
|
||||
public :
|
||||
//kinda kooky but in wxMimeTypesManager::EnsureImpl it doesn't call
|
||||
//intialize, so we do it ourselves
|
||||
wxMimeTypesManagerImpl() : m_hIC(NULL) { Initialize(); }
|
||||
~wxMimeTypesManagerImpl() { ClearData(); }
|
||||
|
||||
// load all data into memory - done when it is needed for the first time
|
||||
void Initialize(int mailcapStyles = wxMAILCAP_STANDARD,
|
||||
const wxString& extraDir = wxEmptyString);
|
||||
|
||||
// and delete the data here
|
||||
void ClearData();
|
||||
|
||||
// implement containing class functions
|
||||
wxFileType *GetFileTypeFromExtension(const wxString& ext);
|
||||
wxFileType *GetOrAllocateFileTypeFromExtension(const wxString& ext) ;
|
||||
wxFileType *GetFileTypeFromMimeType(const wxString& mimeType);
|
||||
|
||||
size_t EnumAllFileTypes(wxArrayString& mimetypes);
|
||||
|
||||
void AddFallback(const wxFileTypeInfo& ft) { m_fallbacks.Add(ft); }
|
||||
|
||||
// create a new filetype association
|
||||
wxFileType *Associate(const wxFileTypeInfo& ftInfo);
|
||||
// remove association
|
||||
bool Unassociate(wxFileType *ft);
|
||||
|
||||
private:
|
||||
wxArrayFileTypeInfo m_fallbacks;
|
||||
void* m_hIC;
|
||||
void** m_hDatabase;
|
||||
long m_lCount;
|
||||
|
||||
void* pReserved1;
|
||||
void* pReserved2;
|
||||
void* pReserved3;
|
||||
void* pReserved4;
|
||||
void* pReserved5;
|
||||
void* pReserved6;
|
||||
|
||||
friend class wxFileTypeImpl;
|
||||
};
|
||||
|
||||
class wxFileTypeImpl
|
||||
{
|
||||
public:
|
||||
//kind of nutty, but mimecmn.cpp creates one with an empty new
|
||||
wxFileTypeImpl() : m_manager(NULL) {}
|
||||
~wxFileTypeImpl() {} //for those broken compilers
|
||||
|
||||
// implement accessor functions
|
||||
bool GetExtensions(wxArrayString& extensions);
|
||||
bool GetMimeType(wxString *mimeType) const;
|
||||
bool GetMimeTypes(wxArrayString& mimeTypes) const;
|
||||
bool GetIcon(wxIconLocation *iconLoc) const;
|
||||
bool GetDescription(wxString *desc) const;
|
||||
bool GetOpenCommand(wxString *openCmd,
|
||||
const wxFileType::MessageParameters&) const;
|
||||
bool GetPrintCommand(wxString *printCmd,
|
||||
const wxFileType::MessageParameters&) const;
|
||||
|
||||
size_t GetAllCommands(wxArrayString * verbs, wxArrayString * commands,
|
||||
const wxFileType::MessageParameters& params) const;
|
||||
|
||||
// remove the record for this file type
|
||||
// probably a mistake to come here, use wxMimeTypesManager.Unassociate (ft) instead
|
||||
bool Unassociate(wxFileType *ft)
|
||||
{
|
||||
return m_manager->Unassociate(ft);
|
||||
}
|
||||
|
||||
// set an arbitrary command, ask confirmation if it already exists and
|
||||
// overwriteprompt is TRUE
|
||||
bool SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt = true);
|
||||
bool SetDefaultIcon(const wxString& strIcon = wxEmptyString, int index = 0);
|
||||
|
||||
private:
|
||||
void Init(wxMimeTypesManagerImpl *manager, long lIndex)
|
||||
{ m_manager=(manager); m_lIndex=(lIndex); }
|
||||
|
||||
// helper function
|
||||
wxString GetCommand(const wxString& verb) const;
|
||||
|
||||
wxMimeTypesManagerImpl *m_manager;
|
||||
long m_lIndex;
|
||||
|
||||
void* pReserved1;
|
||||
void* pReserved2;
|
||||
void* pReserved3;
|
||||
void* pReserved4;
|
||||
void* pReserved5;
|
||||
void* pReserved6;
|
||||
|
||||
friend class wxMimeTypesManagerImpl;
|
||||
};
|
||||
|
||||
#endif
|
||||
//_MIMETYPE_H
|
1062
Externals/wxWidgets3/include/wx/osx/carbon/private.h
vendored
Normal file
1062
Externals/wxWidgets3/include/wx/osx/carbon/private.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
53
Externals/wxWidgets3/include/wx/osx/carbon/private/mactext.h
vendored
Normal file
53
Externals/wxWidgets3/include/wx/osx/carbon/private/mactext.h
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/osx/carbon/private/mactext.h
|
||||
// Purpose: private wxMacTextControl base class
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
// Created: 03/02/99
|
||||
// RCS-ID: $Id: mactext.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) Stefan Csomor
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_MAC_PRIVATE_MACTEXT_H_
|
||||
#define _WX_MAC_PRIVATE_MACTEXT_H_
|
||||
|
||||
#include "wx/osx/private.h"
|
||||
|
||||
// implementation exposed, so that search control can pull it
|
||||
|
||||
class wxMacUnicodeTextControl : public wxMacControl, public wxTextWidgetImpl
|
||||
{
|
||||
public :
|
||||
wxMacUnicodeTextControl( wxTextCtrl *wxPeer ) ;
|
||||
wxMacUnicodeTextControl( wxTextCtrl *wxPeer,
|
||||
const wxString& str,
|
||||
const wxPoint& pos,
|
||||
const wxSize& size, long style ) ;
|
||||
virtual ~wxMacUnicodeTextControl();
|
||||
|
||||
virtual bool CanFocus() const
|
||||
{ return true; }
|
||||
virtual void VisibilityChanged(bool shown);
|
||||
virtual wxString GetStringValue() const ;
|
||||
virtual void SetStringValue( const wxString &str) ;
|
||||
virtual void Copy();
|
||||
virtual void Cut();
|
||||
virtual void Paste();
|
||||
virtual bool CanPaste() const;
|
||||
virtual void SetEditable(bool editable) ;
|
||||
virtual void GetSelection( long* from, long* to) const ;
|
||||
virtual void SetSelection( long from , long to ) ;
|
||||
virtual void WriteText(const wxString& str) ;
|
||||
|
||||
protected :
|
||||
void InstallEventHandlers();
|
||||
|
||||
// contains the tag for the content (is different for password and non-password controls)
|
||||
OSType m_valueTag ;
|
||||
WXEVENTHANDLERREF m_macTextCtrlEventHandler ;
|
||||
public :
|
||||
ControlEditTextSelectionRec m_selection ;
|
||||
};
|
||||
|
||||
#endif // _WX_MAC_PRIVATE_MACTEXT_H_
|
58
Externals/wxWidgets3/include/wx/osx/carbon/private/overlay.h
vendored
Normal file
58
Externals/wxWidgets3/include/wx/osx/carbon/private/overlay.h
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/osx/carbon/private/overlay.h
|
||||
// Purpose: wxOverlayImpl declaration
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
// Created: 2006-10-20
|
||||
// RCS-ID: $Id: overlay.h 64943 2010-07-13 13:29:58Z VZ $
|
||||
// Copyright: (c) wxWidgets team
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_MAC_CARBON_PRIVATE_OVERLAY_H_
|
||||
#define _WX_MAC_CARBON_PRIVATE_OVERLAY_H_
|
||||
|
||||
#include "wx/osx/private.h"
|
||||
#include "wx/toplevel.h"
|
||||
#include "wx/graphics.h"
|
||||
|
||||
class wxOverlayImpl
|
||||
{
|
||||
public:
|
||||
wxOverlayImpl() ;
|
||||
~wxOverlayImpl() ;
|
||||
|
||||
|
||||
// clears the overlay without restoring the former state
|
||||
// to be done eg when the window content has been changed and repainted
|
||||
void Reset();
|
||||
|
||||
// returns true if it has been setup
|
||||
bool IsOk();
|
||||
|
||||
void Init( wxDC* dc, int x , int y , int width , int height );
|
||||
|
||||
void BeginDrawing( wxDC* dc);
|
||||
|
||||
void EndDrawing( wxDC* dc);
|
||||
|
||||
void Clear( wxDC* dc);
|
||||
|
||||
private:
|
||||
OSStatus CreateOverlayWindow();
|
||||
|
||||
void MacGetBounds( Rect *bounds );
|
||||
|
||||
WindowRef m_overlayWindow;
|
||||
WindowRef m_overlayParentWindow;
|
||||
CGContextRef m_overlayContext ;
|
||||
// we store the window in case we would have to issue a Refresh()
|
||||
wxWindow* m_window ;
|
||||
|
||||
int m_x ;
|
||||
int m_y ;
|
||||
int m_width ;
|
||||
int m_height ;
|
||||
} ;
|
||||
|
||||
#endif // _WX_MAC_CARBON_PRIVATE_OVERLAY_H_
|
93
Externals/wxWidgets3/include/wx/osx/carbon/private/print.h
vendored
Normal file
93
Externals/wxWidgets3/include/wx/osx/carbon/private/print.h
vendored
Normal file
@ -0,0 +1,93 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/osx/carbon/private/print.h
|
||||
// Purpose: private implementation for printing on OS X
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
// Created: 03/02/99
|
||||
// RCS-ID: $Id: print.h 65680 2010-09-30 11:44:45Z VZ $
|
||||
// Copyright: (c) Stefan Csomor
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_MAC_PRIVATE_PRINT_H_
|
||||
#define _WX_MAC_PRIVATE_PRINT_H_
|
||||
|
||||
#include "wx/cmndata.h"
|
||||
#include "wx/print.h"
|
||||
|
||||
// for PrintingManager
|
||||
#include "ApplicationServices/ApplicationServices.h"
|
||||
|
||||
class WXDLLIMPEXP_CORE wxOSXPrintData : public wxPrintNativeDataBase
|
||||
{
|
||||
public:
|
||||
wxOSXPrintData();
|
||||
virtual ~wxOSXPrintData();
|
||||
|
||||
virtual bool TransferTo( wxPrintData &data );
|
||||
virtual bool TransferFrom( const wxPrintData &data );
|
||||
|
||||
virtual bool IsOk() const ;
|
||||
|
||||
virtual void TransferFrom( wxPageSetupDialogData * );
|
||||
virtual void TransferTo( wxPageSetupDialogData * );
|
||||
|
||||
virtual void TransferFrom( wxPrintDialogData * );
|
||||
virtual void TransferTo( wxPrintDialogData * );
|
||||
|
||||
PMPrintSession GetPrintSession() { return m_macPrintSession; }
|
||||
PMPageFormat GetPageFormat() { return m_macPageFormat; }
|
||||
PMPrintSettings GetPrintSettings() { return m_macPrintSettings; }
|
||||
protected :
|
||||
virtual void TransferPrinterNameFrom( const wxPrintData &data );
|
||||
virtual void TransferPaperInfoFrom( const wxPrintData &data );
|
||||
virtual void TransferResolutionFrom( const wxPrintData &data );
|
||||
|
||||
virtual void TransferPrinterNameTo( wxPrintData &data );
|
||||
virtual void TransferPaperInfoTo( wxPrintData &data );
|
||||
virtual void TransferResolutionTo( wxPrintData &data );
|
||||
|
||||
|
||||
virtual void UpdateFromPMState();
|
||||
virtual void UpdateToPMState();
|
||||
|
||||
PMPrintSession m_macPrintSession ;
|
||||
PMPageFormat m_macPageFormat ;
|
||||
PMPrintSettings m_macPrintSettings ;
|
||||
PMPaper m_macPaper;
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxOSXPrintData)
|
||||
} ;
|
||||
|
||||
WXDLLIMPEXP_CORE wxPrintNativeDataBase* wxOSXCreatePrintData();
|
||||
|
||||
#if wxOSX_USE_CARBON
|
||||
class WXDLLIMPEXP_CORE wxOSXCarbonPrintData : public wxOSXPrintData
|
||||
{
|
||||
public:
|
||||
wxOSXCarbonPrintData();
|
||||
virtual ~wxOSXCarbonPrintData();
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxOSXCarbonPrintData)
|
||||
} ;
|
||||
#endif
|
||||
|
||||
#if wxOSX_USE_COCOA
|
||||
class WXDLLIMPEXP_CORE wxOSXCocoaPrintData : public wxOSXPrintData
|
||||
{
|
||||
public:
|
||||
wxOSXCocoaPrintData();
|
||||
virtual ~wxOSXCocoaPrintData();
|
||||
|
||||
WX_NSPrintInfo GetNSPrintInfo() { return m_macPrintInfo; }
|
||||
protected:
|
||||
virtual void UpdateFromPMState();
|
||||
virtual void UpdateToPMState();
|
||||
|
||||
WX_NSPrintInfo m_macPrintInfo;
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxOSXCocoaPrintData)
|
||||
} ;
|
||||
#endif
|
||||
|
||||
#endif // _WX_MAC_PRIVATE_PRINT_H_
|
33
Externals/wxWidgets3/include/wx/osx/carbon/private/timer.h
vendored
Normal file
33
Externals/wxWidgets3/include/wx/osx/carbon/private/timer.h
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/osx/carbon/private/timer.h
|
||||
// Purpose: wxTimer class
|
||||
// Author: Stefan Csomor
|
||||
// Created: 1998-01-01
|
||||
// RCS-ID: $Id: timer.h 64943 2010-07-13 13:29:58Z VZ $
|
||||
// Copyright: (c) Stefan Csomor
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_MAC_PRIVATE_TIMER_H_
|
||||
#define _WX_MAC_PRIVATE_TIMER_H_
|
||||
|
||||
#include "wx/private/timer.h"
|
||||
|
||||
struct MacTimerInfo;
|
||||
|
||||
class WXDLLIMPEXP_CORE wxCarbonTimerImpl : public wxTimerImpl
|
||||
{
|
||||
public:
|
||||
wxCarbonTimerImpl(wxTimer *timer);
|
||||
virtual ~wxCarbonTimerImpl();
|
||||
|
||||
virtual bool Start(int milliseconds = -1, bool one_shot = false);
|
||||
virtual void Stop();
|
||||
|
||||
virtual bool IsRunning() const;
|
||||
|
||||
private:
|
||||
MacTimerInfo *m_info;
|
||||
};
|
||||
|
||||
#endif // _WX_MAC_PRIVATE_TIMER_H_
|
100
Externals/wxWidgets3/include/wx/osx/carbon/region.h
vendored
Normal file
100
Externals/wxWidgets3/include/wx/osx/carbon/region.h
vendored
Normal file
@ -0,0 +1,100 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/osx/carbon/region.h
|
||||
// Purpose: wxRegion class
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
// Created: 1998-01-01
|
||||
// RCS-ID: $Id: region.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) Stefan Csomor
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_MAC_CARBON_REGION_H_
|
||||
#define _WX_MAC_CARBON_REGION_H_
|
||||
|
||||
#include "wx/list.h"
|
||||
|
||||
class WXDLLIMPEXP_CORE wxRegion : public wxRegionWithCombine
|
||||
{
|
||||
public:
|
||||
wxRegion(long x, long y, long w, long h);
|
||||
wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight);
|
||||
wxRegion(const wxRect& rect);
|
||||
wxRegion( WXHRGN hRegion );
|
||||
wxRegion(size_t n, const wxPoint *points, wxPolygonFillMode fillStyle = wxODDEVEN_RULE );
|
||||
wxRegion();
|
||||
wxRegion(const wxBitmap& bmp)
|
||||
{
|
||||
Union(bmp);
|
||||
}
|
||||
wxRegion(const wxBitmap& bmp,
|
||||
const wxColour& transColour, int tolerance = 0)
|
||||
{
|
||||
Union(bmp, transColour, tolerance);
|
||||
}
|
||||
|
||||
virtual ~wxRegion();
|
||||
|
||||
// wxRegionBase methods
|
||||
virtual void Clear();
|
||||
virtual bool IsEmpty() const;
|
||||
|
||||
// Internal
|
||||
WXHRGN GetWXHRGN() const ;
|
||||
|
||||
protected:
|
||||
virtual wxGDIRefData *CreateGDIRefData() const;
|
||||
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
||||
|
||||
virtual bool DoIsEqual(const wxRegion& region) const;
|
||||
virtual bool DoGetBox(wxCoord& x, wxCoord& y, wxCoord& w, wxCoord& h) const;
|
||||
virtual wxRegionContain DoContainsPoint(wxCoord x, wxCoord y) const;
|
||||
virtual wxRegionContain DoContainsRect(const wxRect& rect) const;
|
||||
|
||||
virtual bool DoOffset(wxCoord x, wxCoord y);
|
||||
virtual bool DoCombine(const wxRegion& region, wxRegionOp op);
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxRegion)
|
||||
friend class WXDLLIMPEXP_FWD_CORE wxRegionIterator;
|
||||
};
|
||||
|
||||
class WXDLLIMPEXP_CORE wxRegionIterator : public wxObject
|
||||
{
|
||||
public:
|
||||
wxRegionIterator();
|
||||
wxRegionIterator(const wxRegion& region);
|
||||
wxRegionIterator(const wxRegionIterator& iterator);
|
||||
virtual ~wxRegionIterator();
|
||||
|
||||
wxRegionIterator& operator=(const wxRegionIterator& iterator);
|
||||
|
||||
void Reset() { m_current = 0; }
|
||||
void Reset(const wxRegion& region);
|
||||
|
||||
operator bool () const { return m_current < m_numRects; }
|
||||
bool HaveRects() const { return m_current < m_numRects; }
|
||||
|
||||
wxRegionIterator& operator++();
|
||||
wxRegionIterator operator++(int);
|
||||
|
||||
long GetX() const;
|
||||
long GetY() const;
|
||||
long GetW() const;
|
||||
long GetWidth() const { return GetW(); }
|
||||
long GetH() const;
|
||||
long GetHeight() const { return GetH(); }
|
||||
wxRect GetRect() const { return wxRect(GetX(), GetY(), GetWidth(), GetHeight()); }
|
||||
|
||||
private:
|
||||
void SetRects(long numRects, wxRect *rects);
|
||||
|
||||
long m_current;
|
||||
long m_numRects;
|
||||
wxRegion m_region;
|
||||
wxRect* m_rects;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxRegionIterator)
|
||||
};
|
||||
|
||||
#endif // _WX_MAC_CARBON_REGION_H_
|
65
Externals/wxWidgets3/include/wx/osx/carbon/statbmp.h
vendored
Normal file
65
Externals/wxWidgets3/include/wx/osx/carbon/statbmp.h
vendored
Normal file
@ -0,0 +1,65 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/osx/carbon/statbmp.h
|
||||
// Purpose: wxStaticBitmap class
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
// Created: 1998-01-01
|
||||
// RCS-ID: $Id: statbmp.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) Stefan Csomor
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_STATBMP_H_
|
||||
#define _WX_STATBMP_H_
|
||||
|
||||
#include "wx/icon.h"
|
||||
|
||||
class WXDLLIMPEXP_CORE wxStaticBitmap: public wxStaticBitmapBase
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
|
||||
public:
|
||||
wxStaticBitmap() { }
|
||||
|
||||
wxStaticBitmap(wxWindow *parent, wxWindowID id,
|
||||
const wxBitmap& label,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = 0,
|
||||
const wxString& name = wxStaticBitmapNameStr)
|
||||
{
|
||||
Create(parent, id, label, pos, size, style, name);
|
||||
}
|
||||
|
||||
bool Create(wxWindow *parent, wxWindowID id,
|
||||
const wxBitmap& label,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = 0,
|
||||
const wxString& name = wxStaticBitmapNameStr);
|
||||
|
||||
virtual void SetBitmap(const wxBitmap& bitmap);
|
||||
|
||||
virtual void Command(wxCommandEvent& WXUNUSED(event)) {};
|
||||
virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {};
|
||||
void OnPaint( wxPaintEvent &event ) ;
|
||||
|
||||
wxBitmap GetBitmap() const { return m_bitmap; }
|
||||
wxIcon GetIcon() const
|
||||
{
|
||||
// icons and bitmaps are really the same thing in wxMac
|
||||
return (const wxIcon &)m_bitmap;
|
||||
}
|
||||
void SetIcon(const wxIcon& icon) { SetBitmap( (const wxBitmap &)icon ) ; }
|
||||
|
||||
// overriden base class virtuals
|
||||
virtual bool AcceptsFocus() const { return false; }
|
||||
|
||||
protected:
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
|
||||
wxBitmap m_bitmap;
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
#endif
|
||||
// _WX_STATBMP_H_
|
44
Externals/wxWidgets3/include/wx/osx/carbon/uma.h
vendored
Normal file
44
Externals/wxWidgets3/include/wx/osx/carbon/uma.h
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/osx/carbon/uma.h
|
||||
// Purpose: Universal MacOS API
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
// Created: 03/02/99
|
||||
// RCS-ID: $Id: uma.h 64943 2010-07-13 13:29:58Z VZ $
|
||||
// Copyright: (c) Stefan Csomor
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef H_UMA
|
||||
#define H_UMA
|
||||
|
||||
#include "wx/osx/private.h"
|
||||
|
||||
#if wxUSE_GUI
|
||||
|
||||
// menu manager
|
||||
|
||||
MenuRef UMANewMenu( SInt16 id , const wxString& title , wxFontEncoding encoding) ;
|
||||
void UMASetMenuTitle( MenuRef menu , const wxString& title , wxFontEncoding encoding) ;
|
||||
void UMAEnableMenuItem( MenuRef inMenu , MenuItemIndex item , bool enable ) ;
|
||||
|
||||
void UMAAppendMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , wxAcceleratorEntry *entry = NULL ) ;
|
||||
void UMAInsertMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , MenuItemIndex item , wxAcceleratorEntry *entry = NULL ) ;
|
||||
void UMASetMenuItemShortcut( MenuRef menu , MenuItemIndex item , wxAcceleratorEntry *entry ) ;
|
||||
|
||||
void UMASetMenuItemText( MenuRef menu, MenuItemIndex item, const wxString& title , wxFontEncoding encoding ) ;
|
||||
|
||||
// Retrieves the Help menu handle. Warning: As a side-effect this functions also
|
||||
// creates the Help menu if it didn't exist yet.
|
||||
OSStatus UMAGetHelpMenu(
|
||||
MenuRef * outHelpMenu,
|
||||
MenuItemIndex * outFirstCustomItemIndex); /* can be NULL */
|
||||
|
||||
// Same as UMAGetHelpMenu, but doesn't create the Help menu if UMAGetHelpMenu hasn't been called yet.
|
||||
OSStatus UMAGetHelpMenuDontCreate(
|
||||
MenuRef * outHelpMenu,
|
||||
MenuItemIndex * outFirstCustomItemIndex); /* can be NULL */
|
||||
|
||||
#endif // wxUSE_GUI
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user