Ignore:
Timestamp:
Mar 29, 2012, 3:09:42 PM (13 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update to latest svn

File:
1 edited

Legend:

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

    r121 r127  
    4343class VideoEqualizer;
    4444class AudioEqualizer;
     45class Playlist;
     46#ifdef FIND_SUBTITLES
    4547class FindSubtitlesWindow;
     48#endif
     49
     50#ifdef VIDEOPREVIEW
    4651class VideoPreview;
    47 class Playlist;
     52#endif
     53
    4854
    4955class MyAction;
     
    5157
    5258class PreferencesDialog;
    53 class MyServer;
    5459
    5560class Favorites;
     
    6166   
    6267public:
    63     BaseGui( bool use_server, QWidget* parent = 0, Qt::WindowFlags flags = 0 );
     68    BaseGui( QWidget* parent = 0, Qt::WindowFlags flags = 0 );
    6469        ~BaseGui();
    6570
     
    7580        void runActionsLater(QString actions) { pending_actions_to_run = actions; };
    7681
     82#ifdef LOG_SMPLAYER
    7783        //! Saves the line from the smplayer output
    7884        void recordSmplayerLog(QString line);
     85#endif
    7986
    8087public slots:
     
    106113        void setInitialSubtitle(const QString & subtitle_file);
    107114
     115#ifdef FIND_SUBTITLES
    108116        virtual void showFindSubtitlesDialog();
    109117        virtual void openUploadSubtitlesPage(); //turbos
    110 
     118#endif
     119
     120#ifdef VIDEOPREVIEW
    111121        virtual void showVideoPreviewDialog();
     122#endif
     123
    112124        virtual void showTubeBrowser();
    113125
     
    118130        virtual void showAudioEqualizer();
    119131        virtual void showAudioEqualizer(bool b);
     132#ifdef LOG_MPLAYER
    120133        virtual void showMplayerLog();
     134#endif
     135#ifdef LOG_SMPLAYER
    121136        virtual void showLog();
     137#endif
    122138        virtual void showPreferencesDialog();
    123139        virtual void showFilePropertiesDialog();
     
    227243
    228244        // Single instance stuff
    229         // Another instance request open a file
    230         virtual void remoteOpen(QString);
    231         virtual void remoteOpenFiles(QStringList);
    232         virtual void remoteAddFiles(QStringList);
    233         virtual void remoteLoadSubtitle(QString);
    234         virtual void remotePlayItem(int);
    235         virtual void remoteRemoveItem(int);
    236         virtual void remoteMoveItem(int, int);
    237         virtual void remoteViewPlaylist(QString*);
    238         virtual void remoteViewStatus(QString*);
    239         virtual void remoteViewClipInfo(QString*);
    240         virtual void remoteSeek(double);
    241         virtual void remoteGetChecked(QString, QString*);
    242         virtual void remoteGetVolume(int*);
     245#ifdef SINGLE_INSTANCE
     246        void handleMessageFromOtherInstances(const QString& message);
     247#endif
    243248
    244249        //! Called when core can't parse the mplayer version and there's no
     
    260265#endif
    261266
     267#ifdef LOG_MPLAYER
    262268        //! Clears the mplayer log
    263269        void clearMplayerLog();
     
    268274        //! Saves the mplayer log to a file every time a file is loaded
    269275        void autosaveMplayerLog();
     276#endif
    270277
    271278signals:
     
    289296        //! Sent when the user wants to close the main window
    290297        void quitSolicited();
     298
     299#ifdef GUI_CHANGE_ON_RUNTIME
     300        void guiChanged(QString gui);
     301#endif
    291302
    292303protected:
     
    379390        MyAction * screenshotAct;
    380391        MyAction * screenshotsAct;
     392#ifdef VIDEOPREVIEW
    381393        MyAction * videoPreviewAct;
     394#endif
    382395        MyAction * flipAct;
    383396        MyAction * mirrorAct;
     
    386399        MyAction * deblockAct;
    387400        MyAction * deringAct;
     401        MyAction * gradfunAct;
    388402        MyAction * addNoiseAct;
    389403        MyAction * addLetterboxAct;
     
    419433        MyAction * useForcedSubsOnlyAct;
    420434        MyAction * subVisibilityAct;
     435#ifdef FIND_SUBTITLES
    421436        MyAction * showFindSubtitlesDialogAct;
    422437        MyAction * openUploadSubtitlesPageAct;//turbos 
     438#endif
    423439
    424440        // Menu Options
     
    427443        MyAction * showPreferencesAct;
    428444        MyAction * showTubeBrowserAct;
     445#ifdef LOG_MPLAYER
    429446        MyAction * showLogMplayerAct;
     447#endif
     448#ifdef LOG_SMPLAYER
    430449        MyAction * showLogSmplayerAct;
     450#endif
    431451
    432452        // Menu Help
     
    504524        MyAction * denoiseSoftAct;
    505525
     526        // Blur-sharpen group
     527        MyActionGroup * unsharpGroup;
     528        MyAction * unsharpNoneAct;
     529        MyAction * blurAct;
     530        MyAction * sharpenAct;
     531
    506532        // Window Size Action Group
    507533        MyActionGroup * sizeGroup;
     
    627653        QMenu * osd_menu;
    628654        QMenu * deinterlace_menu;
    629         //QMenu * denoise_menu;
     655        QMenu * denoise_menu;
     656        QMenu * unsharp_menu;
    630657        QMenu * videosize_menu;
    631658        QMenu * audiochannels_menu;
     
    636663        QMenu * videofilter_menu;
    637664        QMenu * audiofilter_menu;
     665#if defined(LOG_MPLAYER) || defined(LOG_SMPLAYER)
    638666        QMenu * logs_menu;
     667#endif
    639668        QMenu * zoom_menu;
    640669        QMenu * rotate_menu;
     
    648677        QMenu * recentfiles_menu;
    649678
     679#ifdef LOG_MPLAYER
    650680        LogWindow * mplayer_log_window;
     681#endif
     682#ifdef LOG_SMPLAYER
    651683        LogWindow * smplayer_log_window;
     684#endif
    652685        LogWindow * clhelp_window;
    653686
     
    657690        VideoEqualizer * video_equalizer;
    658691        AudioEqualizer * audio_equalizer;
     692#ifdef FIND_SUBTITLES
    659693        FindSubtitlesWindow * find_subs_dialog;
     694#endif
     695#ifdef VIDEOPREVIEW
    660696        VideoPreview * video_preview;
     697#endif
    661698
    662699        Core * core;
    663700        MplayerWindow *mplayerwindow;
    664 
    665         MyServer * server;
    666701
    667702        Favorites * favorites;
     
    677712        int arg_close_on_finish; // -1 = not set, 1 = true, 0 = false
    678713        int arg_start_in_fullscreen; // -1 = not set, 1 = true, 0 = false
    679         bool use_control_server;
    680714
    681715private:
     
    696730#endif
    697731
     732#ifdef LOG_MPLAYER
    698733        QString mplayer_log;
     734#endif
     735#ifdef LOG_SMPLAYER
    699736        QString smplayer_log;
     737#endif
    700738
    701739        bool ignore_show_hide_events;
Note: See TracChangeset for help on using the changeset viewer.