Ignore:
Timestamp:
Aug 31, 2016, 5:31:04 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update trunk to version 16.8.0

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/basegui.h

    r176 r181  
    2929#include "guiconfig.h"
    3030
    31 #ifdef Q_OS_WIN
    3231#ifdef AVOID_SCREENSAVER
    33 /* Disable screensaver by event */
    3432#include <windows.h>
    35 #endif
    3633#endif
    3734
     
    4138
    4239//#define SHARE_MENU
     40//#define DETECT_MINIMIZE_WORKAROUND
     41
     42#if !defined(Q_OS_WIN) && QT_VERSION >= 0x050000 && QT_VERSION < 0x050501
     43#define NUMPAD_WORKAROUND
     44#endif
    4345
    4446class QWidget;
    4547class QMenu;
    4648class LogWindow;
     49class InfoWindow;
    4750class MplayerWindow;
    4851
     
    208211        virtual void exitFullscreenIfNeeded();
    209212        virtual void playlistHasFinished();
     213        virtual void addToPlaylistCurrentFile();
    210214
    211215        virtual void displayState(Core::State state);
     
    321325        void applyStyles();
    322326
    323 #if defined(Q_OS_WIN) || defined(Q_OS_OS2)
    324 #ifdef AVOID_SCREENSAVER
    325         /* Disable screensaver by event */
     327        virtual void setTabletMode(bool);
     328
     329#ifdef Q_OS_WIN
     330        void checkSystemTabletMode();
     331        void systemTabletModeChanged(bool);
     332       
     333        #ifdef AVOID_SCREENSAVER
    326334        void clear_just_stopped();
    327 #endif
     335        #endif
    328336#endif
    329337
     
    344352        void videoInfoChanged(int width, int height, double fps);
    345353        void timeChanged(QString time_ready_to_print);
     354        void timeChanged(double current_time);
    346355
    347356        /*
     
    365374#endif
    366375
     376        void preferencesChanged();
     377        void tabletModeChanged(bool new_mode);
     378
    367379protected:
    368380        virtual void retranslateStrings();
    369381        virtual void changeEvent(QEvent * event);
    370 #if QT_VERSION < 0x050000
     382#ifndef DETECT_MINIMIZE_WORKAROUND
    371383        virtual void hideEvent( QHideEvent * );
    372384        virtual void showEvent( QShowEvent * );
     
    375387        bool was_minimized;
    376388#endif
     389
    377390#ifdef Q_OS_WIN
    378         #ifdef AVOID_SCREENSAVER
    379         /* Disable screensaver by event */
    380391        virtual bool winEvent ( MSG * m, long * result );
     392        #if QT_VERSION >= 0x050000
     393        virtual bool nativeEvent(const QByteArray &eventType, void * message, long * result);
    381394        #endif
     395#endif
     396
     397#ifdef NUMPAD_WORKAROUND
     398        void keyPressEvent(QKeyEvent *event);
    382399#endif
    383400
     
    397414        void createFilePropertiesDialog();
    398415        void setDataToFileProperties();
    399         void initializeGui();
     416
    400417        void createActions();
    401418#if AUTODISABLE_ACTIONS
     
    403420#endif
    404421        void createMenus();
     422        virtual void populateMainMenu();
    405423#ifdef BOOKMARKS
    406424        void updateBookmarks();
     
    541559        MyAction * showLogSmplayerAct;
    542560#endif
     561        MyAction * tabletModeAct;
    543562
    544563        // Menu Help
     
    769788        QMenu *subtitlesMenu;
    770789        QMenu *browseMenu;
     790        QMenu *viewMenu;
    771791        QMenu *optionsMenu;
    772792        QMenu *helpMenu;
     
    802822        QMenu * audiofilter_menu;
    803823#if defined(LOG_MPLAYER) || defined(LOG_SMPLAYER)
    804         QMenu * logs_menu;
     824        //QMenu * logs_menu;
    805825#endif
    806826        QMenu * zoom_menu;
     
    819839        QMenu * popup;
    820840        QMenu * recentfiles_menu;
     841        QMenu * access_menu;
    821842
    822843#ifdef LOG_MPLAYER
     
    826847        LogWindow * smplayer_log_window;
    827848#endif
    828         LogWindow * clhelp_window;
     849        InfoWindow * clhelp_window;
    829850
    830851        PreferencesDialog *pref_dialog;
     
    845866        Favorites * favorites;
    846867
     868#ifdef TV_SUPPORT
    847869        TVList * tvlist;
    848870        TVList * radiolist;
     871#endif
    849872
    850873#ifdef UPDATE_CHECKER
     
    878901        bool was_maximized;
    879902
    880 #if defined(Q_OS_WIN) || defined(Q_OS_OS2)
    881903#ifdef AVOID_SCREENSAVER
    882         /* Disable screensaver by event */
    883904        bool just_stopped;
    884 #endif
    885905#endif
    886906
     
    894914        bool ignore_show_hide_events;
    895915};
    896    
    897 #endif
    898 
     916
     917#endif
     918
Note: See TracChangeset for help on using the changeset viewer.