mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 08:29:27 +02:00
Correct some comments.
Rename method for consistency.
This commit is contained in:
parent
56adffdce6
commit
c7826bcdf9
@ -3211,7 +3211,7 @@ void AudacityProject::OnCopy()
|
|||||||
void AudacityProject::OnPaste()
|
void AudacityProject::OnPaste()
|
||||||
{
|
{
|
||||||
// Handle text paste (into active label) first.
|
// Handle text paste (into active label) first.
|
||||||
if (this->HandleTextPaste())
|
if (this->HandlePasteText())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// If nothing's selected, we just insert new tracks.
|
// If nothing's selected, we just insert new tracks.
|
||||||
@ -3420,7 +3420,7 @@ void AudacityProject::OnPaste()
|
|||||||
|
|
||||||
// Handle text paste (into active label), if any. Return true if did paste.
|
// Handle text paste (into active label), if any. Return true if did paste.
|
||||||
// (This was formerly the first part of overly-long OnPaste.)
|
// (This was formerly the first part of overly-long OnPaste.)
|
||||||
bool AudacityProject::HandleTextPaste()
|
bool AudacityProject::HandlePasteText()
|
||||||
{
|
{
|
||||||
TrackListOfKindIterator iterLabelTrack(Track::Label, mTracks);
|
TrackListOfKindIterator iterLabelTrack(Track::Label, mTracks);
|
||||||
LabelTrack* pLabelTrack = (LabelTrack*)(iterLabelTrack.First());
|
LabelTrack* pLabelTrack = (LabelTrack*)(iterLabelTrack.First());
|
||||||
|
@ -206,7 +206,7 @@ void OnCopy();
|
|||||||
|
|
||||||
void OnPaste();
|
void OnPaste();
|
||||||
private:
|
private:
|
||||||
bool HandleTextPaste(); // Handle text paste (into active label), if any. Return true if pasted.
|
bool HandlePasteText(); // Handle text paste (into active label), if any. Return true if pasted.
|
||||||
bool HandlePasteNothingSelected(); // Return true if nothing selected, regardless of paste result.
|
bool HandlePasteNothingSelected(); // Return true if nothing selected, regardless of paste result.
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -462,13 +462,13 @@ bool WaveTrack::ClearAndAddCutLine(double t0, double t1)
|
|||||||
|
|
||||||
//
|
//
|
||||||
// ClearAndPaste() is a specialized version of HandleClear()
|
// ClearAndPaste() is a specialized version of HandleClear()
|
||||||
// followed by HandlePaste() and is used mostly by effects that
|
// followed by Paste() and is used mostly by effects that
|
||||||
// can't replace track data directly using Get()/Set().
|
// can't replace track data directly using Get()/Set().
|
||||||
//
|
//
|
||||||
// HandleClear() removes any cut/split lines lines with the
|
// HandleClear() removes any cut/split lines lines with the
|
||||||
// cleared range, but, in most cases, effects want to preserve
|
// cleared range, but, in most cases, effects want to preserve
|
||||||
// the existing cut/split lines, so they are saved before the
|
// the existing cut/split lines, so they are saved before the
|
||||||
// HandleClear()/HandlePaste() and restored after.
|
// HandleClear()/Paste() and restored after.
|
||||||
//
|
//
|
||||||
// If the pasted track overlaps two or more clips, then it will
|
// If the pasted track overlaps two or more clips, then it will
|
||||||
// be pasted with visible split lines. Normally, effects do not
|
// be pasted with visible split lines. Normally, effects do not
|
||||||
@ -507,7 +507,7 @@ bool WaveTrack::ClearAndPaste(double t0, // Start of time to clear
|
|||||||
t1 = LongSamplesToTime(TimeToLongSamples(t1));
|
t1 = LongSamplesToTime(TimeToLongSamples(t1));
|
||||||
|
|
||||||
// Save the cut/split lines whether preserving or not since merging
|
// Save the cut/split lines whether preserving or not since merging
|
||||||
// needs to know if a clip boundary is being crossed since HandlePaste()
|
// needs to know if a clip boundary is being crossed since Paste()
|
||||||
// will add split lines around the pasted clip if so.
|
// will add split lines around the pasted clip if so.
|
||||||
for (ic = GetClipIterator(); ic; ic = ic->GetNext()) {
|
for (ic = GetClipIterator(); ic; ic = ic->GetNext()) {
|
||||||
double st;
|
double st;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user