1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-24 15:23:52 +02:00
Commit Graph

5593 Commits

Author SHA1 Message Date
James Crook
970b9a27ee Fix ASSERT condition.
I introduced this overly zealous ASSERT during a recent clean up.
2017-12-14 16:27:44 +00:00
James Crook
cab984d590 Add Spectral VZoom Reset
Also shortened the repetitive VZooming code.
Changed preference name to 'More vertical zooming'.
2017-12-14 16:00:59 +00:00
James Crook
41ac4cd47a Add Hover-Over-Down State for Button
Previously hovering over a down button made no difference.
Also tweaked the appearance of hover-over thumbs on dark theme sliders.
Also tweaked hover images and colours generally.

Classic retains the old style.
Hi Contrast does not distinguish between hover-up and hover-down.
2017-12-14 14:39:56 +00:00
James Crook
3379b4e499 VZoom cfg defaults different for Audacity and DA.
VZooming remains on by default in Audacity itself.
Also kGuard (the gurard zone in the VRuler) reduced from 8 pixels to 5pixels
following feedback from Steve.
2017-12-12 21:06:09 +00:00
David Bailes
516af71782 Fix for #1554: toolbars open undocked if previously hidden
Problem:
1. If a toolbar is docked and hidden, when config is written, dock is set to 0 (undocked).
2. When config is read, if a toolbar is docked, then the show field is ignored, and the toolbar is always shown.

Summary of fix:
1. Introduce a new version of the dock field (DockV2) to minimise the problems when running previous versions of Audacity, having run a version with this patch(as suggested by Paul).
2. In ToolManage::WriteConfig, for a docked toolbar which is hidden, DockV2 is set to the dock number, and not 0.
3. In ToolManager::ReadConfig, for a hidden docked toolbar in the config, the toolbar is docked, but is not included in the configuration.

Note, that if a version of Audacity without this fix is run after running a version with this fix:
1. The dock of each toolbar is reset to its default value.
2. In addition, for 2.1.3, 2.2.0 and 2.2.1 whether a toolbar is shown or hidden is reset to its default value.
2017-12-12 14:39:02 +00:00
James Crook
3649f39dc5 SetText and GetText deprecated. Use modern equivalents. 2017-12-12 13:25:45 +00:00
Steve Daulton
9735775a8d Fix bug 963 again 2017-12-11 21:58:42 +00:00
James Crook
13c6fdf663 VZooming Changes
1: Guard zone 8 pixels wide in VRuler to reduce risk of accidental use.
2: VerticalZooming preference, for VRuler zooming, off by default,
3: Enabled Paul's right-click menu in VRuler with some extra
presets (x2 and x0.5)
4: Rearranged some messy code with lots of ifs to use a switch.

