svgui
1.9
|
ViewManager.cpp
Go to the documentation of this file.
222 cerr << "ViewManager::alignPlaybackFrameToReference(" << frame << "): playback model is " << m_playbackModel << endl;
243 cerr << "ViewManager::alignReferenceToPlaybackFrame(" << frame << "): playback model is " << m_playbackModel << endl;
431 case NoteEditMode: emit activity(tr("Enter NoteEdit mode")); break; // GF: NoteEditMode activity (I'm not yet certain why we need to emit this.)
588 cerr << "ViewManager::checkPlayStatus: Recording, frame " << m_playbackFrame << ", levels " << m_lastLeft << "," << m_lastRight << endl;
609 cerr << "ViewManager::checkPlayStatus: Playing, frame " << m_playbackFrame << ", levels " << m_lastLeft << "," << m_lastRight << endl;
649 cerr << "ViewManager::viewCentreFrameChanged(" << f << ", " << locked << ", " << mode << "), view is " << v << endl;
724 cerr << "ViewManager::viewZoomLevelChanged(" << v << ", " << z << ", " << locked << ")" << endl;
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...
bool haveInProgressSelection() const
Definition: ViewManager.cpp:261
void playSelectionModeChanged()
Emitted when the play selection mode has been changed.
void setSelections(const MultiSelection &ms, bool quietly=false)
Definition: ViewManager.cpp:342
Definition: ViewManager.h:137
View scrolls continuously during playback, keeping the playback position at the centre.
Definition: ViewManager.h:44
bool getGlobalDarkBackground() const
Definition: ViewManager.cpp:846
SetSelectionCommand(ViewManager *vm, const MultiSelection &ms)
Definition: ViewManager.cpp:379
void showCentreLineChanged()
Emitted when the centre line visibility has been changed.
Selection getContainingSelection(sv_frame_t frame, bool defaultToFollowing) const override
Return the selection that contains a given frame.
Definition: ViewManager.cpp:412
static int scalePixelSize(int pixels)
Take a "design pixel" size and scale it for the actual display.
Definition: ViewManager.cpp:857
void viewCentreFrameChanged(View *v, sv_frame_t frame)
Emitted when user scrolls a view, but doesn't affect global centre.
void setGlobalDarkBackground(bool dark)
Definition: ViewManager.cpp:795
sv_frame_t getGlobalCentreFrame() const
Definition: ViewManager.cpp:142
sv_frame_t alignPlaybackFrameToReference(sv_frame_t) const override
Definition: ViewManager.cpp:219
sv_samplerate_t m_mainModelSampleRate
Definition: ViewManager.h:353
void viewZoomLevelChanged(View *v, ZoomLevel zoom, bool locked)
Emitted when a view zooms.
Definition: ViewManager.h:141
const MultiSelection & getSelection() const override
Definition: ViewManager.cpp:290
Definition: ViewManager.h:204
void addCommand(Command *command)
Add a command to the command history.
Definition: CommandHistory.cpp:135
void setAudioPlaySource(AudioPlaySource *source) override
Definition: ViewManager.cpp:536
const Selection & getInProgressSelection(bool &exclusive) const
Definition: ViewManager.cpp:267
void inProgressSelectionChanged()
Emitted when the in-progress (rubberbanding) selection has changed.
Definition: ViewManager.h:138
void removeSelection(const Selection &selection)
Definition: ViewManager.cpp:326
void addSelection(const Selection &selection)
Definition: ViewManager.cpp:310
sv_frame_t alignReferenceToPlaybackFrame(sv_frame_t) const override
Definition: ViewManager.cpp:240
sv_samplerate_t getPlaybackSampleRate() const
The sample rate that is used for playback.
Definition: ViewManager.cpp:518
ToolMode getToolModeFor(const View *v) const
Return override mode if it exists for this view or global mode otherwise.
Definition: ViewManager.cpp:436
sv_samplerate_t getDeviceSampleRate() const
The sample rate of the audio output device.
Definition: ViewManager.cpp:527
void setOpportunisticEditingEnabled(bool enable)
Enable or disable opportunistic editing.
Definition: ViewManager.cpp:770
View follows playback page-by-page, but dragging the view relocates playback to the centre frame...
Definition: ViewManager.h:51
void overlayModeChanged()
Emitted when the overlay mode has been changed.
void monitoringLevelsChanged(float left, float right)
Emitted when the output or record levels change.
Definition: ViewManager.h:142
void setInProgressSelection(const Selection &selection, bool exclusive)
Definition: ViewManager.cpp:274
void recordStatusChanged(bool recording)
Definition: ViewManager.cpp:563
void addSelectionQuietly(const Selection &selection)
Adding a selection normally emits the selectionChangedByUser signal.
Definition: ViewManager.cpp:318
QString getName() const override
Definition: ViewManager.cpp:404
void setZoomWheelsEnabled(bool enable)
Definition: ViewManager.cpp:754
Definition: ViewManager.h:136
void alignModeChanged()
Emitted when the alignment mode has been changed.
Definition: ViewManager.h:140
sv_frame_t constrainFrameToSelection(sv_frame_t frame) const override
Definition: ViewManager.cpp:353
MultiSelection m_oldSelection
Definition: ViewManager.h:386
MultiSelection m_newSelection
Definition: ViewManager.h:387
void playSoloModeChanged()
Emitted when the play solo mode has been changed.
void opportunisticEditingEnabledChanged()
Emitted when editing-enabled has been toggled.
void playbackFrameChanged(sv_frame_t frame)
Emitted when the playback frame changes.
AudioPlaySource * m_playSource
!! void considerZoomChange(void *, int, bool);
Definition: ViewManager.h:346
void setAudioRecordTarget(AudioRecordTarget *target) override
Definition: ViewManager.cpp:545
Definition: ViewManager.h:139
void setSelection(const Selection &selection)
Definition: ViewManager.cpp:302
bool m_opportunisticEditingEnabled
Definition: ViewManager.h:392
View is the base class of widgets that display one or more overlaid views of data against a horizonta...
Definition: View.h:55
void setToolModeFor(const View *v, ToolMode mode)
Override the tool mode for a specific view.
Definition: ViewManager.cpp:446
The ViewManager manages properties that may need to be synchronised between separate Views...
Definition: ViewManager.h:78
const MultiSelection::SelectionList & getSelections() const override
Definition: ViewManager.cpp:296
void globalCentreFrameChanged(sv_frame_t frame)
Emitted when user causes the global centre frame to change.
void playLoopModeChanged()
Emitted when the play loop mode has been changed.
void clearToolModeOverrides()
Clear all current view-specific overrides.
Definition: ViewManager.cpp:452
virtual ~SetSelectionCommand()
Definition: ViewManager.cpp:387
std::map< const View *, ToolMode > m_toolModeOverrides
Definition: ViewManager.h:365
Definition: ViewManager.h:205
Definition: ViewManager.h:202
void setGlobalCentreFrame(sv_frame_t)
Definition: ViewManager.cpp:151
Generated by 1.8.11