Commit Graph

55 Commits

Author SHA1 Message Date
v.audacity
c7daafede2 In off-list discussion, Steve mentioned that kdevelop / kate highlighting recognizes "FIXME", but not "FIX-ME", which has been the Audacity convention. This commit changes Audacity code to use the "FIXME" convention (though I've never known it as convention and MSVC doesn't recognize it).
Also, minor change in WaveTrack.cpp in the effort on bug 641. Should have no functional difference.
2013-08-24 20:30:47 +00:00
v.audacity
9d0daf8662 Campbell Barton's patch to turn many, many tabs to our 3-space convenbtion 2013-02-20 23:42:58 +00:00
v.audacity
a42f5b45cb http://bugzilla.audacityteam.org/show_bug.cgi?id=545 (P2)
Remove crash-prone "Audio Cache" feature.
2012-07-18 01:18:59 +00:00
james.k.crook@gmail.com
dd97cae3d9 Removed some (hidden) Cleanspeech cruft that had been used to disable effects. Made some static text open to translation. Added more i18n hints (thanks Thomas Breinstrup). 2012-04-05 11:21:15 +00:00
james.k.crook@gmail.com
69476e785c Fixed more internationalisation hints. 2012-03-20 15:36:02 +00:00
v.audacity
7a57f8efce Fix overlong string in dialog. 2011-12-12 22:35:57 +00:00
v.audacity
618df78900 "Blockfile" -> "Block File" in interface. 2011-11-16 01:12:35 +00:00
v.audacity
2bac0a07ed rewordings per http://bugzilla.audacityteam.org/show_bug.cgi?id=451#c21 2011-11-15 04:03:01 +00:00
v.audacity
75ab958ef9 rewordings per Martyn's suggestions regarding test project for bug 451, where conversion from 1.2 format says save will make it permanent and irreversible, but DirManager::ProjectFSCK() was not making it clear when choices make a Save. 2011-10-28 02:29:15 +00:00
v.audacity
04d3e77632 Rewording and re-ordering of orphan blockfiles alert, per Martyn's suggestion.
Add project data folder name to most ProjectFSCK alerts.
2011-10-28 01:32:47 +00:00
v.audacity
4e81f0ed5a Change "blockfile" to "block file" consistently in log and error dialogs. 2011-10-16 23:12:00 +00:00
v.audacity
3d39a8d560 rewording per Gale's suggestion re bug 451 2011-10-16 23:10:55 +00:00
v.audacity
1f352b0157 (bug 451, P2) Add more error checking and increase specificity of Sequence-reading code.
Add wxLogWarning messages to AudacityProject::OpenFile()

Fixed correction for "A linked track's partner should never itself be linked" to remove the link from the partner, not the original (left).

Fix possible NULL pointer dereference in previous commit.
2011-10-13 22:52:55 +00:00
v.audacity
4d1e18d8fd In DirManager.cpp, probably fixed bug 451, by not deleting over-long blockfile.
Made Sequence::HandleXMLEndTag log errors more specific.

Differentiated "Gap detected in project file" error messages.
2011-10-12 05:40:23 +00:00
mchinen
7b04d6518d comments - explanation of blockfile filename/dir structure 2011-10-11 19:24:47 +00:00
v.audacity
3a1d4334f2 Make wxLog* calls consistently not have \n at the end. Turn some wxLogWarning calls to wxLogError. Put some periods at the ends of sentences. 2011-10-09 21:14:03 +00:00
v.audacity
63c2698b70 Change wordings per http://wiki.audacityteam.org/wiki/Bug:137#Wording_and_Options_in_Dialog. 2011-09-15 23:54:23 +00:00
martynshaw99
9d77cd4638 Don't delete the _data dir - simplified version of Ed's patch. 2011-06-27 23:18:33 +00:00
v.audacity
fb5e062c42 Responding to suggestion at http://bugzilla.audacityteam.org/show_bug.cgi?id=20#c46, changed it to "current" rather than "existing." 2011-06-20 21:16:46 +00:00
mchinen
b9725a6c13 Bug 396 (P4) Fix double dialog with Files Missing and Missing Aliased File(s) from appearing. Patch by Martyn Shaw. 2011-06-01 18:22:06 +00:00
mchinen
391920624d Bug 137 (P2) - fix regression caused by r11118 where orphan files weren't detected 2011-05-17 21:15:17 +00:00
mchinen
ada7eaf758 Apply patch by Christopher Rudorff that fixes an issue where re-opening OD projects would create blockfiles with malformed filenames.
Modified by mchinen to cleanup debug messages and fix unbalanced mutex on error.
Original patch notes:

    OD loader doesn't properly continue scanning files
    
    BUG:
    
    * import large audio file with OD import
    * save and close project before OD finishes
    * open project again: OD failes badly on continuing
    
    Syntoms:
    
    * .auf.auf.auf worm files ...
    * truncated wave display
    
    The isse is subtile:
    
    <odpcmaliasblockfile summaryfile="e000031a.auf" aliasfile="/home/chris/Records/test/0.5seek+cue.flac" aliasstart="26738688" aliaslen="524288" aliaschannel="1"/>
    
    A ODPCMAliasBlockFile is a AliasBlockFile which has 3 overloaded
    constructer. One of then silently adds '.aup' to the summaryfile.
    
    So when creating those tracks from XML, we must use the other constructor.
    
    Now we run into a second bug:
    
    AudacityProject::OpenFile calls ProjectFSCK after reading which deletes
    the just created empty directories in the _data/e00 dir. OD is doomed.
    So simply skip rmdir in fsck.  The OD..Blockfiles will disapper when the
    OD finishes, so empty dirs will be deleted on further opening the project.
