~stol/kicad/bug1450795

« back to all changes in this revision

Viewing changes to pcbnew/dialogs/dialog_freeroute_exchange.cpp

  • Committer: Wayne Stambaugh
  • Date: 2015-09-25 19:38:09 UTC
  • Revision ID: stambaughw@verizon.net-20150925193809-ld3pik4nck8qbvnl
Default and most recently used path fixes. (fixes: 1494210)

* Rename Eda_FileSelector to EDA_FILE_SELECTOR.
* Add optional pointer to wxString to save the most recently used path to EDA_FILE_SELECTOR.
* Rename Eda_DirectorySelector to EDA_PATH_SELECTOR.
* Replace wxGetCwd() with wxStandardPaths::GetDocumentsDir().  This fixes the windows issue
  where wxGetCwd() returns the path where the executable files are located.
* Add code to handle most recently used path to EDA_BASE_FRAME.
* Fix string formatting error in kicad/files-io.cpp.
* Remove setting and restoring current working directory when launching GerbView.  Setting the CWD
  has no effect on the launched executable which starts with it's own CWD.
* Allow project path to be passed to GerbView when launched from KiCad.
* Note: this is a work in progress.  Do not expect every path and/or file selection dialog to properly
  update the most recently used path.  The correct solution to this problem requires a much more
  well though out solution which will not happen until after the next stable release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
    fn.SetExt( dsn_ext );
192
192
    wxString mask    = wxT( "*." ) + dsn_ext;
193
193
 
194
 
    wxString fullFileName = EDA_FileSelector( _( "Specctra DSN file:" ),
195
 
                                     fn.GetPath(), fn.GetFullName(),
196
 
                                     dsn_ext, mask,
197
 
                                     this, wxFD_SAVE, false );
 
194
    wxString fullFileName = EDA_FILE_SELECTOR( _( "Specctra DSN file:" ),
 
195
                                               fn.GetPath(), fn.GetFullName(),
 
196
                                               dsn_ext, mask,
 
197
                                               this, wxFD_SAVE, false );
198
198
 
199
199
    if( !fullFileName.IsEmpty() )
200
200
    {