- change SetDriveName() method to take const char *
This commit is contained in:
parent
1136948638
commit
e43d822c32
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// $Id: wxdialog.cc,v 1.3 2002-08-28 15:27:25 bdenney Exp $
|
||||
// $Id: wxdialog.cc,v 1.4 2002-08-28 21:06:14 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// misc/wxdialog.cc
|
||||
@ -236,7 +236,7 @@ void FloppyConfigDialog::AddRadio (char *description, char *filename)
|
||||
n_rbtns++;
|
||||
}
|
||||
|
||||
void FloppyConfigDialog::SetDriveName (char *name)
|
||||
void FloppyConfigDialog::SetDriveName (const char *name)
|
||||
{
|
||||
wxString text;
|
||||
text.Printf (FLOPPY_CONFIG_TITLE, name);
|
||||
@ -336,7 +336,7 @@ void FloppyConfigDialog::OnEvent(wxCommandEvent& event)
|
||||
long style = wxOPEN;
|
||||
wxFileDialog *fdialog = new wxFileDialog (this, filename->GetValue (), "", "", "*.*", style);
|
||||
if (fdialog->ShowModal () == wxID_OK)
|
||||
SetFilename ((char *)fdialog->GetPath().c_str ());
|
||||
SetFilename (fdialog->GetPath().c_str ());
|
||||
}
|
||||
break;
|
||||
case wxCANCEL:
|
||||
@ -446,7 +446,7 @@ HDConfigDialog::HDConfigDialog(
|
||||
Center ();
|
||||
}
|
||||
|
||||
void HDConfigDialog::SetDriveName (char *name)
|
||||
void HDConfigDialog::SetDriveName (const char *name)
|
||||
{
|
||||
wxString text;
|
||||
text.Printf (HD_CONFIG_TITLE, name);
|
||||
@ -524,7 +524,7 @@ void HDConfigDialog::OnEvent(wxCommandEvent& event)
|
||||
long style = wxOPEN;
|
||||
wxFileDialog *fdialog = new wxFileDialog (this, filename->GetValue (), "", "", "*.*", style);
|
||||
if (fdialog->ShowModal () == wxID_OK)
|
||||
SetFilename ((char *)fdialog->GetPath().c_str ());
|
||||
SetFilename (fdialog->GetPath().c_str ());
|
||||
}
|
||||
break;
|
||||
case wxCANCEL:
|
||||
|
@ -1,5 +1,5 @@
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// $Id: wxdialog.h,v 1.3 2002-08-28 15:27:25 bdenney Exp $
|
||||
// $Id: wxdialog.h,v 1.4 2002-08-28 21:06:14 bdenney Exp $
|
||||
////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// wxWindows dialogs for Bochs
|
||||
@ -125,7 +125,7 @@ public:
|
||||
int GetRadio ();
|
||||
int GetCapacity () { return capacity->GetSelection (); }
|
||||
char *GetFilename ();
|
||||
void SetDriveName (char *name);
|
||||
void SetDriveName (const char *name);
|
||||
void SetValidateFunc (validateFunc_t v) { validate = v; }
|
||||
void AddRadio (char *description, char *filename);
|
||||
DECLARE_EVENT_TABLE()
|
||||
@ -177,7 +177,7 @@ public:
|
||||
int ShowModal() { Init(); return wxDialog::ShowModal(); }
|
||||
void SetFilename (char *f);
|
||||
char *GetFilename ();
|
||||
void SetDriveName (char *name);
|
||||
void SetDriveName (const char *name);
|
||||
void SetGeom (int n, int value);
|
||||
int GetGeom (int n) { return geom[n]->GetValue (); }
|
||||
void SetGeomRange (int n, int min, int max) { geom[n]->SetRange (min, max); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user