2011-04-28 19:57:37 +00:00
mchinen
ee9e244b77 Bug 137 (P2) - fix false positive detection of orphaned files that belong to the clipboard (triggered by cut commands) 2011-04-21 21:51:56 +00:00
mchinen
91d8f132a6 Bug 330 (P2) - Fix an issue where multiple projects would cause the warning dialogs to pop up above the wrong project.
I refactored the code into AudacityApp with a new timer.  This is provisional pending discussion - if it is decided that it should go somewhere else I will move it.
2011-03-29 23:39:00 +00:00
v.audacity
5e31b813d2 Bug 137 (P2) - Unreliable project re-opening with orphaned and missing blockfile errors
Apply Michael's patch per http://bugzilla.audacityteam.org/show_bug.cgi?id=137#c15 and http://bugzilla.audacityteam.org/show_bug.cgi?id=137#c19.
2011-03-25 23:13:07 +00:00
v.audacity
35087a5553 2011-03-25 21:17:49 +00:00
mchinen
df6e56a57e DirManager.cpp: refactor near identical methods Move/CopyToNewProjectDirectory to use the same code 2011-02-02 20:42:43 +00:00
mchinen
3abd32a98b DirManager.cpp: remove old cruft comments and return an false on error 2011-02-02 20:11:42 +00:00
v.audacity
63f391ba46 Minor changes to comments. 2011-02-02 00:43:00 +00:00
v.audacity
8f20e65167 (bug 20, P2)
Fix auto-recovery failures that Gale reported, when auto-recovered projects had been saved to top-level directories, e.g., "E:\dtmf.aup" on Windows. Problem was with file separators. This DirManager code is quite convoluted, touched by multiple chefs, and called from many places, so this fix does not correct the origination(s) of the problem, but doesn't break anything higher up, and is a failsafe against probably multiple errors at higher levels.

Make some parameter names clearer vs class vars. Readability is better if the names are not lexicographically exactly the same.
2010-09-28 05:03:50 +00:00
v.audacity
7e1db64bc2 (bug 20, P2) Log some summary messages as well, for auto-recovery mode, so the log indicates the "safe" choice that was taken for each of the four types of errors. 2010-09-18 00:32:59 +00:00
v.audacity
a26652acfd (bug 20, P2)
Changed the bSilentlyCorrect parameter to DirManager::ProjectFSCK() to be bAutoRecoverMode. If project check errors are found during auto-recovery, it's hazardous to allow the user the various options available during normal project open. But rather than squelching the messages as well as option dialogs during auto-recover, show the messages in the log and bring up an alert. 

This means the helper methods Find*() no longer need bSilentlyCorrect -- they always report to the log.
2010-09-17 22:50:01 +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
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
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
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
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
5d2f9301b6 (bug 113)
restructuring and renaming for clarity, granularity, and reduction of code duplication
2010-08-13 04:15:17 +00:00
v.audacity
24a4a37e57 Add missing close paren. 2010-08-12 03:41:25 +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
477d499c06 Fix index for re-ordered radio buttons. 2010-08-10 05:17:26 +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
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
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
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
27e59162b4 (minor text corrections) 2010-07-16 05:38:22 +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