Paul Licameli
34f318cd41
Remove wx/{imaglist,generic/dragimgg,gauge,dynarray}.h from *.h
2019-03-30 12:51:12 -04:00
Paul Licameli
4e9c3cfb5f
Remove wx/{dc,tokenzr,tglbtn,statusbr,simplebook}.h from *.h
2019-03-29 06:29:35 -04:00
Paul Licameli
7766d9a192
AddCheckBox takes a bool for initial state, not string
2019-03-27 12:58:40 -04:00
Paul Licameli
1bcb7c20a5
Remove some nested #include from Project.h
2019-03-16 13:09:54 -04:00
Paul Licameli
dd86346156
ShuttlegGUI: const wxArrayStringEx & arguments, not wxArrayString *...
...
... for choice, combo, and listbox; reference allows passing temporaries,
eliminating need for some variables to hold the string arrays.
2019-03-16 07:17:21 -04:00
Paul Licameli
a30000cf74
Use type aliases FilePath, FilePaths...
...
... for wxString and wxArrayStringEx, holding file paths (absolute or relative,
directory or plain file); to be replaced later with different types
(not yet using std::vector, becase of some uses of wxArrayString::Index with
two arguments)
2019-03-15 15:18:11 -04:00
Paul Licameli
50074f2cfe
Replace comparisons against "" with empty()
2019-03-14 13:23:41 -04:00
Paul Licameli
c68e336247
More use of std:: style members of wxString...
...
... replacing:
Length => length
Len => length
2019-03-10 14:44:54 -04:00
Paul Licameli
2db49dc1f0
Use standard library style members of wxArrayString (and wxString) ...
...
... which will make it easier to change the types of those containers to
std::vectors of other string-like classes
for wxString,
IsEmpty => empty
Clear => clear
Alloc => reserve
for wxArrayString,
Count => size
GetCount => size
IsEmpty => empty
Add => push_back
Clear => clear
Empty => clear
Sort => std::sort (only with default comparator)
SetCount => resize
Last => back
Item => operator []
Alloc => reserve
2019-03-10 14:43:57 -04:00
James Crook
5fd95dd131
Fix C4456 Warnings.
...
"C4456 declaration hides previous local declaration."
These arise from repeated declarations of the same name.
2018-10-10 17:28:50 +01:00
Paul Licameli
3eee8b8cf0
Rewrite many iterations over tracks and channels in src/import, src/export
2018-10-01 11:24:50 -04:00
James Crook
ee2d8c11cb
Bug 1928 - Export Multiple with a label track present defaults to export by tracks not labels
2018-08-10 19:25:21 +01:00
Steve Daulton
217c1267bd
Add Help button to Export Multiple dialog
2018-08-09 20:49:44 +01:00
James Crook
8c15422211
Allow 'Export Multiple' of a single track.
2018-04-01 17:52:34 +01:00
Paul Licameli
080dd34e61
Get rid of wx object arrays, use std::vector
2018-02-21 19:33:27 -05:00
Paul Licameli
d4b21bb33e
Bug 1600: Should keep progress dialog visible throughout Exp. Multi
2018-01-25 15:58:37 -05:00
Paul Licameli
2677ec5fe1
Bug1831: Export Multi fails? Erase incomplete, restore original file!
2018-01-24 14:38:44 -05:00
Paul Licameli
8e0cffb7f2
Simplify GuardedCall and default its return type to void
2018-01-13 01:32:41 -05:00
Paul Licameli
80a958f8a4
Rewrite empty prompts to ShuttleGUI functions as {} ...
...
... so we might more easily redefine the type of the function argument,
some other day (not this release)
2018-01-01 22:51:25 -05:00
Paul Licameli
e0970ad1e8
Remove unnecesary Format, Printf, casts to wxString
2018-01-01 21:53:51 -05:00
Paul Licameli
7fd78183d2
Remove needless uses of wxString::c_str() in wxString::Format...
...
... and similar wx "variadics," which all treat wxString smartly enough that
you don't need this.
Don't need c_str either to convert wxString to const wxChar * because
wxString has a conversion operator that does the same.
2018-01-01 20:34:33 -05:00
Paul Licameli
cf4b9eb5c8
Define wxDirDialogWrapper, with localized default prompt and name
2018-01-01 17:50:04 -05:00
Paul Licameli
af290d73c0
Define AudacityTextEntryDialog wrapper around wxTextEntryDialog...
...
... Prohibiting use of the default caption which is unlocalized. (But we
didn't use it in fact anywhere.)
2018-01-01 17:50:03 -05:00
Paul Licameli
ccb4bbac33
Translate "Message" as default title of message box...
...
... This required a sweeping change of all calls to wxMessageBox! But it seems
safe to me, despite the great number of touched files.
2018-01-01 17:50:02 -05:00
Paul Licameli
a5dfff4bd2
Fix message box for completed Export Multiple which got lost in 2.2.0
2017-11-04 21:00:01 -04:00
Paul Licameli
a9d4c2c05b
Defaulting of file paths to Documents is defined in just one place
2017-08-03 08:02:19 -04:00
Paul Licameli
6b5c5a0335
More simplifications by use of SelectionStateChanger
2017-06-11 11:21:36 -04:00
Paul Licameli
967e1fcf02
More exception safety for selection states of tracks
2017-04-24 13:08:31 -04:00
Paul Licameli
6c4cf46c06
Move mute and solo state into PlayableTrack
2017-03-29 13:45:08 -04:00
Paul Licameli
48459404a5
Exception safety in: general exporting routines
2017-03-21 14:11:22 -04:00
Paul Licameli
d9be2be137
Restore selected status of tracks correctly in export multiple
2017-03-17 17:52:36 -04:00
Paul Licameli
aa0d55ac83
Use enum class ProgressResult, don't interconvert with int or bool
2017-03-17 17:52:24 -04:00
Paul Licameli
b019e28a53
remove unused variable
2017-03-17 17:52:23 -04:00
James Crook
ec12bc37b5
Bug 1580 - Enh: New default directory for Save and Export .../Documents/Audacity
...
Fix affects windows only.
In the case of Save and SaveAs creates the directory too, so that the dialog can be positioned there.
For Export Multiple, will prompt if the directory does not exist.
2017-02-06 15:38:20 +00:00
James Crook
97bf72ddb4
Bug 1304 - Starting Save or Export directory is not set, so is unwritable or requires authentication for most users
...
Covers the case of Export Multiple too.
2017-01-18 14:19:06 +00:00
James Crook
389b0f197e
Improve source for xgettext
...
1: Mark % as not being treated as print formatting.
2: i18n hint fix.
2016-11-21 10:31:52 +00:00
James Crook
796b98de8b
Bug 1510 - Moonphase: Crash cancelling Save As... character replacement dialogue when exporting multiple by tracks
...
Bug no longer moonphase when exporting stereo. Iterator is iterating through channels, not tracks, so we need to allow for that when we skip whole tracks.
2016-09-10 20:00:32 +01:00
Paul Licameli
2263a0f477
Don't use wxArrayPtrVoid with casts, use std::vector
2016-09-08 11:08:49 -04:00
James Crook
b56ea0599b
Bug 1440 - (Residual) Error message looks funny on Mac as only ":" is disallowed.
...
Previously the dialog listed multiple characters that are disallowed. On Mac, only ":" is disallowed, so the text in that case can't say "any of" without looking funny.
2016-09-07 15:53:44 +01:00
Paul Licameli
67cec5ad83
Make many counts of tracks and channels unsigned...
...
... And in some places where a library uses signed types, assert that
the reported number is not negative.
What led me to this, is that there are many places where a size_t value for
an allocation is the product of a number of channels and some other number.
2016-09-07 10:11:41 -04:00
James Crook
7c7fc55bc2
Bug 1440 - Cancelling Export Multiple by labels containing illegal characters exports the cancelled file with empty name.
...
Also made ExportMultipleByTrack more like ExportMultipleByLabel in that it continues on exporting tracks even if one track has a bad name.
2016-07-15 16:20:25 +01:00
Paul Licameli
84c0337aba
Fix TAB key navigation on Mac for all dialogs (not only for panels)
2016-07-10 17:12:27 -04:00
Paul Licameli
02ce3c312b
Bug119: Export Multiple /, *, ? handled incorrectly
2016-06-20 22:32:23 -04:00
Paul Licameli
c3cca71461
Sweep for filename copying: import and export
2016-04-10 22:24:12 -04:00
Paul Licameli
456c8fb01e
ExportPlugins managed with smart pointers
2016-04-06 14:08:42 -04:00
Paul Licameli
43790cfa56
std::vector for wave track pointers; remove deprecated TrackList function; ...
...
... and some more uses of const
2016-03-01 20:54:48 -05:00
Paul Licameli
a5b6c9fd8f
Add some const qualifiers; define TrackListConstIterator
2016-02-24 19:10:39 -05:00
Paul Licameli
83e8a80f61
Sweep unnecessary wxString copies: export
2016-02-22 22:22:25 -05:00
Paul Licameli
3f237daddc
Use macro safenew for many allocations of wxWindow subclasses
2016-02-14 20:20:19 -05:00
Steve Daulton
d6b8080a5d
Fix for bug 1313
2016-01-29 22:12:41 +00:00