-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2541 from Holzhaus/track-colors-from-controller
Allow changing track colors from controller
- Loading branch information
Showing
8 changed files
with
186 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// libraryview.h | ||
// Created 8/28/2009 by RJ Ryan ([email protected]) | ||
// | ||
// LibraryView is an abstract interface that all views to be used with the | ||
// Library widget should support. | ||
/// libraryview.h | ||
/// Created 8/28/2009 by RJ Ryan ([email protected]) | ||
/// | ||
/// LibraryView is an abstract interface that all views to be used with the | ||
/// Library widget should support. | ||
|
||
#ifndef LIBRARYVIEW_H | ||
#define LIBRARYVIEW_H | ||
|
@@ -15,27 +15,32 @@ class LibraryView { | |
|
||
virtual void onShow() = 0; | ||
virtual bool hasFocus() const = 0; | ||
// reimplement if LibraryView should be able to search | ||
/// Reimplement if LibraryView should be able to search | ||
virtual void onSearch(const QString& text) {Q_UNUSED(text);} | ||
|
||
// If applicable, requests that the LibraryView load the selected | ||
// track. Does nothing otherwise. | ||
/// If applicable, requests that the LibraryView load the selected | ||
/// track. Does nothing otherwise. | ||
virtual void loadSelectedTrack() {}; | ||
|
||
virtual void slotAddToAutoDJBottom() {}; | ||
virtual void slotAddToAutoDJTop() {}; | ||
virtual void slotAddToAutoDJReplace() {}; | ||
|
||
// If applicable, requests that the LibraryView load the selected track to | ||
// the specified group. Does nothing otherwise. | ||
/// If applicable, requests that the LibraryView load the selected track to | ||
/// the specified group. Does nothing otherwise. | ||
virtual void loadSelectedTrackToGroup(QString group, bool play) { | ||
Q_UNUSED(group); Q_UNUSED(play); | ||
} | ||
|
||
// If a selection is applicable for this view, request that the selection be | ||
// increased or decreased by the provided delta. For example, for a value of | ||
// 1, the view should move to the next selection in the list. | ||
/// If a selection is applicable for this view, request that the selection be | ||
/// increased or decreased by the provided delta. For example, for a value of | ||
/// 1, the view should move to the next selection in the list. | ||
virtual void moveSelection(int delta) {Q_UNUSED(delta);} | ||
|
||
/// If applicable, requests that the LibraryView changes the track color of | ||
/// the selected track. Does nothing otherwise. | ||
virtual void assignPreviousTrackColor(){}; | ||
virtual void assignNextTrackColor(){}; | ||
}; | ||
|
||
#endif /* LIBRARYVIEW_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.