1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 08:39:46 +02:00

416 Commits

Author SHA1 Message Date
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
v.audacity
ea68057638 (bug 113)
DirManager::ProjectFSCK (project check):
   Made the enumerations interleaved with handling, because, 
   for example, user choosing to replace missing aliased block files with silence 
   needs to put in SilentBlockFiles and delete the corresponding auf files, 
   so those would then not be cumulated in missingAliasBlockFileHash.
   We still do the FindX methods outside the conditionals, 
   so the log always shows all found errors.

   Moved check for orphan files to last, so user first has a chance to get 
   messages about missing files that user may have mistakenly renamed 
   (and the renamed ones would appear to be orphans).

   Re-ordered user choices for orphan files dialog to safest-to-boldest.

   Changed FSCKstatus_CLOSEREQ and FSCKstatus_CHANGED to be integers rather 
   than binary flags. They were never returned with both in the result, nor used that way.

   Made the project check log warnings use full paths instead of just file names.


Removed close box and system menu from MultiDialog, so that project check dialogs cannot just be closed. User has to decide on one of the choices. 

Fixed some handling in AudacityProject::OnShowLog(). If the log was already showing before MultiDialog came up, it froze because it was not re-enabled.
2010-08-20 03:19:14 +00:00
windinthew
ad7225f698 Major advance on completeness of software translation by Thomas Breinstrup (also updated from latest audacity.pot) 2010-08-18 00:07:18 +00:00
v.audacity
d83682f262 For FFmpeg wxLog* messages:
Returned some of them to wxLogMessage from wxLogDebug.

Made paths displayed consistently with '%s'. Changed some wordings for grammar and clarity.

Var renames for clarity. Moved some declarations closer to their usage.

Commented out the places where sys error logging was suppressed. There was no explanation why they were suppressed.
2010-08-17 23:14:21 +00:00
v.audacity
2ef7a3fd31 (bug 113)
More comments about things to fix (FIX-ME items this time).

Made AudacityProject::OnShowLog make the log window taller so more likely to show the bottom. The implementation of wxLogWindow makes it hard/impossible to scroll to the bottom.

Fix error of duplicate reports of missing aliased files.
2010-08-17 03:46:58 +00:00
v.audacity
af52a83ec1 (bug 113)
restructuring and renaming for clarity, granularity, and reduction of code duplication

Found and commented on more errors in this code. In the "Close immediately" cases, it doesn't do a real close and that can break subsequent opening of other or the same problematic projects. 

Changed several cases where GetDirManager()->ProjectFSCK returned FSCKstatus_CHANGED. These caused a PushState, but Undo could not do anything. Changed corresponding wordings for "Replace missing audio with silence" to say "permanent immediately" instead of "permanent on save", which was incorrect.
2010-08-15 01:22:24 +00:00
v.audacity
be8347d482 Consolidate multiple names for the same feature: sticky/linked/sync/synchro/grouped -> sync-lock. 2010-08-15 00:05:55 +00:00
v.audacity
5e38992c46 Now that AudacityProject::OnShowLog does more than just wxGetApp().mLogger->Show(), use its processing rather than duplicate it in MultiDialog. 2010-08-14 00:43:15 +00:00
v.audacity
e3f3b687c1 When we bring up the log window, raise it to top of Z order. 2010-08-14 00:41:48 +00:00
v.audacity
66f7ec0c5c Fix some comments, var names, and formatting. 2010-08-14 00:40:04 +00:00
v.audacity
5d2f9301b6 (bug 113)
restructuring and renaming for clarity, granularity, and reduction of code duplication
2010-08-13 04:15:17 +00:00