Also, with EXPERIMENTAL_HALF_WAVE defined we now get a
'half wave' option in the VRuler menu, that shows the wave top half.
We also use it in collapsed waves (and collapsing and restoring
a WaveTrack will get you back to normal zoom.
2017-12-11 18:41:48 +00:00
Paul Licameli
8a1f5bb748 Fix misspelling pointed out by Olivier Humbert 2017-12-09 05:42:53 -05:00
Paul Licameli
a0fad21fec Remove special treatment of late additions to 2.2.1 i18n messages 2017-12-08 20:48:11 -05:00
James Crook
cb363cdd99 Make right half of VRuler inactive.
This is a buffer zone to reduce risk of accidental activation of VRuler scaling.
2017-12-08 22:16:18 +00:00
James Crook
f463eda36c Clean up some dead code and MSVC warnings.
- Dead code from experiments in SelectionBar removed.
- Many warnings about unused parameters fixed with WXUNUSED()
- Many warnings about signed / unsigned comparisons cleaned up.
- Several 'local variable declared but not used' warnings fixed.
2017-12-08 15:20:39 +00:00
James Crook
b63e61d8e9 Menu item scrub -> seek and accelerator tweaks.
The scrub submenu only contained seek commands.
Merging the menus meant duplicated 'c' accelerator.
2017-12-08 10:59:38 +00:00
James Crook
1d05f14b07 Merged Ext-Bar and Ext-Command menus.
The toggle to switch the extra menu(s) on or off still says 'menus' (plural).  Decided not to change it as the submenus count as 'menus'.  Also we may later add extra menus to the track drop down and in other places.
2017-12-08 10:51:46 +00:00
Paul Licameli
161a869102 Version 2.2.2 is open for alpha development 2017-12-07 22:21:55 -05:00
Antonio Ospite
d70eb74c4c Make exported label tracks locale-independent
Currently, when Audacity exports labels tracks numbers are formatted
with the "%f" specifier, which relies on the current user locale to pick
up the decimal separator.

This means that the numbers indicating the start and the end of the
labeled interval could end up using a comma as a decimal separator.

This makes the exported file less portable, especially in the case of
parsing the exported file with an external tool.

Audacity is already able to _import_ labels tracks independently of the
locale because it uses Internat::CompatibleToDouble(), so do something
symmetric at _export_ time, using Internat::ToString() to make the
exported data locale-independent (i.e. always using a dot as the decimal
separator).

Proposed in https://sourceforge.net/p/audacity/mailman/message/35534945/

NOTE:

When converting numbers to strings FLT_DIG is passed as the
digitsAfterDecimalPoint argument of Internat::ToString(), this is in
order to preserve the look and the alignment of the previous "%f" format
specifier; without that Internat::ToString() would strip trailing zeros.

Audacity requires C++11, this ensures that FLT_DIG is defined.
2017-11-29 11:30:48 -05:00
Paul Licameli
db2074dfc2 Bug1791: Quick-play looped should begin where you pick...
... Was broken at commit 2cbdd1cc43
2017-11-29 11:16:01 -05:00
Paul Licameli
c55ad85527 Display translator credit only for the chosen locale 2017-11-28 09:17:27 -05:00
Olivier Humbert
0d89bc3f15 Fix some typos in msgids, thanks to Olivier Humbert...
... Fix the source code; fix up msgids in audacity.pot and *.po
2017-11-27 23:12:37 -05:00
Paul Licameli
653fa2d354 Fix progress dialog for export of FLAC 2017-11-27 21:17:41 -05:00
Paul Licameli
5723a7c38f audacity.desktop.in for ja, zh_CN, and zh_TW (thanks to mkpoli) 2017-11-25 17:10:35 -05:00
Paul Licameli
61f4284e10 Make append-recording insert clip boundaries again 2017-11-24 12:29:36 -05:00
Paul Licameli
afdcded32d Make Release build 2017-11-23 01:24:54 -05:00
Paul Licameli
0532f9be37 More sanity checking in file save ...
... against corruption as seen in:

http://forum.audacityteam.org/viewtopic.php?f=47&t=97787

Maybe this early check would have alerted the user sooner and prevented
trouble.
2017-11-22 22:41:35 -05:00
Paul Licameli
9c028c0761 Certain sanity checks against crash or bad behavior on corrupt projects...
... Such projects as described in
http://forum.audacityteam.org/viewtopic.php?f=47&t=97787

(That thread did not describe the crashes, but I came across them, debugging,
or deduced the possibility of them)

In which all the shared_ptrs to BlockFile objects ended up pointing at one
common file; but the size of this file was sometimes larger than the
Sequence's maximum block size, or not the same as the difference between one
block's start offset and the next one's.
2017-11-22 22:27:01 -05:00
Paul Licameli
5ea729e77f audacity.desktop.in for nl (thanks to Thomas De Rocker) 2017-11-21 07:25:05 -05:00
Paul Licameli
44e6f3e3e1 audacity.desktop.in for hi (thanks to Bashishtha Singh) 2017-11-21 07:25:05 -05:00
Hussam Eddin Alhomsi
b64ba45b14 Add Arabic translation for audacity.desktop.in. 2017-11-21 07:04:14 -05:00
Paul Licameli
92691d8485 Bug1784: Changed conditions for exceptions from Sequence...
... That for SetSamples was too strict, making needless errors in case of
harmless zero-length clips.

The one for Get was analogous to SetSamples.

That for Delete was too lax.  But reexamination shows the stricter condition
to be satisfied in all calls.  Sequence::Delete() can be reached only from
WaveClip::Clear and WaveClip::ClearAndAddCutLine(), and all calls to those
are in WaveTrack.cpp.
2017-11-20 21:42:32 -05:00
Paul Licameli
6e72aed6a5 Sequence consistency check will not throw in 2.2.1 2017-11-20 20:28:04 -05:00
Paul Licameli
2068662954 Replaced one THROW_INCONSISTENCY_EXCEPTION with othe precautions 2017-11-20 19:01:48 -05:00
Paul Licameli
21787621f3 Comment aids reasoning about preconditions for Sequence methods 2017-11-20 19:01:48 -05:00
Steve Daulton
430bd12304 Fix Regular Interval Labels
Save control values for NYQ_CTRL_INT_TEXT
2017-11-20 20:30:45 +00:00
Paul Licameli
5354a788cf audacity.desktop.in for pt_PT (thanks to Bruno Ramalhete) 2017-11-20 12:36:12 -05:00
Paul Licameli
8426d87e07 audacity.desktop.in for el (thanks to Dimitris Spingos (Δημήτρης Σπίγγος)) 2017-11-20 09:53:58 -05:00
Paul Licameli
c1779c843a audacity.desktop.in for pt_BR (thanks to Cleber Tavano) 2017-11-19 20:43:26 -05:00
Paul Licameli
08d63aa361 Fix roundoff bug in NumericTextCtrl 2017-11-19 11:04:08 -05:00
Paul Licameli
1d311651e8 comment 2017-11-19 11:04:07 -05:00
Paul Licameli
f136b5c530 Reviewed uses of InconsistencyException outside Sequence.cpp 2017-11-19 01:48:41 -05:00
Paul Licameli
2f40c1c77e Don't use InsertSilence when previewing effects 2017-11-19 01:48:40 -05:00
Paul Licameli
dc76988bdd Menu name change to "&Export" was a bit late for localization...
... But see comments:  "Export" (though not "&Export") was already in
audacity.pot for 2.2.0
2017-11-18 21:47:52 -05:00
James Crook
a49f14ad02 doxygen. Class list completed for letter 'A'. 2017-11-09 18:32:29 +00:00
Steve Daulton
a612af5c05 Rename File > Save Other to File > Export
In response to user feedback that the Export command could
not be found.
2017-11-08 17:55:08 +00:00
Paul Licameli
b94b49265a Don't make orphans in original after save-as 2017-11-08 03:52:40 -05:00
Paul Licameli
1007980bcf fix a comment 2017-11-08 03:52:40 -05:00
James Crook
0bae8c3a90 Bug 1774 - Recording does not honor waveform color
New clip now takes colour from WaveTrack, and new WaveTrack takes colour of the WaveTrack its clips will be appended onto.
2017-11-07 14:26:32 +00:00
James Crook
c28be778e2 Linty fixes
This commit fixes a number of warnings shown in compilation with MSVC.  No behavioral changes intended.  I did not fix signed/unsigned warnings.
2017-11-07 14:23:30 +00:00
Yarn366
26a6815db8 Fixed the value of MAX_HIGH_SURROGATE 2017-11-06 21:15:56 +00:00
Yarn366
f667b9f269 When escaping characters for XML, don't escape valid surrogate pairs on platforms where wchar_t (and, by extension, wxUChar) is 2 bytes. Also, ignore invalid surrogates and the noncharacters U+FFFE and U+FFFF. 2017-11-06 21:15:56 +00:00
Paul Licameli
25a65c34e7 Fix bad punctuation, thanks to Joachim Huffer, update .pot again 2017-11-06 13:26:15 -05:00