1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-28 22:49:29 +02:00

67 Commits

Author SHA1 Message Date
Paul Licameli
3f237daddc Use macro safenew for many allocations of wxWindow subclasses 2016-02-14 20:20:19 -05:00
Paul Licameli
3bd4f463f2 Bug49 (partial): Correctly recreate tooltips in device bar for language change 2016-01-21 10:08:00 -05:00
Leland Lucius
6a9dae20f5 Appearance on OSX is now back to normal or better
Some additional wx3 cleanup as well.
2015-08-23 20:25:01 -05:00
David Bailes
e416b1f373 Fix for bug 1153
bug 1153: Using Windows, with display of all items set to 125%, in the dialogs for select audio host,
select recording device, etc. the ok and cancel buttons had a very
small height, and their labels were very difficult to read.
2015-08-20 10:19:03 +01:00
Leland Lucius
5bdfcff97d Menu shortcut hiding has been removed
It had been causing problems in Unity for a while now and they
were missing on OSX as well in wx3.  So, the old menu Open/Close
method of hiding has been removed and replaced with an event
filter/monitor which looks for wxEVT_CHAR_HOOK events to pass
key events to the handler that has the keyboard captured.
2015-07-28 14:35:09 -05:00
Leland Lucius
255be8cfe7 Reworked the TipPanel used with ASliders
It was producing "ghost" windows on OSX in wx3.  These were
supposed to be hidden, but they weren't any longer and after
reviewing TipPanel, I realized that there was a separate
code path for OSX entirely...must've gone back to some of the
earliest versions.

Now all platforms use the same bit of code.
2015-07-20 02:10:05 -05:00
Paul Licameli
e70f91c64e Removed ShuttleGui.h from other headers 2015-07-19 12:31:03 -04:00
David Bailes
f458df1c7b Changes to a number of dialogs so that the NVDA screen reader can read the titles. Missed these in my last patch. The accessibility name of the dialog is set to the title. 2015-05-18 13:57:05 +01:00
Daniel Winzen
759ff8cd0d Performance improvements 2015-04-23 16:07:25 +02:00
lllucius@gmail.com
9317bbb3f7 Applying patch from bug #766
This patch fixes the corrupted device names as 
documented by the bug report.
2014-12-06 05:05:21 +00:00
lllucius
abaac6b443 Make sure controls are empty if the last sound device is removed. 2014-12-06 03:41:33 +00:00
james.k.crook@gmail.com
4acd4e3324 Remove previous code for invalidating bitmaps from device toolbar.
This caused a memory leak previously.
2014-11-09 17:15:06 +00:00
james.k.crook@gmail.com
24a636d6ea Tidy up of code. Moved preferences menu to end of meter. Fixed memory leaks on some bitmaps. 2014-11-09 16:44:07 +00:00
james.k.crook@gmail.com
bdbdf68248 Device and Mixer toolbar switched to LeftToRight order, record then play, for consistency with MeterToolbar. 2014-10-21 10:02:05 +00:00
james.k.crook@gmail.com
37608c2290 Paul Licameli's Spectral Editing Patch.
This relies on three new nyquist scripts to actually do the editing.  The peak-snapping code in FrequencyWindow has been extracted into a new class, SpectrumAnalyst, to provide peak-snapping in spectrogram too.
2014-10-18 14:19:38 +00:00
lllucius
c512822138 Additional changes for wx3
These are mostly for getting it to build on Linux, but I've
also created new configs in Visual Studio to make it easier
to switch between wx2 and wx3.

For Linux, you have to tell configure where to find the wx3
version of the wx-config script and, since some distros build
wxWidgets v3 against GTK+ v3, you may also need to enable
gtk3 with something like:

./configure --enable-gtk3 WX_CONFIG=/usr/bin/wx-config-3.0

On Windows, I've added "wx3-Debug" and "wx3-Release" to the
existing "Debug" and "Release" configurations.

They depend on you having your WXWIN environment variable
pointing to your wx2 directory and a new WXWIN3 environment
variable pointing to your wx3 directory.  For instance, I
have:

WXWIN=C:\Users\yam\Documents\wxWidgets-2.8.13
WXWIN3=C:\Users\yam\Documents\wxWidgets-3.0.2

Doing this allows you to switch freely among the 4 configurations
without having to get out of Visual Studio and monkey around with
the environment.

The project files will also add the location of the wxWidgets DLLs
to the PATH when running Audacity from within Visual Studio.  They
add %WXWIN%\lib\vc_dll or %WXWIN3%\lib\vc_dll at the beginning
of the PATH variable as appropriate.

I expect that once we convert to wx3 we'll just drop back down to
the normal Debug and Release configurations, but this should make
switching between wx2 and wx3 much easier during the transition.
2014-10-16 16:18:04 +00:00
lllucius
bdcefb4850 Preliminary changes for wxWidgets 3.0.1
We can't go to 3.0.1 yet as there are still build issues on
Linux and OSX.  You can get Windows to build, but there's
still some display issues.

