mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-26 15:03:47 +01:00
ViewInfo has a base class, ZoomInfo, containing only what TrackArtist needs besides the SelectedRegion
This commit is contained in:
committed by
Paul Licameli
parent
ab21f75c77
commit
8ba9ea5621
@@ -13,21 +13,29 @@ Paul Licameli
|
||||
#include "Internat.h"
|
||||
#include "xml/XMLWriter.h"
|
||||
|
||||
ViewInfo::ViewInfo(double start, double screenDuration, double pixelsPerSecond)
|
||||
: selectedRegion()
|
||||
, track(0)
|
||||
, vpos(0)
|
||||
ZoomInfo::ZoomInfo(double start, double screenDuration, double pixelsPerSecond)
|
||||
: vpos(0)
|
||||
, h(start)
|
||||
, screen(screenDuration)
|
||||
, total(screen)
|
||||
, zoom(pixelsPerSecond)
|
||||
{
|
||||
}
|
||||
|
||||
ZoomInfo::~ZoomInfo()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
ViewInfo::ViewInfo(double start, double screenDuration, double pixelsPerSecond)
|
||||
: ZoomInfo(start, screenDuration, pixelsPerSecond)
|
||||
, selectedRegion()
|
||||
, track(NULL)
|
||||
, total(screen)
|
||||
, sbarH(0)
|
||||
, sbarScreen(1)
|
||||
, sbarTotal(1)
|
||||
, sbarScale(1.0)
|
||||
, scrollStep(16)
|
||||
|
||||
, bUpdateTrackIndicator(true)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user