OpenDialog *OpenDialog::instance = NULL;
OpenDialog* OpenDialog::getInstance( QWidget *parent, intf_thread_t *p_intf,
- bool b_rawInstance, int _action_flag, bool b_selectMode )
+ bool b_rawInstance, int _action_flag, bool b_selectMode, bool _b_pl )
{
/* Creation */
if( !instance )
- instance = new OpenDialog( parent, p_intf, b_selectMode, _action_flag );
+ instance = new OpenDialog( parent, p_intf, b_selectMode,
+ _action_flag, _b_pl );
else if( !b_rawInstance )
{
/* Request the instance but change small details:
if the call is correct */
}
instance->i_action_flag = _action_flag;
+ instance->b_pl = _b_pl;
instance->setMenuAction();
}
return instance;
OpenDialog::OpenDialog( QWidget *parent,
intf_thread_t *_p_intf,
bool b_selectMode,
- int _action_flag ) : QVLCDialog( parent, _p_intf )
+ int _action_flag,
+ bool _b_pl) : QVLCDialog( parent, _p_intf )
{
i_action_flag = _action_flag;
+ b_pl =_b_pl;
/* Workaround the Win32 Vout that put the video on top at regular times */
#ifdef WIN32
/* FIXME: playlist_AddInput() can fail */
playlist_AddInput( THEPL, p_input,
PLAYLIST_APPEND | ( b_start ? PLAYLIST_GO : PLAYLIST_PREPARSE ),
- PLAYLIST_END, true, pl_Unlocked );
+ PLAYLIST_END, b_pl ? true : false, pl_Unlocked );
vlc_gc_decref( p_input );
}
}
Q_OBJECT;
public:
static OpenDialog * getInstance( QWidget *parent, intf_thread_t *p_intf,
- bool b_rawInstance = false, int _action_flag = 0, bool b_selectMode = false );
+ bool b_rawInstance = false, int _action_flag = 0,
+ bool b_selectMode = false, bool b_pl = true );
static void killInstance()
{
private:
OpenDialog( QWidget *parent, intf_thread_t *, bool b_selectMode,
- int _action_flag = 0 );
+ int _action_flag = 0, bool b_pl = true );
static OpenDialog *instance;
input_thread_t *p_input;
CaptureOpenPanel *captureOpenPanel;
int i_action_flag;
+ bool b_pl;
QStringList SeparateEntries( QString );
QPushButton *cancelButton, *selectButton;
->showTab( OPEN_FILE_TAB );
}
-/* Unimplemmented yet - Usefull ? */
void DialogsProvider::MLAppendDialog()
-{}
+{
+ OpenDialog::getInstance( p_intf->p_sys->p_mi, p_intf, false,
+ OPEN_AND_ENQUEUE, false, false )
+ ->showTab( OPEN_FILE_TAB );
+}
/**
* Simple open