|
|
|
@@ -64,6 +64,47 @@ enum wxMediaTimeFormat
|
|
|
|
|
#define wxMEDIABACKEND_MCI wxT("wxMCIMediaBackend")
|
|
|
|
|
#define wxMEDIABACKEND_QUICKTIME wxT("wxQTMediaBackend")
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// wxMediaEvent
|
|
|
|
|
//
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxMediaEvent : public wxNotifyEvent
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|
// wxMediaEvent Constructor
|
|
|
|
|
//
|
|
|
|
|
// Normal constructor, much the same as wxNotifyEvent
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|
wxMediaEvent(wxEventType commandType = wxEVT_NULL, int id = 0)
|
|
|
|
|
: wxNotifyEvent(commandType, id)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|
// wxMediaEvent Copy Constructor
|
|
|
|
|
//
|
|
|
|
|
// Normal copy constructor, much the same as wxNotifyEvent
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|
wxMediaEvent(const wxMediaEvent &clone)
|
|
|
|
|
: wxNotifyEvent(clone)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|
// wxMediaEvent::Clone
|
|
|
|
|
//
|
|
|
|
|
// Allocates a copy of this object.
|
|
|
|
|
// Required for wxEvtHandler::AddPendingEvent
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|
virtual wxEvent *Clone() const
|
|
|
|
|
{ return new wxMediaEvent(*this); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Put this class on wxWidget's RTTI table
|
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxMediaEvent)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// wxMediaCtrl
|
|
|
|
@@ -151,7 +192,7 @@ public:
|
|
|
|
|
wxLongLong GetDuration();
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
void OnMediaFinished(const class wxMediaEvent& evt);
|
|
|
|
|
void OnMediaFinished(wxMediaEvent& evt);
|
|
|
|
|
virtual void DoMoveWindow(int x, int y, int w, int h);
|
|
|
|
|
wxSize DoGetBestSize() const;
|
|
|
|
|
|
|
|
|
@@ -224,47 +265,6 @@ public:
|
|
|
|
|
DECLARE_CLASS(wxMediaBackend)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// wxMediaEvent
|
|
|
|
|
//
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxMediaEvent : public wxNotifyEvent
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|
// wxMediaEvent Constructor
|
|
|
|
|
//
|
|
|
|
|
// Normal constructor, much the same as wxNotifyEvent
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|
wxMediaEvent(wxEventType commandType = wxEVT_NULL, int id = 0)
|
|
|
|
|
: wxNotifyEvent(commandType, id)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|
// wxMediaEvent Copy Constructor
|
|
|
|
|
//
|
|
|
|
|
// Normal copy constructor, much the same as wxNotifyEvent
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|
wxMediaEvent(const wxMediaEvent &clone)
|
|
|
|
|
: wxNotifyEvent(clone)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|
// wxMediaEvent::Clone
|
|
|
|
|
//
|
|
|
|
|
// Allocates a copy of this object.
|
|
|
|
|
// Required for wxEvtHandler::AddPendingEvent
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|
virtual wxEvent *Clone() const
|
|
|
|
|
{ return new wxMediaEvent(*this); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Put this class on wxWidget's RTTI table
|
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxMediaEvent)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//Event ID to give to our events
|
|
|
|
|
#define wxMEDIA_FINISHED_ID 13000
|
|
|
|
|
#define wxMEDIA_STOP_ID 13001
|
|
|
|
|