Commit 7a57427b authored by Clément Stenac's avatar Clément Stenac

Add missing actions in popup

parent 3251407d
...@@ -34,9 +34,11 @@ ...@@ -34,9 +34,11 @@
#define I_POP_PLAY N_("Play") #define I_POP_PLAY N_("Play")
#define I_POP_PREPARSE N_("Fetch information") #define I_POP_PREPARSE N_("Fetch information")
#define I_POP_DEL N_("Delete") #define I_POP_DEL N_("Delete")
#define I_POP_INFO N_("Information") #define I_POP_INFO N_("Information...")
#define I_POP_SORT N_("Sort") #define I_POP_SORT N_("Sort")
#define I_POP_ADD N_("Add node") #define I_POP_ADD N_("Add node")
#define I_POP_STREAM N_("Stream...")
#define I_POP_SAVE N_("Save...")
/*************** Preferences *************/ /*************** Preferences *************/
......
...@@ -694,8 +694,11 @@ void PLModel::popup( QModelIndex & index, QPoint &point, QModelIndexList list ) ...@@ -694,8 +694,11 @@ void PLModel::popup( QModelIndex & index, QPoint &point, QModelIndexList list )
current_selection = list; current_selection = list;
QMenu *menu = new QMenu; QMenu *menu = new QMenu;
menu->addAction( qfu(I_POP_PLAY), this, SLOT( popupPlay() ) ); menu->addAction( qfu(I_POP_PLAY), this, SLOT( popupPlay() ) );
menu->addAction( qfu(I_POP_PREPARSE), this, SLOT( popupPreparse() ) );
menu->addAction( qfu(I_POP_DEL), this, SLOT( popupDel() ) ); menu->addAction( qfu(I_POP_DEL), this, SLOT( popupDel() ) );
menu->addSeparator();
menu->addAction( qfu(I_POP_STREAM), this, SLOT( popupStream() ) );
menu->addAction( qfu(I_POP_SAVE), this, SLOT( popupSave() ) );
menu->addSeparator();
menu->addAction( qfu(I_POP_INFO), this, SLOT( popupInfo() ) ); menu->addAction( qfu(I_POP_INFO), this, SLOT( popupInfo() ) );
if( p_item->i_children > -1 ) if( p_item->i_children > -1 )
{ {
...@@ -721,6 +724,20 @@ void PLModel::popupPlay() ...@@ -721,6 +724,20 @@ void PLModel::popupPlay()
PL_UNLOCK; PL_UNLOCK;
} }
void PLModel::popupInfo()
{
fprintf( stderr, "Popup Info is NOT implemented\n" );
}
void PLModel::popupStream()
{
fprintf( stderr, "Stream not implemented\n" );
}
void PLModel::popupSave()
{
fprintf( stderr, "Save not implemented\n" );
}
/********************************************************************** /**********************************************************************
* Playlist callbacks * Playlist callbacks
**********************************************************************/ **********************************************************************/
......
...@@ -168,6 +168,9 @@ public slots: ...@@ -168,6 +168,9 @@ public slots:
private slots: private slots:
void popupPlay(); void popupPlay();
void popupDel(); void popupDel();
void popupInfo();
void popupStream();
void popupSave();
friend class PLItem; friend class PLItem;
}; };
......
...@@ -55,7 +55,6 @@ static int Open( vlc_object_t *p_this ) ...@@ -55,7 +55,6 @@ static int Open( vlc_object_t *p_this )
if( !p_xml ) return VLC_EGENERIC; if( !p_xml ) return VLC_EGENERIC;
p_reader = xml_ReaderCreate( p_xml, p_stream ); p_reader = xml_ReaderCreate( p_xml, p_stream );
if( xml_ReaderRead( p_reader ) != 1 || if( xml_ReaderRead( p_reader ) != 1 ||
xml_ReaderNodeType( p_reader ) != XML_READER_STARTELEM ) xml_ReaderNodeType( p_reader ) != XML_READER_STARTELEM )
{ {
......
...@@ -272,6 +272,7 @@ int __intf_Progress( vlc_object_t *p_this, const char *psz_title, ...@@ -272,6 +272,7 @@ int __intf_Progress( vlc_object_t *p_this, const char *psz_title,
p_new->psz_description = strdup( psz_status ); p_new->psz_description = strdup( psz_status );
p_new->val.f_float = f_pos; p_new->val.f_float = f_pos;
p_new->i_timeToGo = i_time; p_new->i_timeToGo = i_time;
p_new->psz_alternate_button = strdup( _("Cancel" ) );
if( psz_title ) if( psz_title )
{ {
......
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