- addDPStaticEntry( menu, qtr( "Play" ),
- ":/play", SLOT( openDialog() ) );
-
- addMIMStaticEntry( p_intf, menu, qtr( "Stop" ),
- ":/stop", SLOT( stop() ) );
- addMIMStaticEntry( p_intf, menu, qtr( "Previous" ),
- ":/previous", SLOT( prev() ) );
- addMIMStaticEntry( p_intf, menu, qtr( "Next" ),
- ":/next", SLOT( next() ) );
+ {
+ addMIMStaticEntry( p_intf, menu, qtr( "Pause" ),
+ ":/menu/pause", SLOT( togglePlayPause() ) );
+ }
+}
+
+void QVLCMenu::PopupMenuControlEntries( QMenu *menu, intf_thread_t *p_intf )
+{
+ QAction *action;
+
+ /* Faster/Slower */
+ action = menu->addAction( qtr( "&Faster" ), THEMIM->getIM(),
+ SLOT( faster() ) );
+ action->setIcon( QIcon( ":/toolbar/faster") );
+ action->setData( STATIC_ENTRY );
+
+ action = menu->addAction( qtr( "Faster (fine)" ), THEMIM->getIM(),
+ SLOT( littlefaster() ) );
+ action->setData( STATIC_ENTRY );
+
+ action = menu->addAction( qtr( "N&ormal Speed" ), THEMIM->getIM(),
+ SLOT( normalRate() ) );
+ action->setData( STATIC_ENTRY );
+
+ action = menu->addAction( qtr( "Slower (fine)" ), THEMIM->getIM(),
+ SLOT( littleslower() ) );
+ action->setData( STATIC_ENTRY );
+
+ action = menu->addAction( qtr( "Slo&wer" ), THEMIM->getIM(),
+ SLOT( slower() ) );
+ action->setIcon( QIcon( ":/toolbar/slower") );
+ action->setData( STATIC_ENTRY );
+
+ menu->addSeparator();
+
+ action = menu->addAction( qtr( "&Jump Forward" ), THEMIM->getIM(),
+ SLOT( jumpFwd() ) );
+ action->setIcon( QIcon( ":/toolbar/skip_fw") );
+ action->setData( STATIC_ENTRY );
+
+ action = menu->addAction( qtr( "Jump Bac&kward" ), THEMIM->getIM(),
+ SLOT( jumpBwd() ) );
+ action->setIcon( QIcon( ":/toolbar/skip_back") );
+ action->setData( STATIC_ENTRY );
+ addDPStaticEntry( menu, qtr( I_MENU_GOTOTIME ),"",
+ SLOT( gotoTimeDialog() ), "Ctrl+T" );
+ menu->addSeparator();
+}
+
+
+void QVLCMenu::PopupMenuPlaylistControlEntries( QMenu *menu,
+ intf_thread_t *p_intf )
+{
+ bool bEnable = THEMIM->getInput() != NULL;
+ QAction *action =
+ addMIMStaticEntry( p_intf, menu, qtr( "&Stop" ), ":/menu/stop",
+ SLOT( stop() ), true );
+ /* Disable Stop in the right-click popup menu */
+ if( !bEnable )
+ action->setEnabled( false );
+
+ /* Next / Previous */
+ addMIMStaticEntry( p_intf, menu, qtr( "Pre&vious" ),
+ ":/menu/previous", SLOT( prev() ) );
+ addMIMStaticEntry( p_intf, menu, qtr( "Ne&xt" ),
+ ":/menu/next", SLOT( next() ) );
+ menu->addSeparator();