Mercurial > hg > svgui
comparison view/View.cpp @ 315:c30a7cd29f4a
* Make drop behave more sensibly (replace current pane)
author | Chris Cannam |
---|---|
date | Wed, 17 Oct 2007 12:58:45 +0000 |
parents | 7b96a3261e1c |
children | c0b9eec70639 |
comparison
equal
deleted
inserted
replaced
314:7b96a3261e1c | 315:c30a7cd29f4a |
---|---|
1047 if ((*i)->getModel() && (*i)->getModel()->isOK()) { | 1047 if ((*i)->getModel() && (*i)->getModel()->isOK()) { |
1048 return (*i)->getModel()->getSampleRate(); | 1048 return (*i)->getModel()->getSampleRate(); |
1049 } | 1049 } |
1050 } | 1050 } |
1051 return 0; | 1051 return 0; |
1052 } | |
1053 | |
1054 View::ModelSet | |
1055 View::getModels() | |
1056 { | |
1057 ModelSet models; | |
1058 | |
1059 for (int i = 0; i < getLayerCount(); ++i) { | |
1060 | |
1061 Layer *layer = getLayer(i); | |
1062 | |
1063 if (dynamic_cast<TimeRulerLayer *>(layer)) { | |
1064 continue; | |
1065 } | |
1066 | |
1067 if (layer && layer->getModel()) { | |
1068 Model *model = layer->getModel(); | |
1069 models.insert(model); | |
1070 } | |
1071 } | |
1072 | |
1073 return models; | |
1052 } | 1074 } |
1053 | 1075 |
1054 int | 1076 int |
1055 View::getAlignedPlaybackFrame() const | 1077 View::getAlignedPlaybackFrame() const |
1056 { | 1078 { |