Commit 15249253 authored by Christophe Mutricy's avatar Christophe Mutricy

QT4: implement the open dialog from the playlist

parent a2d20f55
...@@ -148,6 +148,10 @@ void OpenDialog::setMenuAction() ...@@ -148,6 +148,10 @@ void OpenDialog::setMenuAction()
playButton->setText( qtr("&Convert / Save") ); playButton->setText( qtr("&Convert / Save") );
BUTTONACT( playButton, stream( true ) ); BUTTONACT( playButton, stream( true ) );
break; break;
case ENQUEUE:
playButton->setText( qtr("&Enqueue") );
BUTTONACT( playButton, enqueue() );
break;
case OPEN_AND_PLAY: case OPEN_AND_PLAY:
default: default:
playButton->setText( qtr("&Play") ); playButton->setText( qtr("&Play") );
......
...@@ -216,6 +216,9 @@ void DialogsProvider::openDialog( int i_tab ) ...@@ -216,6 +216,9 @@ void DialogsProvider::openDialog( int i_tab )
void DialogsProvider::PLAppendDialog() void DialogsProvider::PLAppendDialog()
{ {
OpenDialog::getInstance( p_intf->p_sys->p_mi , p_intf, ENQUEUE )
->showTab(0);
} }
void DialogsProvider::MLAppendDialog() void DialogsProvider::MLAppendDialog()
{ {
......
...@@ -78,6 +78,7 @@ ...@@ -78,6 +78,7 @@
#define OPEN_AND_PLAY 0x0 #define OPEN_AND_PLAY 0x0
#define OPEN_AND_STREAM 0x1 #define OPEN_AND_STREAM 0x1
#define OPEN_AND_SAVE 0x2 #define OPEN_AND_SAVE 0x2
#define ENQUEUE 0x4
class QEvent; class QEvent;
class QSignalMapper; class QSignalMapper;
......
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