1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-13 15:38:56 +02:00

776 Commits

Author SHA1 Message Date
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
v.audacity
0871769668 code cleanup and naming consistencies in reviewing suggested change from Ed Musgrove (that I did not implement) 2010-08-26 22:05:52 +00:00
martynshaw99
f1fe24bbd6 This doesn't fix any Copy/Paste problems but lets us see the samples that should be in Copy, Paste etc. operations. 2010-08-25 23:52:53 +00:00
v.audacity
ad09727b7f Fix some old typos, indentations.
Clarify some comments. 

Remove some DirManager methods that were declared but not defined.
2010-08-25 23:24:02 +00:00
v.audacity
536af8ad52 (Sync-Lock)
Fixed bug Martyn noticed, where clicking on the sync-lock icon caused the track to (un)minimize. This was because TrackInfo::GetMinimizeRect() was still returning the full size, which I had just adjusted in TrackInfo::DrawMinimize(), so the capture test in other places was wrong. Moved the size adjustment into TrackInfo::GetMinimizeRect(). 

Also got rid of unused bool minimized parameters of TrackInfo::GetMinimizeRect() and TrackInfo::DrawMinimize(). It wasn't used at all in TrackInfo::GetMinimizeRect(), so I replaced it with bIsSyncLockSelected, so it can determine whether to reduce the width to give room for the sync-lock icon. For TrackInfo::DrawMinimize(), it was unnecessary, because the track was also getting passed in, so no need to call t->GetMinimized() in every call to DrawMinimize() -- just call it within DrawMinimize().
2010-08-25 22:34:17 +00:00
v.audacity
17832cf2f5 "Show Log" better at bottom of Help menu. 2010-08-24 22:25:50 +00:00
v.audacity
c63bfa81ca Add comments about possibly changing sync-lock image. 2010-08-24 21:13:26 +00:00
v.audacity
c1848c1359 Sync-Lock: Add TrackPanel refresh to AudacityProject::OnSyncLock() so the icon next to minimize button gets refreshed. 2010-08-24 21:04:21 +00:00
v.audacity
cfe369f232 Sync-Lock:
Remove tiles from rulers. They were interfering with visibility of ruler marks.

Restore the icon to TrackInfo, but not in the title bar. Instead, when sync-lock is on and the track IsSyncLockSelected(), decrease the width of the minimize button and show the icon to the right of it. This way, it shows even when the track is minimized.
2010-08-24 19:32:54 +00:00
v.audacity
70145b8457 (bug 113)
In light of discussion about crazy things users do, decided to leave in the former "Temporarily replace..." options, but changed the wording to "Treat missing audio as silence" and warn that the waveform may not show silence.

Added FSCKstatus_SAVE_AUP flag (and returned FSCKstatus_* to being flags). FSCKstatus_SAVE_AUP is set for missing aliased files, so that AudacityProject does a save, fixing a bug where after "Close project immediately...", opening other projects failed in a way that made them incorrectly report missing _data folders, rather than go through Project Check (DirManager::ProjectFSCK). 

Decided to continue with the fake-out fixes for missing aliased files and missing SimpleBlockFiles, i.e., writing zeroes instead of replacing with SilentBlockFiles. Replacing is difficult, and there are other places where the zeroes trick is used, e.g., after project check, if there's a disk error, such as a .au being inaccessible in the middle of edits. 

Made the "permanent immediately" and "regenerate" options not do a PushState, because they were not possible to Undo.
2010-08-24 02:52:01 +00:00
v.audacity
4e85cf7861 Expand on comment. 2010-08-24 02:18:56 +00:00
v.audacity
7b7ef96f25 Moved "Show &Log..." to bottom of Help menu, grouped with Device Info. 2010-08-23 23:09:07 +00:00
v.audacity
72d78d7d22 Clean up debugging code. Remove "\n" so language loading messages are consistent with the rest of the log. 2010-08-23 23:08:05 +00:00
v.audacity
d6bbfa6295 Removed wxLog* squelching on language initialization in AudacityApp::InitLang. 2010-08-23 23:06:29 +00:00
windinthew
9678742ef8 Updated software translation from Thomas De Rocker 2010-08-20 20:00:55 +00:00