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

416 Commits

Author SHA1 Message Date
v.audacity
14a3ab7409 Add missing #include. 2010-08-12 21:04:49 +00:00
v.audacity
24a4a37e57 Add missing close paren. 2010-08-12 03:41:25 +00:00
v.audacity
66d04c6cc9 Project Check (DirManager::ProjectFSCK) test projects 2010-08-12 01:45:59 +00:00
v.audacity
50ea5acf27 Consolidate multiple names for the same feature: sticky/linked/sync/synchro/grouped -> sync-lock. 2010-08-11 23:56:50 +00:00
v.audacity
f28d91a599 Consolidate multiple names for the same feature: sticky/linked/sync/synchro/grouped -> sync-lock. 2010-08-11 23:15:00 +00:00
v.audacity
209a2b193d Consolidate multiple names for the same feature: sticky/linked/sync/synchro/grouped -> sync-lock. 2010-08-11 22:47:26 +00:00
v.audacity
71e102e473 (more on bug 113 and related issues)
Added a "Show Log for Details" button to MultiDialog so it does what the comments say, i.e., allows the user to look in the log to see which files are problematic (e.g., orphaned blockfiles.

Tightened up ProjectFSCK messages. 

Added comments about remaining (long-standing!) problems in ProjectFSCK.
2010-08-11 02:38:24 +00:00
v.audacity
6fb4ed63f3 Introduce a pointer var to replace 3 double derefs with one. 2010-08-10 23:28:57 +00:00
v.audacity
477d499c06 Fix index for re-ordered radio buttons. 2010-08-10 05:17:26 +00:00
v.audacity
b15b3d49ed Now that each stack frame on the Undo stack does CalculateSpaceUsage when created, make sure the blockfile's file exists before asking for the calculation. 2010-08-10 05:16:05 +00:00
v.audacity
0ae919f656 Make better discrimination of wxLogMessage, wxLogDebug, and wxLogError usage so user doesn't see lots of irrelevant info in log window, only messages and errors they should need to see. For example, user doesn't need to see every step of loading FFmpeg in release build, only errors, if they occur.
Comment out in FreqWindow.cpp the wxLog* stuff that can just be done with breakpoints ("Starting FreqWindow::Plot()" et al).
2010-08-10 05:13:28 +00:00
v.audacity
a6cb818f42 Remove SpikeCleaner.* from project. No reason to compile as it's never instantiated/called. 2010-08-10 05:04:46 +00:00
v.audacity
d329cb8812 Revised last paragraph for wxWidgets. The path was wrong (missing ':') and there's no reason to "note" a directory, especially at this point in the process. 2010-08-09 00:34:32 +00:00
v.audacity
c7826bcdf9 Correct some comments.
Rename method for consistency.
2010-08-08 00:26:07 +00:00
BusinessmanProgrammerSteve
56adffdce6 Remove unused variable 2010-08-07 09:51:44 +00:00
BusinessmanProgrammerSteve
cfd4906d48 Must always update bPastedSomething when changing anything in OnPaste() 2010-08-07 09:51:04 +00:00
v.audacity
39ad98b360 Calculate space usage for a state frame (UndoStackElem) in UndoManager::PushState, i.e., only when the UndoStackElem is created, rather than every time we open History Window. This should considerably speed up opening History Window when the stack is large (many frames and/or lots of data), and fix bug 196. 2010-08-07 00:26:38 +00:00
BusinessmanProgrammerSteve
ae79badcb4 Fixes remaining issue regarding AudacityProject::OnPaste() raised in
bug 177, closes a loophole for applying linking behavior.
2010-08-06 07:52:54 +00:00
v.audacity
5ac36ecd71 (significant changes to OnPaste -- needs lots of testing)
Reviewed Al's patch for OnPaste (bug 177) and made these changes. 

OnPaste method has grown too long and complicated:
   Broke out independent sections to new HandleTextPaste and HandlePasteNothingSelected methods. 

   Made pastedSomething bool (now "bPastedSomething") cumulative, per Al's correction. Previously, if the last clip paste failed, it showed the whole paste failed. Clearly, the philosophy for paste has been that we take what we can get. There were numerous places (and still some) where the paste results were not even checked. 

   Added a couple of missing checks for bPastedSomething on paste results.


Declarations: 
   Made declarations clearer about public vs private methods. 

   Removed declarations of unused/undefined CommandManagerCallback and CommandManagerListCallback methods. 

   Moved mSel0save and mSel1save member vars closer to the methods that use them.
2010-08-06 04:16:18 +00:00
v.audacity
a0635fd618 Removed redundant "public:" declaration and VIM settings. 2010-08-06 03:43:48 +00:00
BusinessmanProgrammerSteve
45011d7032 Fix bug 177: Unwanted label appears if pasting audio when there are already
labels.

In LabelTracks Paste() just calls Copy() and Clear(); this change makes sure
Clear() doesn't skip a label Copy() copies().
2010-08-05 06:31:57 +00:00
v.audacity
bfb3c639b4 (bug 113, "Missing Aliased Files" dialog)
Re-ordered buttons so "Close project immediately" is first, per Gale's suggestion.
2010-08-05 02:19:09 +00:00
windinthew
a4407b5f70 Updated software translation from Yuri Chornoivan (+ added new strings from latest audacity.pot) 2010-08-03 09:28:49 +00:00
v.audacity
2def1e7f51 bug 195 - fixed 2010-08-03 01:46:37 +00:00
alexandre.prokoudine
e8d37360c1 Update of Russian translation, take one 2010-08-01 22:34:11 +00:00
martynshaw99
c147720d6c Dynamically set the size of the status bar for sampling rate. 2010-08-01 22:18:35 +00:00
v.audacity
a6cb3debe9 (bug 113)
Comments about what's wrong with the DirManager::ProjectFSCK "Missing Aliased Files" dialog actions and what to do about it. (More to follow!)

Changed PushState for project repair from "Repair" to "Project Repair" to distinguish from Repair effect.

renames for clarity
2010-08-01 00:04:23 +00:00
v.audacity
be83111226 cleanup 2010-07-31 00:29:21 +00:00
v.audacity
f111158880 (bug 113)
Clarified, shortened, and removed redundancies in the messages in the Missing Aliased Files warning dialog.
2010-07-30 22:36:58 +00:00
v.audacity
afd7dec991 Fix Bug 163 - Aborting a track name change writes a name change to history.
The logic was flawed -- did updates and PushState even when user canceled or hit OK with a blank name.
2010-07-30 22:03:59 +00:00
v.audacity
62689e9e70 Sped up HistoryWindow updating by eliminating duplicate clearing and refilling the wxListCtrl. In the worst case, where the window had not yet been created, it would clear and refill the same content in the list 3 times. Otherwise it would always do it 2 times.
The only call to Show for HistoryWindow is in AudacityProject::OnHistory, and it always calls HistoryWindow::UpdateDisplay. All HistoryWindow::UpdateDisplay does is check IsShown() and if so, call HistoryWindow::DoUpdate. 

Removed the call to HistoryWindow::DoUpdate in the constructor because AudacityProject::OnHistory will get that done. 

Removed HistoryWindow::OnShow. No reason to implement it outside the normal wxDialog::Show() mechanism, and all it did was call HistoryWindow::UpdateDisplay (and then AudacityProject::OnHistory would do that again).

Didn't see any other reasons it has been slow, as it's just getting the state names and sizes from the stack, not actually examining anything about the states. It probably doesn't really need to clear the list and repopulate it every time, but let's see if this gives sufficient improvement before adding a lot of mechanisms for tracking exactly what needs to change.
2010-07-30 21:47:25 +00:00
v.audacity
3729f067be more progress on bug 113
better handling of error conditions in all BuildFromXML methods, per comment: 

// BuildFromXML methods should always return a BlockFile, not NULL,  
// even if the result is flawed (e.g., refers to nonexistent file), 
// as testing will be done in DirManager::ProjectFSCK().
2010-07-30 03:04:37 +00:00
v.audacity
874e530d84 more progress on bug 113
better handling of error conditions in PCMAliasBlockFile::BuildFromXML so that DirManager::ProjectFSCK can report cases of missing PCMAliasBlockFile files on opening projects where missing files were not corrected
2010-07-29 03:54:54 +00:00
v.audacity
8f8504b5a6 some progress on bug 113, including rewordings DependencyDialog based on some suggested by Gale
code cleanup

naming improvements for clarity (e.g., aliasedFileName instead of aliasedFile for an instance of wxFileName -- it's not an instance of AliasedFile)

parens, not square brackets, for parenthetic phrases
2010-07-28 23:06:10 +00:00
v.audacity
92bdf970c5 Remove obsolete comment. 2010-07-28 22:58:16 +00:00
v.audacity
971f039033 parens, not square brackets, for parenthetic phrases 2010-07-28 22:57:21 +00:00
v.audacity
ddec06f8a2 code cleanup
naming improvements for clarity (e.g., aliasedFileName instead of aliasedFile for an instance of wxFileName -- it's not an instance of AliasedFile)
2010-07-28 22:56:27 +00:00
v.audacity
2f139f524d Remove link icon from TrackInfo title bar. 2010-07-27 01:25:44 +00:00
v.audacity
981366b2b6 Change some magic numbers whose original use was no longer, and get rid of some no-longer-correct comments, for clarity. 2010-07-26 22:37:15 +00:00
v.audacity
0e4aa1c6e5 Get rid of unnecessary GetStickyFlag(). 2010-07-26 22:36:15 +00:00
v.audacity
49f8db7114 Change some magic numbers whose original use was no longer, and get rid of some no-longer-correct comments, for clarity. 2010-07-26 22:34:57 +00:00
v.audacity
a485b6f0fd Turn on EXPERIMENTAL_TRUNC_SILENCE, per Gale's message. 2010-07-26 20:30:51 +00:00
windinthew
6e4de9fcfe Updated software translation from James Ruan {+ updated with latest strings from audacity.pot) 2010-07-25 10:15:09 +00:00
v.audacity
18a1c05aba (bug 113, per Gale's Comment 5)
Changed the descriptive static text to show the paragraph about missing files only if any are actually missing. 

Added extra updating to enabling "Copy Selected Audio", e.g., for cases were all the aliased files are missing. 

Made the dialog dismiss after "Copy Selected Audio" if all non-missing files have been copied in and all that remain are missing files, same as case where there are no missing files and all non-missing have been copied in. 

Added extra updating to enabling "Copy All Audio", e.g., disabled when there are missing files in the list -- we cannot copy them.

Changed missing file entries in the list from italicized to prefixed with "MISSING " so screen readers can distinguish.
2010-07-25 03:49:58 +00:00
v.audacity
908b0b2d35 Turn on EXPERIMENTAL_LINKING apropos bug 177.
Also, some clean-up and moving related items closer together.
2010-07-24 23:43:53 +00:00
v.audacity
8c51e56248 Switch to calling Yield via wxTheApp instead of wxGetApp(). Simpler to use pointer, AudacityApp doesn't override Yield, and this fixes compile error on VC++ Unicode Release. 2010-07-24 23:21:51 +00:00
windinthew
4ae0fa3238 Updated software translation from Atsushi YOSHIDA 2010-07-24 04:02:17 +00:00
v.audacity
54bd928ef6 regarding bug 9:
Was able to make the bug occur after lots of fast clicking around, by double-clicking Preview in Amplify dialog. 

The key seems to be the call to wxYield. That function is obsolete, but looking at the documentation for its successor, wxApp::Yield(): 

"Caution should be exercised, however, since yielding may allow the user to perform actions which are not compatible with the current task. Disabling menu items or whole menus during processing can avoid unwanted reentrance of code: see ::wxSafeYield for a better function."

That sounds like exactly the situations where this has occurred. And the documentation for ::wxSafeYieldsays: 

"This function is similar to wxYield, except that it disables the user input to all program windows before calling wxYield and re-enables it again afterwards."

Sounds like what we need. So I went through the code and for all the wxYield and wxGetApp()::Yield occurrences where Audacity is doing some drawing or already in the process of responding to a GUI event, I replaced them with ::wxSafeYield. Replaced all the remaining wxYield calls with calls to wxGetApp()::Yield().

Haven't been able to replicate the bug since these changes. Please test.
2010-07-23 23:29:50 +00:00
windinthew
6ebd7f4716 Updated software translation from Bashishtha Singh 2010-07-23 19:48:10 +00:00
v.audacity
ceb5aff5cb Fixed bug "On Demand calculation stuck at 1%". (Don't know if it had a bugzilla entry. Didn't find one.)
Basic problem was in using wxConvUTF8 instead of wxConvFile. I believe wxConvFile should work on all platforms, but if not we can "#ifdef _WIN32" its use. 

Also simplified the code by getting rid of the mFileNameChar member. It was used only in ODPCMAliasBlockFile::WriteSummary() so there's no reason to do the conversion from mFileName in so many places -- just do it once, in ODPCMAliasBlockFile::WriteSummary().
2010-07-23 01:41:21 +00:00