Mac compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -136,12 +136,9 @@ class wxMediaPlayerApp : public wxApp
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
virtual void MacOpenFile(const wxString & fileName )
|
virtual void MacOpenFile(const wxString & fileName );
|
||||||
{
|
|
||||||
//Called when a user drags a file over our app
|
|
||||||
m_frame->DoOpenFile(fileName);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
virtual bool OnInit();
|
virtual bool OnInit();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@@ -455,6 +452,15 @@ bool wxMediaPlayerApp::OnInit()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
|
||||||
|
void wxMediaPlayerApp::MacOpenFile(const wxString & fileName )
|
||||||
|
{
|
||||||
|
//Called when a user drags a file over our app
|
||||||
|
m_frame->DoOpenFile(fileName, true /* new page */);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // __WXMAC__
|
||||||
|
|
||||||
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
//
|
//
|
||||||
@@ -984,7 +990,7 @@ void wxMediaPlayerFrame::DoPlayFile(const wxString& path)
|
|||||||
wxListItem listitem;
|
wxListItem listitem;
|
||||||
m_playlist->GetSelectedItem(listitem);
|
m_playlist->GetSelectedItem(listitem);
|
||||||
|
|
||||||
if(listitem.GetData() != NULL &&
|
if(listitem.GetData() &&
|
||||||
m_szFile.compare(path) == 0 &&
|
m_szFile.compare(path) == 0 &&
|
||||||
m_nLastFileId == listitem.GetId())
|
m_nLastFileId == listitem.GetId())
|
||||||
{
|
{
|
||||||
@@ -1183,7 +1189,7 @@ void wxMediaPlayerFrame::OnPlay(wxCommandEvent& WXUNUSED(event))
|
|||||||
|
|
||||||
wxListItem listitem;
|
wxListItem listitem;
|
||||||
m_playlist->GetSelectedItem(listitem);
|
m_playlist->GetSelectedItem(listitem);
|
||||||
if (listitem.GetData() == NULL)
|
if ( !listitem.GetData() )
|
||||||
{
|
{
|
||||||
int nLast = -1;
|
int nLast = -1;
|
||||||
if ((nLast = m_playlist->GetNextItem(nLast,
|
if ((nLast = m_playlist->GetNextItem(nLast,
|
||||||
@@ -1475,9 +1481,12 @@ void wxMediaPlayerTimer::Notify()
|
|||||||
|
|
||||||
wxMediaPlayerNotebookPage::wxMediaPlayerNotebookPage(wxMediaPlayerFrame* parentFrame,
|
wxMediaPlayerNotebookPage::wxMediaPlayerNotebookPage(wxMediaPlayerFrame* parentFrame,
|
||||||
wxNotebook* theBook,
|
wxNotebook* theBook,
|
||||||
const wxString& szBackend) :
|
const wxString& szBackend)
|
||||||
wxPanel(theBook, wxID_ANY), m_bIsBeingDragged(false),
|
: wxPanel(theBook, wxID_ANY),
|
||||||
m_nLoops(0), m_bLoop(false), m_parentFrame(parentFrame)
|
m_nLoops(0),
|
||||||
|
m_bLoop(false),
|
||||||
|
m_bIsBeingDragged(false),
|
||||||
|
m_parentFrame(parentFrame)
|
||||||
{
|
{
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user