git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37132
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#endif
#if !wxUSE_MEDIACTRL || !wxUSE_MENUS || !wxUSE_SLIDER || !wxUSE_TIMER || \
#endif
#if !wxUSE_MEDIACTRL || !wxUSE_MENUS || !wxUSE_SLIDER || !wxUSE_TIMER || \
- !wxUSE_NOTEBOOK || !wxUSE_LISTCTRL || !wxUSE_DRAG_AND_DROP
+ !wxUSE_NOTEBOOK || !wxUSE_LISTCTRL
#error "Not all required elements are enabled. Please modify setup.h!"
#endif
#error "Not all required elements are enabled. Please modify setup.h!"
#endif
// Drop target for playlist (i.e. user drags a file from explorer unto
// playlist it adds the file)
// ----------------------------------------------------------------------------
// Drop target for playlist (i.e. user drags a file from explorer unto
// playlist it adds the file)
// ----------------------------------------------------------------------------
class wxPlayListDropTarget : public wxFileDropTarget
{
public:
class wxPlayListDropTarget : public wxFileDropTarget
{
public:
}
wxMediaPlayerListCtrl& m_list;
};
}
wxMediaPlayerListCtrl& m_list;
};
// ============================================================================
//
// ============================================================================
//
m_playlist->InsertColumn(1,_("File"), wxLIST_FORMAT_LEFT, /*wxLIST_AUTOSIZE_USEHEADER*/305);
m_playlist->InsertColumn(2,_("Length"), wxLIST_FORMAT_CENTER, 75);
m_playlist->InsertColumn(1,_("File"), wxLIST_FORMAT_LEFT, /*wxLIST_AUTOSIZE_USEHEADER*/305);
m_playlist->InsertColumn(2,_("Length"), wxLIST_FORMAT_CENTER, 75);
m_playlist->SetDropTarget(new wxPlayListDropTarget(*m_playlist));
m_playlist->SetDropTarget(new wxPlayListDropTarget(*m_playlist));
sizer->Add(m_playlist, 0, wxALIGN_CENTER_HORIZONTAL|wxALL|wxEXPAND, 5);
//
sizer->Add(m_playlist, 0, wxALIGN_CENTER_HORIZONTAL|wxALL|wxEXPAND, 5);
//