// ----------------------------------------------------------------------------
// the application icon (under Windows and OS/2 it is in resources)
-#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) || defined(__WXMGL__) || defined(__WXX11__)
+#ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm"
#endif
playMenu->Append(Sound_PlayBell, wxT("Play system bell"));
wxMenu *helpMenu = new wxMenu;
- helpMenu->Append(Sound_About, wxT("&About...\tF1"), wxT("Show about dialog"));
+ helpMenu->Append(Sound_About, wxT("&About\tF1"), wxT("Show about dialog"));
// now append the freshly created menu to the menu bar...
wxMenuBar *menuBar = new wxMenuBar();
#if wxUSE_FILEDLG
wxFileDialog dlg(this, wxT("Choose a sound file"),
wxEmptyString, wxEmptyString,
- wxT("WAV files (*.wav)|*.wav"), wxFD_OPEN|wxFD_CHANGE_DIR);
+ wxString::Format
+ (
+ "WAV files (*.wav)|*.wav|All files (%s)|%s",
+ wxFileSelectorDefaultWildcardStr,
+ wxFileSelectorDefaultWildcardStr
+ ),
+ wxFD_OPEN|wxFD_CHANGE_DIR);
if ( dlg.ShowModal() == wxID_OK )
{
m_soundFile = dlg.GetPath();
#endif // __WXMSW__
m_useMemory = false;
- delete m_sound;
- m_sound = NULL;
+ wxDELETE(m_sound);
NotifyUsingFile(m_soundFile);
}
#endif // wxUSE_FILEDLG
m_soundFile.clear();
m_useMemory = false;
- delete m_sound;
- m_sound = NULL;
+ wxDELETE(m_sound);
NotifyUsingFile(wxT("Windows WAV resource"));
}