These changes should work with wxWidgets 2.8.12 as well, so
we can take our time to get things working properly before
switching over.
2014-10-06 08:10:50 +00:00
RichardAsh1981@gmail.com
3f49828d37 Standardise on working oof Recording and Playback rather than Input and Output throughout Audacity. Remove some very old junks strings at the same time. 2014-07-21 21:37:53 +00:00
benjamin.drung@gmail.com
277932dccb Remove trailing spaces. 2014-06-03 20:30:19 +00:00
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
2dad036b58 Comment about bug I found in trying to figure out this code. 2012-08-07 23:37:53 +00:00
v.audacity
f7841b4d8f Add selection settings to Device Toolbar tooltips. Adjust some comments. 2012-08-07 04:16:13 +00:00
v.audacity
740770f391 Simplify and clarify logic. 2012-08-07 01:36:08 +00:00
v.audacity
ebb4f530bb Apparently, wxConfigBase::Write() does not update values for next access on all platforms unless Flush() method is called. Added many calls to wxConfigBase::Flush() to make sure the Rad() calls get the right values. 2012-08-02 06:03:19 +00:00
james.k.crook@gmail.com
6c71a5e170 Fixed more internationalisation hints. 2012-03-20 16:48:57 +00:00
v.audacity
5f5b9778de Fixes per Vigilant Sentry (http://www.vigilantsw.com/)
* Fix memory leaks.

* Add comments about initializations and checking for successful results.

* Add checks for NULL deref.

* Consistency in "TODO" vs "TO-DO" comments!
2012-02-08 05:09:14 +00:00
mchinen
a0c1ac4cd3 Use the initial default of stereo instead of mono for recording channels 2011-06-01 13:09:00 +00:00
mchinen
35e371878d Bug 350 (P2) - Restore focus to TrackPanel when play/rec is hit and the focus is in the device toolbar. 2011-04-13 00:58:15 +00:00
mchinen
c1cf9b4a76 bug 11 - Use const references when returning the map vector to ensure the device maps are not modified. I don't expect this to fix the bug behavior, but am committing because some testers see bad behavior that suggests the maps are modified between scans. 2011-03-20 22:20:41 +00:00
mchinen
a3a3230347 bug 11 - Device Toolbar/Manager - misc. code cleanup (not expected to fix bad behavior) 2011-03-20 20:52:04 +00:00
mchinen
4c766b2714 bug 11: fix bad index typo. may fix bug 11 issues on win 7. 2011-02-24 17:59:05 +00:00
mchinen
e68767cd04 re-add and update device preferences to match new device model.
also restores portaudio device defaults functionality when the device can't be found.
2011-02-19 21:53:22 +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
mchinen
fe570ac355 add singleton device manager to refactor and minimize portaudio change bugs. Adds rescan functionality which will address some bugs but not added to menu yet. will add files to mac and windows build soon 2011-02-13 18:57:43 +00:00
mchinen
8c805c03dd DeviceToolBar.cpp: better redraw on change host.
Also fixes an issue where the combo boxes on other project's device toolbars wouldn't resize when the active projects device toolbar changed the host.
2011-02-12 18:25:06 +00:00
v.audacity
ca35e29a0f Remove unused var. 2011-02-11 00:33:55 +00:00
mchinen
22b64149de DeviceToolBar.cpp: Make all projects' device toolbar reflect the changes when made in another project. 2011-02-07 00:41:51 +00:00
mchinen
a9437f795b DeviceToolBar.cpp: Better event handling -
Make OnChoice only do the action associated with the combo box being interacted with.
Also refactor associated input and output device code into new function.
2011-02-06 23:34:32 +00:00
mchinen
046593405f bug 11 followup: DeviceToolBar - for Win DirectSound and MME don't allow input source lookup for the mapper devices.
This is kind of a hack that relies upon portaudio to make the first index the mapper for these apis.  I verified this for MME in portaudio src, but could not for DirectSound, so this may need to be reverted.
Should address gale's issues on win xp.
2011-02-05 19:07:02 +00:00
mchinen
fff977b942 ToolBar.cpp: remove excessive drawing on reset (as well as other resizing/positioning functions.)
Was causing an issue with the DeviceToolBar (discussed in bug 11,) but this change will speed up redraw of other toolbars as well.
2011-02-05 14:16:44 +00:00
mchinen
9e5cb8f6af DeviceToolbar.cpp: better fit for resize and fix overspilling of channels combo when toolbar is very small. 2011-02-05 13:37:31 +00:00
mchinen
500b3a32df DeviceToolBar.cpp: fix possible index out of bounds case 2011-02-05 10:04:29 +00:00
mchinen
7d6c347140 bug 11 followup: fix visual glitch when changing hosts 2011-01-30 23:40:37 +00:00
mchinen
3f4b5f7779 DeviceToolbar.cpp: use OnChoice instead of obfuscated ProcessCommand for combobox modal dialog 2011-01-30 23:30:49 +00:00
v.audacity
0254283598 Bug 11 (P2) - Input sources cannot be selected in Mixer Toolbar.
Trying to fix problem reported by Gale on audacity-devel, "Error building r10887 on Ubuntu".
2011-01-30 20:30:17 +00:00
mchinen
84c6013a17 fix build on mac 2011-01-29 22:08:22 +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
mchinen
ed20efb357 DeviceToolBar fix typo based bug in last commit 2011-01-29 17:36:46 +00:00
mchinen
efb6f2e584 fix initial input channel number combo population on fresh start without audacity.cfg (could not replicate so did not test) 2011-01-29 17:31:19 +00:00
mchinen
90be578616 bug 11 followup: remove rec channels label from DeviceToolBar and add input channels to within combobox text 2011-01-29 15:15:06 +00:00