Commit aceb988a authored by charras's avatar charras

Fixed: Cvpcb: Open net list command not working

parent d1e0429a
...@@ -129,6 +129,8 @@ BEGIN_EVENT_TABLE( WinEDA_CvpcbFrame, wxFrame ) ...@@ -129,6 +129,8 @@ BEGIN_EVENT_TABLE( WinEDA_CvpcbFrame, wxFrame )
EVT_MENU_RANGE( wxID_FILE1, wxID_FILE9, WinEDA_CvpcbFrame::LoadNetList ) EVT_MENU_RANGE( wxID_FILE1, wxID_FILE9, WinEDA_CvpcbFrame::LoadNetList )
// Menu events // Menu events
EVT_MENU( ID_LOAD_PROJECT,
WinEDA_CvpcbFrame::LoadNetList )
EVT_MENU( ID_SAVE_PROJECT, EVT_MENU( ID_SAVE_PROJECT,
WinEDA_CvpcbFrame::SaveQuitCvpcb ) WinEDA_CvpcbFrame::SaveQuitCvpcb )
EVT_MENU( ID_CVPCB_QUIT, EVT_MENU( ID_CVPCB_QUIT,
...@@ -386,29 +388,33 @@ void WinEDA_CvpcbFrame::DelAssociations( wxCommandEvent& event ) ...@@ -386,29 +388,33 @@ void WinEDA_CvpcbFrame::DelAssociations( wxCommandEvent& event )
void WinEDA_CvpcbFrame::LoadNetList( wxCommandEvent& event ) void WinEDA_CvpcbFrame::LoadNetList( wxCommandEvent& event )
/***********************************************************/ /***********************************************************/
/* Fonction liee au boutton "Load" /* Called when click on Load Netlist button or by menu files
* Lit la netliste * Read a netlist slected by user
*/ */
{ {
bool newfile; bool newfile;
wxString oldfilename; wxString oldfilename;
wxString fn; wxString fullfilename;
int id = event.GetId();
fn = GetFileFromHistory( event.GetId(), _( "Gerber" ) ); // Get a filename from history. if fullfilename is void,
// a name will be asked to user, later.
if ( id >= wxID_FILE1 && id <= wxID_FILE9 ) // Called by clicking on an old filename in file history
fullfilename = GetFileFromHistory( event.GetId(), _( "Netlist" ) );
if( !NetInNameBuffer.IsEmpty() ) if( !NetInNameBuffer.IsEmpty() )
{ {
oldfilename = NetInNameBuffer; oldfilename = NetInNameBuffer;
} }
if( fn != wxEmptyString ) // Read the file fullfilename. If fullfilename is void,
{ // The user will be prompted for a filename.
newfile = ReadInputNetList( fn ); // newfile = true if a file is read.
newfile = ReadInputNetList( fullfilename );
if( newfile && !oldfilename.IsEmpty() ) if( newfile && !oldfilename.IsEmpty() )
{ {
SetLastProject( NetInNameBuffer ); SetLastProject( NetInNameBuffer );
}
} }
ReCreateMenuBar(); ReCreateMenuBar();
......
...@@ -207,7 +207,7 @@ bool WinEDA_CvpcbFrame::ReadInputNetList( const wxString& FullFileName ) ...@@ -207,7 +207,7 @@ bool WinEDA_CvpcbFrame::ReadInputNetList( const wxString& FullFileName )
Mask = wxT( "*" ) + NetInExtBuffer; Mask = wxT( "*" ) + NetInExtBuffer;
else else
Mask = wxT( "*.net" ); Mask = wxT( "*.net" );
Line = EDA_FileSelector( _( "Load Net List" ), Line = EDA_FileSelector( _( "Open NetList File:" ),
NetDirBuffer, /* Chemin par defaut */ NetDirBuffer, /* Chemin par defaut */
NetInNameBuffer, /* nom fichier par defaut */ NetInNameBuffer, /* nom fichier par defaut */
NetInExtBuffer, /* extension par defaut */ NetInExtBuffer, /* extension par defaut */
......
No preview for this file type
...@@ -2,8 +2,8 @@ msgid "" ...@@ -2,8 +2,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: kicad\n" "Project-Id-Version: kicad\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-02-21 20:41+0100\n" "POT-Creation-Date: 2009-02-22 11:36+0100\n"
"PO-Revision-Date: 2009-02-21 20:41+0100\n" "PO-Revision-Date: 2009-02-22 11:37+0100\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: kicad team <jean-pierre.charras@ujf-grenoble.fr>\n" "Language-Team: kicad team <jean-pierre.charras@ujf-grenoble.fr>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
...@@ -8998,8 +8998,8 @@ msgid "Unable to create netlist file" ...@@ -8998,8 +8998,8 @@ msgid "Unable to create netlist file"
msgstr "Impossible de créer le fichier netliste " msgstr "Impossible de créer le fichier netliste "
#: cvpcb/init.cpp:210 #: cvpcb/init.cpp:210
msgid "Load Net List" msgid "Open NetList File:"
msgstr "Lire Netliste" msgstr "Ouvrir Fichier Netliste:"
#: cvpcb/autosel.cpp:70 #: cvpcb/autosel.cpp:70
#, c-format #, c-format
...@@ -9037,7 +9037,7 @@ msgstr "Redessin (F3)" ...@@ -9037,7 +9037,7 @@ msgstr "Redessin (F3)"
msgid "1:1 zoom" msgid "1:1 zoom"
msgstr "1:1 zoom" msgstr "1:1 zoom"
#: cvpcb/cvframe.cpp:213 #: cvpcb/cvframe.cpp:215
msgid "" msgid ""
"Net and component list modified.\n" "Net and component list modified.\n"
" Save before exit ?" " Save before exit ?"
...@@ -9045,35 +9045,31 @@ msgstr "" ...@@ -9045,35 +9045,31 @@ msgstr ""
"Netlist et liste composants modifiés,\n" "Netlist et liste composants modifiés,\n"
"Sauver avant de quitter ?" "Sauver avant de quitter ?"
#: cvpcb/cvframe.cpp:236 #: cvpcb/cvframe.cpp:238
msgid "Problem when saving files, exit anyway ?" msgid "Problem when saving files, exit anyway ?"
msgstr "Problème en sauvant les fichiers, quitter quand même" msgstr "Problème en sauvant les fichiers, quitter quand même"
#: cvpcb/cvframe.cpp:365 #: cvpcb/cvframe.cpp:367
msgid "Delete selections" msgid "Delete selections"
msgstr "Effacement des associations existantes" msgstr "Effacement des associations existantes"
#: cvpcb/cvframe.cpp:397 #: cvpcb/cvframe.cpp:461
msgid "Gerber"
msgstr "Gerber "
#: cvpcb/cvframe.cpp:455
msgid "Dialog boxes" msgid "Dialog boxes"
msgstr "Fenêtres de dialogue" msgstr "Fenêtres de dialogue"
#: cvpcb/cvframe.cpp:460 #: cvpcb/cvframe.cpp:466
msgid "Lists" msgid "Lists"
msgstr "Listes" msgstr "Listes"
#: cvpcb/cvframe.cpp:465 #: cvpcb/cvframe.cpp:471
msgid "Status box" msgid "Status box"
msgstr "Fenêtre d'état" msgstr "Fenêtre d'état"
#: cvpcb/cvframe.cpp:471 #: cvpcb/cvframe.cpp:477
msgid "&Font" msgid "&Font"
msgstr "&Fonte" msgstr "&Fonte"
#: cvpcb/cvframe.cpp:472 #: cvpcb/cvframe.cpp:478
msgid "Choose font type and size for dialogs, information and status box" msgid "Choose font type and size for dialogs, information and status box"
msgstr "Choisir les fontes et leur taille pour les dialogues, infos et ligne d'état" msgstr "Choisir les fontes et leur taille pour les dialogues, infos et ligne d'état"
...@@ -11037,6 +11033,10 @@ msgstr "DCodes id." ...@@ -11037,6 +11033,10 @@ msgstr "DCodes id."
msgid "Page Settings" msgid "Page Settings"
msgstr "Ajustage opt Page" msgstr "Ajustage opt Page"
#~ msgid "Load Net List"
#~ msgstr "Lire Netliste"
#~ msgid "Gerber"
#~ msgstr "Gerber "
#~ msgid "&Delete layer" #~ msgid "&Delete layer"
#~ msgstr "&Effacer couche" #~ msgstr "&Effacer couche"
#~ msgid "Export this Via Hole to Alt Value" #~ msgid "Export this Via Hole to Alt Value"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment