~stol/kicad/bug1450795

« back to all changes in this revision

Viewing changes to eeschema/libedit_plot_component.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:
71
71
 
72
72
            wxString pro_dir = wxPathOnly( Prj().GetProjectFullName() );
73
73
 
74
 
            fullFileName = EDA_FileSelector( _( "Filename:" ), pro_dir,
 
74
            fullFileName = EDA_FILE_SELECTOR( _( "Filename:" ), pro_dir,
75
75
                                             fn.GetFullName(), file_ext, mask, this,
76
76
                                             wxFD_SAVE, true );
77
77
 
94
94
 
95
95
            wxString pro_dir = wxPathOnly( Prj().GetProjectFullName() );
96
96
 
97
 
            fullFileName = EDA_FileSelector( _( "Filename:" ), pro_dir,
98
 
                                             fn.GetFullName(), file_ext, mask, this,
99
 
                                             wxFD_SAVE, true );
 
97
            fullFileName = EDA_FILE_SELECTOR( _( "Filename:" ), pro_dir,
 
98
                                              fn.GetFullName(), file_ext, mask, this,
 
99
                                              wxFD_SAVE, true );
100
100
 
101
101
            if( fullFileName.IsEmpty() )
102
102
                return;