Commit cf460637 authored by dickelbeck's avatar dickelbeck
Browse files

beginnings of the 2 specctra imports

parent 822017c7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -5,6 +5,12 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
email address.

2008-Feb-6 UPDATE   Dick Hollenbeck <dick@softplc.com>
================================================================================
+pcbnew
    started specctra imports of *.ses and *.dsn, by adding menus to File | Import.


2008-Feb-4 UPDATE   Dick Hollenbeck <dick@softplc.com>
================================================================================
+pcbnew
+4 −3
Original line number Diff line number Diff line
@@ -95,9 +95,10 @@ enum main_id {
    ID_GEN_EXPORT_SPECCTRA,
	ID_GEN_EXPORT_FILE_GENCADFORMAT,
	ID_GEN_EXPORT_FILE_MODULE_REPORT,
	ID_GEN_EXPORT_FILE_FORMAT_2,		// Not used
	ID_GEN_EXPORT_FILE_FORMAT_3,		// Not used
	ID_GEN_EXPORT_FILE_FORMAT_4,		// Not used
    
	ID_GEN_IMPORT_FILE,
    ID_GEN_IMPORT_SPECCTRA_SESSION,
	ID_GEN_IMPORT_SPECCTRA_DESIGN,

	ID_EXIT,
	ID_OPTIONS_SETUP,
+19 −1
Original line number Diff line number Diff line
@@ -385,7 +385,25 @@ public:
     * See http://www.autotraxeda.com/docs/SPECCTRA/SPECCTRA.pdf for the
     * specification.
     */
    void                ExportToSPECCTRA( wxCommandEvent& event );
    void                ExportToSpecctra( wxCommandEvent& event );

    /**
     * Function ImportSpecctraSession
     * will import a specctra *.ses file and use it to relocate MODULEs and 
     * to replace all vias and tracks in an existing and loaded BOARD.
     * See http://www.autotraxeda.com/docs/SPECCTRA/SPECCTRA.pdf for the
     * specification.
     */
    void                ImportSpecctraSession( wxCommandEvent& event );

    /**
     * Function ImportSpecctraDesign
     * will import a specctra *.dsn file and use it to replace an entire BOARD. 
     * The new board will not have any graphics, only components, tracks and vias.
     * See http://www.autotraxeda.com/docs/SPECCTRA/SPECCTRA.pdf for the
     * specification.
     */
    void                ImportSpecctraDesign( wxCommandEvent& event );
    
    /* Fonctions specifiques */
    MODULE*             ListAndSelectModuleName();
+1 −0
Original line number Diff line number Diff line
@@ -121,6 +121,7 @@ SET(PCBNEW_SRCS
    solve.cpp
    specctra.cpp
    specctra_export.cpp
    specctra_import.cpp
    surbrill.cpp
    swap_layers.cpp
    tool_modedit.cpp
+19 −0
Original line number Diff line number Diff line
@@ -116,6 +116,25 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
		ADD_MENUITEM_WITH_HELP_AND_SUBMENU(m_FilesMenu, submenuexport,
			ID_GEN_EXPORT_FILE, _("E&xport"), _("Export board"), export_xpm);

                
        //-----<Add import menu>-----------------------------------------------
        // no separator, keep it next to Import
		wxMenu * submenuImport = new wxMenu();

		item = new wxMenuItem(submenuImport, ID_GEN_IMPORT_SPECCTRA_SESSION,
			_("&Specctra Session"), _("Import a routed \"Specctra Session\" (*.ses) file") );
	    item->SetBitmap(export_xpm);    // @todo need better bitmap
		submenuImport->Append(item);
        
		item = new wxMenuItem(submenuImport, ID_GEN_IMPORT_SPECCTRA_DESIGN,
			_("&Specctra Design"), _("Import a \"Specctra Design\" (*.dsn) file") );
	    item->SetBitmap(export_xpm);    // @todo need better bitmap
		submenuImport->Append(item);

		ADD_MENUITEM_WITH_HELP_AND_SUBMENU(m_FilesMenu, submenuImport,
			ID_GEN_IMPORT_FILE, _("Import"), _("Import files"), export_xpm);
        //-----</Add import menu>----------------------------------------------
        
		// Add archive footprints menu
		m_FilesMenu->AppendSeparator();
		wxMenu * submenuarchive = new wxMenu();
Loading