return *this; \
} \
\
-name::name(const name& src) \
+name::name(const name& src) : wxArrayPtrVoid() \
{ \
DoCopy(src); \
} \
class WXDLLEXPORT wxBitmapButtonBase : public wxButton
{
public:
- wxBitmapButtonBase() { m_marginX = m_marginY = 0; }
+ wxBitmapButtonBase()
+ : m_bmpNormal(), m_bmpSelected(), m_bmpFocus(), m_bmpDisabled()
+ , m_marginX(0), m_marginY(0)
+ { }
// set the bitmaps
void SetBitmapLabel(const wxBitmap& bitmap)
class WXDLLEXPORT wxStringClientData : public wxClientData
{
public:
- wxStringClientData() { }
+ wxStringClientData() : m_data() { }
wxStringClientData( const wxString &data ) : m_data(data) { }
void SetData( const wxString &data ) { m_data = data; }
const wxString& GetData() const { return m_data; }
wxDate(long j) : m_date((double)(j + 0.5)) { Init(); }
wxDate(int m, int d, int y) : m_date(d, (wxDateTime::Month)m, y) { Init(); }
wxDate(const wxString& dat) { Init(); (void)m_date.ParseDate(dat); }
- wxDate(const wxDate &date) { *this = date; }
+ wxDate(const wxDate &date) : wxObject() { *this = date; }
wxDate(const wxDateTime& dt) { Init(); m_date = dt; }
wxFontEncoding encoding; // so that we know what this struct represents
#if defined(__WXMSW__) || defined(__WXPM__) || defined(__WXMAC__)
- wxNativeEncodingInfo() { charset = 0; /* ANSI_CHARSET */ }
+ wxNativeEncodingInfo()
+ : facename()
+ , encoding(wxFONTENCODING_SYSTEM)
+ , charset(0) /* ANSI_CHARSET */
+ { }
int charset;
#elif defined(_WX_X_FONTLIKE)
virtual ~wxAcceleratorTable();
wxAcceleratorTable(const wxAcceleratorTable& accel)
- { Ref(accel); }
+ : wxObject()
+ { Ref(accel); }
wxAcceleratorTable& operator=(const wxAcceleratorTable& accel)
{ if ( m_refData != accel.m_refData ) Ref(accel); return *this; }
wxBrush( const wxBitmap &stippleBitmap );
~wxBrush();
- wxBrush( const wxBrush &brush ) { Ref(brush); }
+ wxBrush( const wxBrush &brush )
+ : wxGDIObject()
+ { Ref(brush); }
wxBrush& operator = ( const wxBrush& brush ) { Ref(brush); return *this; }
bool Ok() const { return m_refData != NULL; }
wxColour( const wxString &colourName ) { InitFromName(colourName); }
wxColour( const char *colourName ) { InitFromName(colourName); }
- wxColour( const wxColour& col ) { Ref(col); }
+ wxColour( const wxColour& col )
+ : wxGDIObject()
+ { Ref(col); }
wxColour& operator = ( const wxColour& col ) { Ref(col); return *this; }
~wxColour();
wxPen( const wxColour &colour, int width, int style );
~wxPen();
- wxPen( const wxPen& pen ) { Ref(pen); }
+ wxPen( const wxPen& pen )
+ : wxGDIObject()
+ { Ref(pen); }
wxPen& operator = ( const wxPen& pen ) { Ref(pen); return *this; }
bool Ok() const { return m_refData != NULL; }
wxRegion( size_t n, const wxPoint *points, int fillStyle = wxODDEVEN_RULE );
~wxRegion();
- wxRegion( const wxRegion& region ) { Ref(region); }
+ wxRegion( const wxRegion& region )
+ : wxGDIObject()
+ { Ref(region); }
wxRegion& operator = ( const wxRegion& region ) { Ref(region); return *this; }
bool Ok() const { return m_refData != NULL; }
wxBrush( const wxBitmap &stippleBitmap );
~wxBrush();
- wxBrush( const wxBrush &brush ) { Ref(brush); }
+ wxBrush( const wxBrush &brush )
+ : wxGDIObject()
+ { Ref(brush); }
wxBrush& operator = ( const wxBrush& brush ) { Ref(brush); return *this; }
bool Ok() const { return m_refData != NULL; }
wxColour( const wxString &colourName ) { InitFromName(colourName); }
wxColour( const char *colourName ) { InitFromName(colourName); }
- wxColour( const wxColour& col ) { Ref(col); }
+ wxColour( const wxColour& col )
+ : wxGDIObject()
+ { Ref(col); }
wxColour& operator = ( const wxColour& col ) { Ref(col); return *this; }
~wxColour();
wxPen( const wxColour &colour, int width, int style );
~wxPen();
- wxPen( const wxPen& pen ) { Ref(pen); }
+ wxPen( const wxPen& pen )
+ : wxGDIObject()
+ { Ref(pen); }
wxPen& operator = ( const wxPen& pen ) { Ref(pen); return *this; }
bool Ok() const { return m_refData != NULL; }
wxRegion( size_t n, const wxPoint *points, int fillStyle = wxODDEVEN_RULE );
~wxRegion();
- wxRegion( const wxRegion& region ) { Ref(region); }
+ wxRegion( const wxRegion& region )
+ : wxGDIObject()
+ { Ref(region); }
wxRegion& operator = ( const wxRegion& region ) { Ref(region); return *this; }
bool Ok() const { return m_refData != NULL; }
class WXDLLEXPORT wxHashTableLong : public wxObject
{
public:
- wxHashTableLong(size_t size = wxHASH_SIZE_DEFAULT) { Init(size); }
+ wxHashTableLong(size_t size = wxHASH_SIZE_DEFAULT)
+ { Init(size); }
virtual ~wxHashTableLong();
void Create(size_t size = wxHASH_SIZE_DEFAULT);
~wxHashTable();
// copy ctor and assignment operator
- wxHashTable(const wxHashTable& table) : wxObject() { DoCopy(table); }
+ wxHashTable(const wxHashTable& table) : wxObject()
+ { DoCopy(table); }
wxHashTable& operator=(const wxHashTable& table)
{ Clear(); DoCopy(table); return *this; }
{
public:
// default constructor
- wxIconBundle() {}
+ wxIconBundle() : m_icons() {}
// initializes the bundle with the icon(s) found in the file
- wxIconBundle( const wxString& file, long type )
+ wxIconBundle( const wxString& file, long type ) : m_icons()
{ AddIcon( file, type ); }
// initializes the bundle with a single icon
- wxIconBundle( const wxIcon& icon )
+ wxIconBundle( const wxIcon& icon ) : m_icons()
{ AddIcon( icon ); }
const wxIconBundle& operator =( const wxIconBundle& ic );
- wxIconBundle( const wxIconBundle& ic )
+ wxIconBundle( const wxIconBundle& ic ) : m_icons()
{ *this = ic; }
~wxIconBundle() { DeleteIcons(); }
class WXDLLEXPORT wxImageHandler: public wxObject
{
public:
- wxImageHandler() { m_name = ""; m_extension = ""; m_type = 0; }
+ wxImageHandler()
+ : m_name(""), m_extension(""), m_mime(), m_type(0)
+ { }
#if wxUSE_STREAMS
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 );
wxAcceleratorTable(int n, wxAcceleratorEntry entries[]); // Load from array
// Copy constructors
- inline wxAcceleratorTable(const wxAcceleratorTable& accel) { Ref(accel); }
- inline wxAcceleratorTable(const wxAcceleratorTable* accel) { if (accel) Ref(*accel); }
+ wxAcceleratorTable(const wxAcceleratorTable& accel)
+ : wxObject()
+ { Ref(accel); }
+ wxAcceleratorTable(const wxAcceleratorTable* accel)
+ { if (accel) Ref(*accel); }
~wxAcceleratorTable();
- inline wxAcceleratorTable& operator = (const wxAcceleratorTable& accel) { if (*this == accel) return (*this); Ref(accel); return *this; }
- inline bool operator == (const wxAcceleratorTable& accel) { return m_refData == accel.m_refData; }
- inline bool operator != (const wxAcceleratorTable& accel) { return m_refData != accel.m_refData; }
+ wxAcceleratorTable& operator = (const wxAcceleratorTable& accel)
+ { if (*this == accel) return (*this); Ref(accel); return *this; }
+ bool operator == (const wxAcceleratorTable& accel)
+ { return m_refData == accel.m_refData; }
+ bool operator != (const wxAcceleratorTable& accel)
+ { return m_refData != accel.m_refData; }
bool Ok() const;
wxBrush(short macThemeBrush ) ;
wxBrush(const wxColour& col, int style);
wxBrush(const wxBitmap& stipple);
- inline wxBrush(const wxBrush& brush) { Ref(brush); }
+ wxBrush(const wxBrush& brush)
+ : wxGDIObject()
+ { Ref(brush); }
~wxBrush();
virtual void SetColour(const wxColour& col) ;
virtual void SetMacTheme(short macThemeBrush) ;
virtual void SetMacThemeBackground(unsigned long macThemeBackground , WXRECTPTR extent) ;
- inline wxBrush& operator = (const wxBrush& brush) { if (*this == brush) return (*this); Ref(brush); return *this; }
- inline bool operator == (const wxBrush& brush) { return m_refData == brush.m_refData; }
- inline bool operator != (const wxBrush& brush) { return m_refData != brush.m_refData; }
+ wxBrush& operator = (const wxBrush& brush)
+ { if (*this == brush) return (*this); Ref(brush); return *this; }
+ bool operator == (const wxBrush& brush)
+ { return m_refData == brush.m_refData; }
+ bool operator != (const wxBrush& brush)
+ { return m_refData != brush.m_refData; }
wxMacBrushKind MacGetBrushKind() const ;
// Choice item
class WXDLLEXPORT wxChoice: public wxChoiceBase
{
- DECLARE_DYNAMIC_CLASS(wxChoice)
-
- public:
- wxChoice() {}
- virtual ~wxChoice() ;
+ DECLARE_DYNAMIC_CLASS(wxChoice)
+
+public:
+ wxChoice()
+ : m_strings(), m_datas(), m_macPopUpMenuHandle(NULL)
+ {}
+
+ virtual ~wxChoice() ;
wxChoice(wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
wxColour();
// from RGB
wxColour( unsigned char red, unsigned char green, unsigned char blue );
- wxColour( unsigned long colRGB ) { Set(colRGB); }
+ wxColour( unsigned long colRGB )
+ : m_isInit(FALSE), m_red(0), m_blue(0), m_green(0)
+ { Set(colRGB); }
// implicit conversion from the colour name
- wxColour( const wxString &colourName ) { InitFromName(colourName); }
- wxColour( const char *colourName ) { InitFromName(colourName); }
+ wxColour( const wxString &colourName )
+ : m_isInit(FALSE), m_red(0), m_blue(0), m_green(0)
+ { InitFromName(colourName); }
+ wxColour( const char *colourName )
+ : m_isInit(FALSE), m_red(0), m_blue(0), m_green(0)
+ { InitFromName(colourName); }
// copy ctors and assignment operators
wxColour( const wxColour& col );
protected:
// For controls like radiobuttons which are really composite
- WXWidget m_macControl ;
- bool m_macControlIsShown ;
- wxList m_subControls;
- int m_macHorizontalBorder ;
- int m_macVerticalBorder ;
+ WXWidget m_macControl ;
+ bool m_macControlIsShown ;
+ wxList m_subControls;
+ int m_macHorizontalBorder ;
+ int m_macVerticalBorder ;
virtual wxSize DoGetBestSize() const;
int ShowModal();
// not supported for file dialog, RR
- virtual void DoSetSize(int x, int y,
- int width, int height,
- int sizeFlags = wxSIZE_AUTO) {}
+ virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
+ int WXUNUSED(width), int WXUNUSED(height),
+ int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
};
virtual void* DoGetItemClientData(int n) const;
virtual void DoSetItemClientObject(int n, wxClientData* clientData);
virtual wxClientData* DoGetItemClientObject(int n) const;
- virtual void DoSetSize(int x, int y,int width, int height,int sizeFlags = wxSIZE_AUTO ) ;
+ virtual void DoSetSize(int x, int y,int width, int height,int sizeFlags = wxSIZE_AUTO ) ;
// wxCheckListBox support
#if wxUSE_OWNER_DRAWN
// Windows callbacks
- virtual void SetupColours();
- virtual void MacHandleControlClick( WXWidget control , wxInt16 controlpart ) ;
+ virtual void SetupColours();
+ virtual void MacHandleControlClick( WXWidget control , wxInt16 controlpart ) ;
- void* m_macList ;
- wxArrayString m_stringArray ;
- wxListDataArray m_dataArray ;
- wxArrayInt m_selectionPreImage ;
- void MacSetRedraw( bool doDraw ) ;
+ void* m_macList ;
+ wxArrayString m_stringArray ;
+ wxListDataArray m_dataArray ;
+ wxArrayInt m_selectionPreImage ;
+ void MacSetRedraw( bool doDraw ) ;
protected:
- void MacDestroy() ;
- void MacDelete( int n ) ;
- void MacInsert( int n , const char * text) ;
- void MacAppend( const char * text) ;
- void MacSet( int n , const char *text ) ;
- void MacClear() ;
- void MacSetSelection( int n , bool select ) ;
- int MacGetSelection() const ;
- int MacGetSelections(wxArrayInt& aSelections) const ;
- bool MacIsSelected( int n ) const ;
- void MacScrollTo( int n ) ;
- void OnSize( const wxSizeEvent &size ) ;
- void MacDoClick() ;
- void MacDoDoubleClick() ;
+ void MacDestroy() ;
+ void MacDelete( int n ) ;
+ void MacInsert( int n , const char * text) ;
+ void MacAppend( const char * text) ;
+ void MacSet( int n , const char *text ) ;
+ void MacClear() ;
+ void MacSetSelection( int n , bool select ) ;
+ int MacGetSelection() const ;
+ int MacGetSelections(wxArrayInt& aSelections) const ;
+ bool MacIsSelected( int n ) const ;
+ void MacScrollTo( int n ) ;
+ void OnSize( const wxSizeEvent &size ) ;
+ void MacDoClick() ;
+ void MacDoDoubleClick() ;
// do we have multiple selections?
bool HasMultipleSelection() const;
private:
DECLARE_DYNAMIC_CLASS(wxListBox)
- DECLARE_EVENT_TABLE()
+ DECLARE_EVENT_TABLE()
};
#endif
class wxMacPortStateHelper
{
-public :
- wxMacPortStateHelper( GrafPtr newport) ;
- wxMacPortStateHelper() ;
- ~wxMacPortStateHelper() ;
+ DECLARE_NO_COPY_CLASS(wxMacPortStateHelper)
+
+public:
+ wxMacPortStateHelper( GrafPtr newport) ;
+ wxMacPortStateHelper() ;
+ ~wxMacPortStateHelper() ;
- void Setup( GrafPtr newport ) ;
- void Clear() ;
- bool IsCleared() { return m_clip == NULL ; }
- GrafPtr GetCurrentPort() { return m_currentPort ; }
+ void Setup( GrafPtr newport ) ;
+ void Clear() ;
+ bool IsCleared() { return m_clip == NULL ; }
+ GrafPtr GetCurrentPort() { return m_currentPort ; }
-private :
- GrafPtr m_currentPort ;
- GrafPtr m_oldPort ;
- RgnHandle m_clip ;
- ThemeDrawingState m_drawingState ;
- short m_textFont ;
- short m_textSize ;
- short m_textStyle ;
- short m_textMode ;
+private:
+ GrafPtr m_currentPort ;
+ GrafPtr m_oldPort ;
+ RgnHandle m_clip ;
+ ThemeDrawingState m_drawingState ;
+ short m_textFont ;
+ short m_textSize ;
+ short m_textStyle ;
+ short m_textMode ;
} ;
class WXDLLEXPORT wxMacPortSetter
{
-public :
- wxMacPortSetter( const wxDC* dc ) ;
- ~wxMacPortSetter() ;
-private :
- wxMacPortStateHelper m_ph ;
- const wxDC* m_dc ;
+ DECLARE_NO_COPY_CLASS(wxMacPortSetter)
+
+public:
+ wxMacPortSetter( const wxDC* dc ) ;
+ ~wxMacPortSetter() ;
+private:
+ wxMacPortStateHelper m_ph ;
+ const wxDC* m_dc ;
} ;
class wxMacDrawingHelper
{
-public :
- wxMacDrawingHelper( wxWindowMac * theWindow , bool clientArea = false ) ;
- ~wxMacDrawingHelper() ;
- bool Ok() { return m_ok ; }
- void LocalToWindow( Rect *rect) { OffsetRect( rect , m_origin.h , m_origin.v ) ; }
- void LocalToWindow( Point *pt ) { AddPt( m_origin , pt ) ; }
- void LocalToWindow( RgnHandle rgn ) { OffsetRgn( rgn , m_origin.h , m_origin.v ) ; }
- const Point& GetOrigin() { return m_origin ; }
-private :
- Point m_origin ;
- GrafPtr m_formerPort ;
- GrafPtr m_currentPort ;
- PenState m_savedPenState ;
- bool m_ok ;
+ DECLARE_NO_COPY_CLASS(wxMacDrawingHelper)
+
+public:
+ wxMacDrawingHelper( wxWindowMac * theWindow , bool clientArea = false ) ;
+ ~wxMacDrawingHelper() ;
+ bool Ok() { return m_ok ; }
+ void LocalToWindow( Rect *rect) { OffsetRect( rect , m_origin.h , m_origin.v ) ; }
+ void LocalToWindow( Point *pt ) { AddPt( m_origin , pt ) ; }
+ void LocalToWindow( RgnHandle rgn ) { OffsetRgn( rgn , m_origin.h , m_origin.v ) ; }
+ const Point& GetOrigin() { return m_origin ; }
+private:
+ Point m_origin ;
+ GrafPtr m_formerPort ;
+ GrafPtr m_currentPort ;
+ PenState m_savedPenState ;
+ bool m_ok ;
} ;
public:
// constructors and pseudo-constructors
- wxStaticLine() { }
+ wxStaticLine() : m_statbox(NULL) { }
wxStaticLine( wxWindow *parent,
wxWindowID id,
const wxSize &size = wxDefaultSize,
long style = wxLI_HORIZONTAL,
const wxString &name = wxStaticTextNameStr )
+ : m_statbox(NULL)
{
Create(parent, id, pos, size, style, name);
}
{
DECLARE_DYNAMIC_CLASS(wxStaticText)
public:
- inline wxStaticText() { }
+ inline wxStaticText() : m_label() { }
inline wxStaticText(wxWindow *parent, wxWindowID id,
const wxString& label,
* Public interface
*/
- wxToolBar() { Init(); }
+ wxToolBar() : m_macToolHandles() { Init(); }
- inline wxToolBar(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
- long style = wxNO_BORDER|wxTB_HORIZONTAL,
- const wxString& name = wxToolBarNameStr)
+ inline wxToolBar(wxWindow *parent, wxWindowID id,
+ const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
+ long style = wxNO_BORDER|wxTB_HORIZONTAL,
+ const wxString& name = wxToolBarNameStr)
+ : m_macToolHandles()
{
Init();
Create(parent, id, pos, size, style, name);
virtual void SetIcons(const wxIconBundle& icons) { SetIcon( icons.GetIcon( -1 ) ); }
virtual void Restore();
- virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL) { return FALSE; }
+ virtual bool ShowFullScreen(bool WXUNUSED(show), long WXUNUSED(style) = wxFULLSCREEN_ALL)
+ { return FALSE; }
virtual bool IsFullScreen() const { return FALSE; }
// implementation from now on
// --------------------------
- virtual void MacCreateRealWindow( const wxString& title,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxString& name ) ;
- static WXWindow MacGetWindowInUpdate() { return s_macWindowInUpdate ; }
- virtual void MacGetPortParams(WXPOINTPTR localOrigin, WXRECTPTR clipRect, WXWindow *window , wxWindowMac** rootwin ) ;
- virtual void Clear() ;
- virtual WXWidget MacGetContainerForEmbedding() ;
- WXWindow MacGetWindowRef() { return m_macWindow ; }
- virtual void MacActivate( WXEVENTREF ev , bool inIsActivating ) ;
- virtual void MacUpdate( long timestamp ) ;
- virtual void MacMouseDown( WXEVENTREF ev , short windowPart ) ;
- virtual void MacMouseUp( WXEVENTREF ev , short windowPart ) ;
- virtual void MacMouseMoved( WXEVENTREF ev , short windowPart ) ;
- virtual void MacKeyDown( WXEVENTREF ev ) ;
- virtual void MacFireMouseEvent( WXEVENTREF ev ) ;
- virtual void Raise();
- virtual void Lower();
- virtual void SetTitle( const wxString& title);
- virtual bool Show( bool show = TRUE );
- virtual void DoMoveWindow(int x, int y, int width, int height);
- void MacInvalidate( const WXRECTPTR rect, bool eraseBackground ) ;
+ virtual void MacCreateRealWindow( const wxString& title,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style,
+ const wxString& name ) ;
+ static WXWindow MacGetWindowInUpdate() { return s_macWindowInUpdate ; }
+ virtual void MacGetPortParams(WXPOINTPTR localOrigin, WXRECTPTR clipRect, WXWindow *window , wxWindowMac** rootwin ) ;
+ virtual void Clear() ;
+ virtual WXWidget MacGetContainerForEmbedding() ;
+ WXWindow MacGetWindowRef() { return m_macWindow ; }
+ virtual void MacActivate( WXEVENTREF ev , bool inIsActivating ) ;
+ virtual void MacUpdate( long timestamp ) ;
+ virtual void MacMouseDown( WXEVENTREF ev , short windowPart ) ;
+ virtual void MacMouseUp( WXEVENTREF ev , short windowPart ) ;
+ virtual void MacMouseMoved( WXEVENTREF ev , short windowPart ) ;
+ virtual void MacKeyDown( WXEVENTREF ev ) ;
+ virtual void MacFireMouseEvent( WXEVENTREF ev ) ;
+ virtual void Raise();
+ virtual void Lower();
+ virtual void SetTitle( const wxString& title);
+ virtual bool Show( bool show = TRUE );
+ virtual void DoMoveWindow(int x, int y, int width, int height);
+ void MacInvalidate( const WXRECTPTR rect, bool eraseBackground ) ;
protected:
// common part of all ctors
void Init();
WXHRGN m_macNoEraseUpdateRgn ;
bool m_macNeedsErasing ;
- static WXWindow s_macWindowInUpdate ;
+ static WXWindow s_macWindowInUpdate ;
};
// list of all frames and modeless dialogs
virtual bool OnExists() const
{ return FALSE; }
- virtual bool OnOpen(const wxString &strBufferName,
- wxTextBufferOpenMode OpenMode)
+ virtual bool OnOpen(const wxString & WXUNUSED(strBufferName),
+ wxTextBufferOpenMode WXUNUSED(OpenMode))
{ return TRUE; }
virtual bool OnClose()
{ return TRUE; }
- virtual bool OnRead(wxMBConv& conv)
+ virtual bool OnRead(wxMBConv& WXUNUSED(conv))
{ return TRUE; }
- virtual bool OnWrite(wxTextFileType typeNew,
- wxMBConv& conv = wxConvLibc)
+ virtual bool OnWrite(wxTextFileType WXUNUSED(typeNew),
+ wxMBConv& WXUNUSED(conv) = wxConvLibc)
{ return TRUE; }
};
//// Constructor
- wxQuantize() {};
+ wxQuantize() {}
+ ~wxQuantize() {}
//// Operations
wxTime() : m_time(wxDateTime::Now()) { }
wxTime(clockTy s) : m_time((time_t)(s - wxTIME_EPOCH_DIFF)) { }
void operator=(const wxTime& t) { m_time = t.m_time; }
- wxTime(const wxTime& t) { *this = t; }
+ wxTime(const wxTime& t) : wxObject() { *this = t; }
wxTime(hourTy h, minuteTy m, secondTy s = 0, bool WXUNUSED(dst) = FALSE)
: m_time(h, m, s) { }
wxBitmap wxDefaultArtProvider::CreateBitmap(const wxArtID& id,
const wxArtClient& client,
- const wxSize& size)
+ const wxSize& WXUNUSED(size))
{
// wxMessageBox icons:
ART_MSGBOX(wxART_ERROR, wxICON_ERROR, error)
}
wxGenericValidator::wxGenericValidator(const wxGenericValidator& val)
+ : wxValidator()
{
Copy(val);
}
}
wxTextValidator::wxTextValidator(const wxTextValidator& val)
+ : wxValidator()
{
Copy(val);
}
}
wxVariant::wxVariant(const wxVariant& variant)
+ : wxObject()
{
if (!variant.IsNull())
{
}
wxAccelRefData(const wxAccelRefData& data)
+ : wxObjectRefData()
{
m_accels.DeleteContents(TRUE);
m_accels = data.m_accels;
// event handlers
// ----------------------------------------------------------------------------
-void wxGenericFindReplaceDialog::OnFind(wxCommandEvent& event)
+void wxGenericFindReplaceDialog::OnFind(wxCommandEvent& WXUNUSED(event))
{
SendEvent(wxEVT_COMMAND_FIND_NEXT);
}
-void wxGenericFindReplaceDialog::OnReplace(wxCommandEvent& event)
+void wxGenericFindReplaceDialog::OnReplace(wxCommandEvent& WXUNUSED(event))
{
SendEvent(wxEVT_COMMAND_FIND_REPLACE);
}
-void wxGenericFindReplaceDialog::OnReplaceAll(wxCommandEvent& event)
+void wxGenericFindReplaceDialog::OnReplaceAll(wxCommandEvent& WXUNUSED(event))
{
SendEvent(wxEVT_COMMAND_FIND_REPLACE_ALL);
}
-void wxGenericFindReplaceDialog::OnCancel(wxCommandEvent& event)
+void wxGenericFindReplaceDialog::OnCancel(wxCommandEvent& WXUNUSED(event))
{
SendEvent(wxEVT_COMMAND_FIND_CLOSE);
// wxFileCtrl
//-----------------------------------------------------------------------------
-IMPLEMENT_DYNAMIC_CLASS(wxFileCtrl,wxListCtrl);
+IMPLEMENT_DYNAMIC_CLASS(wxFileCtrl,wxListCtrl)
BEGIN_EVENT_TABLE(wxFileCtrl,wxListCtrl)
EVT_LIST_DELETE_ITEM(-1, wxFileCtrl::OnListDeleteItem)
}
wxBitmap::wxBitmap( const wxBitmap& bmp )
+ : wxGDIObject()
{
Ref( bmp );
}
}
wxBrushRefData( const wxBrushRefData& data )
+ : wxObjectRefData()
{
m_style = data.m_style;
m_stipple = data.m_stipple;
}
wxColourRefData(const wxColourRefData& data)
+ : wxObjectRefData()
{
m_color = data.m_color;
m_colormap = data.m_colormap;
wxCursor::wxCursor( const wxCursor &cursor )
+ : wxObject()
{
Ref( cursor );
}
}
wxFontRefData::wxFontRefData( const wxFontRefData& data )
+ : wxObjectRefData()
{
m_pointSize = data.m_pointSize;
m_family = data.m_family;
}
wxPenRefData( const wxPenRefData& data )
+ : wxObjectRefData()
{
m_style = data.m_style;
m_width = data.m_width;
}
wxRegionRefData(const wxRegionRefData& refData)
+ : wxObjectRefData()
{
#ifdef __WXGTK20__
m_region = gdk_region_copy(refData.m_region);
#define M_REGIONDATA ((wxRegionRefData *)m_refData)
#define M_REGIONDATA_OF(rgn) ((wxRegionRefData *)(rgn.m_refData))
-IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject);
-IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator,wxObject);
+IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject)
+IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator,wxObject)
// ----------------------------------------------------------------------------
// wxRegion construction
}
wxBitmap::wxBitmap( const wxBitmap& bmp )
+ : wxGDIObject()
{
Ref( bmp );
}
}
wxBrushRefData( const wxBrushRefData& data )
+ : wxObjectRefData()
{
m_style = data.m_style;
m_stipple = data.m_stipple;
}
wxColourRefData(const wxColourRefData& data)
+ : wxObjectRefData()
{
m_color = data.m_color;
m_colormap = data.m_colormap;
wxCursor::wxCursor( const wxCursor &cursor )
+ : wxObject()
{
Ref( cursor );
}
}
wxFontRefData::wxFontRefData( const wxFontRefData& data )
+ : wxObjectRefData()
{
m_pointSize = data.m_pointSize;
m_family = data.m_family;
}
wxPenRefData( const wxPenRefData& data )
+ : wxObjectRefData()
{
m_style = data.m_style;
m_width = data.m_width;
}
wxRegionRefData(const wxRegionRefData& refData)
+ : wxObjectRefData()
{
#ifdef __WXGTK20__
m_region = gdk_region_copy(refData.m_region);
#define M_REGIONDATA ((wxRegionRefData *)m_refData)
#define M_REGIONDATA_OF(rgn) ((wxRegionRefData *)(rgn.m_refData))
-IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject);
-IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator,wxObject);
+IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject)
+IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator,wxObject)
// ----------------------------------------------------------------------------
// wxRegion construction
#define M_ACCELDATA ((wxAcceleratorRefData *)m_refData)
wxAcceleratorRefData::wxAcceleratorRefData()
+ : m_accels()
{
- m_accels.DeleteContents( TRUE );
}
wxAcceleratorRefData::~wxAcceleratorRefData()
wxAcceleratorTable::wxAcceleratorTable()
{
- m_refData = NULL;
+ m_refData = NULL;
}
wxAcceleratorTable::~wxAcceleratorTable()
#define M_BRUSHDATA ((wxBrushRefData *)m_refData)
wxBrushRefData::wxBrushRefData()
+ : m_style(wxSOLID)
{
- m_style = wxSOLID;
m_macBrushKind = kwxMacBrushColour ;
}
wxBrushRefData::wxBrushRefData(const wxBrushRefData& data)
+ : wxGDIRefData()
+ , m_style(data.m_style)
{
- m_style = data.m_style;
m_stipple = data.m_stipple;
m_colour = data.m_colour;
m_macBrushKind = data.m_macBrushKind ;
#define M_ACCELDATA ((wxAcceleratorRefData *)m_refData)
wxAcceleratorRefData::wxAcceleratorRefData()
+ : m_accels()
{
- m_accels.DeleteContents( TRUE );
}
wxAcceleratorRefData::~wxAcceleratorRefData()
wxAcceleratorTable::wxAcceleratorTable()
{
- m_refData = NULL;
+ m_refData = NULL;
}
wxAcceleratorTable::~wxAcceleratorTable()
#define M_BRUSHDATA ((wxBrushRefData *)m_refData)
wxBrushRefData::wxBrushRefData()
+ : m_style(wxSOLID)
{
- m_style = wxSOLID;
m_macBrushKind = kwxMacBrushColour ;
}
wxBrushRefData::wxBrushRefData(const wxBrushRefData& data)
+ : wxGDIRefData()
+ , m_style(data.m_style)
{
- m_style = data.m_style;
m_stipple = data.m_stipple;
m_colour = data.m_colour;
m_macBrushKind = data.m_macBrushKind ;
}
wxColour::wxColour (const wxColour& col)
+ : wxObject()
{
m_red = col.m_red;
m_green = col.m_green;
m_red = col->red>>8 ;
m_blue = col->blue>>8 ;
m_green = col->green>>8 ;
-}
\ No newline at end of file
+}
}
void wxDC::DoDrawPolygon(int n, wxPoint points[],
- wxCoord xoffset, wxCoord yoffset,
- int fillStyle )
+ wxCoord xoffset, wxCoord yoffset,
+ int fillStyle )
{
wxCHECK_RET(Ok(), wxT("Invalid DC"));
wxMacPortSetter helper(this) ;
if ( LockPixels(bmappixels) )
{
wxMacPortSetter helper(this) ;
- RGBColor tempColor ;
if ( source->GetDepth() == 1 )
{
IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxPaintDC)
wxMemoryDC::wxMemoryDC(void)
+ : m_selected()
{
m_ok = TRUE;
SetBackground(*wxWHITE_BRUSH);
};
wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
+ : m_selected()
{
- m_ok = TRUE;
+ m_ok = TRUE;
SetBackground(*wxWHITE_BRUSH);
SetBrush(*wxWHITE_BRUSH);
SetPen(*wxBLACK_PEN);
m_faceName = faceName;
m_encoding = encoding;
- m_macFontNum = 0 ;
- m_macFontSize = 0;
- m_macFontStyle = 0;
+ m_macFontNum = 0 ;
+ m_macFontSize = 0;
+ m_macFontStyle = 0;
m_fontId = 0;
}
/* Hack added for Mac OS X */
GSocketError GAddress_UNIX_GetPath(GAddress *addr, char *path, size_t buf)
{
+ return GSOCK_INVADDR;
}
GSocketError GAddress_UNIX_SetPath(GAddress *addr, const char *path)
{
+ return GSOCK_INVADDR;
}
#endif /* wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) */
}
wxIcon::wxIcon(const char bits[], int width, int height) :
- wxBitmap(bits,width,height )
+ wxBitmap(bits, width, height)
{
}
wxIcon::wxIcon( const char **bits ) :
- wxBitmap(bits )
+ wxBitmap(bits)
{
}
wxIcon::wxIcon( char **bits ) :
- wxBitmap(bits )
+ wxBitmap(bits)
{
}
wxIcon::wxIcon(const wxString& icon_file, int flags,
int desiredWidth, int desiredHeight)
-
{
LoadFile(icon_file, (wxBitmapType) flags, desiredWidth, desiredHeight);
}
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl)
- IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent);
+ IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent)
#endif
wxSpinButton::wxSpinButton()
{
Refresh(FALSE) ;
wxWindow::MacSuperEnabled( enabled ) ;
-}
\ No newline at end of file
+}
wxSize wxStaticText::DoGetBestSize() const
{
- int x,y ;
int widthTextMax = 0, widthLine,
heightTextTotal = 0, heightLineDefault = 0, heightLine = 0;
if (!IsEditable())
return FALSE;
- long offset ;
#if TARGET_CARBON
OSStatus err = noErr;
ScrapRef scrapRef;
return FALSE;
#else
+ long offset ;
if ( GetScrap( NULL , 'TEXT' , &offset ) > 0 )
{
return TRUE ;
long wxTextCtrl::GetInsertionPoint() const
{
- ControlEditTextSelectionRec selection ;
+ // ControlEditTextSelectionRec selection ;
TEHandle teH ;
long size ;
long wxTextCtrl::GetLastPosition() const
{
- ControlEditTextSelectionRec selection ;
+ // ControlEditTextSelectionRec selection ;
TEHandle teH ;
long size ;
::GetControlData( (ControlHandle) m_macControl , 0, kControlEditTextTEHandleTag , sizeof( TEHandle ) , (char*) &teH , &size ) ;
- TEInsert( wxBuffer , strlen( wxBuffer) , teH ) ;
- Refresh() ;
+ TEInsert( wxBuffer , strlen( wxBuffer) , teH ) ;
+ Refresh() ;
}
void wxTextCtrl::AppendText(const wxString& text)
wxMacStCritical critical ;
if ( UMASystemIsInitialized() )
{
- OSErr err ;
ThreadID current = kNoThreadID;
::MacGetCurrentThread(¤t);
// if we are not the owner, give an error back
// this works because all these threads are already waiting and so each
// SetEvent() inside Signal() is really a PulseEvent() because the event
// state is immediately returned to non-signaled
- for ( int i = 0; i < m_internal->m_waiters.Count(); i++ )
+ for ( size_t i = 0; i < m_internal->m_waiters.Count(); i++ )
{
Signal();
}
err = MacGetCurrentThread( ¤t ) ;
- for ( int i = 0 ; i < s_threads.Count() ; ++i )
+ for ( size_t i = 0 ; i < s_threads.Count() ; ++i )
{
if ( ( (wxThread*) s_threads[i] )->GetId() == current )
return (wxThread*) s_threads[i] ;
return FALSE;
Point localOrigin ;
- Rect clipRect ;
+ // Rect clipRect ;
WindowRef window = (WindowRef) MacGetRootWindow() ;
- wxWindow *win ;
+ // wxWindow *win ;
int lx , ly ;
lx = ly = 0 ;
{
Point localOrigin ;
- Rect clipRect ;
- WindowRef window ;
- wxWindow *win ;
+ // Rect clipRect ;
+ // WindowRef window ;
+ // wxWindow *win ;
int lx , ly ;
lx = ly = 0 ;
MacWindowToRootWindow( &lx , &ly ) ;
#ifdef __DARWIN__
int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
{
- wxFAIL_MSG(wxT("wxAddProcessCallback() function not ready"));
+ wxFAIL_MSG( _T("wxAddProcessCallback() function not yet implemented") );
return 0;
}
#endif
m_hScrollBar = NULL ;
m_vScrollBar = NULL ;
+
+ m_label = wxEmptyString;
}
// Destructor
return wxPoint(MacGetLeftBorderSize( ) , MacGetTopBorderSize( ) );
}
-void wxWindow::SetTitle(const wxString& title)
+void wxWindowMac::SetTitle(const wxString& title)
{
m_label = title ;
}
-wxString wxWindow::GetTitle() const
+wxString wxWindowMac::GetTitle() const
{
return m_label ;
}
}
wxColour::wxColour (const wxColour& col)
+ : wxObject()
{
m_red = col.m_red;
m_green = col.m_green;
m_red = col->red>>8 ;
m_blue = col->blue>>8 ;
m_green = col->green>>8 ;
-}
\ No newline at end of file
+}
}
void wxDC::DoDrawPolygon(int n, wxPoint points[],
- wxCoord xoffset, wxCoord yoffset,
- int fillStyle )
+ wxCoord xoffset, wxCoord yoffset,
+ int fillStyle )
{
wxCHECK_RET(Ok(), wxT("Invalid DC"));
wxMacPortSetter helper(this) ;
if ( LockPixels(bmappixels) )
{
wxMacPortSetter helper(this) ;
- RGBColor tempColor ;
if ( source->GetDepth() == 1 )
{
IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxPaintDC)
wxMemoryDC::wxMemoryDC(void)
+ : m_selected()
{
m_ok = TRUE;
SetBackground(*wxWHITE_BRUSH);
};
wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
+ : m_selected()
{
- m_ok = TRUE;
+ m_ok = TRUE;
SetBackground(*wxWHITE_BRUSH);
SetBrush(*wxWHITE_BRUSH);
SetPen(*wxBLACK_PEN);
m_faceName = faceName;
m_encoding = encoding;
- m_macFontNum = 0 ;
- m_macFontSize = 0;
- m_macFontStyle = 0;
+ m_macFontNum = 0 ;
+ m_macFontSize = 0;
+ m_macFontStyle = 0;
m_fontId = 0;
}
/* Hack added for Mac OS X */
GSocketError GAddress_UNIX_GetPath(GAddress *addr, char *path, size_t buf)
{
+ return GSOCK_INVADDR;
}
GSocketError GAddress_UNIX_SetPath(GAddress *addr, const char *path)
{
+ return GSOCK_INVADDR;
}
#endif /* wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) */
}
wxIcon::wxIcon(const char bits[], int width, int height) :
- wxBitmap(bits,width,height )
+ wxBitmap(bits, width, height)
{
}
wxIcon::wxIcon( const char **bits ) :
- wxBitmap(bits )
+ wxBitmap(bits)
{
}
wxIcon::wxIcon( char **bits ) :
- wxBitmap(bits )
+ wxBitmap(bits)
{
}
wxIcon::wxIcon(const wxString& icon_file, int flags,
int desiredWidth, int desiredHeight)
-
{
LoadFile(icon_file, (wxBitmapType) flags, desiredWidth, desiredHeight);
}
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl)
- IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent);
+ IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent)
#endif
wxSpinButton::wxSpinButton()
{
Refresh(FALSE) ;
wxWindow::MacSuperEnabled( enabled ) ;
-}
\ No newline at end of file
+}
wxSize wxStaticText::DoGetBestSize() const
{
- int x,y ;
int widthTextMax = 0, widthLine,
heightTextTotal = 0, heightLineDefault = 0, heightLine = 0;
if (!IsEditable())
return FALSE;
- long offset ;
#if TARGET_CARBON
OSStatus err = noErr;
ScrapRef scrapRef;
return FALSE;
#else
+ long offset ;
if ( GetScrap( NULL , 'TEXT' , &offset ) > 0 )
{
return TRUE ;
long wxTextCtrl::GetInsertionPoint() const
{
- ControlEditTextSelectionRec selection ;
+ // ControlEditTextSelectionRec selection ;
TEHandle teH ;
long size ;
long wxTextCtrl::GetLastPosition() const
{
- ControlEditTextSelectionRec selection ;
+ // ControlEditTextSelectionRec selection ;
TEHandle teH ;
long size ;
::GetControlData( (ControlHandle) m_macControl , 0, kControlEditTextTEHandleTag , sizeof( TEHandle ) , (char*) &teH , &size ) ;
- TEInsert( wxBuffer , strlen( wxBuffer) , teH ) ;
- Refresh() ;
+ TEInsert( wxBuffer , strlen( wxBuffer) , teH ) ;
+ Refresh() ;
}
void wxTextCtrl::AppendText(const wxString& text)
wxMacStCritical critical ;
if ( UMASystemIsInitialized() )
{
- OSErr err ;
ThreadID current = kNoThreadID;
::MacGetCurrentThread(¤t);
// if we are not the owner, give an error back
// this works because all these threads are already waiting and so each
// SetEvent() inside Signal() is really a PulseEvent() because the event
// state is immediately returned to non-signaled
- for ( int i = 0; i < m_internal->m_waiters.Count(); i++ )
+ for ( size_t i = 0; i < m_internal->m_waiters.Count(); i++ )
{
Signal();
}
err = MacGetCurrentThread( ¤t ) ;
- for ( int i = 0 ; i < s_threads.Count() ; ++i )
+ for ( size_t i = 0 ; i < s_threads.Count() ; ++i )
{
if ( ( (wxThread*) s_threads[i] )->GetId() == current )
return (wxThread*) s_threads[i] ;
return FALSE;
Point localOrigin ;
- Rect clipRect ;
+ // Rect clipRect ;
WindowRef window = (WindowRef) MacGetRootWindow() ;
- wxWindow *win ;
+ // wxWindow *win ;
int lx , ly ;
lx = ly = 0 ;
{
Point localOrigin ;
- Rect clipRect ;
- WindowRef window ;
- wxWindow *win ;
+ // Rect clipRect ;
+ // WindowRef window ;
+ // wxWindow *win ;
int lx , ly ;
lx = ly = 0 ;
MacWindowToRootWindow( &lx , &ly ) ;
#ifdef __DARWIN__
int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
{
- wxFAIL_MSG(wxT("wxAddProcessCallback() function not ready"));
+ wxFAIL_MSG( _T("wxAddProcessCallback() function not yet implemented") );
return 0;
}
#endif
m_hScrollBar = NULL ;
m_vScrollBar = NULL ;
+
+ m_label = wxEmptyString;
}
// Destructor
return wxPoint(MacGetLeftBorderSize( ) , MacGetTopBorderSize( ) );
}
-void wxWindow::SetTitle(const wxString& title)
+void wxWindowMac::SetTitle(const wxString& title)
{
m_label = title ;
}
-wxString wxWindow::GetTitle() const
+wxString wxWindowMac::GetTitle() const
{
return m_label ;
}
if (ret == -1)
{
GSocket_Debug(( "GSocket_Input_Timeout, select returned -1\n" ));
- if (errno == EBADF) GSocket_Debug(( "Invalid file descriptor\n" ));
- if (errno == EINTR) GSocket_Debug(( "A non blocked signal was caught\n" ));
- if (errno == EINVAL) GSocket_Debug(( "The highest number descriptor is negative\n" ));
- if (errno == ENOMEM) GSocket_Debug(( "Not enough memory\n" ));
+ if (errno == EBADF) { GSocket_Debug(( "Invalid file descriptor\n" )); }
+ if (errno == EINTR) { GSocket_Debug(( "A non blocked signal was caught\n" )); }
+ if (errno == EINVAL) { GSocket_Debug(( "The highest number descriptor is negative\n" )); }
+ if (errno == ENOMEM) { GSocket_Debug(( "Not enough memory\n" )); }
socket->m_error = GSOCK_TIMEDOUT;
return GSOCK_TIMEDOUT;
}
if (ret == -1)
{
GSocket_Debug(( "GSocket_Output_Timeout, select returned -1\n" ));
- if (errno == EBADF) GSocket_Debug(( "Invalid file descriptor\n" ));
- if (errno == EINTR) GSocket_Debug(( "A non blocked signal was caught\n" ));
- if (errno == EINVAL) GSocket_Debug(( "The highest number descriptor is negative\n" ));
- if (errno == ENOMEM) GSocket_Debug(( "Not enough memory\n" ));
+ if (errno == EBADF) { GSocket_Debug(( "Invalid file descriptor\n" )); }
+ if (errno == EINTR) { GSocket_Debug(( "A non blocked signal was caught\n" )); }
+ if (errno == EINVAL) { GSocket_Debug(( "The highest number descriptor is negative\n" )); }
+ if (errno == ENOMEM) { GSocket_Debug(( "Not enough memory\n" )); }
socket->m_error = GSOCK_TIMEDOUT;
return GSOCK_TIMEDOUT;
}
- if ( ! FD_ISSET(socket->m_fd, &writefds) )
- GSocket_Debug(( "GSocket_Output_Timeout is buggy!\n" ));
- else
- GSocket_Debug(( "GSocket_Output_Timeout seems correct\n" ));
+ if ( ! FD_ISSET(socket->m_fd, &writefds) ) {
+ GSocket_Debug(( "GSocket_Output_Timeout is buggy!\n" ));
+ }
+ else {
+ GSocket_Debug(( "GSocket_Output_Timeout seems correct\n" ));
+ }
}
else
{
// overwriteprompt is TRUE, but this is currently ignored as *Associate* has
// no overwrite prompt
bool wxFileTypeImpl::SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt /*= TRUE*/)
- {
+{
wxArrayString strExtensions;
wxString strDesc, strIcon ;
size_t i;
bool Ok = TRUE;
for (i = 0; i < strTypes.GetCount(); i++)
- {
+ {
if (!m_manager->DoAssociation (strTypes[i], strIcon, entry, strExtensions, strDesc))
- Ok = FALSE;
- }
+ Ok = FALSE;
+ }
return Ok;
- }
+}
// ignore index on the grouds that we only have one icon in a Unix file
bool wxFileTypeImpl::SetDefaultIcon(const wxString& strIcon /*= wxEmptyString*/, int /*index = 0*/)
- {
+{
if (strIcon.IsEmpty()) return FALSE;
wxArrayString strExtensions;
wxString strDesc;
size_t i;
bool Ok = TRUE;
for (i = 0; i < strTypes.GetCount(); i++)
- {
+ {
if (!m_manager->DoAssociation (strTypes[i], strIcon, entry, strExtensions, strDesc))
- Ok = FALSE;
- }
+ Ok = FALSE;
+ }
return Ok;
- }
+}
+
// ----------------------------------------------------------------------------
// wxMimeTypesManagerImpl (Unix)
// ----------------------------------------------------------------------------