mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-04 21:50:51 +01:00
Locate and position the current Audacity source code, and clear a variety of old junk out of the way into junk-branches
This commit is contained in:
71
src/ViewInfo.h
Normal file
71
src/ViewInfo.h
Normal file
@@ -0,0 +1,71 @@
|
||||
/**********************************************************************
|
||||
|
||||
Audacity: A Digital Audio Editor
|
||||
|
||||
ViewInfo.h
|
||||
|
||||
Dominic Mazzoni
|
||||
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef __AUDACITY_VIEWINFO__
|
||||
#define __AUDACITY_VIEWINFO__
|
||||
|
||||
const double gMaxZoom = 6000000,
|
||||
gMinZoom = 0.001;
|
||||
|
||||
class Track;
|
||||
|
||||
struct ViewInfo {
|
||||
|
||||
// Current selection (in seconds)
|
||||
|
||||
double sel0;
|
||||
double sel1;
|
||||
|
||||
// Scroll info
|
||||
|
||||
Track *track; // first visible track
|
||||
int vpos; // vertical scroll pos
|
||||
|
||||
double h; // h pos in secs
|
||||
double screen; // screen width in secs
|
||||
double total; // total width in secs
|
||||
double zoom; // pixels per second
|
||||
double lastZoom;
|
||||
|
||||
// Current horizontal scroll bar positions, in pixels
|
||||
wxInt64 sbarH;
|
||||
wxInt64 sbarScreen;
|
||||
wxInt64 sbarTotal;
|
||||
|
||||
// Internal wxScrollbar positions are only int in range, so multiply
|
||||
// the above values with the following member to get the actual
|
||||
// scroll bar positions as reported by the horizontal wxScrollbar's members
|
||||
double sbarScale;
|
||||
|
||||
// Vertical scroll step
|
||||
int scrollStep;
|
||||
|
||||
// Other stuff, mainly states (true or false) related to autoscroll and
|
||||
// drawing the waveform. Maybe this should be put somewhere else?
|
||||
|
||||
bool bRedrawWaveform;
|
||||
bool bUpdateTrackIndicator;
|
||||
|
||||
bool bIsPlaying;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
// Indentation settings for Vim and Emacs and unique identifier for Arch, a
|
||||
// version control system. Please do not modify past this point.
|
||||
//
|
||||
// Local Variables:
|
||||
// c-basic-offset: 3
|
||||
// indent-tabs-mode: nil
|
||||
// End:
|
||||
//
|
||||
// vim: et sts=3 sw=3
|
||||
// arch-tag: 961486e3-84e6-451d-98fb-2715a925ed28
|
||||
|
||||
Reference in New Issue
Block a user