summaryrefslogtreecommitdiff
path: root/gtk2_ardour/selection.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-08-01 22:18:46 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-08-01 22:18:46 +0000
commit6698f5f686bef82b0c9568558c83a3b9b3344700 (patch)
treeb955303ea57c1105183bed2891533b06aebb8c24 /gtk2_ardour/selection.cc
parent4d1542d1e59737fb3f6464ebb5638ca64cb985e8 (diff)
use XML state to store processors in mixer (strips) and fixup crash caused by missing AutomationController for integer LADSPA plugin params
git-svn-id: svn://localhost/ardour2/trunk@2215 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/selection.cc')
-rw-r--r--gtk2_ardour/selection.cc57
1 files changed, 2 insertions, 55 deletions
diff --git a/gtk2_ardour/selection.cc b/gtk2_ardour/selection.cc
index 43dd75df61..b9c44bea13 100644
--- a/gtk2_ardour/selection.cc
+++ b/gtk2_ardour/selection.cc
@@ -63,8 +63,7 @@ operator== (const Selection& a, const Selection& b)
a.time.group == b.time.group &&
a.time == b.time &&
a.lines == b.lines &&
- a.playlists == b.playlists &&
- a.processors == b.processors;
+ a.playlists == b.playlists;
}
/** Clear everything from the Selection */
@@ -77,7 +76,6 @@ Selection::clear ()
clear_lines();
clear_time ();
clear_playlists ();
- clear_processors ();
}
void
@@ -91,15 +89,6 @@ Selection::dump_region_layers()
void
-Selection::clear_processors ()
-{
- if (!processors.empty()) {
- processors.clear ();
- ProcessorsChanged ();
- }
-}
-
-void
Selection::clear_regions ()
{
if (!regions.empty()) {
@@ -154,20 +143,6 @@ Selection::clear_lines ()
}
void
-Selection::toggle (boost::shared_ptr<Processor> r)
-{
- ProcessorSelection::iterator i;
-
- if ((i = find (processors.begin(), processors.end(), r)) == processors.end()) {
- processors.push_back (r);
- } else {
- processors.erase (i);
- }
- ProcessorsChanged();
-
-}
-
-void
Selection::toggle (boost::shared_ptr<Playlist> pl)
{
PlaylistSelection::iterator i;
@@ -252,16 +227,6 @@ Selection::toggle (nframes_t start, nframes_t end)
return next_time_id - 1;
}
-
-void
-Selection::add (boost::shared_ptr<Processor> i)
-{
- if (find (processors.begin(), processors.end(), i) == processors.end()) {
- processors.push_back (i);
- ProcessorsChanged();
- }
-}
-
void
Selection::add (boost::shared_ptr<Playlist> pl)
{
@@ -395,16 +360,6 @@ Selection::add (AutomationList* ac)
}
void
-Selection::remove (boost::shared_ptr<Processor> r)
-{
- ProcessorSelection::iterator i;
- if ((i = find (processors.begin(), processors.end(), r)) != processors.end()) {
- processors.erase (i);
- ProcessorsChanged ();
- }
-}
-
-void
Selection::remove (TimeAxisView* track)
{
list<TimeAxisView*>::iterator i;
@@ -510,13 +465,6 @@ Selection::remove (AutomationList *ac)
}
void
-Selection::set (boost::shared_ptr<Processor> i)
-{
- clear_processors ();
- add (i);
-}
-
-void
Selection::set (TimeAxisView* track)
{
clear_tracks ();
@@ -624,8 +572,7 @@ Selection::empty ()
playlists.empty () &&
lines.empty () &&
time.empty () &&
- playlists.empty () &&
- processors.empty ()
+ playlists.empty ()
;
}