Changeset 163 for smplayer/vendor/current/src/mplayerwindow.h
- Timestamp:
- May 15, 2014, 7:53:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/mplayerwindow.h
r140 r163 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 3Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 66 66 virtual void playingStopped(); 67 67 68 signals: 69 void mouseMoved(QPoint); 70 68 71 protected: 69 72 virtual void mouseMoveEvent( QMouseEvent * e ); 70 virtual void paintEvent ( QPaintEvent * e );71 73 72 74 protected slots: … … 121 123 class MplayerWindow : public Screen 122 124 { 123 125 Q_OBJECT 124 126 125 127 public: 126 MplayerWindow(QWidget* parent = 0, Qt::WindowFlags f = 0);127 128 128 MplayerWindow(QWidget* parent = 0, Qt::WindowFlags f = 0); 129 ~MplayerWindow(); 130 129 131 MplayerLayer * videoLayer() { return mplayerlayer; }; 130 132 … … 150 152 bool isVideoMovementAllowed() { return allow_video_movement; }; 151 153 154 void delayLeftClick(bool b) { delay_left_click = b; }; 155 bool isLeftClickDelayed() { return delay_left_click; }; 156 152 157 virtual QSize sizeHint () const; 153 158 virtual QSize minimumSizeHint() const; 154 159 155 virtual bool eventFilter( QObject * watched, QEvent * event);160 virtual bool eventFilter(QObject *, QEvent *); 156 161 157 162 #if LOGO_ANIMATION … … 175 180 void decZoom(); 176 181 182 void activateMouseDragTracking(bool active) { mouse_drag_tracking = active; } 183 177 184 #if DELAYED_RESIZE 178 185 protected slots: … … 184 191 virtual void changeEvent ( QEvent * event ) ; 185 192 186 187 193 virtual void resizeEvent( QResizeEvent * e); 194 virtual void mouseReleaseEvent( QMouseEvent * e); 188 195 virtual void mouseDoubleClickEvent( QMouseEvent * e ); 189 196 virtual void wheelEvent( QWheelEvent * e ); … … 201 208 void wheelUp(); 202 209 void wheelDown(); 203 void mouseMoved(QPoint);204 210 void mouseMovedDiff(QPoint); 205 211 206 212 protected: 207 208 213 int video_width, video_height; 214 double aspect; 209 215 double monitoraspect; 210 216 … … 222 228 223 229 bool allow_video_movement; 224 QPoint mouse_press_pos;225 230 226 231 #if DELAYED_RESIZE … … 228 233 #endif 229 234 235 // Delay left click event 236 bool delay_left_click; 237 QTimer * left_click_timer; 238 bool double_clicked; 239 230 240 #if LOGO_ANIMATION 231 241 bool animated_logo; 232 242 #endif 243 244 private: 245 bool mouse_drag_tracking; 246 bool isMoving; 247 QPoint startDrag; 233 248 }; 234 249 235 236 #endif 237 250 #endif 251
Note:
See TracChangeset
for help on using the changeset viewer.