1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 16:49:41 +02:00

13640 Commits

Author SHA1 Message Date
v.audacity
a07fe36456 Change "Sync-Lock Tracks" button image from chain-link to clock.
EXPERIMENTAL_LINKING -> EXPERIMENTAL_SYNC_LOCK

Restore some "border" lines in TrackInfo.


Get rid of unused DEFINE_COLOUR( clrTrackInfoSyncLockSel...).

Clean out some undocumented commented-out code. Add/remove some comments.
2010-09-14 05:52:01 +00:00
v.audacity
c3cc10a265 Fix a couple of errors reported by Wipro. 2010-09-13 23:42:21 +00:00
martynshaw99
8e94cd5369 Improved QUANTIZED_TIME macro, just in case integers are passed. 2010-09-13 23:01:12 +00:00
BusinessmanProgrammerSteve
50d2a5b665 Draw a (slightly lighter) selection outside of clips in audio tracks. 2010-09-13 07:41:17 +00:00
BusinessmanProgrammerSteve
c0b5fb01da Performance improvements for track spectrum display and PCM
import submitted by Sami Liedes.
2010-09-13 01:31:54 +00:00
martynshaw99
1d6e1593ee Eliminate msClipLen since it leads to length errors in WaveTrack and WaveClip. 2010-09-12 22:31:58 +00:00
martynshaw99
5c48047d0e Paste envelope in at the correct place 2010-09-12 20:43:14 +00:00
martynshaw99
eb145b241c Copy the correct amount of 'envelope' to match up with the samples - the lengths should correspond. 2010-09-12 20:00:27 +00:00
v.audacity
1663db9915 (sync-lock)
Change sync-lock tile and icons to be clock instead of chain link. (Yet to change sync-lock button image.)

Make click on sync-lock icon select track.

Remove bevels on regions holding controls, so that bevels are only on controls themselves. This removes confusing border line above sync-lock icon, and simplifies the TrackInfo.

Be more specific about class methods vs stand-alone functions in comments.
2010-09-12 05:11:43 +00:00
windinthew
ce73ad6ad5 Updated software translation from Bashishtha Singh 2010-09-11 13:51:39 +00:00
v.audacity
1b1b05947e It is an error to copy a WaveClip without specifying the DirManager. Defined break-inducing copy constructor and assignment operator methods so that if some developer makes the mistake of calling a single-arg copy constructor rather than the one below (that requires a DirManager*), rather than it going to C++-generated default copy constructor, it goes here and the error is made clear to that developer.
These are a good idea to add in *many* other places...
2010-09-10 22:02:04 +00:00
windinthew
a106ae232f * Correct "Compling Audacity" typo passed through from e-mail to "Compiling Audacity", plus move down "Developing in Windows" link to help people check for common compilation errors
* Errors and inaccuracies are better directed to feedback@ so there is no disincentive effect of having to register on the Forum to report obvious errors
2010-09-10 12:09:15 +00:00
BusinessmanProgrammerSteve
c046a80562 Fix random typo (extra backslash) in Sequence.cpp causing warning 2010-09-10 06:01:10 +00:00
BusinessmanProgrammerSteve
ed7f94ca7d Avoid passing a wxString to wxString::Printf() 2010-09-10 05:22:23 +00:00
v.audacity
f9be883b82 Made requests for bug reports consistently go to feedback@audacityteam.org and compile issues go to "Compling Audacity" board on the Forum rather than going to -devel. Removed some related code cruft. 2010-09-10 03:19:24 +00:00
v.audacity
a46081d5b5 Get rid of unused copy constructor that's "fatal" to call (although it didn't crash, just frightened the user!). 2010-09-09 22:15:21 +00:00
v.audacity
1a05037beb (bug 123, P2) Add a macro for Martyn to use in his work on fixing this bug. 2010-09-09 22:12:35 +00:00
v.audacity
702894c67d (Sync-Lock)
Commented out the one call to TrackInfo::DrawBordersWithin(). This eliminates all the dark lines within the TrackInfo, in an effort to make the sync-lock icon not look like a button. It leaves some lighter borders, and I think that's an aesthetic improvement, though it make be worse in terms of accessibility. I can also remove the light border above the sync-lock icon, but I think this looks best overall.

