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

13640 Commits

Author SHA1 Message Date
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
mchinen
bce418b19b fix possible deadlock for OD.
Also comment related cleanups.
2010-07-22 15:28:54 +00:00
windinthew
e0b92c441e Updated software translation from Thomas de Rocker 2010-07-21 11:22:23 +00:00
v.audacity
e30ce7ddb7 Remove EXPERIMENTAL_LYRICS_WINDOW and EXPERIMENTAL_MIXER_BOARD. They've been in every beta for almost a year, so they're no longer experimental. 2010-07-21 04:53:38 +00:00
v.audacity
64360a2cd4 Removed the date. Irrelevant and no other built-in effects show it. 2010-07-21 04:38:54 +00:00
v.audacity
1ac6a0af4e bug 113: Went ahead and did the simpler fix, rather than add the performance hit of
checking the entire Undo stack.
2010-07-21 02:17:33 +00:00
martynshaw99
fd268badd5 Fix for bug 180, 'Close' now handled properly. 2010-07-20 22:20:45 +00:00
windinthew
b6442aed73 Updated software translation from Lukmanul Hakim (+ added new strings from latest audacity.pot) 2010-07-20 09:50:50 +00:00
windinthew
e1042d4323 Updated software translation from Carmelo Battaglia 2010-07-19 21:27:12 +00:00
mchinen
af27b274d1 Fix missing lock mutex in main OD loop (!)
This will fix the OD bug where some tasks never start on faster computers that caused the race condition.
2010-07-19 13:41:16 +00:00
mchinen
0fac236e9a Fix whitespace and comments in ODComputeSummaryTask and ODManager 2010-07-19 13:25:52 +00:00
windinthew
f918edb36a Updated software translation from Bashishtha Singh (+ added new strings from latest audacity.pot) 2010-07-19 09:44:01 +00:00
v.audacity
ab81197ce6 Move #include <wx/arrimpl.cpp>. Must occur between the WX_DECLARE_OBJARRAY and WX_DEFINE_OBJARRAY. 2010-07-18 00:05:49 +00:00
v.audacity
cd96baaa4c Fix a compiler warning. 2010-07-17 22:31:02 +00:00
v.audacity
ae85f055ac (working on bug 113)
Fixed a formerly unnoticed crash bug. If user selected a subset of the dependency files list, then clicked "Copy Selected Audio Into Project", it removed the selected dependency/dependencies, but then crashed on bad reference trying to delete the non-selected dependency/dependencies. This was due to a consistent misuse of wxHashMap::operator[] to check for the existence of a hash element. If you call it with a key that's not in the hash map, yes it returns NULL, the first time, but it creates an entry for that key. So if you test it again with the same key it returns a bad entry. Replaced it with a correct call to wxHashMap::count(). Leland had fixed one of these, but there were 4 more. 

RemoveDependencies() always returned true, and was never checked, so made it return nothing.

More readability improvements.
2010-07-17 00:33:31 +00:00
v.audacity
003221bb95 (minor change)
No need to check passed-in value of parameter that's used only for return value.
2010-07-17 00:11:57 +00:00
v.audacity
07806e76a1 (working on bug 113)
Update header block. 

Move declarations that aren't used elsewhere, from .h file. No need to expose them there, used only in this file.

Working on first part of bug 113 where moved/deleted file is allowed to be copied into project:

 * Made class AliasedFile know whether its original file exists in specified location.

 * Dependency dialog:
   ** Updated so message states some original files were moved/deleted, and what to do about it.
   ** Missing dependencies shown in red, italic text. 
   ** Missing dependencies cannot be selected for copying into project.
   
 * Fixed bug where deselecting all items did not disable "Copy Selected..." button.

FindDependencies always returns true, so removed return value and its handling.

Sundry readability improvements: var names, {} brackets usage consistency, indenting, clearer names, etc.

Get rid of vim/emacs declarations. Matt said they're unnecessary, ages ago.
2010-07-16 06:01:40 +00:00
v.audacity
1149680032 (working on bug 113)
Update header block. 
Move declarations that aren't used elsewhere, into cpp file. No need to expose them here.
Get rid of vim/emacs declarations. Matt said they're unnecessary, ages ago.
2010-07-16 05:41:22 +00:00
v.audacity
27e59162b4 (minor text corrections) 2010-07-16 05:38:22 +00:00
v.audacity
6f6aae0346 Rename for clarity. It's a bool, not a resultCode. 2010-07-16 05:37:26 +00:00
windinthew
16716a6ef8 Can't use "v" for an access key - conflicts with Preview 2010-07-11 06:56:02 +00:00
mchinen
fb9e6e5f1a Fix autorecover to recover more than just 3 recording tracks
Also fix mac crash due to assertion where envelope len is zero after recovery.
2010-07-09 16:17:45 +00:00
v.audacity
cf3ba227f7 Further work on bug 137. Accidental click OK on prev commit, so here are comments for it and this one:
* Make progress messages not have ellipsis at end, as convention in other cases.

* Reword "Continue without deleting" radio button about orphan files.

* Fix the removal of empty dirs at the end of DirManager::ProjectFSCK() which previously did nothing because it passed a hardcoded zero count for the file list, to what is now RecursivelyRemove(). Added RecursivelyCountSubdirs() so progress dialog has correct maximum (directory count, not blockCount as previously). Added RecursivelyRemoveEmptyDirs().

* Found that Windows SDK functions sometimes do not remove empty directories and added code to help it in some cases.
2010-07-09 03:52:51 +00:00
v.audacity
afe904e0c5 2010-07-09 03:16:40 +00:00
windinthew
9a2112bb8d Added access keys 2010-07-08 19:25:08 +00:00
v.audacity
28141af2d0 Code review and fixes in pursuit of bug 137
(still in progress, per "//vvvvv" comments):

Update credits and copyright.

Fix some grammar and remove obvious comments. 
   (For example, stack vars are always destroyed when 
      "out of context" (i.e, scope, when stack popped), 
      so no need to comment on it).

Remove wxWidgets error squelching.

"rm_dash_rf*" static functions
   Rename all the "rm_dash_rf*" static functions to better 
      reflect what they actually do (per "finally 
      misnomer" comment). Not very mnemonic to 
      name functions on *nix-specific shell command 
      "rm- rf" that they do not emulate. Only 1 of the 4 
      so-named actually removed anything.
   Remove one unnecessary function (originally 
      "rm_dash_rf_enumerate"), replaced by 
      parameter defaults on main recursive function
      (originally rm_dash_rf_enumerate_i").
   Remove unused parameter "prompt" from 
      rm_dash_rf_enumerate_i (now RecursivelyEnumerate). 
   The files_p and dirs_p ints were actually used only 
      as bools, so make them bools bFiles and bDirs.
   Rename "prompt" vars to match ProgressDialog 
      "message" arg. They do not prompt user to do 
       anything, they're informational.
   files_p and dirs_p were int but used only as bools, 
       so make them bool for better readability.
2010-07-07 04:56:53 +00:00
v.audacity
7501b9a865 minor changes on brief code review 2010-07-06 21:39:08 +00:00