Multiple export overwrite option

Effects, Recipes, Interfacing with other software, etc.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
mickthefish
Posts: 145
Joined: Fri Jun 26, 2015 11:40 am
Operating System: Windows XP

Multiple export overwrite option

Post by mickthefish » Wed Jul 29, 2015 8:49 am

when using (export multiple) in audacity,is there any way to permenantly untick the (overwrite existing file) box as i keep forgetting to unclick it.it would also save time as i use quite a lot--mickthefish.
Last edited by steve on Wed Jul 29, 2015 1:30 pm, edited 1 time in total.
Reason: Given topic a more relevant title

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Multiple export overwrite option

Post by steve » Wed Jul 29, 2015 1:29 pm

No there isn't.

I'll move this to the "adding features" part of the forum.
I agree that it would be better if the user setting was retained, (and for safety, the default set to unchecked, don't overwrite).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

waxcylinder
Forum Staff
Posts: 14685
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Multiple export overwrite option

Post by waxcylinder » Wed Jul 29, 2015 5:57 pm

steve wrote:I agree that it would be better if the user setting was retained, (and for safety, the default set to unchecked, don't overwrite).
+1 from me to that

@Steve: do you have the skills to "make it so" :?:

Peter
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Multiple export overwrite option

Post by Gale Andrews » Wed Jul 29, 2015 8:29 pm

waxcylinder wrote:
steve wrote:I agree that it would be better if the user setting was retained, (and for safety, the default set to unchecked, don't overwrite).
+1 from me to that

@Steve: do you have the skills to "make it so" :?:

Peter
+1 but I don't want to default to off unless the user's setting is retained. I think most users want to overwrite.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Edgar
Forum Crew
Posts: 2043
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Re: Multiple export overwrite option

Post by Edgar » Thu Jul 30, 2015 8:07 pm

waxcylinder wrote:@Steve: do you have the skills to "make it so"
It's a very simple change; currently (before the change to wxWidgets 3) the code looks like (in \src\export\ExportMultiple.cpp at or near line number 352):

Code: Select all

   S.StartHorizontalLay(wxEXPAND, false);
   {
      mOverwrite = S.Id(OverwriteID).AddCheckBox(_("Overwrite existing files"), wxT("true"));
   }
   S.EndHorizontalLay();
needs two additional statements:

Code: Select all

   S.StartHorizontalLay(wxEXPAND, false);
   {
      wxString overwriteExisting(wxT("true"));
      gPrefs->Read(wxT("/Export/OverwriteExisting"), &overwriteExisting, wxT("true"));
      mOverwrite = S.Id(OverwriteID).TieCheckBox(_("Overwrite existing files"), overwriteExisting, wxT("true"));
   }
   S.EndHorizontalLay();
and the changeover from a generic wxWidgets checkbox to a Preferences-aware TieCheckBox.
-Edgar
running Audacity personally customized 2.0.6 daily in a professional audio studio
occasionally using current Audacity alpha for testing and support situations
64-bit Windows Pro 10

mickthefish
Posts: 145
Joined: Fri Jun 26, 2015 11:40 am
Operating System: Windows XP

Re: Multiple export overwrite option

Post by mickthefish » Fri Jul 31, 2015 12:38 pm

Hi Gale-I suppose it depends on what project your working on wether you prefer the checkbox (ticked or un-ticked)if as you say most people prefer it set to overwrite.not an easy FIX for me though!-mickthefish.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Multiple export overwrite option

Post by steve » Mon Aug 03, 2015 12:41 pm

Edgar wrote:
waxcylinder wrote:@Steve: do you have the skills to "make it so"
It's a very simple change; currently (before the change to wxWidgets 3) the code looks like (in \src\export\ExportMultiple.cpp at or near line number 352):

Code: Select all

   S.StartHorizontalLay(wxEXPAND, false);
   {
      mOverwrite = S.Id(OverwriteID).AddCheckBox(_("Overwrite existing files"), wxT("true"));
   }
   S.EndHorizontalLay();
needs two additional statements:

Code: Select all

   S.StartHorizontalLay(wxEXPAND, false);
   {
      wxString overwriteExisting(wxT("true"));
      gPrefs->Read(wxT("/Export/OverwriteExisting"), &overwriteExisting, wxT("true"));
      mOverwrite = S.Id(OverwriteID).TieCheckBox(_("Overwrite existing files"), overwriteExisting, wxT("true"));
   }
   S.EndHorizontalLay();
and the changeover from a generic wxWidgets checkbox to a Preferences-aware TieCheckBox.
How about just:

Code: Select all

   {
      mOverwrite = S.Id(OverwriteID).TieCheckBox(_("Overwrite existing files"),
                                                 wxT("/Export/OverwriteExisting"),
                                                 true);
   }
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Multiple export overwrite option

Post by steve » Mon Aug 03, 2015 3:05 pm

Done in commit 246a8c
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

waxcylinder
Forum Staff
Posts: 14685
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Multiple export overwrite option

Post by waxcylinder » Mon Aug 03, 2015 3:46 pm

Just saw that on the commit list :)
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

Edgar
Forum Crew
Posts: 2043
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Re: Multiple export overwrite option

Post by Edgar » Tue Aug 04, 2015 11:09 pm

steve wrote: How about just:

Code: Select all

   {
      mOverwrite = S.Id(OverwriteID).TieCheckBox(_("Overwrite existing files"),
                                                 wxT("/Export/OverwriteExisting"),
                                                 true);
   }
I tried that first and got a compiler warning (maybe because "true" can be defined as a BOOL or as an INT depending on the OS and/or compiler). If you search the code for other instances where we use a TieCheckBox you will see that, historically, it is done the way I did it. FYI your way does not work on my system (Windows 7, MSVS 2010 & 2013, WxWidgets 2.8 - next week I should be on Windows 10, MSVS 2015 & wxWidgets 3.0).
-Edgar
running Audacity personally customized 2.0.6 daily in a professional audio studio
occasionally using current Audacity alpha for testing and support situations
64-bit Windows Pro 10

Post Reply