comparison framework/MainWindowBase.cpp @ 435:618d5816b04d cxx11

More type fixes
author Chris Cannam
date Tue, 10 Mar 2015 13:22:10 +0000
parents dee4aceb131c
children 72c662fe7ea3
comparison
equal deleted inserted replaced
434:dee4aceb131c 435:618d5816b04d
226 this, SLOT(audioTimeStretchMultiChannelDisabled())); 226 this, SLOT(audioTimeStretchMultiChannelDisabled()));
227 227
228 connect(m_viewManager, SIGNAL(outputLevelsChanged(float, float)), 228 connect(m_viewManager, SIGNAL(outputLevelsChanged(float, float)),
229 this, SLOT(outputLevelsChanged(float, float))); 229 this, SLOT(outputLevelsChanged(float, float)));
230 230
231 connect(m_viewManager, SIGNAL(playbackFrameChanged(int)), 231 connect(m_viewManager, SIGNAL(playbackFrameChanged(sv_frame_t)),
232 this, SLOT(playbackFrameChanged(int))); 232 this, SLOT(playbackFrameChanged(sv_frame_t)));
233 233
234 connect(m_viewManager, SIGNAL(globalCentreFrameChanged(int)), 234 connect(m_viewManager, SIGNAL(globalCentreFrameChanged(sv_frame_t)),
235 this, SLOT(globalCentreFrameChanged(int))); 235 this, SLOT(globalCentreFrameChanged(sv_frame_t)));
236 236
237 connect(m_viewManager, SIGNAL(viewCentreFrameChanged(View *, int)), 237 connect(m_viewManager, SIGNAL(viewCentreFrameChanged(View *, sv_frame_t)),
238 this, SLOT(viewCentreFrameChanged(View *, int))); 238 this, SLOT(viewCentreFrameChanged(View *, sv_frame_t)));
239 239
240 connect(m_viewManager, SIGNAL(viewZoomLevelChanged(View *, int, bool)), 240 connect(m_viewManager, SIGNAL(viewZoomLevelChanged(View *, int, bool)),
241 this, SLOT(viewZoomLevelChanged(View *, int, bool))); 241 this, SLOT(viewZoomLevelChanged(View *, int, bool)));
242 242
243 connect(Preferences::getInstance(), 243 connect(Preferences::getInstance(),
689 // we want is the frame that was last committed to the soundcard 689 // we want is the frame that was last committed to the soundcard
690 // buffers, as the audio driver will continue playing up to that 690 // buffers, as the audio driver will continue playing up to that
691 // frame before switching to whichever one we decide we want to 691 // frame before switching to whichever one we decide we want to
692 // switch to, regardless of our efforts. 692 // switch to, regardless of our efforts.
693 693
694 int frame = m_playSource->getCurrentBufferedFrame(); 694 sv_frame_t frame = m_playSource->getCurrentBufferedFrame();
695 695
696 cerr << "currentPaneChanged: current frame (in ref model) = " << frame << endl; 696 cerr << "currentPaneChanged: current frame (in ref model) = " << frame << endl;
697 697
698 View::ModelSet soloModels = p->getModels(); 698 View::ModelSet soloModels = p->getModels();
699 699
778 if (!model) return; 778 if (!model) return;
779 779
780 Pane *currentPane = m_paneStack->getCurrentPane(); 780 Pane *currentPane = m_paneStack->getCurrentPane();
781 if (!currentPane) return; 781 if (!currentPane) return;
782 782
783 int startFrame, endFrame; 783 sv_frame_t startFrame, endFrame;
784 784
785 if (currentPane->getStartFrame() < 0) startFrame = 0; 785 if (currentPane->getStartFrame() < 0) startFrame = 0;
786 else startFrame = currentPane->getStartFrame(); 786 else startFrame = currentPane->getStartFrame();
787 787
788 if (currentPane->getEndFrame() > model->getEndFrame()) endFrame = model->getEndFrame(); 788 if (currentPane->getEndFrame() > model->getEndFrame()) endFrame = model->getEndFrame();
849 } 849 }
850 850
851 void 851 void
852 MainWindowBase::pasteAtPlaybackPosition() 852 MainWindowBase::pasteAtPlaybackPosition()
853 { 853 {
854 int pos = getFrame(); 854 sv_frame_t pos = getFrame();
855 Clipboard &clipboard = m_viewManager->getClipboard(); 855 Clipboard &clipboard = m_viewManager->getClipboard();
856 if (!clipboard.empty()) { 856 if (!clipboard.empty()) {
857 int firstEventFrame = clipboard.getPoints()[0].getFrame(); 857 sv_frame_t firstEventFrame = clipboard.getPoints()[0].getFrame();
858 int offset = 0; 858 sv_frame_t offset = 0;
859 if (firstEventFrame < 0) { 859 if (firstEventFrame < 0) {
860 offset = pos - firstEventFrame; 860 offset = pos - firstEventFrame;
861 } else if (firstEventFrame < pos) { 861 } else if (firstEventFrame < pos) {
862 offset = pos - firstEventFrame; 862 offset = pos - firstEventFrame;
863 } else { 863 } else {
866 pasteRelative(offset); 866 pasteRelative(offset);
867 } 867 }
868 } 868 }
869 869
870 void 870 void
871 MainWindowBase::pasteRelative(int offset) 871 MainWindowBase::pasteRelative(sv_frame_t offset)
872 { 872 {
873 Pane *currentPane = m_paneStack->getCurrentPane(); 873 Pane *currentPane = m_paneStack->getCurrentPane();
874 if (!currentPane) return; 874 if (!currentPane) return;
875 875
876 Layer *layer = currentPane->getSelectedLayer(); 876 Layer *layer = currentPane->getSelectedLayer();
934 } 934 }
935 } 935 }
936 936
937 // FrameTimer method 937 // FrameTimer method
938 938
939 int 939 sv_frame_t
940 MainWindowBase::getFrame() const 940 MainWindowBase::getFrame() const
941 { 941 {
942 if (m_playSource && m_playSource->isPlaying()) { 942 if (m_playSource && m_playSource->isPlaying()) {
943 return m_playSource->getCurrentPlayingFrame(); 943 return m_playSource->getCurrentPlayingFrame();
944 } else { 944 } else {
956 MainWindowBase::insertInstantsAtBoundaries() 956 MainWindowBase::insertInstantsAtBoundaries()
957 { 957 {
958 MultiSelection::SelectionList selections = m_viewManager->getSelections(); 958 MultiSelection::SelectionList selections = m_viewManager->getSelections();
959 for (MultiSelection::SelectionList::iterator i = selections.begin(); 959 for (MultiSelection::SelectionList::iterator i = selections.begin();
960 i != selections.end(); ++i) { 960 i != selections.end(); ++i) {
961 int start = i->getStartFrame(); 961 sv_frame_t start = i->getStartFrame();
962 int end = i->getEndFrame(); 962 sv_frame_t end = i->getEndFrame();
963 if (start != end) { 963 if (start != end) {
964 insertInstantAt(start); 964 insertInstantAt(start);
965 insertInstantAt(end); 965 insertInstantAt(end);
966 } 966 }
967 } 967 }
968 } 968 }
969 969
970 void 970 void
971 MainWindowBase::insertInstantAt(int frame) 971 MainWindowBase::insertInstantAt(sv_frame_t frame)
972 { 972 {
973 Pane *pane = m_paneStack->getCurrentPane(); 973 Pane *pane = m_paneStack->getCurrentPane();
974 if (!pane) { 974 if (!pane) {
975 return; 975 return;
976 } 976 }
1058 MainWindowBase::insertItemAtSelection() 1058 MainWindowBase::insertItemAtSelection()
1059 { 1059 {
1060 MultiSelection::SelectionList selections = m_viewManager->getSelections(); 1060 MultiSelection::SelectionList selections = m_viewManager->getSelections();
1061 for (MultiSelection::SelectionList::iterator i = selections.begin(); 1061 for (MultiSelection::SelectionList::iterator i = selections.begin();
1062 i != selections.end(); ++i) { 1062 i != selections.end(); ++i) {
1063 int start = i->getStartFrame(); 1063 sv_frame_t start = i->getStartFrame();
1064 int end = i->getEndFrame(); 1064 sv_frame_t end = i->getEndFrame();
1065 if (start < end) { 1065 if (start < end) {
1066 insertItemAt(start, end - start); 1066 insertItemAt(start, end - start);
1067 } 1067 }
1068 } 1068 }
1069 } 1069 }
1070 1070
1071 void 1071 void
1072 MainWindowBase::insertItemAt(int frame, int duration) 1072 MainWindowBase::insertItemAt(sv_frame_t frame, sv_frame_t duration)
1073 { 1073 {
1074 Pane *pane = m_paneStack->getCurrentPane(); 1074 Pane *pane = m_paneStack->getCurrentPane();
1075 if (!pane) { 1075 if (!pane) {
1076 return; 1076 return;
1077 } 1077 }
1078 1078
1079 // ugh! 1079 // ugh!
1080 1080
1081 int alignedStart = pane->alignFromReference(frame); 1081 sv_frame_t alignedStart = pane->alignFromReference(frame);
1082 int alignedEnd = pane->alignFromReference(frame + duration); 1082 sv_frame_t alignedEnd = pane->alignFromReference(frame + duration);
1083 if (alignedStart >= alignedEnd) return; 1083 if (alignedStart >= alignedEnd) return;
1084 int alignedDuration = alignedEnd - alignedStart; 1084 sv_frame_t alignedDuration = alignedEnd - alignedStart;
1085 1085
1086 Command *c = 0; 1086 Command *c = 0;
1087 1087
1088 QString name = tr("Add Item at %1 s") 1088 QString name = tr("Add Item at %1 s")
1089 .arg(RealTime::frame2RealTime 1089 .arg(RealTime::frame2RealTime
1279 1279
1280 source.waitForData(); 1280 source.waitForData();
1281 1281
1282 m_openingAudioFile = true; 1282 m_openingAudioFile = true;
1283 1283
1284 int rate = 0; 1284 sv_samplerate_t rate = 0;
1285 1285
1286 if (Preferences::getInstance()->getFixedSampleRate() != 0) { 1286 if (Preferences::getInstance()->getFixedSampleRate() != 0) {
1287 rate = Preferences::getInstance()->getFixedSampleRate(); 1287 rate = Preferences::getInstance()->getFixedSampleRate();
1288 } else if (Preferences::getInstance()->getResampleOnLoad()) { 1288 } else if (Preferences::getInstance()->getResampleOnLoad()) {
1289 rate = m_playSource->getSourceSampleRate(); 1289 rate = m_playSource->getSourceSampleRate();
1988 } 1988 }
1989 1989
1990 MainWindowBase::FileOpenStatus 1990 MainWindowBase::FileOpenStatus
1991 MainWindowBase::openLayersFromRDF(FileSource source) 1991 MainWindowBase::openLayersFromRDF(FileSource source)
1992 { 1992 {
1993 int rate = 0; 1993 sv_samplerate_t rate = 0;
1994 1994
1995 SVDEBUG << "MainWindowBase::openLayersFromRDF" << endl; 1995 SVDEBUG << "MainWindowBase::openLayersFromRDF" << endl;
1996 1996
1997 ProgressDialog dialog(tr("Importing from RDF..."), true, 2000, this); 1997 ProgressDialog dialog(tr("Importing from RDF..."), true, 2000, this);
1998 connect(&dialog, SIGNAL(showing()), this, SIGNAL(hideSplash())); 1998 connect(&dialog, SIGNAL(showing()), this, SIGNAL(hideSplash()));
2607 void 2607 void
2608 MainWindowBase::ffwd() 2608 MainWindowBase::ffwd()
2609 { 2609 {
2610 if (!getMainModel()) return; 2610 if (!getMainModel()) return;
2611 2611
2612 int frame = m_viewManager->getPlaybackFrame(); 2612 sv_frame_t frame = m_viewManager->getPlaybackFrame();
2613 ++frame; 2613 ++frame;
2614 2614
2615 Pane *pane = m_paneStack->getCurrentPane(); 2615 Pane *pane = m_paneStack->getCurrentPane();
2616 Layer *layer = getSnapLayer(); 2616 Layer *layer = getSnapLayer();
2617 int sr = getMainModel()->getSampleRate(); 2617 sv_samplerate_t sr = getMainModel()->getSampleRate();
2618 2618
2619 if (!layer) { 2619 if (!layer) {
2620 2620
2621 frame = RealTime::realTime2Frame 2621 frame = RealTime::realTime2Frame
2622 (RealTime::frame2RealTime(frame, sr) + m_defaultFfwdRwdStep, sr); 2622 (RealTime::frame2RealTime(frame, sr) + m_defaultFfwdRwdStep, sr);
2623 if (frame > int(getMainModel()->getEndFrame())) { 2623 if (frame > getMainModel()->getEndFrame()) {
2624 frame = getMainModel()->getEndFrame(); 2624 frame = getMainModel()->getEndFrame();
2625 } 2625 }
2626 2626
2627 } else { 2627 } else {
2628 2628
2637 } 2637 }
2638 2638
2639 if (frame < 0) frame = 0; 2639 if (frame < 0) frame = 0;
2640 2640
2641 if (m_viewManager->getPlaySelectionMode()) { 2641 if (m_viewManager->getPlaySelectionMode()) {
2642 frame = m_viewManager->constrainFrameToSelection(int(frame)); 2642 frame = m_viewManager->constrainFrameToSelection(frame);
2643 } 2643 }
2644 2644
2645 m_viewManager->setPlaybackFrame(frame); 2645 m_viewManager->setPlaybackFrame(frame);
2646 2646
2647 if (frame == (int)getMainModel()->getEndFrame() && 2647 if (frame == getMainModel()->getEndFrame() &&
2648 m_playSource && 2648 m_playSource &&
2649 m_playSource->isPlaying() && 2649 m_playSource->isPlaying() &&
2650 !m_viewManager->getPlayLoopMode()) { 2650 !m_viewManager->getPlayLoopMode()) {
2651 stop(); 2651 stop();
2652 } 2652 }
2661 m_playSource->isPlaying() && 2661 m_playSource->isPlaying() &&
2662 !m_viewManager->getPlayLoopMode()) { 2662 !m_viewManager->getPlayLoopMode()) {
2663 stop(); 2663 stop();
2664 } 2664 }
2665 2665
2666 int frame = getMainModel()->getEndFrame(); 2666 sv_frame_t frame = getMainModel()->getEndFrame();
2667 2667
2668 if (m_viewManager->getPlaySelectionMode()) { 2668 if (m_viewManager->getPlaySelectionMode()) {
2669 frame = m_viewManager->constrainFrameToSelection(frame); 2669 frame = m_viewManager->constrainFrameToSelection(frame);
2670 } 2670 }
2671 2671
2679 2679
2680 Layer *layer = getSnapLayer(); 2680 Layer *layer = getSnapLayer();
2681 if (!layer) { ffwd(); return; } 2681 if (!layer) { ffwd(); return; }
2682 2682
2683 Pane *pane = m_paneStack->getCurrentPane(); 2683 Pane *pane = m_paneStack->getCurrentPane();
2684 int frame = m_viewManager->getPlaybackFrame(); 2684 sv_frame_t frame = m_viewManager->getPlaybackFrame();
2685 2685
2686 int resolution = 0; 2686 int resolution = 0;
2687 if (pane) frame = pane->alignFromReference(frame); 2687 if (pane) frame = pane->alignFromReference(frame);
2688 if (layer->snapToSimilarFeature(m_paneStack->getCurrentPane(), 2688 if (layer->snapToSimilarFeature(m_paneStack->getCurrentPane(),
2689 frame, resolution, Layer::SnapRight)) { 2689 frame, resolution, Layer::SnapRight)) {
2693 } 2693 }
2694 2694
2695 if (frame < 0) frame = 0; 2695 if (frame < 0) frame = 0;
2696 2696
2697 if (m_viewManager->getPlaySelectionMode()) { 2697 if (m_viewManager->getPlaySelectionMode()) {
2698 frame = m_viewManager->constrainFrameToSelection(int(frame)); 2698 frame = m_viewManager->constrainFrameToSelection(frame);
2699 } 2699 }
2700 2700
2701 m_viewManager->setPlaybackFrame(frame); 2701 m_viewManager->setPlaybackFrame(frame);
2702 2702
2703 if (frame == (int)getMainModel()->getEndFrame() && 2703 if (frame == getMainModel()->getEndFrame() &&
2704 m_playSource && 2704 m_playSource &&
2705 m_playSource->isPlaying() && 2705 m_playSource->isPlaying() &&
2706 !m_viewManager->getPlayLoopMode()) { 2706 !m_viewManager->getPlayLoopMode()) {
2707 stop(); 2707 stop();
2708 } 2708 }
2711 void 2711 void
2712 MainWindowBase::rewind() 2712 MainWindowBase::rewind()
2713 { 2713 {
2714 if (!getMainModel()) return; 2714 if (!getMainModel()) return;
2715 2715
2716 int frame = m_viewManager->getPlaybackFrame(); 2716 sv_frame_t frame = m_viewManager->getPlaybackFrame();
2717 if (frame > 0) --frame; 2717 if (frame > 0) --frame;
2718 2718
2719 Pane *pane = m_paneStack->getCurrentPane(); 2719 Pane *pane = m_paneStack->getCurrentPane();
2720 Layer *layer = getSnapLayer(); 2720 Layer *layer = getSnapLayer();
2721 int sr = getMainModel()->getSampleRate(); 2721 sv_samplerate_t sr = getMainModel()->getSampleRate();
2722 2722
2723 // when rewinding during playback, we want to allow a period 2723 // when rewinding during playback, we want to allow a period
2724 // following a rewind target point at which the rewind will go to 2724 // following a rewind target point at which the rewind will go to
2725 // the prior point instead of the immediately neighbouring one 2725 // the prior point instead of the immediately neighbouring one
2726 if (m_playSource && m_playSource->isPlaying()) { 2726 if (m_playSource && m_playSource->isPlaying()) {
2732 2732
2733 if (!layer) { 2733 if (!layer) {
2734 2734
2735 frame = RealTime::realTime2Frame 2735 frame = RealTime::realTime2Frame
2736 (RealTime::frame2RealTime(frame, sr) - m_defaultFfwdRwdStep, sr); 2736 (RealTime::frame2RealTime(frame, sr) - m_defaultFfwdRwdStep, sr);
2737 if (frame < int(getMainModel()->getStartFrame())) { 2737 if (frame < getMainModel()->getStartFrame()) {
2738 frame = getMainModel()->getStartFrame(); 2738 frame = getMainModel()->getStartFrame();
2739 } 2739 }
2740 2740
2741 } else { 2741 } else {
2742 2742
2751 } 2751 }
2752 2752
2753 if (frame < 0) frame = 0; 2753 if (frame < 0) frame = 0;
2754 2754
2755 if (m_viewManager->getPlaySelectionMode()) { 2755 if (m_viewManager->getPlaySelectionMode()) {
2756 frame = m_viewManager->constrainFrameToSelection(int(frame)); 2756 frame = m_viewManager->constrainFrameToSelection(frame);
2757 } 2757 }
2758 2758
2759 m_viewManager->setPlaybackFrame(frame); 2759 m_viewManager->setPlaybackFrame(frame);
2760 } 2760 }
2761 2761
2762 void 2762 void
2763 MainWindowBase::rewindStart() 2763 MainWindowBase::rewindStart()
2764 { 2764 {
2765 if (!getMainModel()) return; 2765 if (!getMainModel()) return;
2766 2766
2767 int frame = getMainModel()->getStartFrame(); 2767 sv_frame_t frame = getMainModel()->getStartFrame();
2768 2768
2769 if (m_viewManager->getPlaySelectionMode()) { 2769 if (m_viewManager->getPlaySelectionMode()) {
2770 frame = m_viewManager->constrainFrameToSelection(frame); 2770 frame = m_viewManager->constrainFrameToSelection(frame);
2771 } 2771 }
2772 2772
2780 2780
2781 Layer *layer = getSnapLayer(); 2781 Layer *layer = getSnapLayer();
2782 if (!layer) { rewind(); return; } 2782 if (!layer) { rewind(); return; }
2783 2783
2784 Pane *pane = m_paneStack->getCurrentPane(); 2784 Pane *pane = m_paneStack->getCurrentPane();
2785 int frame = m_viewManager->getPlaybackFrame(); 2785 sv_frame_t frame = m_viewManager->getPlaybackFrame();
2786 2786
2787 int resolution = 0; 2787 int resolution = 0;
2788 if (pane) frame = pane->alignFromReference(frame); 2788 if (pane) frame = pane->alignFromReference(frame);
2789 if (layer->snapToSimilarFeature(m_paneStack->getCurrentPane(), 2789 if (layer->snapToSimilarFeature(m_paneStack->getCurrentPane(),
2790 frame, resolution, Layer::SnapLeft)) { 2790 frame, resolution, Layer::SnapLeft)) {
2794 } 2794 }
2795 2795
2796 if (frame < 0) frame = 0; 2796 if (frame < 0) frame = 0;
2797 2797
2798 if (m_viewManager->getPlaySelectionMode()) { 2798 if (m_viewManager->getPlaySelectionMode()) {
2799 frame = m_viewManager->constrainFrameToSelection(int(frame)); 2799 frame = m_viewManager->constrainFrameToSelection(frame);
2800 } 2800 }
2801 2801
2802 m_viewManager->setPlaybackFrame(frame); 2802 m_viewManager->setPlaybackFrame(frame);
2803 } 2803 }
2804 2804
3007 3007
3008 void 3008 void
3009 MainWindowBase::connectLayerEditDialog(ModelDataTableDialog *dialog) 3009 MainWindowBase::connectLayerEditDialog(ModelDataTableDialog *dialog)
3010 { 3010 {
3011 connect(m_viewManager, 3011 connect(m_viewManager,
3012 SIGNAL(globalCentreFrameChanged(int)), 3012 SIGNAL(globalCentreFrameChanged(sv_frame_t)),
3013 dialog, 3013 dialog,
3014 SLOT(userScrolledToFrame(int))); 3014 SLOT(userScrolledToFrame(sv_frame_t)));
3015 3015
3016 connect(m_viewManager, 3016 connect(m_viewManager,
3017 SIGNAL(playbackFrameChanged(int)), 3017 SIGNAL(playbackFrameChanged(sv_frame_t)),
3018 dialog, 3018 dialog,
3019 SLOT(playbackScrolledToFrame(int))); 3019 SLOT(playbackScrolledToFrame(sv_frame_t)));
3020 3020
3021 connect(dialog, 3021 connect(dialog,
3022 SIGNAL(scrollToFrame(int)), 3022 SIGNAL(scrollToFrame(sv_frame_t)),
3023 m_viewManager, 3023 m_viewManager,
3024 SLOT(setGlobalCentreFrame(int))); 3024 SLOT(setGlobalCentreFrame(sv_frame_t)));
3025 3025
3026 connect(dialog, 3026 connect(dialog,
3027 SIGNAL(scrollToFrame(int)), 3027 SIGNAL(scrollToFrame(sv_frame_t)),
3028 m_viewManager, 3028 m_viewManager,
3029 SLOT(setPlaybackFrame(int))); 3029 SLOT(setPlaybackFrame(sv_frame_t)));
3030 } 3030 }
3031 3031
3032 void 3032 void
3033 MainWindowBase::previousPane() 3033 MainWindowBase::previousPane()
3034 { 3034 {
3134 3134
3135 updateMenuStates(); 3135 updateMenuStates();
3136 } 3136 }
3137 3137
3138 void 3138 void
3139 MainWindowBase::playbackFrameChanged(int frame) 3139 MainWindowBase::playbackFrameChanged(sv_frame_t frame)
3140 { 3140 {
3141 if (!(m_playSource && m_playSource->isPlaying()) || !getMainModel()) return; 3141 if (!(m_playSource && m_playSource->isPlaying()) || !getMainModel()) return;
3142 3142
3143 updatePositionStatusDisplays(); 3143 updatePositionStatusDisplays();
3144 3144
3170 3170
3171 getStatusLabel()->setText(m_myStatusMessage); 3171 getStatusLabel()->setText(m_myStatusMessage);
3172 } 3172 }
3173 3173
3174 void 3174 void
3175 MainWindowBase::globalCentreFrameChanged(int ) 3175 MainWindowBase::globalCentreFrameChanged(sv_frame_t )
3176 { 3176 {
3177 if ((m_playSource && m_playSource->isPlaying()) || !getMainModel()) return; 3177 if ((m_playSource && m_playSource->isPlaying()) || !getMainModel()) return;
3178 Pane *p = 0; 3178 Pane *p = 0;
3179 if (!m_paneStack || !(p = m_paneStack->getCurrentPane())) return; 3179 if (!m_paneStack || !(p = m_paneStack->getCurrentPane())) return;
3180 if (!p->getFollowGlobalPan()) return; 3180 if (!p->getFollowGlobalPan()) return;
3181 updateVisibleRangeDisplay(p); 3181 updateVisibleRangeDisplay(p);
3182 } 3182 }
3183 3183
3184 void 3184 void
3185 MainWindowBase::viewCentreFrameChanged(View *v, int frame) 3185 MainWindowBase::viewCentreFrameChanged(View *v, sv_frame_t frame)
3186 { 3186 {
3187 // SVDEBUG << "MainWindowBase::viewCentreFrameChanged(" << v << "," << frame << ")" << endl; 3187 // SVDEBUG << "MainWindowBase::viewCentreFrameChanged(" << v << "," << frame << ")" << endl;
3188 3188
3189 if (m_viewDataDialogMap.find(v) != m_viewDataDialogMap.end()) { 3189 if (m_viewDataDialogMap.find(v) != m_viewDataDialogMap.end()) {
3190 for (DataDialogSet::iterator i = m_viewDataDialogMap[v].begin(); 3190 for (DataDialogSet::iterator i = m_viewDataDialogMap[v].begin();