mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
Mixer Utility to deselect quickly a source
This commit is contained in:
10
Mixer.cpp
10
Mixer.cpp
@@ -500,6 +500,16 @@ void Mixer::uncover(Source *s)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Mixer::deselect(Source *s)
|
||||||
|
{
|
||||||
|
if ( s != nullptr ) {
|
||||||
|
if ( s == *current_source_)
|
||||||
|
unsetCurrentSource();
|
||||||
|
Mixer::selection().remove(s);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Mixer::deleteSelection()
|
void Mixer::deleteSelection()
|
||||||
{
|
{
|
||||||
// get clones first : this way we store the history of deletion in the right order
|
// get clones first : this way we store the history of deletion in the right order
|
||||||
|
|||||||
1
Mixer.h
1
Mixer.h
@@ -50,6 +50,7 @@ public:
|
|||||||
void renameSource (Source *s, const std::string &newname);
|
void renameSource (Source *s, const std::string &newname);
|
||||||
void attach (Source *s);
|
void attach (Source *s);
|
||||||
void detach (Source *s);
|
void detach (Source *s);
|
||||||
|
void deselect (Source *s);
|
||||||
void deleteSelection();
|
void deleteSelection();
|
||||||
|
|
||||||
// current source
|
// current source
|
||||||
|
|||||||
Reference in New Issue
Block a user