1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-17 00:20:06 +02:00

70 Commits

Author SHA1 Message Date
windinthew
0998462eb2 Fix conflicting access keys. 2011-04-29 05:46:39 +00:00
james.k.crook@gmail.com
dbca41aa89 Rearrangements to Edit Menu. (as per Proposal Menu Rearrangements) 2011-04-27 22:05:02 +00:00
james.k.crook@gmail.com
98fec31a3e Added missing header declarations for AudacityProjectCommandFunctor. 2011-04-24 16:02:10 +00:00
lllucius
4ef4adb6eb Fix build when wxWidgets is built to use STL as it is on openSUSE. 2011-04-17 03:42:35 +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
0bd3f11f41 Make "FIXME" comments be "FIX-ME" for consistency with themselves and "ANSWER-ME" comments, in case somebody ever wants to search for these things... ;-) 2011-03-26 01:11:51 +00:00
mchinen
dc12d8a8f4 bug 26 followup - warn of missing alias on variety of instances (export/import/effect/mix,) in addition to first time the read fails.\nIn addition make sure there is only one warning on the screen at a time, bringing the old one to the foreground (although for things like export/effect there will be a progress bar in front of it, the missing files dialog will be above the project window when it finishes) 2011-03-23 01:01:17 +00:00
mchinen
4a762fc936 bug 29/11 - add rescan capability for devices.
This is a workaround for the portaudio issue where changing the default device in xp will corrupt the portaudio device indecies.
This combined with the portmixer fix (earlier today) should address bug 29.
2011-02-13 23:00:43 +00:00
james.k.crook
fd9ac6bf09 Fix: slowdown with many labels caused by LyricsWindow. (Bug 144) 2011-02-12 18:33:49 +00:00
james.k.crook
0d6197b2a8 Fix: Regression - Region save can save a cursor position again, now. (Bug 273) 2011-02-12 17:13:07 +00:00
james.k.crook
73b7d4dba3 Patch to fix menu hot-key conflicts on mac, fixing bug 88, (adapted from patch by Gale) 2011-02-10 21:16:14 +00:00
richardash1981
2a7c7de30d Commit a warnings removal patch from Benjamin Drung to correct a string of minor misdemeanors. 2011-02-07 20:24:04 +00:00
mchinen
47ac55b29c bug 11 followup: Add dialogs and shortcuts for each combo of device toolbar 2011-01-29 18:46:06 +00:00
lllucius@gmail.com
7d889359c5 Use currently selected timeformat (in SelectionBar) as default for Label dialog 2011-01-25 04:50:02 +00:00
mchinen
4b60e54a4c MixerToolBar: remove input source selection as it is replaced by aggregated device toolbar. 2011-01-09 20:26:45 +00:00
windinthew
a1b01c4156 Move new Transport Toolbar item to bottom of View > Toolbars menu to respect alphabetical sort 2010-11-16 09:18:55 +00:00
v.audacity
93485f5c50 ControlToolBar now appears in GUI as "Transport Toolbar" instead of "Control Toolbar", to better relate it to the Transport menu. 2010-11-16 01:18:39 +00:00
v.audacity
57ba7640ab Move an old comment past later additions, to the code it actually refers to.
Ask a question about the mSelectAllOnNone addition.
2010-10-22 21:30:38 +00:00
v.audacity
e2261d1473 // Note that History window should be available either for UndoAvailableFlag or RedoAvailableFlag,
// but we can't make the AddItem flags and mask have both, because they'd both have to be true for the 
   // command to be enabled. 
   //    If user has Undone the entire stack, RedoAvailableFlag is on but UndoAvailableFlag is off.
   //    If user has done things but not Undone anything, RedoAvailableFlag is off but UndoAvailableFlag is on.
   // So in either of those cases, (AudioIONotBusyFlag | UndoAvailableFlag | RedoAvailableFlag) mask 
   // would fail. 
   // The only way to fix this in the current architecture is to hack in special cases for RedoAvailableFlag
   // in AudacityProject::UpdateMenus() (ugly) and CommandManager::HandleCommandEntry() (*really* ugly -- 
   // shouldn't know about particular command names and flags).

   // So for now, enable the command regardless of stack. It will just show empty (except for Created Project) sometimes. 

   // FOR REDESIGN, clearly there are some limitations with the flags/mask bitmaps.
