Ignore:
Timestamp:
May 3, 2016, 2:14:41 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update vendor to version 16.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified smplayer/vendor/current/src/basegui.h

    r168 r175  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    1717*/
    1818
    19 #ifndef _BASEGUI_H_
    20 #define _BASEGUI_H_
     19#ifndef BASEGUI_H
     20#define BASEGUI_H
    2121
    2222#include <QMainWindow>
     
    3636#endif
    3737
     38#ifdef MOUSE_GESTURES
     39        #define MG_DELAYED_SEEK
     40#endif
     41
    3842//#define SHARE_MENU
    3943
     
    6367class UpdateChecker;
    6468
     69#ifdef SHARE_WIDGET
     70class ShareWidget;
     71#endif
    6572
    6673class BaseGui : public QMainWindow
     
    6976   
    7077public:
    71     BaseGui( QWidget* parent = 0, Qt::WindowFlags flags = 0 );
     78        BaseGui( QWidget* parent = 0, Qt::WindowFlags flags = 0 );
    7279        ~BaseGui();
    7380
     
    8794        void recordSmplayerLog(QString line);
    8895#endif
     96
     97        Core * getCore() { return core; };
     98        Playlist * getPlaylist() { return playlist; };
    8999
    90100public slots:
     
    113123        virtual void helpCLOptions();
    114124        virtual void helpCheckUpdates();
    115 #ifdef REMINDER_ACTIONS
     125#ifdef SHARE_ACTIONS
    116126        virtual void helpDonate();
    117127#endif
     
    159169        virtual void showSubDelayDialog();
    160170        virtual void showAudioDelayDialog();
     171        virtual void showStereo3dDialog();
     172#ifdef BOOKMARKS
     173        virtual void showAddBookmarkDialog();
     174        virtual void showBookmarkDialog();
     175#endif
    161176
    162177        virtual void exitFullscreen();
     
    218233#endif
    219234
    220 #ifdef UPDATE_CHECKER
    221         void reportNewVersionAvailable(QString);
    222 #endif
    223 
    224235#ifdef CHECK_UPGRADED
    225236        void checkIfUpgraded();
    226237#endif
    227238
    228 #ifdef REMINDER_ACTIONS
     239#if defined(SHARE_ACTIONS) && !defined(SHARE_WIDGET)
    229240        void checkReminder();
    230241#endif
    231242
    232243#ifdef YOUTUBE_SUPPORT
     244        void YTNoSslSupport();
    233245        void YTNoSignature(const QString &);
    234         #ifdef YT_USE_SCRIPT
     246        #ifdef YT_USE_YTSIG
    235247        void YTUpdateScript();
    236248        #endif
     
    241253        virtual void enableActionsOnPlaying();
    242254        virtual void disableActionsOnStop();
     255#endif
    243256        virtual void togglePlayAction(Core::State);
    244 #endif
    245257
    246258        void changeSizeFactor(int factor);
     
    249261        void resizeWindow(int w, int h);
    250262        virtual void hidePanel();
     263        void centerWindow();
    251264
    252265        /* virtual void playlistVisibilityChanged(); */
     
    282295        virtual void saveActions();
    283296
     297        virtual void processMouseMovedDiff(QPoint diff);
    284298        virtual void moveWindowDiff(QPoint diff);
     299#ifdef MG_DELAYED_SEEK
     300        virtual void delayedSeek();
     301#endif
    285302
    286303        // Single instance stuff
     
    298315        // stylesheet
    299316#if ALLOW_CHANGE_STYLESHEET
    300         virtual void loadQss(QString filename);
     317        virtual QString loadQss(QString filename);
    301318        virtual void changeStyleSheet(QString style);
    302319#endif
     320
     321        void applyStyles();
    303322
    304323#if defined(Q_OS_WIN) || defined(Q_OS_OS2)
     
    349368        virtual void retranslateStrings();
    350369        virtual void changeEvent(QEvent * event);
     370#if QT_VERSION < 0x050000
    351371        virtual void hideEvent( QHideEvent * );
    352372        virtual void showEvent( QShowEvent * );
     373#else
     374        virtual bool event(QEvent * e);
     375        bool was_minimized;
     376#endif
    353377#ifdef Q_OS_WIN
    354378        #ifdef AVOID_SCREENSAVER
     
    379403#endif
    380404        void createMenus();
     405#ifdef BOOKMARKS
     406        void updateBookmarks();
     407#endif
    381408        void updateRecents();
    382409        void configureDiscDevices();
     410        void setupNetworkProxy();
    383411        /* virtual void closeEvent( QCloseEvent * e ); */
    384412
     
    412440        MyAction * stopAct;
    413441        MyAction * frameStepAct;
     442        MyAction * frameBackStepAct;
    414443        MyAction * rewind1Act;
    415444        MyAction * rewind2Act;
     
    441470        MyAction * screenshotAct;
    442471        MyAction * screenshotsAct;
     472#ifdef CAPTURE_STREAM
     473        MyAction * capturingAct;
     474#endif
    443475#ifdef VIDEOPREVIEW
    444476        MyAction * videoPreviewAct;
     
    446478        MyAction * flipAct;
    447479        MyAction * mirrorAct;
     480        MyAction * stereo3dAct;
    448481        MyAction * postProcessingAct;
    449482        MyAction * phaseAct;
     
    464497        MyAction * audioDelayAct; // Ask for delay
    465498        MyAction * extrastereoAct;
     499#ifdef MPLAYER_SUPPORT
    466500        MyAction * karaokeAct;
     501#endif
    467502        MyAction * volnormAct;
    468503        MyAction * loadAudioAct;
     
    481516        MyAction * incSubScaleAct;
    482517        MyAction * decSubScaleAct;
    483         MyAction * useAssAct;
     518#ifdef MPV_SUPPORT
     519        MyAction * seekNextSubAct;
     520        MyAction * seekPrevSubAct;
     521#endif
     522        MyAction * useCustomSubStyleAct;
    484523        MyAction * useForcedSubsOnlyAct;
    485524        MyAction * subVisibilityAct;
     
    508547        MyAction * showCLOptionsAct; // Command line options
    509548        MyAction * showCheckUpdatesAct;
    510 #if defined(YOUTUBE_SUPPORT) && defined(YT_USE_SCRIPT)
     549#if defined(YOUTUBE_SUPPORT) && defined(YT_USE_YTSIG)
    511550        MyAction * updateYTAct;
    512551#endif
    513552        MyAction * showConfigAct;
    514 #ifdef REMINDER_ACTIONS
     553#ifdef SHARE_ACTIONS
    515554        MyAction * donateAct;
    516555#endif
     
    524563        MyAction * yahooAct;
    525564#endif
     565
     566        // OSD
     567        MyAction * incOSDScaleAct;
     568        MyAction * decOSDScaleAct;
    526569
    527570        // Playlist
     
    559602
    560603        MyAction * showFilenameAct;
     604        MyAction * showTimeAct;
    561605        MyAction * toggleDeinterlaceAct;
    562606
     
    573617        MyAction * autoZoom235Act;
    574618
    575 #if USE_MPLAYER_PANSCAN
    576         MyAction * incPanscanAct;
    577         MyAction * decPanscanAct;
    578 #endif
    579619
    580620        // OSD Action Group
     
    696736        MyActionGroup * audioTrackGroup;
    697737        MyActionGroup * subtitleTrackGroup;
     738#ifdef MPV_SUPPORT
     739        MyActionGroup * secondarySubtitleTrackGroup;
     740#endif
    698741        MyActionGroup * titleGroup;
     742        MyActionGroup * chapterGroup;
    699743        MyActionGroup * angleGroup;
    700         MyActionGroup * chapterGroup;
     744#ifdef BOOKMARKS
     745        MyActionGroup * bookmarkGroup;
     746        MyAction * addBookmarkAct;
     747        MyAction * editBookmarksAct;
     748
     749        MyAction * prevBookmarkAct;
     750        MyAction * nextBookmarkAct;
     751#endif
    701752
    702753#if DVDNAV_SUPPORT
     
    722773
    723774        QMenu * disc_menu;
    724         QMenu * subtitlestrack_menu;
     775        QMenu * subtitles_track_menu;
     776#ifdef MPV_SUPPORT
     777        QMenu * secondary_subtitles_track_menu;
     778#endif
    725779#if PROGRAM_SWITCH
    726780        QMenu * programtrack_menu;
     
    731785        QMenu * chapters_menu;
    732786        QMenu * angles_menu;
     787#ifdef BOOKMARKS
     788        QMenu * bookmark_menu;
     789#endif
    733790        QMenu * aspect_menu;
    734791        QMenu * osd_menu;
     
    795852#endif
    796853
     854#ifdef SHARE_WIDGET
     855        ShareWidget * sharewidget;
     856#endif
     857
    797858        QStringList actions_list;
    798859
     
    802863        int arg_close_on_finish; // -1 = not set, 1 = true, 0 = false
    803864        int arg_start_in_fullscreen; // -1 = not set, 1 = true, 0 = false
     865
     866#ifdef MG_DELAYED_SEEK
     867        QTimer * delayed_seek_timer;
     868        int delayed_seek_value;
     869#endif
    804870
    805871private:
Note: See TracChangeset for help on using the changeset viewer.