Fixes a few SGI compiler warnings..
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		| @@ -69,6 +69,11 @@ public: | ||||
|     void SetClientObject( int n, wxClientData* clientData ); | ||||
|     wxClientData* GetClientObject( int n ); | ||||
|  | ||||
|     void SetClientObject( wxClientData *data )  { wxControl::SetClientObject( data ); } | ||||
|     wxClientData *GetClientObject() const       { return wxControl::GetClientObject(); } | ||||
|     void SetClientData( void *data )            { wxControl::SetClientData( data ); } | ||||
|     void *GetClientData() const                 { return wxControl::GetClientData(); } | ||||
|      | ||||
|     void Clear(); | ||||
|     void Delete(int n); | ||||
|  | ||||
|   | ||||
| @@ -75,6 +75,11 @@ public: | ||||
|   void SetClientObject( int n, wxClientData* clientData ); | ||||
|   wxClientData* GetClientObject( int n ); | ||||
|    | ||||
|   void SetClientObject( wxClientData *data )  { wxControl::SetClientObject( data ); } | ||||
|   wxClientData *GetClientObject() const       { return wxControl::GetClientObject(); } | ||||
|   void SetClientData( void *data )            { wxControl::SetClientData( data ); } | ||||
|   void *GetClientData() const                 { return wxControl::GetClientData(); } | ||||
|      | ||||
|   void Clear(); | ||||
|   void Delete( int n ); | ||||
|    | ||||
|   | ||||
| @@ -88,7 +88,7 @@ public: | ||||
|   { | ||||
|       CrossHair(pt.x, pt.y); | ||||
|   } | ||||
|   virtual void DrawArc( long x1, long y1, long x2, long y2, double xc, double yc ); | ||||
|   virtual void DrawArc( long x1, long y1, long x2, long y2, long xc, long yc ); | ||||
|   inline void DrawArc(const wxPoint& pt1, const wxPoint& pt2, const wxPoint& centre) | ||||
|   { | ||||
|       DrawArc(pt1.x, pt1.y, pt2.x, pt2.y, centre.x, centre.y); | ||||
|   | ||||
| @@ -45,7 +45,7 @@ public: | ||||
|  | ||||
|   virtual void DrawLine( long x1, long y1, long x2, long y2 ); | ||||
|   virtual void CrossHair( long x, long y ); | ||||
|   virtual void DrawArc( long x1, long y1, long x2, long y2, double xc, double yc ); | ||||
|   virtual void DrawArc( long x1, long y1, long x2, long y2, long xc, long yc ); | ||||
|   virtual void DrawEllipticArc( long x, long y, long width, long height, double sa, double ea ); | ||||
|   virtual void DrawPoint( long x, long y ); | ||||
|  | ||||
|   | ||||
| @@ -75,6 +75,11 @@ public: | ||||
|     void SetClientObject( int n, wxClientData* clientData ); | ||||
|     wxClientData* GetClientObject( int n ); | ||||
|  | ||||
|     void SetClientObject( wxClientData *data )  { wxControl::SetClientObject( data ); } | ||||
|     wxClientData *GetClientObject() const       { return wxControl::GetClientObject(); } | ||||
|     void SetClientData( void *data )            { wxControl::SetClientData( data ); } | ||||
|     void *GetClientData() const                 { return wxControl::GetClientData(); } | ||||
|      | ||||
|     void Clear(); | ||||
|     void Delete( int n ); | ||||
|  | ||||
|   | ||||
| @@ -122,16 +122,14 @@ class wxMDIChildFrame: public wxFrame | ||||
|     // no status bars | ||||
|   virtual wxStatusBar* CreateStatusBar( int WXUNUSED(number)=1, long WXUNUSED(style)=1,  | ||||
|     wxWindowID WXUNUSED(id)=1, const wxString& WXUNUSED(name)=WXSTRINGCAST NULL ) {return (wxStatusBar*)NULL; } | ||||
|   virtual wxStatusBar *GetStatusBar() { return (wxStatusBar*)NULL; } | ||||
|   virtual wxStatusBar *GetStatusBar() const { return (wxStatusBar*)NULL; } | ||||
|   virtual void SetStatusText( const wxString &WXUNUSED(text), int WXUNUSED(number) ) {} | ||||
|   virtual void SetStatusWidths( int WXUNUSED(n), int *WXUNUSED(width) ) {} | ||||
|   virtual void SetStatusWidths( int WXUNUSED(n), const int WXUNUSED(widths_field)[] ) {} | ||||
|  | ||||
|     // no size hints | ||||
|   virtual void SetSizeHints( int WXUNUSED(minW), int WXUNUSED(minH), | ||||
|                              int WXUNUSED(maxW), int WXUNUSED(maxH), | ||||
|                              int WXUNUSED(incW) ) | ||||
|   { | ||||
|   } | ||||
|                                int WXUNUSED(maxW), int WXUNUSED(maxH), | ||||
|                                int WXUNUSED(incW), int WXUNUSED(incH) ) {} | ||||
|    | ||||
|     // no toolbar bars | ||||
|   virtual wxToolBar* CreateToolBar( long WXUNUSED(style), wxWindowID WXUNUSED(id),  | ||||
|   | ||||
| @@ -68,8 +68,9 @@ public: | ||||
|     void Enable( int id, bool enable ); | ||||
|     bool IsEnabled( int id ) const; | ||||
|  | ||||
|     wxString GetLabel( int id ) const; | ||||
|     void SetLabel( int id, const wxString &label ); | ||||
|     wxString GetLabel( int id ) const; | ||||
|     wxString GetLabel() const                { return wxWindow::GetLabel(); } | ||||
|  | ||||
|     void EnableTop( int pos, bool flag ); | ||||
|     void SetLabelTop( int pos, const wxString& label ); | ||||
|   | ||||
| @@ -42,9 +42,8 @@ class wxRadioBox: public wxControl | ||||
|  | ||||
|   DECLARE_DYNAMIC_CLASS(wxRadioBox) | ||||
|    | ||||
|   public: | ||||
|    | ||||
|     wxRadioBox(void); | ||||
| public: | ||||
|     wxRadioBox(); | ||||
|     inline wxRadioBox( wxWindow *parent, wxWindowID id, const wxString& title, | ||||
|              const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, | ||||
|              int n = 0, const wxString choices[] = (const wxString *) NULL, | ||||
| @@ -61,22 +60,32 @@ class wxRadioBox: public wxControl | ||||
|              int majorDim = 0, long style = wxRA_HORIZONTAL, | ||||
|              const wxValidator& val = wxDefaultValidator,  | ||||
|              const wxString& name = wxRadioBoxNameStr ); | ||||
| 	      | ||||
|     int FindString( const wxString& s) const; | ||||
|     void SetSelection( int n ); | ||||
|     int GetSelection(void) const; | ||||
|     int GetSelection() const; | ||||
|      | ||||
|     wxString GetString( int n ) const; | ||||
|      | ||||
|     wxString GetLabel( int item ) const; | ||||
|     wxString GetLabel() const { return wxControl::GetLabel(); } | ||||
|     void SetLabel( const wxString& label ); | ||||
|     void SetLabel( int item, const wxString& label ); | ||||
|      | ||||
|     /* doesn't work */ | ||||
|     void SetLabel( int item, wxBitmap *bitmap ); | ||||
|     wxString GetLabel( int item ) const; | ||||
|      | ||||
|     bool Show( bool show ); | ||||
|     void Show( int item, bool show ); | ||||
|      | ||||
|     bool Enable( bool enable ); | ||||
|     void Enable( int item, bool enable ); | ||||
|     void Show( int item, bool show ); | ||||
|     virtual wxString GetStringSelection(void) const; | ||||
|      | ||||
|     virtual wxString GetStringSelection() const; | ||||
|     virtual bool SetStringSelection( const wxString& s ); | ||||
|     virtual int Number(void) const; | ||||
|     int GetNumberOfRowsOrCols(void) const; | ||||
|      | ||||
|     virtual int Number() const; | ||||
|     int GetNumberOfRowsOrCols() const; | ||||
|     void SetNumberOfRowsOrCols( int n ); | ||||
|      | ||||
|     void OnSize( wxSizeEvent &event ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user