Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the context menu actions when multiple TCOs are selected #5601

Merged
merged 22 commits into from Aug 10, 2020
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 10 additions & 6 deletions include/Track.h
Expand Up @@ -250,12 +250,16 @@ class TrackContentObjectView : public selectableObject, public ModelView
bool needsUpdate();
void setNeedsUpdate( bool b );

// Methods to remove, copy, cut, paste and mute selections of TCO views
void removeSelection( QVector<selectableObject *> so );
void copySelection( QVector<selectableObject *> so );
void cutSelection( QVector<selectableObject *> so );
void pasteSelection(); // TODO: Rethink naming?
void toggleMuteSelection( QVector<selectableObject *> so );
// Methods to remove, copy, cut, paste and mute a QVector of TCO views
IanCaio marked this conversation as resolved.
Show resolved Hide resolved
void copyActive( QVector<TrackContentObjectView *> tcovs );
void cutActive( QVector<TrackContentObjectView *> tcovs );
void paste();
// removeActive and toggleMuteActive are static because they don't depend
// being called from a particular TCO view, but can be called anywhere as long
// as a valid TCO view list is given, while copy/cut require an instance for
// some metadata to be written to the clipboard.
static void removeActive( QVector<TrackContentObjectView *> tcovs );
static void toggleMuteActive( QVector<TrackContentObjectView *> tcovs );

public slots:
virtual bool close();
Expand Down