16 #ifndef _VIEW_MANAGER_H_ 17 #define _VIEW_MANAGER_H_ 25 #include "base/ViewManagerBase.h" 26 #include "base/Selection.h" 27 #include "base/Command.h" 28 #include "base/Clipboard.h" 30 class AudioPlaySource;
331 void setSelections(
const MultiSelection &ms,
bool quietly =
false);
341 virtual QString
getName()
const;
void zoomWheelsEnabledChanged()
Emitted when the zoom wheels have been toggled.
void selectionChangedByUser()
Emitted when the selection has been changed through an explicit selection-editing action.
void playSelectionModeChanged()
Emitted when the play selection mode has been changed.
void setSelections(const MultiSelection &ms, bool quietly=false)
int getPlaybackFrame() const
int alignReferenceToPlaybackFrame(int) const
void viewCentreFrameChanged(View *v, int frame)
Emitted when user scrolls a view, but doesn't affect global centre.
bool shouldShowDuration() const
ToolMode getToolModeFor(const View *v) const
Return override mode if it exists for this view or global mode otherwise.
View scrolls continuously during playback, keeping the playback position at the centre.
void viewZoomLevelChanged(View *v, int zoom, bool locked)
Emitted when a view zooms.
void toolModeChanged()
Emitted when the tool mode has been changed.
SetSelectionCommand(ViewManager *vm, const MultiSelection &ms)
void showCentreLineChanged()
Emitted when the centre line visibility has been changed.
int getGlobalZoom() const
bool haveInProgressSelection() const
int getMainModelSampleRate() const
The sample rate of the current main model.
void setGlobalDarkBackground(bool dark)
bool getPlayLoopMode() const
ToolMode getToolMode() const
bool shouldShowVerticalScale() const
Model * getPlaybackModel() const
int alignPlaybackFrameToReference(int) const
void setMainModelSampleRate(int sr)
void outputLevelsChanged(float left, float right)
Emitted when the output levels change.
void playStatusChanged(bool playing)
void inProgressSelectionChanged()
Emitted when the in-progress (rubberbanding) selection has changed.
bool shouldIlluminateLocalFeatures() const
bool shouldShowFeatureLabels() const
void setIlluminateLocalFeatures(bool i)
void removeSelection(const Selection &selection)
void addSelection(const Selection &selection)
bool shouldShowFrameCount() const
void signalSelectionChange()
bool m_illuminateLocalFeatures
void setPlaySelectionMode(bool on)
virtual QString getName() const
bool shouldShowScaleGuides() const
Selection m_inProgressSelection
View follows playback page-by-page, but dragging the view relocates playback to the centre frame.
void overlayModeChanged()
Emitted when the overlay mode has been changed.
void setPlaybackFrame(int)
void globalCentreFrameChanged(int frame)
Emitted when user causes the global centre frame to change.
void setShowDuration(bool show)
const Selection & getInProgressSelection(bool &exclusive) const
void setInProgressSelection(const Selection &selection, bool exclusive)
void setAudioPlaySource(AudioPlaySource *source)
void setPlaySoloMode(bool on)
void selectionChanged()
Emitted whenever the selection has changed.
void setOverlayMode(OverlayMode mode)
bool shouldShowLayerNames() const
View is detached from playback.
bool getPlaySelectionMode() const
void addSelectionQuietly(const Selection &selection)
Adding a selection normally emits the selectionChangedByUser signal.
bool m_inProgressExclusive
void playbackFrameChanged(int frame)
Emitted when the playback frame changes.
void setZoomWheelsEnabled(bool enable)
void alignModeChanged()
Emitted when the alignment mode has been changed.
bool shouldShowSelectionExtents() const
int getOutputSampleRate() const
The sample rate of the audio output device.
void setShowCentreLine(bool show)
MultiSelection m_selections
MultiSelection m_oldSelection
MultiSelection m_newSelection
void playSoloModeChanged()
Emitted when the play solo mode has been changed.
bool shouldShowWorkTitle() const
OverlayMode m_overlayMode
AudioPlaySource * m_playSource
!! void considerZoomChange(void *, int, bool);
void setGlobalCentreFrame(int)
void clearInProgressSelection()
int constrainFrameToSelection(int frame) const
void setSelection(const Selection &selection)
View is the base class of widgets that display one or more overlaid views of data against a horizonta...
void setToolModeFor(const View *v, ToolMode mode)
Override the tool mode for a specific view.
Clipboard & getClipboard()
int getPlaybackSampleRate() const
The sample rate that is used for playback.
The ViewManager manages properties that may need to be synchronised between separate Views.
int getGlobalCentreFrame() const
bool shouldShowCentreLine() const
const MultiSelection::SelectionList & getSelections() const
void setPlayLoopMode(bool on)
void setShowWorkTitle(bool show)
View follows playback page-by-page, and the play head is moved (by the user) separately from dragging...
int m_mainModelSampleRate
!!
void setAlignMode(bool on)
void activity(QString)
Emitted when any loggable activity has occurred.
void playLoopModeChanged()
Emitted when the play loop mode has been changed.
Selection getContainingSelection(int frame, bool defaultToFollowing) const
Return the selection that contains a given frame.
bool getAlignMode() const
OverlayMode getOverlayMode() const
bool shouldShowVerticalColourScale() const
void setPlaybackModel(Model *)
void clearToolModeOverrides()
Clear all current view-specific overrides.
bool getPlaySoloMode() const
virtual ~SetSelectionCommand()
const MultiSelection & getSelection() const
std::map< const View *, ToolMode > m_toolModeOverrides
bool getZoomWheelsEnabled() const
void setToolMode(ToolMode mode)
bool getGlobalDarkBackground() const