comparison view/View.h @ 1057:218be6cf2d4f spectrogram-minor-refactor

Merge from default branch
author Chris Cannam
date Mon, 13 Jun 2016 12:46:36 +0100
parents f535f6e5dbb0
children 5144d7185fb5
comparison
equal deleted inserted replaced
1040:25b035362c44 1057:218be6cf2d4f
60 /** 60 /**
61 * Deleting a View does not delete any of its layers. They should 61 * Deleting a View does not delete any of its layers. They should
62 * be managed elsewhere (e.g. by the Document). 62 * be managed elsewhere (e.g. by the Document).
63 */ 63 */
64 virtual ~View(); 64 virtual ~View();
65
66 /**
67 * Retrieve the id of this object. Views have their own unique
68 * ids, but ViewProxy objects share the id of their View.
69 */
70 int getId() const { return m_id; }
65 71
66 /** 72 /**
67 * Retrieve the first visible sample frame on the widget. 73 * Retrieve the first visible sample frame on the widget.
68 * This is a calculated value based on the centre-frame, widget 74 * This is a calculated value based on the centre-frame, widget
69 * width and zoom level. The result may be negative. 75 * width and zoom level. The result may be negative.
365 371
366 void centreFrameChanged(sv_frame_t frame, 372 void centreFrameChanged(sv_frame_t frame,
367 bool globalScroll, 373 bool globalScroll,
368 PlaybackFollowMode followMode); 374 PlaybackFollowMode followMode);
369 375
370 void zoomLevelChanged(int, bool); 376 void zoomLevelChanged(int level, bool locked);
371 377
372 void contextHelpChanged(const QString &); 378 void contextHelpChanged(const QString &);
373 379
374 public slots: 380 public slots:
375 virtual void modelChanged(); 381 virtual void modelChanged();