Mercurial > hg > svgui
diff view/ViewManager.h @ 1327:646e713a4632 zoom
Further ZoomLevel fixes
author | Chris Cannam |
---|---|
date | Thu, 20 Sep 2018 11:45:26 +0100 |
parents | fc9d9f1103fa |
children | a18e78b9c78b |
line wrap: on
line diff
--- a/view/ViewManager.h Thu Sep 20 10:45:24 2018 +0100 +++ b/view/ViewManager.h Thu Sep 20 11:45:26 2018 +0100 @@ -27,6 +27,7 @@ #include "base/Command.h" #include "base/Clipboard.h" #include "base/BaseTypes.h" +#include "base/ZoomLevel.h" class AudioPlaySource; class AudioRecordTarget; @@ -87,7 +88,7 @@ bool isRecording() const; sv_frame_t getGlobalCentreFrame() const; // the set method is a slot - int getGlobalZoom() const; + ZoomLevel getGlobalZoom() const; sv_frame_t getPlaybackFrame() const; // the set method is a slot @@ -255,7 +256,7 @@ void viewCentreFrameChanged(View *v, sv_frame_t frame); /** Emitted when a view zooms. */ - void viewZoomLevelChanged(View *v, int zoom, bool locked); + void viewZoomLevelChanged(View *v, ZoomLevel zoom, bool locked); /** Emitted when the playback frame changes. */ void playbackFrameChanged(sv_frame_t frame); @@ -307,7 +308,7 @@ public slots: void viewCentreFrameChanged(sv_frame_t, bool, PlaybackFollowMode); - void viewZoomLevelChanged(int, bool); + void viewZoomLevelChanged(ZoomLevel, bool); void setGlobalCentreFrame(sv_frame_t); void setPlaybackFrame(sv_frame_t); void playStatusChanged(bool playing); @@ -323,7 +324,7 @@ AudioRecordTarget *m_recordTarget; sv_frame_t m_globalCentreFrame; - int m_globalZoom; + ZoomLevel m_globalZoom; mutable sv_frame_t m_playbackFrame; Model *m_playbackModel; //!!! sv_samplerate_t m_mainModelSampleRate;