2010-10-17 23:00:01 +00:00
v.audacity
d562770d70 (bug 29, P3: Input and/or output sliders operate incorrectly for any device when an external device is connected.)
If the Meter Toolbar was monitoring input, PrefsDialog can be opened, but then PrefsDialog::OnOK() needs to StopStream() or AudioIO::HandleDeviceChange() will no-op. We could instead disable the Preferences command while monitoring, i.e., set AudioIONotBusyFlag/AudioIOBusyFlag according to monitoring, as well as gAudioIO->IsAudioTokenActive(). Instead allow it because unlike recording, for example, monitoring is not clearly something that should prohibit opening prefs. 

This may have been some of the occasions of bug 29, where user changed device while monitoring, but the AudioIO::HandleDeviceChange() code did not actually change the device, so it look like the user had specificied the motherboard/sound card default device, but Audacity was still using the USB device.

      // TO-DO: We *could* be smarter in this method and call HandleDeviceChange()  
      // only when the device choices actually changed. True of lots of prefs!
      // As is, we always stop monitoring and handle the device change.

In AudacityProject::GetUpdateFlags(), don't need to check (GetAudioIOToken() == 0) alternative because gAudioIO->IsAudioTokenActive() checks that it's greater than zero.

In AudioIO.cpp, cleaned up some logic and encapsulation of boolean methods.
2010-10-09 00:50:52 +00:00
rbdannenberg
08b98dce53 PlayAtSpeed works for MIDI. Removed prefs for selecting MIDI input device (unless EXPERIMENTAL_MIDI_IN is on -- but there is no MIDI recording implemented at all) 2010-10-05 18:29:57 +00:00
v.audacity
339303e7ec (Bug 229, P3: It is possible to assign the same keyboard shortcut to 2 commands)
Ed Musgrove's patch to fix cases where the bug currently occurs. 

This does not completely fix the bug, because users can still set modifier keys in the wrong order so they would be two separate entries in CommandManager::mCommandKeyHash, but KeyEventToKeyString() will put them in the expected order, so the version in the expected order will always be the one CommandManager::HandleKey() uses.
2010-10-01 00:25:53 +00:00
rbdannenberg
a1f0e5ed5b Extensive changes to improve NoteTrack display and (some) editing, NoteTrack playback via MIDI, and Midi-to-Audio alignment. 2010-09-18 21:02:36 +00:00
v.audacity
a07fe36456 Change "Sync-Lock Tracks" button image from chain-link to clock.
EXPERIMENTAL_LINKING -> EXPERIMENTAL_SYNC_LOCK

Restore some "border" lines in TrackInfo.


Get rid of unused DEFINE_COLOUR( clrTrackInfoSyncLockSel...).

Clean out some undocumented commented-out code. Add/remove some comments.
2010-09-14 05:52:01 +00:00
martynshaw99
1d6e1593ee Eliminate msClipLen since it leads to length errors in WaveTrack and WaveClip. 2010-09-12 22:31:58 +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
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
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
17832cf2f5 "Show Log" better at bottom of Help menu. 2010-08-24 22:25:50 +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
7b7ef96f25 Moved "Show &Log..." to bottom of Help menu, grouped with Device Info. 2010-08-23 23:09:07 +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
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
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
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
c7826bcdf9 Correct some comments.
Rename method for consistency.
2010-08-08 00:26:07 +00:00
BusinessmanProgrammerSteve
cfd4906d48 Must always update bPastedSomething when changing anything in OnPaste() 2010-08-07 09:51:04 +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
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
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
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
martynshaw99
dcb3dc656a Missing header. 2010-06-14 23:05:36 +00:00
mchinen
f443ce50bd fixing sort by time case where linked tracks only sort by topmost track. Now sort looks at each member of the group and takes the minimum 2010-06-14 12:57:33 +00:00