Commit 2ea15499 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - VLM: select input from the OpenDialog, using the existing OpenDialog and...

Qt4 - VLM: select input from the OpenDialog, using the existing OpenDialog and not creating new one. :D

parent f5a08fa8
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
*****************************************************************************/ *****************************************************************************/
#include "dialogs/vlm.hpp" #include "dialogs/vlm.hpp"
#include "dialogs/open.hpp"
#include <QString> #include <QString>
#include <QComboBox> #include <QComboBox>
...@@ -136,6 +137,7 @@ VLMDialog::VLMDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf ) ...@@ -136,6 +137,7 @@ VLMDialog::VLMDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
BUTTONACT( ui.addButton, addVLMItem() ); BUTTONACT( ui.addButton, addVLMItem() );
BUTTONACT( ui.clearButton, clearWidgets() ); BUTTONACT( ui.clearButton, clearWidgets() );
BUTTONACT( ui.saveButton, saveModifications() ); BUTTONACT( ui.saveButton, saveModifications() );
BUTTONACT( ui.inputButton, selectInput() );
} }
VLMDialog::~VLMDialog() VLMDialog::~VLMDialog()
...@@ -222,8 +224,6 @@ void VLMDialog::addVLMItem() ...@@ -222,8 +224,6 @@ void VLMDialog::addVLMItem()
vlmItemLayout->insertWidget( vlmItemCount, vlmAwidget ); vlmItemLayout->insertWidget( vlmItemCount, vlmAwidget );
vlmItems.append( vlmAwidget ); vlmItems.append( vlmAwidget );
/* HERE BE DRAGONS VLM REQUEST */
} }
void VLMDialog::clearWidgets() void VLMDialog::clearWidgets()
...@@ -241,6 +241,13 @@ void VLMDialog::clearWidgets() ...@@ -241,6 +241,13 @@ void VLMDialog::clearWidgets()
ui.addButton->show(); ui.addButton->show();
} }
void VLMDialog::selectInput()
{
OpenDialog *o = OpenDialog::getInstance( this, p_intf, 0, true );
o->exec();
ui.inputLedit->setText( o->getMRL() );
}
/* Object Modification */ /* Object Modification */
void VLMDialog::removeVLMItem( VLMAWidget *vlmObj ) void VLMDialog::removeVLMItem( VLMAWidget *vlmObj )
{ {
......
...@@ -99,6 +99,7 @@ private slots: ...@@ -99,6 +99,7 @@ private slots:
void saveModifications(); void saveModifications();
void showScheduleWidget( int ); void showScheduleWidget( int );
void selectVLMItem( int ); void selectVLMItem( int );
void selectInput();
}; };
class VLMWrapper class VLMWrapper
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment