CvPcb: Code cleanup. Rename WinEDA_CvpcbFrame to CVPCB_MAINFRAME, according to coding style policy.

Change in CvPcb: CvPcb now does not use .dcm files, only .mod files to read modules keywords and doc
This commit is contained in:
jean-pierre charras 2011-02-05 19:00:05 +01:00
commit da106200c8
37 changed files with 1375 additions and 1088 deletions

View File

@ -4,6 +4,16 @@ KiCad ChangeLog 2010
Please add newer entries at the top, list the date and your name with
email address.
2011-Feb-05, UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
================================================================================
CvPcb:
Code cleanup. Rename WinEDA_CvpcbFrame to CVPCB_MAINFRAME,
according to coding style policy.
Change in CvPcb:
CvPcb does not use now .dcm files, only .mod files,
to read modules keywords and doc
2011-Feb-2 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================
++common:

View File

@ -187,6 +187,7 @@ set(BITMAP_SRCS
Lang_Es.xpm
Lang_Fr.xpm
Lang_Fi.xpm
Lang_Gr.xpm
Lang_Hu.xpm
Lang_It.xpm
Lang_Jp.xpm

38
bitmaps/Lang_Gr.xpm Normal file
View File

@ -0,0 +1,38 @@
/* XPM */
const char *lang_gr_xpm[] = {
/* columns rows colors chars-per-pixel */
"16 16 16 1",
"= c none",
"& c #D6D8F8",
"O c #3939DC",
"+ c #0E12F2",
"# c #A8A6F7",
"o c #2826E4",
": c #B4B6FC",
"* c #8482F4",
"@ c #4745F8",
"- c #1C1EFC",
"; c #1D22FB",
"$ c #9C9AF4",
". c #CAC8FA",
" c #0402FC",
"% c #5456F4",
"X c #7A79F9",
/* pixels */
"================",
" .XoOOOOOoo++++",
" .X @#########$",
"%%&#%*##########",
"&&=&&* ",
" .X %.&&&&&&&&&",
" .X -@@@@@@@@@@",
"@@&$@@@@@@@@@@@@",
" ",
";--;-----------;",
"*XXXXXXXXXXXXXXX",
"&&&&&&&&&&&&&&&&",
" ",
"::::::::::::::::",
"================",
"================"
};

View File

@ -250,8 +250,11 @@ static void InitKiCadAboutNew( AboutAppInfo& info )
wxT( "rafael.sokolowski@web.de" ), wxT( "German (DE)" ),
new wxBitmap( lang_de_xpm ) ) );
info.AddTranslator( new Contributor( wxT( "Kenta Yonekura" ),
wxT( "midpika@hotmail.com" ), wxT( "Japanese (JP)" ),
wxT( "midpika@hotmail.com" ), wxT( "Japanese (JA)" ),
new wxBitmap( lang_jp_xpm ) ) );
info.AddTranslator( new Contributor( wxT( "Milonas Kostas" ),
wxT( "milonas.ko@gmail.com" ), wxT( "Greek (el_GR)" ),
new wxBitmap( lang_gr_xpm ) ) );
/* TODO: are these all russian translators, placed them here now, or else align them below other language maintainer with mail adress */
info.AddTranslator( new Contributor( wxT( "Remy Halvick" ), wxEmptyString, wxT( "Others" ) ) );

View File

