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

smplayer: update vendor to version 16.4

File:
1 edited

Legend:

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

    r168 r175  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2014 Ricardo Villalba <[email protected]>
     2    Copyright (C) 2006-201 Ricardo Villalba <[email protected]>
    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
     20#define
    2121
    2222#include <QMainWindow>
     
    3636#endif
    3737
     38
     39
     40
     41
    3842//#define SHARE_MENU
    3943
     
    6367class UpdateChecker;
    6468
     69
     70
     71
    6572
    6673class BaseGui : public QMainWindow
     
    6976   
    7077public:
    71     BaseGui( QWidget* parent = 0, Qt::WindowFlags flags = 0 );
     78BaseGui( QWidget* parent = 0, Qt::WindowFlags flags = 0 );
    7279        ~BaseGui();
    7380
     
    8794        void recordSmplayerLog(QString line);
    8895#endif
     96
     97
     98
    8999
    90100public slots:
     
    113123        virtual void helpCLOptions();
    114124        virtual void helpCheckUpdates();
    115 #ifdef REMINDER_ACTIONS
     125#ifdef _ACTIONS
    116126        virtual void helpDonate();
    117127#endif
     
    159169        virtual void showSubDelayDialog();
    160170        virtual void showAudioDelayDialog();
     171
     172
     173
     174
     175
    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
    229240        void checkReminder();
    230241#endif
    231242
    232243#ifdef YOUTUBE_SUPPORT
     244
    233245        void YTNoSignature(const QString &);
    234         #ifdef YT_USE_SCRIPT
     246        #ifdef YT_USE_
    235247        void YTUpdateScript();
    236248        #endif
     
    241253        virtual void enableActionsOnPlaying();
    242254        virtual void disableActionsOnStop();
     255
    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
    251264
    252265        /* virtual void playlistVisibilityChanged(); */
     
    282295        virtual void saveActions();
    283296
     297
    284298        virtual void moveWindowDiff(QPoint diff);
     299
     300
     301
    285302
    286303        // Single instance stuff
     
    298315        // stylesheet
    299316#if ALLOW_CHANGE_STYLESHEET
    300         virtual void loadQss(QString filename);
     317        virtual loadQss(QString filename);
    301318        virtual void changeStyleSheet(QString style);
    302319#endif
     320
     321
    303322
    304323#if defined(Q_OS_WIN) || defined(Q_OS_OS2)
     
    349368        virtual void retranslateStrings();
    350369        virtual void changeEvent(QEvent * event);
     370
    351371        virtual void hideEvent( QHideEvent * );
    352372        virtual void showEvent( QShowEvent * );
     373
     374
     375
     376
    353377#ifdef Q_OS_WIN
    354378        #ifdef AVOID_SCREENSAVER
     
    379403#endif
    380404        void createMenus();
     405
     406
     407
    381408        void updateRecents();
    382409        void configureDiscDevices();
     410
    383411        /* virtual void closeEvent( QCloseEvent * e ); */
    384412
     
    412440        MyAction * stopAct;
    413441        MyAction * frameStepAct;
     442
    414443        MyAction * rewind1Act;
    415444        MyAction * rewind2Act;
     
    441470        MyAction * screenshotAct;
    442471        MyAction * screenshotsAct;
     472
     473
     474
    443475#ifdef VIDEOPREVIEW
    444476        MyAction * videoPreviewAct;
     
    446478        MyAction * flipAct;
    447479        MyAction * mirrorAct;
     480
    448481        MyAction * postProcessingAct;
    449482        MyAction * phaseAct;
     
    464497        MyAction * audioDelayAct; // Ask for delay
    465498        MyAction * extrastereoAct;
     499
    466500        MyAction * karaokeAct;
     501
    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_)
    511550        MyAction * updateYTAct;
    512551#endif
    513552        MyAction * showConfigAct;
    514 #ifdef REMINDER_ACTIONS
     553#ifdef _ACTIONS
    515554        MyAction * donateAct;
    516555#endif
     
    524563        MyAction * yahooAct;
    525564#endif
     565
     566
     567
     568
    526569
    527570        // Playlist
     
    559602
    560603        MyAction * showFilenameAct;
     604
    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
     739
     740
    698741        MyActionGroup * titleGroup;
     742
    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
     788
     789
    733790        QMenu * aspect_menu;
    734791        QMenu * osd_menu;
     
    795852#endif
    796853
     854
     855
     856
     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
     867
     868
     869
    804870
    805871private:
Note: See TracChangeset for help on using the changeset viewer.