mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-08 09:36:24 +01:00
More screenshot options.
This commit is contained in:
committed by
Paul Licameli
parent
9ba3ec059b
commit
a5de0ed0c6
@@ -118,7 +118,7 @@ def image3() :
|
|||||||
do( 'SetTrack: TrackIndex=1 Name="Instrument 2" Height=122 Color=Color1')
|
do( 'SetTrack: TrackIndex=1 Name="Instrument 2" Height=122 Color=Color1')
|
||||||
do( 'SetTrack: TrackIndex=2 Name="Instrument 3" Height=122 Color=Color2')
|
do( 'SetTrack: TrackIndex=2 Name="Instrument 3" Height=122 Color=Color2')
|
||||||
do( 'SetTrack: TrackIndex=3 Name="Instrument 4" Height=122 Color=Color3')
|
do( 'SetTrack: TrackIndex=3 Name="Instrument 4" Height=122 Color=Color3')
|
||||||
do( 'Screenshot: Path='+path+' CaptureWhat=Tracks' )
|
do( 'Screenshot: Path='+path+' CaptureWhat=First_Four_Tracks' )
|
||||||
|
|
||||||
# Two Tracks, ready to make stereo
|
# Two Tracks, ready to make stereo
|
||||||
def image4():
|
def image4():
|
||||||
@@ -126,7 +126,7 @@ def image4():
|
|||||||
makeMonoTracks(2)
|
makeMonoTracks(2)
|
||||||
do( 'SetTrack: TrackIndex=0 Name="Left Track" Height=80')
|
do( 'SetTrack: TrackIndex=0 Name="Left Track" Height=80')
|
||||||
do( 'SetTrack: TrackIndex=1 Name="Right Track" Height=80')
|
do( 'SetTrack: TrackIndex=1 Name="Right Track" Height=80')
|
||||||
do( 'Screenshot: Path='+path+' CaptureWhat=Tracks' )
|
do( 'Screenshot: Path='+path+' CaptureWhat=First_Two_Tracks' )
|
||||||
|
|
||||||
# Mono tracks made stereo
|
# Mono tracks made stereo
|
||||||
def image5():
|
def image5():
|
||||||
@@ -154,7 +154,7 @@ def image7() :
|
|||||||
makeMonoTracks(2)
|
makeMonoTracks(2)
|
||||||
do( 'SetTrack: TrackIndex=0 Height=80')
|
do( 'SetTrack: TrackIndex=0 Height=80')
|
||||||
do( 'SetTrack: TrackIndex=1 Height=180')
|
do( 'SetTrack: TrackIndex=1 Height=180')
|
||||||
do( 'Screenshot: Path='+path+' CaptureWhat=Tracks' )
|
do( 'Screenshot: Path='+path+' CaptureWhat=First_Two_Tracks' )
|
||||||
|
|
||||||
# Mono with arrow at start.
|
# Mono with arrow at start.
|
||||||
def image8() :
|
def image8() :
|
||||||
@@ -173,7 +173,7 @@ def image9() :
|
|||||||
do( 'SetPreference: Name=/GUI/SampleView Value=1 Reload=1')
|
do( 'SetPreference: Name=/GUI/SampleView Value=1 Reload=1')
|
||||||
do( 'Screenshot: Path='+path+' CaptureWhat=First_Track' )
|
do( 'Screenshot: Path='+path+' CaptureWhat=First_Track' )
|
||||||
|
|
||||||
# Zoomed in to show points no stem plot
|
# Zoomed in to show points stem-plot and then no stem plot
|
||||||
def image9and10() :
|
def image9and10() :
|
||||||
global path
|
global path
|
||||||
image9()
|
image9()
|
||||||
|
|||||||
@@ -72,6 +72,9 @@ enum kCaptureTypes
|
|||||||
kruler,
|
kruler,
|
||||||
ktracks,
|
ktracks,
|
||||||
kfirsttrack,
|
kfirsttrack,
|
||||||
|
kfirsttwotracks,
|
||||||
|
kfirstthreetracks,
|
||||||
|
kfirstfourtracks,
|
||||||
ksecondtrack,
|
ksecondtrack,
|
||||||
ktracksplus,
|
ktracksplus,
|
||||||
kfirsttrackplus,
|
kfirsttrackplus,
|
||||||
@@ -104,6 +107,9 @@ static const wxString kCaptureWhatStrings[nCaptureWhats] =
|
|||||||
XO("Ruler"),
|
XO("Ruler"),
|
||||||
XO("Tracks"),
|
XO("Tracks"),
|
||||||
XO("First_Track"),
|
XO("First_Track"),
|
||||||
|
XO("First_Two_Tracks"),
|
||||||
|
XO("First_Three_Tracks"),
|
||||||
|
XO("First_Four_Tracks"),
|
||||||
XO("Second_Track"),
|
XO("Second_Track"),
|
||||||
XO("Tracks_Plus"),
|
XO("Tracks_Plus"),
|
||||||
XO("First_Track_Plus"),
|
XO("First_Track_Plus"),
|
||||||
@@ -871,6 +877,21 @@ bool ScreenshotCommand::Apply(const CommandContext & context)
|
|||||||
r.SetHeight( r.GetHeight() + ruler->GetRulerHeight() );
|
r.SetHeight( r.GetHeight() + ruler->GetRulerHeight() );
|
||||||
return Capture(context, mFileName, panel, r );
|
return Capture(context, mFileName, panel, r );
|
||||||
}
|
}
|
||||||
|
else if (mCaptureMode.IsSameAs(wxT("First_Two_Tracks")))
|
||||||
|
{ wxRect r = GetTrackRect( context.GetProject(), panel, 0 );
|
||||||
|
r = r.Union( GetTrackRect( context.GetProject(), panel, 1 ));
|
||||||
|
return Capture(context, mFileName, panel, r );
|
||||||
|
}
|
||||||
|
else if (mCaptureMode.IsSameAs(wxT("First_Three_Tracks")))
|
||||||
|
{ wxRect r = GetTrackRect( context.GetProject(), panel, 0 );
|
||||||
|
r = r.Union( GetTrackRect( context.GetProject(), panel, 2 ));
|
||||||
|
return Capture(context, mFileName, panel, r );
|
||||||
|
}
|
||||||
|
else if (mCaptureMode.IsSameAs(wxT("First_Four_Tracks")))
|
||||||
|
{ wxRect r = GetTrackRect( context.GetProject(), panel, 0 );
|
||||||
|
r = r.Union( GetTrackRect( context.GetProject(), panel, 3 ));
|
||||||
|
return Capture(context, mFileName, panel, r );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user