@ -148,6 +148,14 @@ static struct LANGUAGE_DESCR s_Language_List[] =
_( "German" )
},
/* Greek language */
{
wxLANGUAGE_GREEK,
ID_LANGUAGE_GREEK,
lang_gr_xpm,
_( "Greek" )
},
/* Slovenian language */
{
wxLANGUAGE_SLOVENIAN,
@ -702,6 +710,11 @@ bool WinEDA_App::SetLanguage( bool first_time )
m_Locale->Init();
retv = false;
}
else if( !first_time )
{
wxLogDebug( wxT( "Search for dictionary %s.mo in %s" ),
GetChars( DictionaryName ), GetChars( m_Locale->GetName() ) );
}
if( !first_time )
{

View File

@ -13,6 +13,7 @@
#include "cvpcb.h"
#include "protos.h"
#include "cvpcb_mainframe.h"
#include "cvstruct.h"
@ -68,7 +69,7 @@ char * ReadQuotedText(wxString & aTarget, char * aText)
* format of a line:
* 'cmp_ref' 'footprint_name'
*/
void WinEDA_CvpcbFrame::AssocieModule( wxCommandEvent& event )
void CVPCB_MAINFRAME::AssocieModule( wxCommandEvent& event )
{
FOOTPRINT_ALIAS_LIST aliases;
FOOTPRINT_ALIAS* alias;

View File

@ -9,7 +9,7 @@
#include "param_config.h"
#include "cvpcb.h"
#include "protos.h"
#include "cvstruct.h"
#include "cvpcb_mainframe.h"
#define GROUP wxT("/cvpcb")
@ -26,7 +26,7 @@
* to define local variables. The old method of statically building the array
* at compile time requiring global variable definitions.
*/
PARAM_CFG_ARRAY& WinEDA_CvpcbFrame::GetProjectFileParameters( void )
PARAM_CFG_ARRAY& CVPCB_MAINFRAME::GetProjectFileParameters( void )
{
if( !m_projectFileParams.empty() )
return m_projectFileParams;
@ -59,7 +59,7 @@ PARAM_CFG_ARRAY& WinEDA_CvpcbFrame::GetProjectFileParameters( void )
* The path of the executable must be in cvpcb.exe.
*
*/
void WinEDA_CvpcbFrame::LoadProjectFile( const wxString& FileName )
void CVPCB_MAINFRAME::LoadProjectFile( const wxString& FileName )
{
wxFileName fn = FileName;
@ -82,13 +82,13 @@ void WinEDA_CvpcbFrame::LoadProjectFile( const wxString& FileName )
}
void WinEDA_CvpcbFrame::Update_Config( wxCommandEvent& event )
void CVPCB_MAINFRAME::Update_Config( wxCommandEvent& event )
{
SaveProjectFile( m_NetlistFileName.GetFullPath() );
}
void WinEDA_CvpcbFrame::SaveProjectFile( const wxString& fileName )
void CVPCB_MAINFRAME::SaveProjectFile( const wxString& fileName )
{
wxFileName fn = fileName;

View File

@ -12,7 +12,7 @@
#include "cvpcb.h"
#include "bitmaps.h"
#include "protos.h"
#include "cvstruct.h"
#include "cvpcb_mainframe.h"
#include "class_DisplayFootprintsFrame.h"
#include "cvpcb_id.h"
@ -46,7 +46,7 @@ END_EVENT_TABLE()
/* DISPLAY_FOOTPRINTS_FRAME: the frame to display the current focused footprint */
/***************************************************************************/
DISPLAY_FOOTPRINTS_FRAME::DISPLAY_FOOTPRINTS_FRAME( WinEDA_CvpcbFrame* father,
DISPLAY_FOOTPRINTS_FRAME::DISPLAY_FOOTPRINTS_FRAME( CVPCB_MAINFRAME* father,
const wxString& title,
const wxPoint& pos,
const wxSize& size, long style ) :
@ -129,7 +129,7 @@ DISPLAY_FOOTPRINTS_FRAME::~DISPLAY_FOOTPRINTS_FRAME()
delete GetScreen();
SetScreen( NULL );
( (WinEDA_CvpcbFrame*) wxGetApp().GetTopWindow() )->DrawFrame = NULL;
( (CVPCB_MAINFRAME*) wxGetApp().GetTopWindow() )->DrawFrame = NULL;
}
/* Called when the frame is closed

View File

@ -10,7 +10,7 @@ class DISPLAY_FOOTPRINTS_FRAME : public WinEDA_BasePcbFrame
public:
public:
DISPLAY_FOOTPRINTS_FRAME( WinEDA_CvpcbFrame* father,
DISPLAY_FOOTPRINTS_FRAME( CVPCB_MAINFRAME* father,
const wxString& title,
const wxPoint& pos, const wxSize& size,
long style = KICAD_DEFAULT_DRAWFRAME_STYLE );

View File

@ -8,6 +8,7 @@
#include "cvpcb.h"
#include "protos.h"
#include "cvpcb_mainframe.h"
#include "cvstruct.h"
@ -15,7 +16,7 @@
/* ListBox handling the schematic components list */
/**************************************************/
COMPONENTS_LISTBOX::COMPONENTS_LISTBOX( WinEDA_CvpcbFrame* parent, wxWindowID id,
COMPONENTS_LISTBOX::COMPONENTS_LISTBOX( CVPCB_MAINFRAME* parent, wxWindowID id,
const wxPoint& loc, const wxSize& size,
int nbitems, wxString choice[] ) :
ITEMS_LISTBOX_BASE( parent, id, loc, size )

View File

@ -8,6 +8,7 @@
#include "cvpcb.h"
#include "protos.h"
#include "cvpcb_mainframe.h"
#include "cvstruct.h"
@ -15,7 +16,7 @@
/* ListBox handling the footprint list */
/***************************************/
FOOTPRINTS_LISTBOX::FOOTPRINTS_LISTBOX( WinEDA_CvpcbFrame* parent,
FOOTPRINTS_LISTBOX::FOOTPRINTS_LISTBOX( CVPCB_MAINFRAME* parent,
wxWindowID id, const wxPoint& loc,
const wxSize& size,
int nbitems, wxString choice[] ) :

View File

@ -13,6 +13,7 @@
#include "cvpcb.h"
#include "protos.h"
#include "cvpcb_mainframe.h"
#include "cvstruct.h"
#include "dialog_cvpcb_config.h"
#include "class_DisplayFootprintsFrame.h"
@ -29,77 +30,77 @@ static const wxString KeepCvpcbOpenEntry( wxT( "KeepCvpcbOpen" ) );
static const wxString FootprintDocFileEntry( wxT( "footprints_doc_file" ) );
BEGIN_EVENT_TABLE( WinEDA_CvpcbFrame, EDA_BASE_FRAME )
EVT_MENU_RANGE( wxID_FILE1, wxID_FILE9, WinEDA_CvpcbFrame::LoadNetList )
BEGIN_EVENT_TABLE( CVPCB_MAINFRAME, EDA_BASE_FRAME )
EVT_MENU_RANGE( wxID_FILE1, wxID_FILE9, CVPCB_MAINFRAME::LoadNetList )
// Menu events
EVT_MENU( ID_LOAD_PROJECT,
WinEDA_CvpcbFrame::LoadNetList )
CVPCB_MAINFRAME::LoadNetList )
EVT_MENU( ID_SAVE_PROJECT,
WinEDA_CvpcbFrame::SaveQuitCvpcb )
CVPCB_MAINFRAME::SaveQuitCvpcb )
EVT_MENU( wxID_EXIT,
WinEDA_CvpcbFrame::OnQuit )
CVPCB_MAINFRAME::OnQuit )
EVT_MENU( ID_GENERAL_HELP,
WinEDA_CvpcbFrame::GetKicadHelp )
CVPCB_MAINFRAME::GetKicadHelp )
EVT_MENU( ID_KICAD_ABOUT,
WinEDA_CvpcbFrame::GetKicadAbout )
CVPCB_MAINFRAME::GetKicadAbout )
EVT_MENU( ID_CONFIG_REQ,
WinEDA_CvpcbFrame::ConfigCvpcb )
CVPCB_MAINFRAME::ConfigCvpcb )
EVT_MENU( ID_CONFIG_SAVE,
WinEDA_CvpcbFrame::Update_Config )
CVPCB_MAINFRAME::Update_Config )
EVT_MENU( ID_CVPCB_CONFIG_KEEP_OPEN_ON_SAVE,
WinEDA_CvpcbFrame::OnKeepOpenOnSave )
CVPCB_MAINFRAME::OnKeepOpenOnSave )
EVT_MENU_RANGE( ID_LANGUAGE_CHOICE,
ID_LANGUAGE_CHOICE_END,
WinEDA_CvpcbFrame::SetLanguage )
CVPCB_MAINFRAME::SetLanguage )
// Toolbar events
EVT_TOOL( ID_CVPCB_QUIT,
WinEDA_CvpcbFrame::OnQuit )
CVPCB_MAINFRAME::OnQuit )
EVT_TOOL( ID_CVPCB_READ_INPUT_NETLIST,
WinEDA_CvpcbFrame::LoadNetList )
CVPCB_MAINFRAME::LoadNetList )
EVT_TOOL( ID_CVPCB_SAVEQUITCVPCB,
WinEDA_CvpcbFrame::SaveQuitCvpcb )
CVPCB_MAINFRAME::SaveQuitCvpcb )
EVT_TOOL( ID_CVPCB_CREATE_CONFIGWINDOW,
WinEDA_CvpcbFrame::ConfigCvpcb )
CVPCB_MAINFRAME::ConfigCvpcb )
EVT_TOOL( ID_CVPCB_CREATE_SCREENCMP,
WinEDA_CvpcbFrame::DisplayModule )
CVPCB_MAINFRAME::DisplayModule )
EVT_TOOL( ID_CVPCB_GOTO_FIRSTNA,
WinEDA_CvpcbFrame::ToFirstNA )
CVPCB_MAINFRAME::ToFirstNA )
EVT_TOOL( ID_CVPCB_GOTO_PREVIOUSNA,
WinEDA_CvpcbFrame::ToPreviousNA )
CVPCB_MAINFRAME::ToPreviousNA )
EVT_TOOL( ID_CVPCB_DEL_ASSOCIATIONS,
WinEDA_CvpcbFrame::DelAssociations )
CVPCB_MAINFRAME::DelAssociations )
EVT_TOOL( ID_CVPCB_AUTO_ASSOCIE,
WinEDA_CvpcbFrame::AssocieModule )
CVPCB_MAINFRAME::AssocieModule )
EVT_TOOL( ID_CVPCB_CREATE_STUFF_FILE,
WinEDA_CvpcbFrame::WriteStuffList )
CVPCB_MAINFRAME::WriteStuffList )
EVT_TOOL( ID_PCB_DISPLAY_FOOTPRINT_DOC,
WinEDA_CvpcbFrame::DisplayDocFile )
CVPCB_MAINFRAME::DisplayDocFile )
EVT_TOOL( ID_CVPCB_FOOTPRINT_DISPLAY_FILTERED_LIST,
WinEDA_CvpcbFrame::OnSelectFilteringFootprint )
CVPCB_MAINFRAME::OnSelectFilteringFootprint )
EVT_TOOL( ID_CVPCB_FOOTPRINT_DISPLAY_FULL_LIST,
WinEDA_CvpcbFrame::OnSelectFilteringFootprint )
CVPCB_MAINFRAME::OnSelectFilteringFootprint )
// Frame events
EVT_CHAR( WinEDA_CvpcbFrame::OnChar )
EVT_CLOSE( WinEDA_CvpcbFrame::OnCloseWindow )
EVT_SIZE( WinEDA_CvpcbFrame::OnSize )
EVT_CHAR( CVPCB_MAINFRAME::OnChar )
EVT_CLOSE( CVPCB_MAINFRAME::OnCloseWindow )
EVT_SIZE( CVPCB_MAINFRAME::OnSize )
// List item events
EVT_LIST_ITEM_SELECTED( ID_CVPCB_FOOTPRINT_LIST,
WinEDA_CvpcbFrame::OnLeftClick )
CVPCB_MAINFRAME::OnLeftClick )
EVT_LIST_ITEM_ACTIVATED( ID_CVPCB_FOOTPRINT_LIST,
WinEDA_CvpcbFrame::OnLeftDClick )
CVPCB_MAINFRAME::OnLeftDClick )
EVT_LIST_ITEM_SELECTED( ID_CVPCB_COMPONENT_LIST,
WinEDA_CvpcbFrame::OnSelectComponent )
CVPCB_MAINFRAME::OnSelectComponent )
EVT_UPDATE_UI( ID_CVPCB_CONFIG_KEEP_OPEN_ON_SAVE,
WinEDA_CvpcbFrame::OnUpdateKeepOpenOnSave )
CVPCB_MAINFRAME::OnUpdateKeepOpenOnSave )
END_EVENT_TABLE()
WinEDA_CvpcbFrame::WinEDA_CvpcbFrame( const wxString& title, long style ) :
CVPCB_MAINFRAME::CVPCB_MAINFRAME( const wxString& title, long style ) :
EDA_BASE_FRAME( NULL, CVPCB_FRAME, title, wxDefaultPosition, wxDefaultSize, style )
{
m_FrameName = wxT( "CvpcbFrame" );
@ -184,7 +185,7 @@ WinEDA_CvpcbFrame::WinEDA_CvpcbFrame( const wxString& title, long style ) :
}
WinEDA_CvpcbFrame::~WinEDA_CvpcbFrame()
CVPCB_MAINFRAME::~CVPCB_MAINFRAME()
{
wxConfig* config = wxGetApp().m_EDA_Config;
@ -205,7 +206,7 @@ WinEDA_CvpcbFrame::~WinEDA_CvpcbFrame()
* Don't forget to call this base method from any derived classes or the
* settings will not get loaded.
*/
void WinEDA_CvpcbFrame::LoadSettings()
void CVPCB_MAINFRAME::LoadSettings()
{
wxASSERT( wxGetApp().m_EDA_Config != NULL );
@ -224,7 +225,7 @@ void WinEDA_CvpcbFrame::LoadSettings()
* Don't forget to call this base method from any derived classes or the
* settings will not get saved.
*/
void WinEDA_CvpcbFrame::SaveSettings()
void CVPCB_MAINFRAME::SaveSettings()
{
wxASSERT( wxGetApp().m_EDA_Config != NULL );
@ -236,19 +237,19 @@ void WinEDA_CvpcbFrame::SaveSettings()
}
void WinEDA_CvpcbFrame::OnSize( wxSizeEvent& event )
void CVPCB_MAINFRAME::OnSize( wxSizeEvent& event )
{
event.Skip();
}
void WinEDA_CvpcbFrame::OnQuit( wxCommandEvent& event )
void CVPCB_MAINFRAME::OnQuit( wxCommandEvent& event )
{
Close( TRUE );
}
void WinEDA_CvpcbFrame::OnCloseWindow( wxCloseEvent& Event )
void CVPCB_MAINFRAME::OnCloseWindow( wxCloseEvent& Event )
{
int diag;
@ -309,7 +310,7 @@ void WinEDA_CvpcbFrame::OnCloseWindow( wxCloseEvent& Event )
}
void WinEDA_CvpcbFrame::OnChar( wxKeyEvent& event )
void CVPCB_MAINFRAME::OnChar( wxKeyEvent& event )
{
switch( event.GetKeyCode() )
{
@ -330,7 +331,7 @@ void WinEDA_CvpcbFrame::OnChar( wxKeyEvent& event )
}
void WinEDA_CvpcbFrame::ToFirstNA( wxCommandEvent& event )
void CVPCB_MAINFRAME::ToFirstNA( wxCommandEvent& event )
{
int ii = 0;
int selection;
@ -357,7 +358,7 @@ void WinEDA_CvpcbFrame::ToFirstNA( wxCommandEvent& event )
}
void WinEDA_CvpcbFrame::ToPreviousNA( wxCommandEvent& event )
void CVPCB_MAINFRAME::ToPreviousNA( wxCommandEvent& event )
{
int ii;
int selection;
@ -384,7 +385,7 @@ void WinEDA_CvpcbFrame::ToPreviousNA( wxCommandEvent& event )
}
void WinEDA_CvpcbFrame::SaveQuitCvpcb( wxCommandEvent& event )
void CVPCB_MAINFRAME::SaveQuitCvpcb( wxCommandEvent& event )
{
if( SaveNetList( wxEmptyString ) > 0 )
{
@ -398,7 +399,7 @@ void WinEDA_CvpcbFrame::SaveQuitCvpcb( wxCommandEvent& event )
/* Removes all associations already made
*/
void WinEDA_CvpcbFrame::DelAssociations( wxCommandEvent& event )
void CVPCB_MAINFRAME::DelAssociations( wxCommandEvent& event )
{
wxString Line;
@ -424,7 +425,7 @@ void WinEDA_CvpcbFrame::DelAssociations( wxCommandEvent& event )
* Called when click on Load Netlist button or by file history menu entries
* Read a netlist selected by user
*/
void WinEDA_CvpcbFrame::LoadNetList( wxCommandEvent& event )
void CVPCB_MAINFRAME::LoadNetList( wxCommandEvent& event )
{
wxString oldPath;
wxFileName newFileName;
@ -474,7 +475,7 @@ void WinEDA_CvpcbFrame::LoadNetList( wxCommandEvent& event )
}
void WinEDA_CvpcbFrame::ConfigCvpcb( wxCommandEvent& event )
void CVPCB_MAINFRAME::ConfigCvpcb( wxCommandEvent& event )
{
DIALOG_CVPCB_CONFIG ConfigFrame( this );
@ -482,13 +483,13 @@ void WinEDA_CvpcbFrame::ConfigCvpcb( wxCommandEvent& event )
}
void WinEDA_CvpcbFrame::OnKeepOpenOnSave( wxCommandEvent& event )
void CVPCB_MAINFRAME::OnKeepOpenOnSave( wxCommandEvent& event )
{
m_KeepCvpcbOpen = event.IsChecked();
}
void WinEDA_CvpcbFrame::DisplayModule( wxCommandEvent& event )
void CVPCB_MAINFRAME::DisplayModule( wxCommandEvent& event )
{
CreateScreenCmp();
DrawFrame->AdjustScrollBars();
@ -499,32 +500,32 @@ void WinEDA_CvpcbFrame::DisplayModule( wxCommandEvent& event )
/** Vitual function SetLanguage
* called on a language menu selection
*/
void WinEDA_CvpcbFrame::SetLanguage( wxCommandEvent& event )
void CVPCB_MAINFRAME::SetLanguage( wxCommandEvent& event )
{
EDA_BASE_FRAME::SetLanguage( event );
}
void WinEDA_CvpcbFrame::DisplayDocFile( wxCommandEvent& event )
void CVPCB_MAINFRAME::DisplayDocFile( wxCommandEvent& event )
{
GetAssociatedDocument( this, m_DocModulesFileName,
&wxGetApp().GetLibraryPathList() );
}
void WinEDA_CvpcbFrame::OnLeftClick( wxListEvent& event )
void CVPCB_MAINFRAME::OnLeftClick( wxListEvent& event )
{
m_FootprintList->OnLeftClick( event );
}
void WinEDA_CvpcbFrame::OnLeftDClick( wxListEvent& event )
void CVPCB_MAINFRAME::OnLeftDClick( wxListEvent& event )
{
m_FootprintList->OnLeftDClick( event );
}
void WinEDA_CvpcbFrame::OnSelectComponent( wxListEvent& event )
void CVPCB_MAINFRAME::OnSelectComponent( wxListEvent& event )
{
int selection;
@ -555,7 +556,7 @@ void WinEDA_CvpcbFrame::OnSelectComponent( wxListEvent& event )
/* Select full/filtered footprint display on tool click
*/
void WinEDA_CvpcbFrame::OnSelectFilteringFootprint( wxCommandEvent& event )
void CVPCB_MAINFRAME::OnSelectFilteringFootprint( wxCommandEvent& event )
{
switch (event.GetId() )
{
@ -574,7 +575,7 @@ void WinEDA_CvpcbFrame::OnSelectFilteringFootprint( wxCommandEvent& event )
}
void WinEDA_CvpcbFrame::OnUpdateKeepOpenOnSave( wxUpdateUIEvent& event )
void CVPCB_MAINFRAME::OnUpdateKeepOpenOnSave( wxUpdateUIEvent& event )
{
event.Check( m_KeepCvpcbOpen );
}
@ -583,7 +584,7 @@ void WinEDA_CvpcbFrame::OnUpdateKeepOpenOnSave( wxUpdateUIEvent& event )
/** DisplayStatus()
* Displays info to the status line at bottom of the main frame
*/
void WinEDA_CvpcbFrame::DisplayStatus()
void CVPCB_MAINFRAME::DisplayStatus()
{
wxString msg;
msg.Printf( _( "Components: %d (free: %d)" ),

View File

@ -13,7 +13,7 @@
#include "zones.h"
#include "bitmaps.h"
#include "protos.h"
#include "cvstruct.h"
#include "cvpcb_mainframe.h"
#include "colors_selection.h"
#include "cvpcb_id.h"
@ -44,7 +44,7 @@ void WinEDA_App::MacOpenFile(const wxString &fileName)
{
wxFileName filename = fileName;
wxString oldPath;
WinEDA_CvpcbFrame * frame = ((WinEDA_CvpcbFrame*)GetTopWindow());
CVPCB_MAINFRAME * frame = ((CVPCB_MAINFRAME*)GetTopWindow());
if(!filename.FileExists())
return;
@ -94,7 +94,7 @@ bool WinEDA_App::OnInit()
wxFileName filename;
wxString message;
WinEDA_CvpcbFrame* frame = NULL;
CVPCB_MAINFRAME* frame = NULL;
InitEDA_Appl( wxT( "CvPCB" ), APP_TYPE_CVPCB );
@ -117,7 +117,7 @@ bool WinEDA_App::OnInit()
g_DrawBgColor = BLACK;
wxString Title = GetTitle() + wxT( " " ) + GetBuildVersion();
frame = new WinEDA_CvpcbFrame( Title );
frame = new CVPCB_MAINFRAME( Title );
// Show the frame
SetTopWindow( frame );
@ -137,7 +137,7 @@ bool WinEDA_App::OnInit()
}
}
LoadFootprintFiles( frame->m_ModuleLibNames, frame->m_footprints );
frame->LoadFootprintFiles();
frame->m_NetlistFileExtension = wxT( "net" );
frame->m_NetlistFileName.Clear();
frame->SetTitle( GetTitle() + wxT( " " ) + GetBuildVersion() +

116
cvpcb/cvpcb_mainframe.h Normal file
View File

@ -0,0 +1,116 @@
/**
* @file cvpcb_mainframe.h
*/
#ifndef _CVPCB_MAINFRAME_H_
#define _CVPCB_MAINFRAME_H_
#include "wx/listctrl.h"
#include <wx/filename.h>
#include "param_config.h"
#include "cvpcb.h"
/* Forward declarations of all top-level window classes. */
class FOOTPRINTS_LISTBOX;
class COMPONENTS_LISTBOX;
class DISPLAY_FOOTPRINTS_FRAME;
/**
* The CVPcb application main window.
*/
class CVPCB_MAINFRAME : public EDA_BASE_FRAME
{
public:
bool m_KeepCvpcbOpen;
FOOTPRINTS_LISTBOX* m_FootprintList;
COMPONENTS_LISTBOX* m_ListCmp;
DISPLAY_FOOTPRINTS_FRAME* DrawFrame;
WinEDA_Toolbar* m_HToolBar;
wxFileName m_NetlistFileName;
wxArrayString m_ModuleLibNames;
wxArrayString m_AliasLibNames;
wxString m_UserLibraryPath;
wxString m_NetlistFileExtension;
wxString m_DocModulesFileName;
FOOTPRINT_LIST m_footprints;
COMPONENT_LIST m_components;
protected:
int m_undefinedComponentCnt;
bool m_modified;
bool m_rightJustify;
bool m_isEESchemaNetlist;
PARAM_CFG_ARRAY m_projectFileParams;
public:
CVPCB_MAINFRAME( const wxString& title,
long style = KICAD_DEFAULT_DRAWFRAME_STYLE );
~CVPCB_MAINFRAME();
void OnLeftClick( wxListEvent& event );
void OnLeftDClick( wxListEvent& event );
void OnSelectComponent( wxListEvent& event );
void Update_Config( wxCommandEvent& event );
void OnQuit( wxCommandEvent& event );
void OnCloseWindow( wxCloseEvent& Event );
void OnSize( wxSizeEvent& SizeEvent );
void OnChar( wxKeyEvent& event );
void ReCreateHToolbar();
virtual void ReCreateMenuBar();
void SetLanguage( wxCommandEvent& event );
void ToFirstNA( wxCommandEvent& event );
void ToPreviousNA( wxCommandEvent& event );
void DelAssociations( wxCommandEvent& event );
void SaveQuitCvpcb( wxCommandEvent& event );
void LoadNetList( wxCommandEvent& event );
void ConfigCvpcb( wxCommandEvent& event );
void OnKeepOpenOnSave( wxCommandEvent& event );
void DisplayModule( wxCommandEvent& event );
void AssocieModule( wxCommandEvent& event );
void WriteStuffList( wxCommandEvent& event );
void DisplayDocFile( wxCommandEvent& event );
void OnSelectFilteringFootprint( wxCommandEvent& event );
void OnUpdateKeepOpenOnSave( wxUpdateUIEvent& event );
void SetNewPkg( const wxString& package );
void BuildCmpListBox();
void BuildFOOTPRINTS_LISTBOX();
void CreateScreenCmp();
int SaveNetList( const wxString& FullFileName );
int SaveComponentList( const wxString& FullFileName );
bool ReadNetList();
int ReadSchematicNetlist();
void LoadProjectFile( const wxString& FileName );
void SaveProjectFile( const wxString& fileName );
virtual void LoadSettings();
virtual void SaveSettings();
/** DisplayStatus()
* Displays info to the status line at bottom of the main frame
*/
void DisplayStatus();
/**
* Function LoadFootprintFiles
* Read the list of libraries (*.mod files) and generate the list of modules.
* for each module are stored
* the module name
* documentation string
* associated keywords
* m_ModuleLibNames is the list of library that must be read (loaded)
* fills m_footprints
* @return true if libraries are found, false otherwise.
*/
bool LoadFootprintFiles( );
PARAM_CFG_ARRAY& GetProjectFileParameters( void );
DECLARE_EVENT_TABLE()
};
#endif //#ifndef _CVPCB_MAINFRAME_H_

View File

@ -6,99 +6,10 @@
#define CVSTRUCT_H
#include "wx/listctrl.h"
#include <wx/filename.h>
#include "param_config.h"
#include "cvpcb.h"
/* Forward declarations of all top-level window classes. */
class FOOTPRINTS_LISTBOX;
class COMPONENTS_LISTBOX;
class DISPLAY_FOOTPRINTS_FRAME;
/**
* The CVPcb application main window.
*/
class WinEDA_CvpcbFrame : public EDA_BASE_FRAME
{
public:
bool m_KeepCvpcbOpen;
FOOTPRINTS_LISTBOX* m_FootprintList;
COMPONENTS_LISTBOX* m_ListCmp;
DISPLAY_FOOTPRINTS_FRAME* DrawFrame;
WinEDA_Toolbar* m_HToolBar;
wxFileName m_NetlistFileName;
wxArrayString m_ModuleLibNames;
wxArrayString m_AliasLibNames;
wxString m_UserLibraryPath;
wxString m_NetlistFileExtension;
wxString m_DocModulesFileName;
FOOTPRINT_LIST m_footprints;
COMPONENT_LIST m_components;
protected:
int m_undefinedComponentCnt;
bool m_modified;
bool m_rightJustify;
bool m_isEESchemaNetlist;
PARAM_CFG_ARRAY m_projectFileParams;
public:
WinEDA_CvpcbFrame( const wxString& title,
long style = KICAD_DEFAULT_DRAWFRAME_STYLE );
~WinEDA_CvpcbFrame();
void OnLeftClick( wxListEvent& event );
void OnLeftDClick( wxListEvent& event );
void OnSelectComponent( wxListEvent& event );
void Update_Config( wxCommandEvent& event );
void OnQuit( wxCommandEvent& event );
void OnCloseWindow( wxCloseEvent& Event );
void OnSize( wxSizeEvent& SizeEvent );
void OnChar( wxKeyEvent& event );
void ReCreateHToolbar();
virtual void ReCreateMenuBar();
void SetLanguage( wxCommandEvent& event );
void ToFirstNA( wxCommandEvent& event );
void ToPreviousNA( wxCommandEvent& event );
void DelAssociations( wxCommandEvent& event );
void SaveQuitCvpcb( wxCommandEvent& event );
void LoadNetList( wxCommandEvent& event );
void ConfigCvpcb( wxCommandEvent& event );
void OnKeepOpenOnSave( wxCommandEvent& event );
void DisplayModule( wxCommandEvent& event );
void AssocieModule( wxCommandEvent& event );
void WriteStuffList( wxCommandEvent& event );
void DisplayDocFile( wxCommandEvent& event );
void OnSelectFilteringFootprint( wxCommandEvent& event );
void OnUpdateKeepOpenOnSave( wxUpdateUIEvent& event );
void SetNewPkg( const wxString& package );
void BuildCmpListBox();
void BuildFOOTPRINTS_LISTBOX();
void CreateScreenCmp();
int SaveNetList( const wxString& FullFileName );
int SaveComponentList( const wxString& FullFileName );
bool ReadNetList();
int ReadSchematicNetlist();
void LoadProjectFile( const wxString& FileName );
void SaveProjectFile( const wxString& fileName );
virtual void LoadSettings();
virtual void SaveSettings();
/** DisplayStatus()
* Displays info to the status line at bottom of the main frame
*/
void DisplayStatus();
PARAM_CFG_ARRAY& GetProjectFileParameters( void );
DECLARE_EVENT_TABLE()
};
class CVPCB_MAINFRAME;
/*********************************************************************/
@ -107,7 +18,7 @@ public:
class ITEMS_LISTBOX_BASE : public wxListView
{
public:
ITEMS_LISTBOX_BASE( WinEDA_CvpcbFrame* aParent, wxWindowID aId,
ITEMS_LISTBOX_BASE( CVPCB_MAINFRAME* aParent, wxWindowID aId,
const wxPoint& aLocation, const wxSize& aSize );
~ITEMS_LISTBOX_BASE();
@ -115,7 +26,7 @@ public:
int GetSelection();
void OnSize( wxSizeEvent& event );
virtual WinEDA_CvpcbFrame* GetParent();
virtual CVPCB_MAINFRAME* GetParent();
};
/******************************************/
@ -132,7 +43,7 @@ public:
bool m_UseFootprintFullList;
public:
FOOTPRINTS_LISTBOX( WinEDA_CvpcbFrame* parent, wxWindowID id,
FOOTPRINTS_LISTBOX( CVPCB_MAINFRAME* parent, wxWindowID id,
const wxPoint& loc, const wxSize& size,
int nbitems, wxString choice[] );
~FOOTPRINTS_LISTBOX();
@ -165,11 +76,11 @@ class COMPONENTS_LISTBOX : public ITEMS_LISTBOX_BASE
{
public:
wxArrayString m_ComponentList;
WinEDA_CvpcbFrame* m_Parent;
CVPCB_MAINFRAME* m_Parent;
public:
COMPONENTS_LISTBOX( WinEDA_CvpcbFrame* parent, wxWindowID id,
COMPONENTS_LISTBOX( CVPCB_MAINFRAME* parent, wxWindowID id,
const wxPoint& loc, const wxSize& size,
int nbitems, wxString choice[] );

View File

@ -12,14 +12,14 @@
#include "gestfich.h"
#include "cvpcb.h"
#include "cvstruct.h"
#include "cvpcb_mainframe.h"
#include "protos.h"
#include "dialog_cvpcb_config.h"
DIALOG_CVPCB_CONFIG::DIALOG_CVPCB_CONFIG( WinEDA_CvpcbFrame* parent ) :
DIALOG_CVPCB_CONFIG::DIALOG_CVPCB_CONFIG( CVPCB_MAINFRAME* parent ) :
DIALOG_CVPCB_CONFIG_FBP( parent )
{
wxString title;
@ -121,8 +121,7 @@ void DIALOG_CVPCB_CONFIG::OnOkClick( wxCommandEvent& event )
for( unsigned ii = 0; ii < m_ListEquiv->GetCount(); ii++ )
m_Parent->m_AliasLibNames.Add( m_ListEquiv->GetString( ii ) );
LoadFootprintFiles( m_Parent->m_ModuleLibNames,
m_Parent->m_footprints );
m_Parent->LoadFootprintFiles();
m_Parent->BuildFOOTPRINTS_LISTBOX();
}

View File

@ -13,7 +13,7 @@
class DIALOG_CVPCB_CONFIG : public DIALOG_CVPCB_CONFIG_FBP
{
private:
WinEDA_CvpcbFrame* m_Parent;
CVPCB_MAINFRAME* m_Parent;
wxConfig * m_Config;
wxString m_UserLibDirBufferImg;
bool m_LibListChanged;
@ -36,7 +36,7 @@ private:
public:
DIALOG_CVPCB_CONFIG( WinEDA_CvpcbFrame* parent );
DIALOG_CVPCB_CONFIG( CVPCB_MAINFRAME* parent );
~DIALOG_CVPCB_CONFIG() {};
};

View File

@ -10,10 +10,10 @@
#include "cvpcb.h"
#include "protos.h"
#include "cvstruct.h"
#include "cvpcb_mainframe.h"
void WinEDA_CvpcbFrame::WriteStuffList( wxCommandEvent& event )
void CVPCB_MAINFRAME::WriteStuffList( wxCommandEvent& event )
{
FILE* FileEquiv;
wxString Line;

View File

@ -11,6 +11,7 @@
#include "cvpcb.h"
#include "protos.h"
#include "cvpcb_mainframe.h"
#include "cvstruct.h"
#include "build_version.h"
@ -19,7 +20,7 @@
* Set the module to the selected component
* Selects the next component
*/
void WinEDA_CvpcbFrame::SetNewPkg( const wxString& package )
void CVPCB_MAINFRAME::SetNewPkg( const wxString& package )
{
COMPONENT* Component;
bool isUndefined = false;
@ -69,7 +70,7 @@ void WinEDA_CvpcbFrame::SetNewPkg( const wxString& package )
/*
* Read the netlist format and file components.
*/
bool WinEDA_CvpcbFrame::ReadNetList()
bool CVPCB_MAINFRAME::ReadNetList()
{
wxString msg;
int error_level;
@ -90,7 +91,7 @@ bool WinEDA_CvpcbFrame::ReadNetList()
return false;
LoadProjectFile( m_NetlistFileName.GetFullPath() );
LoadFootprintFiles( m_ModuleLibNames, m_footprints );
LoadFootprintFiles( );
BuildFOOTPRINTS_LISTBOX();
m_ListCmp->Clear();
@ -124,7 +125,7 @@ bool WinEDA_CvpcbFrame::ReadNetList()
* The full name of the netlist file must be in FFileName.
* The file name is deducted in cmp
*/
int WinEDA_CvpcbFrame::SaveNetList( const wxString& fileName )
int CVPCB_MAINFRAME::SaveNetList( const wxString& fileName )
{
wxFileName fn;

View File

@ -8,6 +8,7 @@
#include "cvpcb.h"
#include "protos.h"
#include "cvpcb_mainframe.h"
#include "cvstruct.h"
#include "cvpcb_id.h"
@ -20,7 +21,7 @@
#define LISTB_STYLE wxSUNKEN_BORDER | wxLC_NO_HEADER | \
wxLC_SINGLE_SEL | wxLC_REPORT | wxLC_VIRTUAL
ITEMS_LISTBOX_BASE::ITEMS_LISTBOX_BASE( WinEDA_CvpcbFrame* aParent, wxWindowID aId,
ITEMS_LISTBOX_BASE::ITEMS_LISTBOX_BASE( CVPCB_MAINFRAME* aParent, wxWindowID aId,
const wxPoint& aLocation, const wxSize& aSize ) :
wxListView( aParent, aId, aLocation, aSize, LISTB_STYLE )
{
@ -57,16 +58,16 @@ int ITEMS_LISTBOX_BASE::GetSelection()
}
WinEDA_CvpcbFrame* ITEMS_LISTBOX_BASE::GetParent()
CVPCB_MAINFRAME* ITEMS_LISTBOX_BASE::GetParent()
{
return (WinEDA_CvpcbFrame*) wxListView::GetParent();
return (CVPCB_MAINFRAME*) wxListView::GetParent();
}
/*
* Create or update the schematic components list.
*/
void WinEDA_CvpcbFrame::BuildCmpListBox()
void CVPCB_MAINFRAME::BuildCmpListBox()
{
wxString msg;
wxSize size( 10, 10 );
@ -103,7 +104,7 @@ void WinEDA_CvpcbFrame::BuildCmpListBox()
/*
* Create or update the footprint list.
*/
void WinEDA_CvpcbFrame::BuildFOOTPRINTS_LISTBOX()
void CVPCB_MAINFRAME::BuildFOOTPRINTS_LISTBOX()
{
wxString msg;
wxSize size( 10, 10 );

View File

@ -1,240 +1,174 @@
/***************/
/* listlib.cpp */
/**(************/
/**
* @file listlib.cpp
*/
/*
* Functions to read footprint libraries and create the list of availlable footprints
* Functions to read footprint libraries and fill m_footprints by availlable footprints names
* and their documentation (comments and keywords)
*/
#include "fctsys.h"
#include "wxstruct.h"
#include "common.h"
#include "confirm.h"
#include "kicad_string.h"
#include "gestfich.h"
#include "macros.h"
#include "appl_wxstruct.h"
#include "cvpcb.h"
#include "protos.h"
#include "cvpcb_mainframe.h"
#include "richio.h"
#include "filter_reader.h"
#include "dialog_load_error.h"
/* MDC and MOD file strings */
static wxString s_files_not_found;
static wxString s_files_invalid;
static void ReadDocLib( const wxString& ModLibName, FOOTPRINT_LIST& list );
/**
* Read the list of libraries and generate a list modules.
*
/*
* Read the list of libraries (*.mod files) and generate a m_footprints of modules.
* for each module are stored
* the module name
* documentation string
* associated keywords
* Module description format:
* $MODULE c64acmd
* Li c64acmd DIN connector
* Cd Europe 96 Contact AC male right
* Kw PAD_CONN DIN
* $MODULE c64acmd First line of module description
* Li c64acmd DIN connector Library reference
* Cd Europe 96 AC male vertical documentation string
* Kw PAD_CONN DIN associated keywords
* ...... other data (pads, outlines ..)
* $Endmodule
*
*/
bool LoadFootprintFiles( const wxArrayString& libNames,
FOOTPRINT_LIST& list )
bool CVPCB_MAINFRAME::LoadFootprintFiles( )
{
FILE* file;
char buffer[1024];
wxFileName filename;
int end;
FOOTPRINT* ItemLib;
unsigned i;
wxString tmp, msg;
char* result;
wxString libname;
wxString files_not_found;
wxString files_invalid;
/* Check if footprint list is not empty */
if( !list.empty() )
list.clear();
/* Check if footprint m_footprints is not empty */
if( !m_footprints.empty() )
m_footprints.clear();
/* Check if there are footprint libraries in project file */
if( libNames.GetCount() == 0 )
if( m_ModuleLibNames.GetCount() == 0 )
{
wxMessageBox( _( "No PCB foot print libraries are listed in the current project file." ),
wxMessageBox( _( "No PCB footprint libraries are listed in the current project file." ),
_( "Project File Error" ), wxOK | wxICON_ERROR );
return false;
}
/* Parse Libraries Listed */
for( i = 0; i < libNames.GetCount(); i++ )
for( unsigned ii = 0; ii < m_ModuleLibNames.GetCount(); ii++ )
{
filename = libNames[i];
filename = m_ModuleLibNames[ii];
filename.SetExt( ModuleFileExtension );
tmp = wxGetApp().FindLibraryPath( filename );
libname = wxGetApp().FindLibraryPath( filename );
if( !tmp )
if( libname.IsEmpty() )
{
s_files_not_found << filename.GetFullName() << wxT("\n");
files_not_found << filename.GetFullName() << wxT("\n");
continue;
}
/* Open library file */
file = wxFopen( tmp, wxT( "rt" ) );
file = wxFopen( libname, wxT( "rt" ) );
if( file == NULL )
{
s_files_invalid << tmp << _(" (file cannot be opened)") << wxT("\n");
files_invalid << libname << _(" (file cannot be opened)") << wxT("\n");
continue;
}
/* Check if library type is valid */
result = fgets( buffer, 32, file );
if( strncmp( buffer, ENTETE_LIBRAIRIE, L_ENTETE_LIB ) != 0 )
FILE_LINE_READER fileReader( file, libname );
FILTER_READER reader( fileReader );
/* Read header. */
reader.ReadLine();
char * Line = reader.Line();
StrPurge( Line );
if( strnicmp( Line, ENTETE_LIBRAIRIE, L_ENTETE_LIB ) != 0 )
{
s_files_invalid << tmp << _(" (Not a Kicad file)") << wxT("\n");
wxString msg;
msg.Printf( _( "<%s> is not a valid Kicad PCB footprint library." ),
GetChars( libname ) );
files_invalid << msg << wxT("\n");
fclose( file );
continue;
}
/* TODO: Read the number of components. */
fseek( file, 0, 0 );
end = 0;
while( !end && fgets( buffer, 255, file ) != NULL )
// Read library
bool end = false;
while( !end && reader.ReadLine() )
{
if( strnicmp( buffer, "$INDEX", 6 ) == 0 )
Line = reader.Line();
StrPurge( Line );
if( strnicmp( Line, "$EndLIBRARY", 11 ) == 0 )
{
while( fgets( buffer, 255, file ) != NULL )
end = true;
break;
}
if( strnicmp( Line, "$MODULE", 7 ) == 0 )
{
Line += 7;
FOOTPRINT* ItemLib = new FOOTPRINT();
ItemLib->m_Module = CONV_FROM_UTF8( StrPurge( Line ) );
ItemLib->m_LibName = libname;
m_footprints.push_back( ItemLib );
while( reader.ReadLine() )
{
if( strnicmp( buffer, "$EndINDEX", 6 ) == 0 )
{
end = 1;
Line = reader.Line();
StrPurge( Line );
if( strnicmp( Line, "$EndMODULE", 10 ) == 0 )
break;
int id = ((Line[0] & 0xFF) << 8) + (Line[1] & 0xFF);
switch( id )
{
/* KeyWords */
case (('K'<<8) + 'w'):
ItemLib->m_KeyWord = CONV_FROM_UTF8( StrPurge( Line + 3 ) );
break;
/* Doc */
case (('C'<<8) + 'd'):
ItemLib->m_Doc = CONV_FROM_UTF8( StrPurge( Line + 3 ) );
break;
}
ItemLib = new FOOTPRINT();
ItemLib->m_Module = CONV_FROM_UTF8( StrPurge( buffer ) );
ItemLib->m_LibName = tmp;
list.push_back( ItemLib );
}
if( !end )
{
s_files_invalid << tmp << _(" (Unexpected end of file)") << wxT("\n");
}
}
}
fclose( file );
ReadDocLib( tmp, list );
if( !end )
{
files_invalid << libname << _(" (Unexpected end of file)") << wxT("\n");
}
}
m_footprints.sort();
/* Display if there are mdc files not found */
if( !s_files_not_found.IsEmpty() || !s_files_invalid.IsEmpty() )
/* Display error messages, if any */
if( !files_not_found.IsEmpty() || !files_invalid.IsEmpty() )
{
DIALOG_LOAD_ERROR dialog(NULL);
if( !s_files_not_found.IsEmpty() )
if( !files_not_found.IsEmpty() )
{
wxString message = _("Some files could not be found!");
dialog.MessageSet(message);
dialog.ListSet(s_files_not_found);
s_files_not_found.Empty();
dialog.ListSet(files_not_found);
}
/* Display if there are mdc files invalid */
if( !s_files_invalid.IsEmpty() )
/* Display if there are invalid files */
if( !files_invalid.IsEmpty() )
{
dialog.MessageSet( _("Some files are invalid!"));
dialog.ListSet(s_files_invalid);
s_files_invalid.Empty();
dialog.ListSet(files_invalid);
}
dialog.ShowModal();
}
list.sort();
return true;
}
/**
* Read the file Doc combines a library ModLibName.
* Create the list of doc strings pointed to by list
* ModLibName = full file name of the library modules
*/
static void ReadDocLib( const wxString& ModLibName, FOOTPRINT_LIST& list )
{
FOOTPRINT* NewMod;
char Line[1024];
wxString ModuleName;
FILE* mdc_file;
wxFileName mdc_filename = ModLibName;
/* Set mdc filename extension */
mdc_filename.SetExt( wxT( "mdc" ) );
/* Check if mdc file exists and can be opened */
if( ( mdc_file = wxFopen( mdc_filename.GetFullPath(), wxT( "rt" ) ) ) == NULL )
{
s_files_not_found += mdc_filename.GetFullPath() + wxT("\n");
return;
}
/* Check if mdc file is valid */
GetLine( mdc_file, Line, NULL, sizeof(Line) - 1 );
if( strnicmp( Line, ENTETE_LIBDOC, L_ENTETE_LIB ) != 0 )
{
s_files_invalid += mdc_filename.GetFullPath() + wxT("\n");
return;
}
/* Read the mdc file */
while( GetLine( mdc_file, Line, NULL, sizeof(Line) - 1 ) )
{
NewMod = NULL;
if( Line[0] != '$' )
continue;
if( Line[1] == 'E' )
break;
if( Line[1] == 'M' )
{
/* Parse file line by line */
while( GetLine( mdc_file, Line, NULL, sizeof(Line) - 1 ) )
{
/* $EndMODULE */
if( Line[0] == '$' )
break;
switch( Line[0] )
{
/* LibName */
case 'L': /* LibName */
ModuleName = CONV_FROM_UTF8( StrPurge( Line + 3 ) );
BOOST_FOREACH( FOOTPRINT& footprint, list )
{
if( ModuleName == footprint.m_Module )
{
NewMod = &footprint;
break;
}
}
break;
/* KeyWords */
case 'K':
if( NewMod && (!NewMod->m_KeyWord) )
NewMod->m_KeyWord = CONV_FROM_UTF8( StrPurge( Line + 3 ) );
break;
/* Doc */
case 'C':
if( NewMod && ( !NewMod->m_Doc ) )
NewMod->m_Doc = CONV_FROM_UTF8( StrPurge( Line + 3 ) );
break;
}
}
} /* Parsed one module documentation */
} /* Parsed complete library documentation */
fclose( mdc_file );
}

View File

@ -13,7 +13,7 @@
#include "cvpcb.h"
#include "protos.h"
#include "cvstruct.h"
#include "cvpcb_mainframe.h"
#include "class_DisplayFootprintsFrame.h"
#include "richio.h"
#include "filter_reader.h"
@ -36,7 +36,7 @@ MODULE* DISPLAY_FOOTPRINTS_FRAME::Get_Module( const wxString& CmpName )
wxString tmp, msg;
wxFileName fn;
MODULE* Module = NULL;
WinEDA_CvpcbFrame* parent = ( WinEDA_CvpcbFrame* ) GetParent();
CVPCB_MAINFRAME* parent = ( CVPCB_MAINFRAME* ) GetParent();
for( ii = 0; ii < parent->m_ModuleLibNames.GetCount(); ii++ )
{

View File

@ -9,13 +9,13 @@
#include "gestfich.h"
#include "cvpcb.h"
#include "cvstruct.h"
#include "cvpcb_mainframe.h"
#include "cvpcb_id.h"
#include "bitmaps.h"
void WinEDA_CvpcbFrame::ReCreateMenuBar()
void CVPCB_MAINFRAME::ReCreateMenuBar()
{
wxMenuItem* item;
wxMenuBar* menuBar = GetMenuBar();

View File

@ -10,8 +10,6 @@ extern int GenNetlistPcbnew( FILE* f, COMPONENT_LIST& list,
bool rightJustify = false );
extern bool LoadComponentFile( const wxString& fileName,
COMPONENT_LIST& list );
extern bool LoadFootprintFiles( const wxArrayString& libNames,
FOOTPRINT_LIST& list );
FOOTPRINT* GetModuleDescrByName( const wxString& FootprintName,
FOOTPRINT_LIST& list );

View File

@ -3,8 +3,6 @@
/****************************/
/* Read a nelist type Eeschema or OrcadPCB2 and build the component list
* Manages the lines like :
* ( XXXXXX VALEUR|(pin1,pin2,...=newalim) ID VALEUR
*/
#include "fctsys.h"
@ -16,7 +14,7 @@
#include "cvpcb.h"
#include "protos.h"
#include "cvstruct.h"
#include "cvpcb_mainframe.h"
#include "richio.h"
@ -86,7 +84,7 @@ static int ReadFootprintFilterList( FILE_LINE_READER& aNetlistReader, COMPONENT_
* $endfootprintlist
* }
*/
int WinEDA_CvpcbFrame::ReadSchematicNetlist()
int CVPCB_MAINFRAME::ReadSchematicNetlist()
{
char alim[1024];
int idx, jj, k, l;

View File

@ -13,7 +13,7 @@
#include "cvpcb.h"
#include "protos.h"
#include "cvstruct.h"
#include "cvpcb_mainframe.h"
#include "build_version.h"
@ -30,7 +30,7 @@ const wxString titleComponentLibErr( _( "Component Library Error" ) );
* @param NetlistFullFileName - Name of net list file to save.
* @returns - 1 if OK, 0 if error.
*/
int WinEDA_CvpcbFrame::SaveComponentList( const wxString& NetlistFullFileName )
int CVPCB_MAINFRAME::SaveComponentList( const wxString& NetlistFullFileName )
{
FILE* dest;
wxFileName fn( NetlistFullFileName );

View File

@ -9,6 +9,7 @@
#include "bitmaps.h"
#include "cvpcb.h"
#include "protos.h"
#include "cvpcb_mainframe.h"
#include "cvstruct.h"
#include "class_DisplayFootprintsFrame.h"
@ -25,7 +26,7 @@
* Create or Update the frame showing the current highlighted footprint
* and (if showed) the 3D display frame
*/
void WinEDA_CvpcbFrame::CreateScreenCmp()
void CVPCB_MAINFRAME::CreateScreenCmp()
{
wxString msg, FootprintName;
bool IsNew = FALSE;

View File

@ -10,11 +10,11 @@
#include "bitmaps.h"
#include "cvpcb.h"
#include "protos.h"
#include "cvstruct.h"
#include "cvpcb_mainframe.h"
#include "cvpcb_id.h"
void WinEDA_CvpcbFrame::ReCreateHToolbar()
void CVPCB_MAINFRAME::ReCreateHToolbar()
{
wxConfig* config = wxGetApp().m_EDA_Config;

View File

@ -1,4 +1,4 @@
EESchema-LIBRARY Version 2.3 Date: 07/12/2010 12:09:24
EESchema-LIBRARY Version 2.3 Date: 02/02/2011 07:13:37
#
# 4003APG120
#

View File

@ -1,6 +1,6 @@
PCBNEW-BOARD Version 1 date 02/12/2010 19:40:34
PCBNEW-BOARD Version 1 date 04/02/2011 22:02:30
# Created by Pcbnew(2010-12-01 BZR 2637)-testing
# Created by Pcbnew(2011-02-03 BZR 2792)-testing
$GENERAL
LayerCount 2
@ -20,7 +20,7 @@ $EndGENERAL
$SHEETDESCR
Sheet A4 11700 8267
Title "Demo"
Date "2 dec 2010"
Date "4 feb 2011"
Rev "2.C"
Comp "Kicad"
Comment1 ""
@ -55,10 +55,11 @@ TextPcbSize 600 800
EdgeModWidth 400
TextModSize 600 600
TextModWidth 120
PadSize 1500 2500
PadDrill 0
PadSize 550 550
PadDrill 354
Pad2MaskClearance 100
AuxiliaryAxisOrg 29500 55500
PcbPlotParams (pcbplotparams (layerselection 3178497) (usegerberextensions true) (excludeedgelayer true) (linewidth 60) (plotframeref false) (viasonmask false) (mode 1) (useauxorigin false) (hpglpennumber 1) (hpglpenspeed 20) (hpglpendiameter 15) (hpglpenoverlay 2) (pscolor true) (psnegative false) (plotreference true) (plotvalue true) (plotothertext true) (plotinvisibletext false) (padsonsilk false) (subtractmaskfromsilk false) (outputformat 1) (mirror false) (drillshape 1) (scaleselection 1) (outputdirectory plot_files))
$EndSETUP
$EQUIPOT
@ -4406,18 +4407,18 @@ Po 0 29500 13000 75000 13000 50
De 28 0 0 0 0
$EndDRAWSEGMENT
$TRACK
Po 0 49000 35000 54500 35000 170 -1
De 0 0 1 0 400
Po 0 48500 35500 49000 35000 170 -1
De 0 0 1 0 800
Po 0 70000 37800 69250 37050 170 -1
De 0 0 2 0 800
Po 0 49000 35000 54500 35000 170 -1
De 0 0 1 0 400
Po 0 66500 35000 67250 35000 170 -1
De 0 0 2 0 800
Po 0 69250 37000 69250 37050 170 -1
De 0 0 2 0 0
Po 0 69250 37000 67250 35000 170 -1
De 0 0 2 0 0
Po 0 70000 37800 69250 37050 170 -1
De 0 0 2 0 800
Po 0 68500 27500 69550 28550 170 -1
De 0 0 3 0 0
Po 0 71000 28550 71000 28620 170 -1
@ -4428,8 +4429,6 @@ Po 0 66000 27500 68500 27500 170 -1
De 0 0 3 0 0
Po 0 65500 28000 66000 27500 170 -1
De 0 0 3 0 800
Po 0 66000 28500 69000 28500 170 -1
De 0 0 4 0 0
Po 0 69500 29000 70000 29000 170 -1
De 0 0 4 0 0
Po 0 69000 28500 69500 29000 170 -1
@ -4438,10 +4437,12 @@ Po 0 70000 29000 70000 29100 170 -1
De 0 0 4 0 400
Po 0 65500 29000 66000 28500 170 -1
De 0 0 4 0 800
Po 0 66500 30000 70000 30000 170 -1
De 0 0 5 0 800
Po 0 66000 28500 69000 28500 170 -1
De 0 0 4 0 0
Po 0 70000 30000 70000 30150 170 -1
De 0 0 5 0 400
Po 0 66500 30000 70000 30000 170 -1
De 0 0 5 0 800
Po 0 65500 31000 66000 31500 170 -1
De 0 0 6 0 800
Po 0 67800 31300 70000 31300 170 -1
@ -4452,12 +4453,12 @@ Po 0 70000 31300 70000 31250 170 -1
De 0 0 6 0 400
Po 0 66000 31500 67600 31500 170 -1
De 0 0 6 0 0
Po 0 68950 32000 69250 32300 170 -1
De 0 0 7 0 0
Po 0 66500 32000 68950 32000 170 -1
De 0 0 7 0 800
Po 0 69250 32300 70000 32350 170 -1
De 0 0 7 0 400
Po 0 68950 32000 69250 32300 170 -1
De 0 0 7 0 0
Po 0 69350 33400 70000 33400 170 -1
De 0 0 8 0 0
Po 0 66500 33000 68950 33000 170 -1
@ -4466,22 +4467,20 @@ Po 0 70000 33400 70000 33450 170 -1
De 0 0 8 0 400
Po 0 68950 33000 69350 33400 170 -1
De 0 0 8 0 0
Po 0 66000 33500 68500 33500 170 -1
De 0 0 9 0 0
Po 0 69500 34500 70000 34500 170 -1
De 0 0 9 0 400
Po 0 68500 33500 69500 34500 170 -1
De 0 0 9 0 0
Po 0 65500 33000 66000 33500 170 -1
De 0 0 9 0 800
Po 0 66000 33500 68500 33500 170 -1
De 0 0 9 0 0
Po 0 66500 34000 68500 34000 170 -1
De 0 0 10 0 800
Po 0 68500 34000 70000 35500 170 -1
De 0 0 10 0 0
Po 0 70000 35500 70000 35600 170 -1
De 0 0 10 0 400
Po 0 69500 33000 69500 36000 170 -1
De 15 0 11 0 0
Po 0 69500 36000 70000 36500 170 -1
De 15 0 11 0 0
Po 3 68500 32500 68500 32500 450 -1
@ -4496,6 +4495,8 @@ Po 0 69000 32500 69500 33000 170 -1
De 15 0 11 0 0
Po 0 68500 32500 69000 32500 170 -1
De 15 0 11 0 0
Po 0 69500 33000 69500 36000 170 -1
De 15 0 11 0 0
Po 0 66750 35500 70000 38750 170 -1
De 0 0 12 0 0
Po 0 70000 38750 70000 38850 170 -1
@ -4522,8 +4523,6 @@ Po 0 55000 40625 55000 41000 170 -1
De 15 0 13 0 400
Po 0 57000 37500 57000 40000 170 -1
De 15 0 13 0 0
Po 0 63500 26000 63500 22500 170 -1
De 15 0 14 0 800
Po 0 63500 22500 43000 22500 170 -1
De 0 0 14 0 0
Po 3 63500 22500 63500 22500 450 -1
@ -4532,6 +4531,8 @@ Po 0 42500 23000 42500 23500 170 -1
De 0 0 14 0 400
Po 0 43000 22500 42500 23000 170 -1
De 0 0 14 0 0
Po 0 63500 26000 63500 22500 170 -1
De 15 0 14 0 800
Po 3 60000 39250 60000 39250 450 -1
De 15 1 15 0 0
Po 0 50000 39750 50500 39250 170 -1
@ -4554,8 +4555,6 @@ Po 0 55500 39250 56500 39250 170 -1
De 0 0 15 0 0
Po 0 50000 41000 50000 39750 170 -1
De 0 0 15 0 800
Po 0 61750 41750 61500 41500 170 -1
De 15 0 16 0 0
Po 0 61500 41500 61500 38000 170 -1
De 15 0 16 0 400
Po 0 61000 45000 61750 44250 170 -1
@ -4564,34 +4563,36 @@ Po 0 61750 44250 61750 41750 170 -1
De 15 0 16 0 0
Po 0 61000 45500 61000 45000 170 -1
De 15 0 16 0 800
Po 0 62500 38000 62500 44500 170 -1
De 15 0 17 0 800
Po 0 61750 41750 61500 41500 170 -1
De 15 0 16 0 0
Po 0 62500 44500 62000 45000 170 -1
De 15 0 17 0 0
Po 0 62000 45000 62000 45500 170 -1
De 15 0 17 0 400
Po 0 62500 38000 62500 44500 170 -1
De 15 0 17 0 800
Po 0 62500 37000 63000 37500 170 -1
De 15 0 18 0 800
Po 0 63000 37500 63000 45500 170 -1
De 15 0 18 0 400
Po 0 64000 37500 64000 45500 170 -1
De 15 0 19 0 400
Po 0 63500 37000 64000 37500 170 -1
De 15 0 19 0 800
Po 0 64000 37500 64000 45500 170 -1
De 15 0 19 0 400
Po 0 64500 38000 64500 43750 170 -1
De 15 0 20 0 800
Po 0 65000 44250 65000 45500 170 -1
De 15 0 20 0 400
Po 0 64500 43750 65000 44250 170 -1
De 15 0 20 0 0
Po 0 65000 43500 66000 44500 170 -1
De 15 0 21 0 0
Po 0 66000 44500 66000 45500 170 -1
De 15 0 21 0 400
Po 0 65000 37500 65000 43500 170 -1
De 15 0 21 0 0
Po 0 64500 37000 65000 37500 170 -1
De 15 0 21 0 800
Po 0 65000 43500 66000 44500 170 -1
De 15 0 21 0 0
Po 0 66000 36500 66000 43750 170 -1
De 15 0 22 0 0
Po 0 66000 43750 67000 44750 170 -1
@ -4648,14 +4649,14 @@ Po 0 49000 42000 59000 42000 170 -1
De 0 0 25 0 0
Po 3 49000 42000 49000 42000 450 -1
De 15 1 25 0 0
Po 0 68900 29000 69550 29650 170 -1
De 0 0 26 0 0
Po 0 66500 29000 68900 29000 170 -1
De 0 0 26 0 800
Po 0 69550 29650 71000 29650 170 -1
De 0 0 26 0 0
Po 0 71000 29620 71000 29650 170 -1
De 0 0 26 0 800
Po 0 68900 29000 69550 29650 170 -1
De 0 0 26 0 0
Po 0 66000 30500 69400 30500 170 -1
De 0 0 27 0 0
Po 0 69600 30700 71000 30700 170 -1
@ -4682,10 +4683,10 @@ Po 0 57000 31500 57000 25500 170 -1
De 15 0 28 0 0
Po 0 55000 31500 57000 31500 170 -1
De 15 0 28 0 0
Po 0 66500 31000 67500 30000 170 -1
De 15 0 29 0 800
Po 0 67500 30000 67500 16000 170 -1
De 15 0 29 0 400
Po 0 66500 31000 67500 30000 170 -1
De 15 0 29 0 800
Po 3 43000 22000 43000 22000 450 -1
De 15 1 30 0 0
Po 3 64500 22000 64500 22000 450 -1
@ -4700,8 +4701,6 @@ Po 0 64500 26000 64500 22000 170 -1
De 15 0 30 0 800
Po 0 64500 22000 43000 22000 170 -1
De 0 0 30 0 0
Po 0 42500 29000 42000 28500 170 -1
De 15 0 31 0 0
Po 0 55500 27000 55000 26500 170 -1
De 0 0 31 0 800
Po 0 42000 28500 42000 26500 170 -1
@ -4712,6 +4711,8 @@ Po 0 55000 26500 42000 26500 170 -1
De 0 0 31 0 0
Po 0 42500 29500 42500 29000 170 -1
De 15 0 31 0 800
Po 0 42500 29000 42000 28500 170 -1
De 15 0 31 0 0
Po 0 63000 27500 64000 27500 170 -1
De 15 0 32 0 0
Po 3 64000 25000 64000 25000 450 -1
@ -4744,14 +4745,14 @@ Po 0 55500 29000 55000 28500 170 -1
De 15 0 33 0 800
Po 0 40000 27000 39500 26500 170 -1
De 0 0 33 0 0
Po 0 35500 29500 35500 29500 170 -1
De 0 0 34 0 C00
Po 0 56000 31500 37500 31500 170 -1
De 0 0 34 0 0
Po 0 37500 31500 35500 29500 170 -1
De 0 0 34 0 400
Po 0 56500 31000 56000 31500 170 -1
De 0 0 34 0 800
Po 0 35500 29500 35500 29500 170 -1
De 0 0 34 0 C00
Po 0 36500 27000 36500 26500 170 -1
De 0 0 35 0 0
Po 0 37500 28000 36500 27000 170 -1
@ -4766,8 +4767,6 @@ Po 0 35000 29000 34500 29500 170 -1
De 0 0 36 0 400
Po 0 54500 29000 35000 29000 170 -1
De 0 0 36 0 800
Po 3 52500 25500 52500 25500 600 300
De 15 1 37 0 0
Po 0 33750 25500 33500 25250 170 -1
De 0 0 37 0 0
Po 0 53500 31000 54500 31000 170 -1
@ -4780,6 +4779,8 @@ Po 0 52500 25500 33750 25500 170 -1
De 0 0 37 0 0
Po 0 33500 23500 33500 25250 170 -1
De 0 0 37 0 800
Po 3 52500 25500 52500 25500 600 300
De 15 1 37 0 0
Po 3 62000 18500 62000 18500 450 -1
De 15 1 38 0 0
Po 0 62000 18500 62000 27500 170 -1
@ -4796,8 +4797,6 @@ Po 0 62000 27500 61500 28000 170 -1
De 15 0 38 0 400
Po 0 33000 28500 33500 29000 170 -1
De 15 0 38 0 0
Po 0 51000 29500 50500 30000 170 -1
De 0 0 39 0 0
Po 0 56000 29500 51000 29500 170 -1
De 0 0 39 0 0
Po 0 42000 30000 41500 29500 170 -1
@ -4806,6 +4805,8 @@ Po 0 56500 29000 56000 29500 170 -1
De 0 0 39 0 800
Po 0 50500 30000 42000 30000 170 -1
De 0 0 39 0 0
Po 0 51000 29500 50500 30000 170 -1
De 0 0 39 0 0
Po 3 40000 28500 40000 28500 450 -1
De 15 1 40 0 0
Po 0 40500 29500 40500 29000 170 -1
@ -4824,8 +4825,6 @@ Po 0 51500 30000 51000 30500 170 -1
De 0 0 41 0 0
Po 0 51000 30500 40500 30500 170 -1
De 0 0 41 0 0
Po 3 67000 24500 67000 24500 450 -1
De 15 1 42 0 0
Po 0 38500 29500 38500 29000 170 -1
De 15 0 42 0 800
Po 0 38000 24500 67000 24500 170 -1
@ -4840,6 +4839,8 @@ Po 0 67000 24500 67000 27500 170 -1
De 15 0 42 0 0
Po 3 38000 24500 38000 24500 450 -1
De 15 1 42 0 0
Po 3 67000 24500 67000 24500 450 -1
De 15 1 42 0 0
Po 0 55000 30500 52000 30500 170 -1
De 0 0 43 0 0
Po 0 52000 30500 51500 31000 170 -1
@ -4852,8 +4853,6 @@ Po 0 37500 30000 37500 29500 170 -1
De 0 0 43 0 400
Po 0 55500 31000 55000 30500 170 -1
De 0 0 43 0 800
Po 0 56000 26500 56000 20500 170 -1
De 15 0 44 0 0
Po 3 56000 20500 56000 20500 450 -1
De 15 1 44 0 0
Po 3 36000 20500 36000 20500 450 -1
@ -4868,6 +4867,8 @@ Po 0 36000 20500 36000 28500 170 -1
De 15 0 44 0 0
Po 0 56000 20500 36000 20500 170 -1
De 0 0 44 0 0
Po 0 56000 26500 56000 20500 170 -1
De 15 0 44 0 0
Po 0 54500 32000 38000 32000 170 -1
De 0 0 45 0 800
Po 0 37500 28500 37500 23500 170 -1
@ -4878,14 +4879,14 @@ Po 3 38000 32000 38000 32000 450 -1
De 15 1 45 0 0
Po 0 38000 32000 38000 29000 170 -1
De 15 0 45 0 0
Po 0 57500 26000 57500 24000 170 -1
De 15 0 46 0 800
Po 0 39000 24000 38500 23500 170 -1
De 0 0 46 0 400
Po 0 57500 24000 39000 24000 170 -1
De 0 0 46 0 0
Po 3 57500 24000 57500 24000 450 -1
De 15 1 46 0 0
Po 0 57500 26000 57500 24000 170 -1
De 15 0 46 0 800
Po 0 37500 45000 47750 45000 170 -1
De 0 0 47 0 0
Po 0 48000 44750 48000 44000 170 -1
@ -4894,8 +4895,6 @@ Po 0 47750 45000 48000 44750 170 -1
De 0 0 47 0 0
Po 0 37000 45500 37500 45000 170 -1
De 0 0 47 0 800
Po 0 59500 28000 59000 27500 170 -1
De 0 0 48 0 800
Po 0 44500 29500 44500 29000 170 -1
De 15 0 48 0 800
Po 0 44500 29000 44000 28500 170 -1
@ -4906,6 +4905,8 @@ Po 0 59000 27500 44000 27500 170 -1
De 0 0 48 0 0
Po 0 44000 28500 44000 27500 170 -1
De 15 0 48 0 0
Po 0 59500 28000 59000 27500 170 -1
De 0 0 48 0 800
Po 0 53000 26000 45000 26000 170 -1
De 0 0 49 0 0
Po 0 53500 25500 53000 26000 170 -1
@ -4940,14 +4941,12 @@ Po 0 46000 21000 58000 21000 170 -1
De 0 0 50 0 0
Po 3 46000 21000 46000 21000 450 -1
De 15 1 50 0 0
Po 0 59500 26000 59500 23500 170 -1
De 15 0 51 0 800
Po 0 59500 23500 47500 23500 170 -1
De 0 0 51 0 400
Po 3 59500 23500 59500 23500 450 -1
De 15 1 51 0 0
Po 0 60500 26000 60500 17500 170 -1
De 15 0 52 0 800
Po 0 59500 26000 59500 23500 170 -1
De 15 0 51 0 800
Po 0 60500 17500 46500 17500 170 -1
De 0 0 52 0 0
Po 3 60500 17500 60500 17500 450 -1
@ -4956,6 +4955,8 @@ Po 3 46500 17500 46500 17500 450 -1
De 15 1 52 0 0
Po 0 46500 23500 46500 17500 170 -1
De 15 0 52 0 800
Po 0 60500 26000 60500 17500 170 -1
De 15 0 52 0 800
Po 0 45500 23500 45500 19000 170 -1
De 15 0 53 0 800
Po 3 61500 19000 61500 19000 450 -1
@ -4966,8 +4967,6 @@ Po 0 45500 19000 61500 19000 170 -1
De 0 0 53 0 0
Po 0 61500 26000 61500 19000 170 -1
De 15 0 53 0 800
Po 3 44500 21500 44500 21500 450 -1
De 15 1 54 0 0
Po 0 44500 23500 44500 21500 170 -1
De 15 0 54 0 800
Po 0 44500 21500 62500 21500 170 -1
@ -4976,6 +4975,8 @@ Po 3 62500 21500 62500 21500 450 -1
De 15 1 54 0 0
Po 0 62500 26000 62500 21500 170 -1
De 15 0 54 0 800
Po 3 44500 21500 44500 21500 450 -1
De 15 1 54 0 0
Po 0 61500 27000 61000 26500 170 -1
De 15 0 55 0 800
Po 0 44000 23000 43500 23500 170 -1
@ -4986,8 +4987,6 @@ Po 3 61000 23000 61000 23000 450 -1
De 15 1 55 0 0
Po 0 61000 26500 61000 23000 170 -1
De 15 0 55 0 0
Po 0 63000 26500 63000 18000 170 -1
De 15 0 56 0 0
Po 0 62500 27000 63000 26500 170 -1
De 15 0 56 0 800
Po 0 63000 18000 40500 18000 170 -1
@ -4998,6 +4997,8 @@ Po 3 40500 18000 40500 18000 450 -1
De 15 1 56 0 0
Po 0 40500 18000 40500 23500 170 -1
De 15 0 56 0 400
Po 0 63000 26500 63000 18000 170 -1
De 15 0 56 0 0
Po 0 49500 48000 49000 48500 170 -1
De 0 0 57 0 400
Po 0 59000 37500 59000 41000 170 -1
@ -5086,14 +5087,14 @@ Po 3 45000 37000 45000 37000 450 -1
De 15 1 59 0 0
Po 0 56000 36250 55750 36500 170 -1
De 0 0 59 0 0
Po 3 46000 49000 46000 49000 450 -1
De 15 1 60 0 0
Po 0 43500 49000 43000 48500 170 -1
De 0 0 60 0 400
Po 0 46000 49000 43500 49000 170 -1
De 0 0 60 0 0
Po 0 46000 54000 46000 49000 170 -1
De 15 0 60 0 800
Po 3 46000 49000 46000 49000 450 -1
De 15 1 60 0 0
Po 0 42000 47500 37500 47500 170 -1
De 0 0 61 0 0
Po 0 37000 52500 37000 54000 170 -1
@ -5324,50 +5325,48 @@ Po 0 55000 50000 62500 50000 170 -1
De 0 0 69 0 0
Po 0 62500 47500 63500 46500 170 -1
De 15 0 69 0 0
Po 0 57000 54000 57000 51500 170 -1
De 15 0 70 0 800
Po 0 57000 51500 59000 49500 170 -1
De 15 0 70 0 0
Po 0 59000 49500 59000 48500 170 -1
De 15 0 70 0 400
Po 0 57000 54000 57000 51500 170 -1
De 15 0 70 0 800
Po 0 60000 49500 60000 48500 170 -1
De 15 0 71 0 400
Po 0 58000 51500 60000 49500 170 -1
De 15 0 71 0 0
Po 0 58000 54000 58000 51500 170 -1
De 15 0 71 0 800
Po 0 59000 52500 61000 50500 170 -1
De 15 0 72 0 0
Po 0 61000 50500 61000 48500 170 -1
De 15 0 72 0 400
Po 0 59000 54000 59000 52500 170 -1
De 15 0 72 0 800
Po 0 59000 52500 61000 50500 170 -1
De 15 0 72 0 0
Po 0 60000 54000 60000 52500 170 -1
De 15 0 73 0 800
Po 0 60000 52500 62000 50500 170 -1
De 15 0 73 0 0
Po 0 62000 50500 62000 48500 170 -1
De 15 0 73 0 400
Po 0 61000 52250 63000 50250 170 -1
De 15 0 74 0 0
Po 0 63000 50250 63000 48500 170 -1
De 15 0 74 0 400
Po 0 61000 54000 61000 52250 170 -1
De 15 0 74 0 800
Po 0 61000 52250 63000 50250 170 -1
De 15 0 74 0 0
Po 0 62000 52000 64000 50000 170 -1
De 15 0 75 0 0
Po 0 64000 50000 64000 48500 170 -1
De 15 0 75 0 400
Po 0 62000 54000 62000 52000 170 -1
De 15 0 75 0 800
Po 0 65000 49500 63000 51500 170 -1
De 15 0 76 0 0
Po 0 63000 51500 63000 54000 170 -1
De 15 0 76 0 400
Po 0 65000 48500 65000 49500 170 -1
De 15 0 76 0 800
Po 0 64000 52500 64500 52000 170 -1
De 15 0 77 0 0
Po 0 65000 49500 63000 51500 170 -1
De 15 0 76 0 0
Po 0 64000 54000 64000 52500 170 -1
De 15 0 77 0 800
Po 0 65500 52000 66000 51500 170 -1
@ -5376,6 +5375,8 @@ Po 0 64500 52000 65500 52000 170 -1
De 15 0 77 0 0
Po 0 66000 51500 66000 48500 170 -1
De 15 0 77 0 400
Po 0 64000 52500 64500 52000 170 -1
De 15 0 77 0 0
Po 0 52000 52000 53000 51000 170 -1
De 15 0 78 0 0
Po 0 52000 54000 52000 52000 170 -1
@ -5384,8 +5385,6 @@ Po 3 52000 52000 52000 52000 450 -1
De 15 1 78 0 0
Po 0 53000 51000 53000 48500 170 -1
De 15 0 78 0 400
Po 0 53500 48000 52500 48000 170 -1
De 15 0 79 0 0
Po 3 53000 52000 53000 52000 450 -1
De 15 1 79 0 0
Po 0 52500 48000 52000 48500 170 -1
@ -5396,6 +5395,8 @@ Po 0 53000 52000 53500 51500 170 -1
De 15 0 79 0 0
Po 0 53500 51500 53500 48000 170 -1
De 15 0 79 0 0
Po 0 53500 48000 52500 48000 170 -1
De 15 0 79 0 0
Po 0 57000 41000 57500 40500 170 -1
De 0 0 80 0 800
Po 3 62000 41000 62000 41000 450 -1
@ -5446,12 +5447,12 @@ Po 0 59500 44500 59500 38000 170 -1
De 15 0 82 0 400
Po 0 53000 45500 53000 44000 170 -1
De 15 0 82 0 C00
Po 0 66500 36000 69000 38500 170 -1
De 0 0 83 0 800
Po 0 69000 38500 69000 39000 170 -1
De 0 0 83 0 0
Po 0 69000 39000 70000 39950 170 -1
De 0 0 83 0 400
Po 0 66500 36000 69000 38500 170 -1
De 0 0 83 0 800
Po 0 52250 40250 57250 40250 170 -1
De 0 0 84 0 0
Po 0 65875 40250 66000 40125 170 -1
@ -5474,10 +5475,10 @@ Po 0 57500 40000 58750 40000 170 -1
De 0 0 84 0 0
Po 0 66000 40125 66000 37125 170 -1
De 0 0 84 0 0
Po 0 44000 44000 44000 42000 170 -1
De 15 0 85 0 C00
Po 0 44000 45500 44000 44000 170 -1
De 15 0 85 0 C00
Po 0 44000 44000 44000 42000 170 -1
De 15 0 85 0 C00
Po 0 44000 47000 44000 48500 170 -1
De 15 0 86 0 400
Po 0 43500 44500 43500 46500 170 -1
@ -5488,10 +5489,10 @@ Po 0 43000 44000 43500 44500 170 -1
De 15 0 86 0 800
Po 0 43000 44000 43000 42000 170 -1
De 15 0 86 0 C00
Po 0 38000 42000 38000 44000 170 -1
De 15 0 87 0 C00
Po 0 38000 44000 38000 45500 170 -1
De 15 0 87 0 C00
Po 0 38000 42000 38000 44000 170 -1
De 15 0 87 0 C00
Po 0 37000 44000 37500 44500 170 -1
De 15 0 88 0 800
Po 0 38000 47000 38000 48500 170 -1
@ -5502,16 +5503,14 @@ Po 0 37500 46500 38000 47000 170 -1
De 15 0 88 0 0
Po 0 37000 44000 37000 42000 170 -1
De 15 0 88 0 C00
Po 0 40000 45500 40000 44000 170 -1
De 15 0 89 0 C00
Po 0 40000 44000 40000 42000 170 -1
De 15 0 89 0 C00
Po 0 40000 45500 40000 44000 170 -1
De 15 0 89 0 C00
Po 0 42000 45500 42000 44000 170 -1
De 15 0 90 0 C00
Po 0 42000 44000 42000 42000 170 -1
De 15 0 90 0 C00
Po 0 40000 47000 40000 48500 170 -1
De 15 0 91 0 400
Po 0 39000 44000 39000 42000 170 -1
De 15 0 91 0 C00
Po 0 39000 44000 39500 44500 170 -1
@ -5520,6 +5519,8 @@ Po 0 39500 46500 40000 47000 170 -1
De 15 0 91 0 0
Po 0 39500 44500 39500 46500 170 -1
De 15 0 91 0 0
Po 0 40000 47000 40000 48500 170 -1
De 15 0 91 0 400
Po 0 41000 44000 41000 42000 170 -1
De 15 0 92 0 C00
Po 0 42000 47000 42000 48500 170 -1
@ -5538,8 +5539,6 @@ Po 0 57000 44500 56500 45000 170 -1
De 15 0 93 0 0
Po 0 57000 44000 57000 44500 170 -1
De 15 0 93 0 800
Po 0 53125 36500 55375 36500 170 -1
De 15 0 94 0 0
Po 0 53000 41000 53000 36625 170 -1
De 15 0 94 0 800
Po 0 55500 36375 55500 36000 170 -1
@ -5548,12 +5547,14 @@ Po 0 55375 36500 55500 36375 170 -1
De 15 0 94 0 0
Po 0 53000 36625 53125 36500 170 -1
De 15 0 94 0 0
Po 0 66500 38000 67000 38000 170 -1
De 0 0 95 0 800
Po 0 53125 36500 55375 36500 170 -1
De 15 0 94 0 0
Po 0 67000 38000 70000 41000 170 -1
De 0 0 95 0 0
Po 0 70000 41000 70000 41050 170 -1
De 0 0 95 0 400
Po 0 66500 38000 67000 38000 170 -1
De 0 0 95 0 800
Po 0 68500 29500 68500 31500 170 -1
De 15 0 96 0 0
Po 0 65000 29750 65250 29500 170 -1
@ -5592,8 +5593,6 @@ Po 0 66500 17500 62000 17500 170 -1
De 0 0 98 0 0
Po 0 61500 17000 35500 17000 170 -1
De 0 0 98 0 0
Po 0 56125 41500 57875 41500 170 -1
De 0 0 99 0 0
Po 0 57875 41500 58000 41375 170 -1
De 0 0 99 0 0
Po 0 56000 41375 56125 41500 170 -1
@ -5602,6 +5601,8 @@ Po 0 58000 41375 58000 41000 170 -1
De 0 0 99 0 400
Po 0 56000 41000 56000 41375 170 -1
De 0 0 99 0 800
Po 0 56125 41500 57875 41500 170 -1
De 0 0 99 0 0
Po 0 42500 34500 42000 34500 220 -1
De 0 0 100 0 0
Po 0 37000 36000 37000 34500 220 -1
@ -5798,10 +5799,10 @@ Po 0 34500 22000 34500 23500 170 -1
De 0 0 101 0 C00
Po 0 64500 16000 64500 14500 170 -1
De 15 0 102 0 C00
Po 0 60500 15000 60500 14500 170 -1
De 15 0 103 0 400
Po 0 59500 16000 60500 15000 170 -1
De 15 0 103 0 800
Po 0 60500 15000 60500 14500 170 -1
De 15 0 103 0 400
Po 0 49000 45500 49000 44000 170 -1
De 15 0 104 0 C00
Po 0 50000 45500 50000 44000 170 -1
@ -5824,8 +5825,6 @@ Po 0 46000 35500 44500 35500 170 -1
De 0 0 108 0 C00
Po 0 46750 36250 50750 36250 170 -1
De 0 0 108 0 0
Po 0 44500 38500 43500 38500 170 -1
De 0 0 109 0 800
Po 0 46000 38500 44500 38500 170 -1
De 0 0 109 0 C00
Po 0 48000 38000 48500 38500 170 -1
@ -5836,6 +5835,8 @@ Po 0 46500 38000 48000 38000 170 -1
De 0 0 109 0 0
Po 0 46000 38500 46500 38000 170 -1
De 0 0 109 0 800
Po 0 44500 38500 43500 38500 170 -1
De 0 0 109 0 800
Po 0 64500 29000 65000 29500 250 -1
De 15 0 110 0 800
Po 0 48500 42500 48000 42000 250 -1

View File

@ -1,171 +1,3 @@
Cmp-Mod V01 Genere par PcbNew le 17/01/2011 13:55:19
BeginCmp
TimeStamp = /322D3011;
Reference = BUS1;
ValeurCmp = BUSPC;
IdModule = BUS_PC;
EndCmp
BeginCmp
TimeStamp = /32307DE2;
Reference = C1;
ValeurCmp = 47uF;
IdModule = CP6;
EndCmp
BeginCmp
TimeStamp = /32307ECF;
Reference = C2;
ValeurCmp = 47pF;
IdModule = C1;
EndCmp
BeginCmp
TimeStamp = /32307ED4;
Reference = C3;
ValeurCmp = 47pF;
IdModule = C1;
EndCmp
BeginCmp
TimeStamp = /32307DCF;
Reference = C4;
ValeurCmp = 47uF;
IdModule = CP6;
EndCmp
BeginCmp
TimeStamp = /32307DCA;
Reference = C5;
ValeurCmp = 47uF;
IdModule = CP6;
EndCmp
BeginCmp
TimeStamp = /32307DC0;
Reference = C6;
ValeurCmp = 47uF;
IdModule = CP6;
EndCmp
BeginCmp
TimeStamp = /322D32AC;
Reference = D1;
ValeurCmp = LED;
IdModule = LEDV;
EndCmp
BeginCmp
TimeStamp = /322D32BE;
Reference = D2;
ValeurCmp = LED;
IdModule = LEDV;
EndCmp
BeginCmp
TimeStamp = /32568D1E;
Reference = JP1;
ValeurCmp = CONN_8X2;
IdModule = pin_array_8x2;
EndCmp
BeginCmp
TimeStamp = /3256759C;
Reference = P1;
ValeurCmp = DB25FEMELLE;
IdModule = DB25FC;
EndCmp
BeginCmp
TimeStamp = /32307EA1;
Reference = R1;
ValeurCmp = 100K;
IdModule = R3;
EndCmp
BeginCmp
TimeStamp = /32307EAA;
Reference = R2;
ValeurCmp = 1K;
IdModule = R3;
EndCmp
BeginCmp
TimeStamp = /324002E6;
Reference = R3;
ValeurCmp = 10K;
IdModule = R3;
EndCmp
BeginCmp
TimeStamp = /322D3295;
Reference = R4;
ValeurCmp = 330;
IdModule = R3;
EndCmp
BeginCmp
TimeStamp = /322D32A0;
Reference = R5;
ValeurCmp = 330;
IdModule = R3;
EndCmp
BeginCmp
TimeStamp = /325679C1;
Reference = RR1;
ValeurCmp = 9x1K;
IdModule = r_pack9;
EndCmp
BeginCmp
TimeStamp = /322D31F4;
Reference = U1;
ValeurCmp = 74LS245;
IdModule = 20dip300;
EndCmp
BeginCmp
TimeStamp = /322D35B4;
Reference = U2;
ValeurCmp = 74LS688;
IdModule = 20dip300;
EndCmp
BeginCmp
TimeStamp = /4A087146;
Reference = U3;
ValeurCmp = 74LS541;
IdModule = 20dip300;
EndCmp
BeginCmp
TimeStamp = /3240023F;
Reference = U5;
ValeurCmp = 628128;
IdModule = DIP-32__600;
EndCmp
BeginCmp
TimeStamp = /322D321C;
Reference = U8;
ValeurCmp = EP600;
IdModule = 24dip300;
EndCmp
BeginCmp
TimeStamp = /322D32FA;
Reference = U9;
ValeurCmp = 4003APG120;
IdModule = PGA120;
EndCmp
BeginCmp
TimeStamp = /32307EC0;
Reference = X1;
ValeurCmp = 8MHz;
IdModule = HC-18UH;
EndCmp
Cmp-Mod V01 Created by CvPCB (2011-02-04 BZR 2793)-testing date = 05/02/2011 15:42:18
EndListe

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
update=01/02/2011 18:49:08
update=04/02/2011 22:02:33
version=1
last_client=eeschema
last_client=pcbnew
[common]
NetDir=
[general]
@ -12,33 +12,6 @@ version=1
NetIExt=net
[cvpcb/libraries]
EquName1=devcms
[pcbnew]
version=1
PadDrlX=354
PadDimH=550
PadDimV=550
BoardThickness=630
SgPcb45=1
TxtPcbV=800
TxtPcbH=600
TxtModV=600
TxtModH=600
TxtModW=120
VEgarde=100
DrawLar=150
EdgeLar=50
TxtLar=170
MSegLar=400
LastNetListRead=interf_u.net
[pcbnew/libraries]
LibDir=F:\\kicad\\share\\modules\\packages3d
LibName1=connect
LibName2=discret
LibName3=dip_sockets
LibName4=pin_array
LibName5=divers
LibName6=libcms
LibName7=display
[eeschema]
version=1
LibDir=
@ -82,3 +55,30 @@ LibName8=adc-dac
LibName9=memory
LibName10=xilinx
LibName11=special
[pcbnew]
version=1
PadDrlX=354
PadDimH=550
PadDimV=550
BoardThickness=630
SgPcb45=1
TxtPcbV=800
TxtPcbH=600
TxtModV=600
TxtModH=600
TxtModW=120
VEgarde=100
DrawLar=150
EdgeLar=50
TxtLar=170
MSegLar=400
LastNetListRead=interf_u.net
[pcbnew/libraries]
LibDir=F:\\kicad\\share\\modules\\packages3d
LibName1=connect
LibName2=discret
LibName3=dip_sockets
LibName4=pin_array
LibName5=divers
LibName6=libcms
LibName7=display

View File

@ -1,4 +1,4 @@
EESchema Schematic File Version 2 date 07/12/2010 12:09:23
EESchema Schematic File Version 2 date 02/02/2011 07:13:59
LIBS:power
LIBS:device
LIBS:conn

View File

@ -180,6 +180,7 @@ extern const char* lang_en_xpm[];
extern const char* lang_es_xpm[];
extern const char* lang_fr_xpm[];
extern const char* lang_fi_xpm[];
extern const char* lang_gr_xpm[];
extern const char* lang_hu_xpm[];
extern const char* lang_it_xpm[];
extern const char* lang_jp_xpm[];

View File

@ -88,6 +88,7 @@ enum main_id
ID_LANGUAGE_FINNISH,
ID_LANGUAGE_SPANISH,
ID_LANGUAGE_GERMAN,
ID_LANGUAGE_GREEK,
ID_LANGUAGE_RUSSIAN,
ID_LANGUAGE_PORTUGUESE,
ID_LANGUAGE_ITALIAN,

View File

@ -22,6 +22,7 @@
#include "3d_struct.h"
#include "protos.h"
#include "richio.h"
#include "filter_reader.h"
/*********************************************/