In Track::IsSyncLockSelected(), for the "// Not in a sync-locked group." conditional, it returned true if the track was selected. I made it do so only if track kind is Wave or Label. Among other things, this means Time and Note tracks will never show the sync-lock icon. I think this is correct by definition, but Al, please let me know if this will have negative repercussions elsewhere. There are *lots* of calls to that method and I can move the track-type check to the code that draws the sync-lock icon..

Fixed the bug Gale pointed out where, if a WaveTrack is shrunk such that the sync-lock icon is over a TrackInfo control, such as pan slider, it didn't intercept the mouse event, and passed it on to the control. Now, clicking on the sync-lock icon does nothing. 

Fixed a bug where the sync-lock icon was redrawn dark when the minimize button is down. Now not redrawn at all in that case.

Added some clarifying comments, especially about the term "Label" as used in TrackPanel.*.
2010-09-09 00:46:40 +00:00
BusinessmanProgrammerSteve
f430aad99b Fix crash mentioned in bug 215 (work around old wxList bug) 2010-09-08 04:02:52 +00:00
v.audacity
340667167e Improve acccuracy of comments. 2010-09-07 23:37:45 +00:00
martynshaw99
ed187aa185 Select the 'correct' part when pasting in HandlePasteNothingSelected - working up to the more complicated changes required on the same lines. 2010-09-07 23:10:29 +00:00
martynshaw99
50a61e1570 Reverting previous change, since it was using mViewInfo.sel0/1 at the time of pasting, not of copying. 2010-09-07 22:03:24 +00:00
martynshaw99
82275c946e A step in removing msClipLen and all it's problems.
Highlight the pasted clip as well as we can.
2010-09-07 00:00:38 +00:00
martynshaw99
5f2252a5b9 Getting to the bottom of those 'off by one' samples, some unavoidable (see bugzilla 123 http://bugzilla.audacityteam.org/show_bug.cgi?id=123#c27)
Also getting more experience of those mT1-mT0 problems.
2010-09-05 23:29:53 +00:00
BusinessmanProgrammerSteve
f86dca89fc Improve comments surrounding my recent slider checkin. 2010-09-04 18:21:23 +00:00
BusinessmanProgrammerSteve
bf874133a0 Fix a low-hanging memory leak found by valgrind in slider code 2010-09-04 06:58:21 +00:00
BusinessmanProgrammerSteve
fcb9e4e365 Restore some r10644 changes: ReplaceProcessedTracks() calls on early returns,
documentation at top. These should prevent a memory leak.
2010-09-04 02:56:53 +00:00
BusinessmanProgrammerSteve
99581b4dc5 (bug 215) Fixes problem where non-silent region is truncated 2010-09-03 05:57:43 +00:00
BusinessmanProgrammerSteve
1b8a8cb8bc Revert r10644. 2010-09-03 05:39:17 +00:00
v.audacity
ff93517312 (bug 215)
Found some major memory leaks and fixed those, but they shouldn't have caused the crashes. 

No reason to DeleteContents on a RegionList immediately after it's declared (especially when not doing so when finished with the RegionList), so I removed those.

Corrected some comments. Improved readability.
2010-09-03 01:42:02 +00:00
v.audacity
00b4827dd5 Eliminate MSVC compiler warnings.Clean up some issues with Effect abstract classes, primarily that the progress dialog had Stop and Cancel buttons that produced exactly the same results, i.e., Cancel, so I removed the Stop button. 2010-09-02 04:19:14 +00:00
v.audacity
37f52c4695 Eliminate MSVC compiler warnings. 2010-09-02 04:02:23 +00:00
v.audacity
4c72458c6c Eliminate MSVC compiler warnings. 2010-09-02 03:32:35 +00:00
v.audacity
c31e01e980 Clean up some issues with Effect abstract classes, primarily that the progress dialog had Stop and Cancel buttons that produced exactly the same results, i.e., Cancel, so I removed the Stop button. 2010-09-02 02:40:17 +00:00
martynshaw99
b451649e1b Add missing #include 2010-09-01 22:51:57 +00:00
v.audacity
7d762c5954 Add missing ".c_str()" to Printf arg. 2010-09-01 22:28:23 +00:00
windinthew
deabcfe5c1 Updated software translation from Lars Carlsson 2010-09-01 10:10:25 +00:00
v.audacity
1c5ba68d55 (bug 137)
Make DirManager::MoveToNewProjectDirectory(), DirManager::CopyToNewProjectDirectory(), and several BuildFromXML() methods check the result of AssignFile() and do something appropriate about it on failure, rather than ignoring it. Also made AssignFile() check whether the assigned name is well-formed, so it doesn't always return TRUE when disckcheck is FALSE.

Briefer and more correct checks for uninitialized wxFileName objects.

Several "//ANSWER-ME" comments about file ops and commented-out cruft to probably remove.

Clarify some logic and readability.
2010-08-31 23:31:11 +00:00
martynshaw99
fb296d0206 Make the SelectionBar match up better with what is visually selected in the tracks.
Shows up when zoomed in to sample level and looking at Start and Length.
2010-08-31 22:27:37 +00:00
v.audacity
f455fa3f22 (bug 211) This fix is correct as the "numbers" array has 10 elements, not 12. 2010-08-31 05:44:57 +00:00
v.audacity
95b89cd122 Leland's patch that fixes bug 199 2010-08-31 03:56:47 +00:00
v.audacity
961d8cdeca Review calls to AudacityProject::ModifyState() and TrackPanel::MakeParentModifyState() to possibly add param to make AudacityProject::ModifyState() optionally not call AutoSave(). There is only one place (TrackPanel::OnSetDisplay()) where autosave is definitely not necessary, so don't change it now.
Also made a few places (e.g., AudacityProject::OnSetLeftSelection()) call AudacityProject::ModifyState() only if the selection actually changed.
2010-08-30 03:24:40 +00:00
v.audacity
369ebe40a4 minor cleanup in AudacityProject::OnPlayStopSelect 2010-08-29 22:52:29 +00:00
v.audacity
2df6400213 TrackPanel::ExtendSelection() was repeatedly calling MakeParentModifyState() during dragging, causing tracks on the undo stack to be repeatedly deleted and copied, and AutoSave() repeatedly called.
Only TrackPanel::SelectionHandleClick() and TrackPanel::SelectionHandleDrag() called ExtendSelection(). I made ExtendSelection() not call ModifyState() and moved it into SelectionHandleClick. 

When dragging completes, the (event.LeftUp() || event.RightUp()) clause in TrackPanel::HandleSelect() calls AudacityProject::ModifyState().
2010-08-29 22:51:43 +00:00
windinthew
74880929b2 Updated software translation from Christian Brochec {+ updated with latest strings from audacity.pot) 2010-08-29 21:50:18 +00:00
v.audacity
fb419a9bdd Ahem... Remove unused var that I introduced for testing values. There were 4 of them and I removed 3. Ed pointed this out to me. Thanks, Ed. 2010-08-29 19:43:36 +00:00
v.audacity
722d0d67e3 In the case where Internat::ToDisplayString gets no specified precision, do not strip all trailing zeros. Leave the decimal separator and one zero. This makes edit-texts associated with sliders consistently show at least one decimal point of precision as the slider moves. It also fixes a bug in Nyquist dynamic typing of the result from a real/float slider, where if the value string had no decimal point it got typed as a FIXNUM instead of FLONUM. 2010-08-28 23:41:30 +00:00
v.audacity
86b1edf73e Simplify the conversion from wxLongLong to double. No need to convert to string and from that (via Internat) to double. 2010-08-28 23:37:22 +00:00
windinthew
d135edfb93 updated software translation from Atsushi YOSHIDA 2010-08-28 10:59:59 +00:00
v.audacity
2beae4edb5 Check for type of slider control, and instead of defaulting to int on a bad specification, put up a warning and do not create the slider. 2010-08-27 22:56:01 +00:00