diff options
Diffstat (limited to 'src/core.h')
-rw-r--r-- | src/core.h | 38 |
1 files changed, 31 insertions, 7 deletions
@@ -1,5 +1,5 @@ /* smplayer, GUI front-end for mplayer. - Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org> + Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -107,11 +107,20 @@ public slots: #ifdef SEEKBAR_RESOLUTION void goToPosition( int value ); + void goToPos( double perc ); #else void goToPos( int perc ); #endif void goToSec( double sec ); + void setAMarker(); //!< Set A marker to current sec + void setAMarker(int sec); + + void setBMarker(); //!< Set B marker to current sec + void setBMarker(int sec); + + void clearABMarkers(); + void toggleRepeat(); void toggleRepeat(bool b); @@ -255,7 +264,7 @@ public slots: void changeSize(int); // Size of the window void toggleDoubleSize(); - void changePanscan(double); // Zoom on mplayerwindow + void changeZoom(double); // Zoom on mplayerwindow void changeRotate(int r); @@ -263,13 +272,22 @@ public slots: void changeAdapter(int n); #endif + void incZoom(); + void decZoom(); + void resetZoom(); + void autoZoom(); + void autoZoomFromLetterbox(double video_aspect); + void autoZoomFor169(); + void autoZoomFor235(); + +#if USE_MPLAYER_PANSCAN + void changePanscan(double); void incPanscan(); void decPanscan(); - void resetPanscan(); - void autoPanscan(); - void autoPanscanFromLetterbox(double video_aspect); - void autoPanscanFor169(); - void autoPanscanFor235(); +#endif + + void showFilenameOnOSD(); + void toggleDeinterlace(); void changeUseAss(bool); void toggleClosedCaption(bool); @@ -292,6 +310,10 @@ public slots: // Pass a command to mplayer by stdin: void tellmp(const QString & command); + //! Wrapper for the osd_show_text slave command + void displayTextOnOSD(QString text, int duration = 3000, int level = 1, + QString prefix = QString::null); + public: //! Returns the number of the first chapter in //! files. In some versions of mplayer is 0, in others 1 @@ -325,6 +347,7 @@ protected slots: void displayScreenshotName(QString filename); void displayUpdatingFontCache(); + void streamTitleChanged(QString); void streamTitleAndUrlChanged(QString,QString); void watchState(Core::State state); @@ -394,6 +417,7 @@ signals: void posChanged(int); // To connect a slider #endif void showFrame(int frame); + void ABMarkersChanged(int secs_a, int secs_b); void needResize(int w, int h); void noVideo(); void volumeChanged(int); |