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 );
|
||||
|
@@ -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 );
|
||||
|
@@ -156,7 +156,7 @@ public:
|
||||
|
||||
// label is just the same as the title (but for, e.g., buttons it
|
||||
// makes more sense to speak about labels)
|
||||
wxString GetLabel() const { return GetTitle(); }
|
||||
virtual wxString GetLabel() const { return GetTitle(); }
|
||||
|
||||
// the window name is used for ressource setting in X, it is not the
|
||||
// same as the window title/label
|
||||
|
@@ -93,7 +93,7 @@ bool wxDC::Ok() const
|
||||
}
|
||||
|
||||
void wxDC::DrawArc( long WXUNUSED(x1), long WXUNUSED(y1), long WXUNUSED(x2), long WXUNUSED(y2),
|
||||
double WXUNUSED(xc), double WXUNUSED(yc) )
|
||||
long WXUNUSED(xc), long WXUNUSED(yc) )
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -193,7 +193,7 @@ void wxWindowDC::CrossHair( long x, long y )
|
||||
}
|
||||
}
|
||||
|
||||
void wxWindowDC::DrawArc( long x1, long y1, long x2, long y2, double xc, double yc )
|
||||
void wxWindowDC::DrawArc( long x1, long y1, long x2, long y2, long xc, long yc )
|
||||
{
|
||||
wxCHECK_RET( Ok(), _T("invalid window dc") );
|
||||
|
||||
@@ -201,8 +201,8 @@ void wxWindowDC::DrawArc( long x1, long y1, long x2, long y2, double xc, double
|
||||
long yy1 = YLOG2DEV(y1);
|
||||
long xx2 = XLOG2DEV(x2);
|
||||
long yy2 = YLOG2DEV(y2);
|
||||
long xxc = XLOG2DEV((long)xc);
|
||||
long yyc = YLOG2DEV((long)yc);
|
||||
long xxc = XLOG2DEV(xc);
|
||||
long yyc = YLOG2DEV(yc);
|
||||
double dx = xx1 - xxc;
|
||||
double dy = yy1 - yyc;
|
||||
double radius = sqrt(dx*dx+dy*dy);
|
||||
|
@@ -93,7 +93,7 @@ bool wxDC::Ok() const
|
||||
}
|
||||
|
||||
void wxDC::DrawArc( long WXUNUSED(x1), long WXUNUSED(y1), long WXUNUSED(x2), long WXUNUSED(y2),
|
||||
double WXUNUSED(xc), double WXUNUSED(yc) )
|
||||
long WXUNUSED(xc), long WXUNUSED(yc) )
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -193,7 +193,7 @@ void wxWindowDC::CrossHair( long x, long y )
|
||||
}
|
||||
}
|
||||
|
||||
void wxWindowDC::DrawArc( long x1, long y1, long x2, long y2, double xc, double yc )
|
||||
void wxWindowDC::DrawArc( long x1, long y1, long x2, long y2, long xc, long yc )
|
||||
{
|
||||
wxCHECK_RET( Ok(), _T("invalid window dc") );
|
||||
|
||||
@@ -201,8 +201,8 @@ void wxWindowDC::DrawArc( long x1, long y1, long x2, long y2, double xc, double
|
||||
long yy1 = YLOG2DEV(y1);
|
||||
long xx2 = XLOG2DEV(x2);
|
||||
long yy2 = YLOG2DEV(y2);
|
||||
long xxc = XLOG2DEV((long)xc);
|
||||
long yyc = YLOG2DEV((long)yc);
|
||||
long xxc = XLOG2DEV(xc);
|
||||
long yyc = YLOG2DEV(yc);
|
||||
double dx = xx1 - xxc;
|
||||
double dy = yy1 - yyc;
|
||||
double radius = sqrt(dx*dx+dy*dy);
|
||||
|
Reference in New Issue
Block a user