* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
-#ifndef _CONTROLLER_H_
-#define _CONTROLLER_H_
+#ifndef QVLC_CONTROLLER_H_
+#define QVLC_CONTROLLER_H_
#ifdef HAVE_CONFIG_H
# include "config.h"
#include <QFrame>
#include <QString>
-#define I_PLAY_TOOLTIP N_("Play\nIf the playlist is empty, open a media")
+#define MAIN_TB1_DEFAULT "64;39;64;38;65"
+#define MAIN_TB2_DEFAULT "0-2;64;3;1;4;64;7;10;9;64-4;37;65;35-4"
+#define ADV_TB_DEFAULT "12;11;13;14"
+#define INPT_TB_DEFAULT "5-1;15-1;33;6-1"
+#define FSC_TB_DEFAULT "0-2;64;3;1;4;64;37;64;38;64;8;65;35-4;34"
+
+#define I_PLAY_TOOLTIP N_("Play\nIf the playlist is empty, open a medium")
class QPixmap;
class QLabel;
REVERSE_BUTTON,
SKIP_BACK_BUTTON,
SKIP_FW_BUTTON,
+ QUIT_BUTTON,
BUTTON_MAX,
SPLITTER = 0x20,
INPUT_SLIDER,
- VOLUME,
TIME_LABEL,
+ VOLUME,
+ VOLUME_SPECIAL,
MENU_BUTTONS,
TELETEXT_BUTTONS,
ADVANCED_CONTROLLER,
static const QString nameL[BUTTON_MAX] = { "Play", "Stop", "Open",
"Previous", "Next", "Slower", "Faster", "Fullscreen", "De-Fullscreen",
"Extended panel", "Playlist", "Snapshot", "Record", "A->B Loop",
- "Frame By Frame", "Reverse", "Skip backward" , "Skip forward" };
+ "Frame By Frame", "Trickplay Reverse", "Step backward" , "Step forward",
+ "Quit" };
static const QString tooltipL[BUTTON_MAX] = { I_PLAY_TOOLTIP,
- _("Stop playback"), _("Open a media"),
+ _("Stop playback"), _("Open a medium"),
_("Previous media in the playlist"),
_("Next media in the playlist"), _("Slower"), _("Faster"),
_("Toggle the video in fullscreen"), _("Toggle the video out fullscreen"),
_("Show extended settings" ), _( "Show playlist" ), _( "Take a snapshot" ),
_( "Record" ), _( "Loop from point A to point B continuously." ),
- _("Frame by frame"), _("Reverse"), _("Skip backward"), _("Skip forward") };
+ _("Frame by frame"), _("Reverse"), _("Step backward"), _("Step forward"),
+ _("Quit") };
static const QString iconL[BUTTON_MAX] ={ ":/play_b", ":/stop_b", ":/eject",
":/previous_b", ":/next_b", ":/slower", ":/faster", ":/fullscreen",
":/defullscreen", ":/extended", ":/playlist", ":/snapshot", ":/record",
- ":/atob_nob", ":/frame", ":/reverse", ":/skip_back", ":/skip_fw" };
-
-typedef enum actionType_e
-{
- PLAY_ACTION,
- STOP_ACTION,
- OPEN_ACTION,
- PREVIOUS_ACTION,
- NEXT_ACTION,
- SLOWER_ACTION,
- FASTER_ACTION,
- FULLSCREEN_ACTION,
- EXTENDED_ACTION,
- PLAYLIST_ACTION,
- SNAPSHOT_ACTION,
- RECORD_ACTION,
- FRAME_ACTION,
- ATOB_ACTION,
- REVERSE_ACTION,
- SKIP_BACK_ACTION,
- SKIP_FW_ACTION,
-} actionType_e;
+ ":/atob_nob", ":/frame", ":/reverse", ":/skip_back", ":/skip_fw",
+ ":/clear" };
enum
{
QWidget *createWidget( buttonType_e, int options = WIDGET_NORMAL );
private:
static void setupButton( QAbstractButton * );
- QWidget *discFrame();
- QWidget *telexFrame();
-
-protected slots:
- virtual void doAction( int );
+ QFrame *discFrame();
+ QFrame *telexFrame();
protected slots:
- void play();
- void stop();
- void prev();
- void next();
- void fullscreen();
- void extSettings();
- void faster();
- void slower();
- void reverse();
- void playlist();
- void snapshot();
- void record();
- void frame();
-
virtual void setStatus( int );
signals:
void inputExists( bool ); /// This might be usefull in the IM ?
void inputPlaying( bool ); /// This might be usefull in the IM ?
void inputIsRecordable( bool ); /// same ?
+ void inputIsTrickPlayable( bool ); /// same ?
+ void sizeChanged();
};
/* Advanced Button Bar */
int i_mouse_last_x, i_mouse_last_y;
bool b_mouse_over;
int i_screennumber;
+ QRect screenRes;
#ifdef WIN32TRICK
bool b_fscHidden;