Ignore:
Timestamp:
May 15, 2014, 7:53:54 PM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update vendor to 0.8.7

File:
1 edited

Legend:

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

    r140 r163  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2013 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    6666        virtual void playingStopped();
    6767
     68signals:
     69        void mouseMoved(QPoint);
     70
    6871protected:
    6972        virtual void mouseMoveEvent( QMouseEvent * e );
    70         virtual void paintEvent ( QPaintEvent * e );
    7173
    7274protected slots:
     
    121123class MplayerWindow : public Screen
    122124{
    123     Q_OBJECT
     125        Q_OBJECT
    124126
    125127public:
    126     MplayerWindow( QWidget* parent = 0, Qt::WindowFlags f = 0);
    127     ~MplayerWindow();
    128    
     128        MplayerWindow(QWidget* parent = 0, Qt::WindowFlags f = 0);
     129        ~MplayerWindow();
     130
    129131        MplayerLayer * videoLayer() { return mplayerlayer; };
    130132
     
    150152        bool isVideoMovementAllowed() { return allow_video_movement; };
    151153
     154        void delayLeftClick(bool b) { delay_left_click = b; };
     155        bool isLeftClickDelayed() { return delay_left_click; };
     156
    152157        virtual QSize sizeHint () const;
    153158        virtual QSize minimumSizeHint() const;
    154159
    155         virtual bool eventFilter( QObject * watched, QEvent * event );
     160        virtual bool eventFilter(QObject *, QEvent *);
    156161
    157162#if LOGO_ANIMATION
     
    175180        void decZoom();
    176181
     182        void activateMouseDragTracking(bool active) { mouse_drag_tracking = active; }
     183
    177184#if DELAYED_RESIZE
    178185protected slots:
     
    184191        virtual void changeEvent ( QEvent * event ) ;
    185192
    186     virtual void resizeEvent( QResizeEvent * e);
    187     virtual void mouseReleaseEvent( QMouseEvent * e);
     193        virtual void resizeEvent( QResizeEvent * e);
     194        virtual void mouseReleaseEvent( QMouseEvent * e);
    188195        virtual void mouseDoubleClickEvent( QMouseEvent * e );
    189196        virtual void wheelEvent( QWheelEvent * e );
     
    201208        void wheelUp();
    202209        void wheelDown();
    203         void mouseMoved(QPoint);
    204210        void mouseMovedDiff(QPoint);
    205211
    206212protected:
    207     int video_width, video_height;
    208     double aspect;
     213        int video_width, video_height;
     214        double aspect;
    209215        double monitoraspect;
    210216
     
    222228
    223229        bool allow_video_movement;
    224         QPoint mouse_press_pos;
    225230
    226231#if DELAYED_RESIZE
     
    228233#endif
    229234
     235        // Delay left click event
     236        bool delay_left_click;
     237        QTimer * left_click_timer;
     238        bool double_clicked;
     239
    230240#if LOGO_ANIMATION
    231241        bool animated_logo;
    232242#endif
     243
     244private:
     245        bool mouse_drag_tracking;
     246        bool isMoving;
     247        QPoint startDrag;
    233248};
    234249
    235 
    236 #endif
    237 
     250#endif
     251
Note: See TracChangeset for help on using the changeset viewer.