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);
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 );
{
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);
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 );
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 );
// 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),
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 );
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,
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 );
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);
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 );
{
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);
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 );
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 );
// 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),
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 );
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,
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 );
// 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
}
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) )
{
}
}
}
-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") );
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);
}
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) )
{
}
}
}
-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") );
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);