Commit ea39325d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: simplifications.

parent 91c06c7d
...@@ -50,32 +50,34 @@ void ActionsManager::doAction( int id_action ) ...@@ -50,32 +50,34 @@ void ActionsManager::doAction( int id_action )
{ {
case PLAY_ACTION: case PLAY_ACTION:
play(); break; play(); break;
case STOP_ACTION:
THEMIM->stop(); break;
case OPEN_ACTION:
break;
case PREVIOUS_ACTION: case PREVIOUS_ACTION:
prev(); break; THEMIM->prev(); break;
case NEXT_ACTION: case NEXT_ACTION:
next(); break; THEMIM->next(); break;
case STOP_ACTION:
stop(); break;
case SLOWER_ACTION: case SLOWER_ACTION:
slower(); break; THEMIM->getIM()->slower(); break;
case FASTER_ACTION: case FASTER_ACTION:
faster(); break; THEMIM->getIM()->faster(); break;
case FULLSCREEN_ACTION: case FULLSCREEN_ACTION:
fullscreen(); break; fullscreen(); break;
case EXTENDED_ACTION: case EXTENDED_ACTION:
extSettings(); break; THEDP->extendedDialog(); break;
case PLAYLIST_ACTION: case PLAYLIST_ACTION:
playlist(); break; playlist(); break;
case SNAPSHOT_ACTION: case SNAPSHOT_ACTION:
snapshot(); break; snapshot(); break;
case RECORD_ACTION: case RECORD_ACTION:
record(); break; record(); break;
case ATOB_ACTION:
THEMIM->getIM()->setAtoB(); break;
case FRAME_ACTION: case FRAME_ACTION:
frame(); break; frame(); break;
case ATOB_ACTION:
THEMIM->getIM()->setAtoB(); break;
case REVERSE_ACTION: case REVERSE_ACTION:
reverse(); break; THEMIM->getIM()->reverse(); break;
case SKIP_BACK_ACTION: case SKIP_BACK_ACTION:
var_SetInteger( p_intf->p_libvlc, "key-pressed", var_SetInteger( p_intf->p_libvlc, "key-pressed",
ACTIONID_JUMP_BACKWARD_SHORT ); ACTIONID_JUMP_BACKWARD_SHORT );
...@@ -90,11 +92,6 @@ void ActionsManager::doAction( int id_action ) ...@@ -90,11 +92,6 @@ void ActionsManager::doAction( int id_action )
} }
} }
inline void ActionsManager::stop()
{
THEMIM->stop();
}
void ActionsManager::play() void ActionsManager::play()
{ {
if( THEPL->current.i_size == 0 ) if( THEPL->current.i_size == 0 )
...@@ -106,16 +103,6 @@ void ActionsManager::play() ...@@ -106,16 +103,6 @@ void ActionsManager::play()
THEMIM->togglePlayPause(); THEMIM->togglePlayPause();
} }
inline void ActionsManager::prev()
{
THEMIM->prev();
}
inline void ActionsManager::next()
{
THEMIM->next();
}
/** /**
* TODO * TODO
* This functions toggle the fullscreen mode * This functions toggle the fullscreen mode
...@@ -144,27 +131,7 @@ void ActionsManager::snapshot() ...@@ -144,27 +131,7 @@ void ActionsManager::snapshot()
} }
} }
inline void ActionsManager::extSettings() void ActionsManager::playlist()
{
THEDP->extendedDialog();
}
inline void ActionsManager::reverse()
{
THEMIM->getIM()->reverse();
}
inline void ActionsManager::slower()
{
THEMIM->getIM()->slower();
}
inline void ActionsManager::faster()
{
THEMIM->getIM()->faster();
}
inline void ActionsManager::playlist()
{ {
if( p_intf->p_sys->p_mi ) p_intf->p_sys->p_mi->togglePlaylist(); if( p_intf->p_sys->p_mi ) p_intf->p_sys->p_mi->togglePlaylist();
} }
......
...@@ -79,16 +79,9 @@ protected slots: ...@@ -79,16 +79,9 @@ protected slots:
protected slots: protected slots:
void play(); void play();
void stop();
void prev();
void next();
void fullscreen(); void fullscreen();
void extSettings();
void faster();
void slower();
void reverse();
void playlist();
void snapshot(); void snapshot();
void playlist();
void record(); void record();
void frame(); void frame();
......
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