#include <vlc_playlist.h>
#include "playlist_item.hpp"
+#include "qt4.hpp"
+
#include <QModelIndex>
#include <QObject>
#include <QEvent>
#define DEPTH_PL -1
#define DEPTH_SEL 1
-static int ItemUpdate_Type = QEvent::User + 2;
-static int ItemDelete_Type = QEvent::User + 3;
-static int ItemAppend_Type = QEvent::User + 4;
-static int PLUpdate_Type = QEvent::User + 5;
+static int ItemUpdate_Type = QEvent::User + PLEventType + 2;
+static int ItemDelete_Type = QEvent::User + PLEventType + 3;
+static int ItemAppend_Type = QEvent::User + PLEventType + 4;
+static int PLUpdate_Type = QEvent::User + PLEventType + 5;
class PLEvent : public QEvent
{
#ifdef UPDATE_CHECK
-static int UDOkEvent = QEvent::User + 1;
-static int UDErrorEvent = QEvent::User + 2;
+static int UDOkEvent = QEvent::User + DialogEventType + 21;
+static int UDErrorEvent = QEvent::User + DialogEventType + 22;
class UpdateDialog : public QVLCFrame
{
void InputManager::customEvent( QEvent *event )
{
int type = event->type();
+ msg_Dbg( p_intf, "New Event: type %i", type );
IMEvent *ple = static_cast<IMEvent *>(event);
//msg_Dbg( p_intf, "New IM Event of type: %i", type );
if ( type != PositionUpdate_Type &&
if( !p_input || p_input->b_die || p_input->b_dead )
return;
- if( type != PositionUpdate_Type && ( i_input_id != ple->i_id ) )
+ if( ( type != PositionUpdate_Type && type != ItemRateChanged_Type )
+ && ( i_input_id != ple->i_id ) )
return;
if( type != PositionUpdate_Type )
msg_Dbg( p_intf, "New Event: type %i", type );
UpdateMeta();
break;
case ItemStateChanged_Type:
- UpdateStatus();
- UpdateTracks();
- break;
+ UpdateStatus();
+ UpdateTracks();
+ break;
}
}
var_Change( p_input, "video-es", VLC_VAR_CHOICESCOUNT, &val, NULL );
b_has_video = val.i_int > 0;
+ msg_Dbg( p_input, "I have audio-video: %i %i", b_has_audio, b_has_video );
+
/* Update ZVBI status */
#ifdef ZVBI_COMPILED
/* Update teletext status*/
void MainInputManager::customEvent( QEvent *event )
{
int type = event->type();
- //msg_Dbg( p_intf, "New MainIM Event of type: %i", type );
if ( type != ItemChanged_Type && type != VolumeChanged_Type )
return;
+ // msg_Dbg( p_intf, "New MainIM Event of type: %i", type );
if( type == VolumeChanged_Type )
{
emit volumeChanged();
#include <vlc/vlc.h>
#include <vlc_input.h>
+#include "qt4.hpp"
+
#include <QObject>
#include <QEvent>
-static int const PositionUpdate_Type = QEvent::User + 6;
-static int const ItemChanged_Type = QEvent::User + 7;
-static int const ItemRateChanged_Type = QEvent::User + 8;
-static int const ItemTitleChanged_Type = QEvent::User + 9;
-static int const ItemStateChanged_Type = QEvent::User + 10;
-static int const VolumeChanged_Type = QEvent::User + 11;
+static int const PositionUpdate_Type = QEvent::User + IMEventType + 1;
+static int const ItemChanged_Type = QEvent::User + IMEventType + 2;
+static int const ItemStateChanged_Type = QEvent::User + IMEventType + 3;
+static int const ItemTitleChanged_Type = QEvent::User + IMEventType + 4;
+static int const ItemRateChanged_Type = QEvent::User + IMEventType + 5;
+static int const VolumeChanged_Type = QEvent::User + IMEventType + 6;
class IMEvent : public QEvent
{
#define TOGGLEV( x ) { if( x->isVisible() ) x->hide(); \
else x->show(); }
-static int DialogEvent_Type = QEvent::User + 1;
-//static int PLUndockEvent_Type = QEvent::User + 2;
-//static int PLDockEvent_Type = QEvent::User + 3;
-static int SetVideoOnTopEvent_Type = QEvent::User + 4;
+enum {
+DialogEventType = 0,
+IMEventType = 100,
+PLEventType = 200
+};
+
+static int DialogEvent_Type = QEvent::User + DialogEventType + 1;
+//static int PLUndockEvent_Type = QEvent::User + DialogEventType + 2;
+//static int PLDockEvent_Type = QEvent::User + DialogEventType + 3;
+static int SetVideoOnTopEvent_Type = QEvent::User + DialogEventType + 4;
class DialogEvent : public QEvent
{