wx3.0: rename some deprecated API call

Avoid various gcc warning

Note: Compatible with recent wx2.8 version
This commit is contained in:
Gregory Hainaut 2014-07-03 20:10:10 +02:00
parent deb69c4c72
commit ac41ba1f73
3 changed files with 13 additions and 9 deletions

View File

@ -596,7 +596,7 @@ void MainEmuFrame::ApplyCoreStatus()
if( !CoreThread.IsClosing() )
{
susres->Enable();
susres->SetText(_("Pause"));
susres->SetItemLabel(_("Pause"));
susres->SetHelp(_("Safely pauses emulation and preserves the PS2 state."));
}
else
@ -604,12 +604,12 @@ void MainEmuFrame::ApplyCoreStatus()
susres->Enable(vm);
if( vm )
{
susres->SetText(_("Resume"));
susres->SetItemLabel(_("Resume"));
susres->SetHelp(_("Resumes the suspended emulation state."));
}
else
{
susres->SetText(_("Pause/Resume"));
susres->SetItemLabel(_("Pause/Resume"));
susres->SetHelp(_("No emulation state is active; cannot suspend or resume."));
}
}
@ -619,7 +619,7 @@ void MainEmuFrame::ApplyCoreStatus()
{
if( vm )
{
restart->SetText(_("Restart"));
restart->SetItemLabel(_("Restart"));
restart->SetHelp(_("Simulates hardware reset of the PS2 virtual machine."));
}
else
@ -633,12 +633,12 @@ void MainEmuFrame::ApplyCoreStatus()
{
if( vm )
{
cdvd->SetText(_("Reboot CDVD (full)"));
cdvd->SetItemLabel(_("Reboot CDVD (full)"));
cdvd->SetHelp(_("Hard reset of the active VM."));
}
else
{
cdvd->SetText(_("Boot CDVD (full)"));
cdvd->SetItemLabel(_("Boot CDVD (full)"));
cdvd->SetHelp(_("Boot the VM using the current DVD or Iso source media"));
}
}
@ -647,12 +647,12 @@ void MainEmuFrame::ApplyCoreStatus()
{
if( vm )
{
cdvd2->SetText(_("Reboot CDVD (fast)"));
cdvd2->SetItemLabel(_("Reboot CDVD (fast)"));
cdvd2->SetHelp(_("Reboot using fast BOOT (skips splash screens)"));
}
else
{
cdvd2->SetText(_("Boot CDVD (fast)"));
cdvd2->SetItemLabel(_("Boot CDVD (fast)"));
cdvd2->SetHelp(_("Use fast boot to skip PS2 startup and splash screens"));
}
}

View File

@ -54,7 +54,11 @@ Panels::BaseSelectorPanel::~BaseSelectorPanel() throw()
void Panels::BaseSelectorPanel::OnShow(wxShowEvent& evt)
{
evt.Skip();
#if defined (_MSC_VER) && (wxMAJOR_VERSION < 3)
if( !evt.GetShow() ) return;
#else
if( !evt.IsShown() ) return;
#endif
OnShown();
}

View File

@ -148,7 +148,7 @@ void Sstates_updateLoadBackupMenuItem( bool isBeforeSave )
g_loadBackupMenuItem->Enable( wxFileExists( isBeforeSave && g_Conf->EmuOptions.BackupSavestate ? file : file + L".backup" ) );
wxString label;
label.Printf(L"%s %d", _("Backup"), slot );
g_loadBackupMenuItem->SetText( label );
g_loadBackupMenuItem->SetItemLabel( label );
}
void States_SetCurrentSlot( int slot )