MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / activateRange

Method activateRange

src/forms/Bookmark/BookmarkView.cpp:944–951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

942
943
944void BookmarkView::activateRange(const BookmarkRangeEntryPtr& rangeEnt) {
945
946 //the following only works if rangeEnt->freq is the middle of [rangeEnt->startFreq ; rangeEnt->startFreq]
947 wxGetApp().setFrequency(rangeEnt->freq);
948
949 // Change View limits to fit the range exactly.
950 wxGetApp().getAppFrame()->setViewState(rangeEnt->startFreq + (rangeEnt->endFreq - rangeEnt->startFreq) / 2, rangeEnt->endFreq - rangeEnt->startFreq);
951}
952
953
954void BookmarkView::bookmarkSelection(const BookmarkEntryPtr& bmSel) {

Callers

nothing calls this directly

Calls 3

setViewStateMethod · 0.80
getAppFrameMethod · 0.80
setFrequencyMethod · 0.45

Tested by

no test coverage detected