30 changed files with 1865 additions and 1258 deletions
-
1common/CMakeLists.txt
-
2common/about_kicad.cpp
-
14common/class_marker_base.cpp
-
30common/dialog_display_info_HTML_base.cpp
-
133common/dialog_display_info_HTML_base.fbp
-
1eeschema/CMakeLists.txt
-
26eeschema/annotate.cpp
-
70eeschema/class_drc_erc_item.cpp
-
67eeschema/class_marker_sch.cpp
-
27eeschema/class_marker_sch.h
-
6eeschema/controle.cpp
-
140eeschema/dialog_erc.cpp
-
44eeschema/dialog_erc.h
-
11eeschema/dialog_erc_base.cpp
-
25eeschema/dialog_erc_base.fbp
-
9eeschema/dialog_erc_base.h
-
117eeschema/dialog_erc_listbox.h
-
2eeschema/eelibs_read_libraryfiles.cpp
-
41eeschema/erc.cpp
-
18eeschema/load_one_schematic_file.cpp
-
2eeschema/netform.cpp
-
14eeschema/onrightclick.cpp
-
7eeschema/schedit.cpp
-
32include/class_drc_item.h
-
19include/class_marker_base.h
-
41include/dialog_display_info_HTML_base.h
-
2include/id.h
-
4include/wxEeschemaStruct.h
-
BINinternat/fr/kicad.mo
-
2218internat/fr/kicad.po
@ -0,0 +1,30 @@ |
|||
///////////////////////////////////////////////////////////////////////////
|
|||
// C++ code generated with wxFormBuilder (version Apr 16 2008)
|
|||
// http://www.wxformbuilder.org/
|
|||
//
|
|||
// PLEASE DO "NOT" EDIT THIS FILE!
|
|||
///////////////////////////////////////////////////////////////////////////
|
|||
|
|||
#include "dialog_display_info_HTML_base.h"
|
|||
|
|||
///////////////////////////////////////////////////////////////////////////
|
|||
|
|||
DIALOG_DISPLAY_HTML_TEXT_BASE::DIALOG_DISPLAY_HTML_TEXT_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) |
|||
{ |
|||
this->SetSizeHints( wxDefaultSize, wxDefaultSize ); |
|||
|
|||
wxBoxSizer* bMainSizer; |
|||
bMainSizer = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
m_htmlWindow = new wxHtmlWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO ); |
|||
m_htmlWindow->SetMinSize( wxSize( 400,150 ) ); |
|||
|
|||
bMainSizer->Add( m_htmlWindow, 1, wxALL|wxEXPAND, 5 ); |
|||
|
|||
this->SetSizer( bMainSizer ); |
|||
this->Layout(); |
|||
} |
|||
|
|||
DIALOG_DISPLAY_HTML_TEXT_BASE::~DIALOG_DISPLAY_HTML_TEXT_BASE() |
|||
{ |
|||
} |
|||
@ -0,0 +1,133 @@ |
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> |
|||
<wxFormBuilder_Project> |
|||
<FileVersion major="1" minor="9" /> |
|||
<object class="Project" expanded="1"> |
|||
<property name="class_decoration"></property> |
|||
<property name="code_generation">C++</property> |
|||
<property name="disconnect_events">1</property> |
|||
<property name="encoding">UTF-8</property> |
|||
<property name="event_generation">connect</property> |
|||
<property name="file">dialog_display_info_HTML_base</property> |
|||
<property name="first_id">1000</property> |
|||
<property name="help_provider">none</property> |
|||
<property name="internationalize">1</property> |
|||
<property name="name">dialog_display_info_HTML</property> |
|||
<property name="namespace"></property> |
|||
<property name="path">.</property> |
|||
<property name="precompiled_header"></property> |
|||
<property name="relative_path">1</property> |
|||
<property name="use_enum">0</property> |
|||
<property name="use_microsoft_bom">0</property> |
|||
<object class="Dialog" expanded="1"> |
|||
<property name="bg"></property> |
|||
<property name="center"></property> |
|||
<property name="context_help"></property> |
|||
<property name="enabled">1</property> |
|||
<property name="extra_style"></property> |
|||
<property name="fg"></property> |
|||
<property name="font"></property> |
|||
<property name="hidden">0</property> |
|||
<property name="id">wxID_ANY</property> |
|||
<property name="maximum_size"></property> |
|||
<property name="minimum_size"></property> |
|||
<property name="name">DIALOG_DISPLAY_HTML_TEXT_BASE</property> |
|||
<property name="pos"></property> |
|||
<property name="size">291,165</property> |
|||
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property> |
|||
<property name="subclass"></property> |
|||
<property name="title"></property> |
|||
<property name="tooltip"></property> |
|||
<property name="window_extra_style"></property> |
|||
<property name="window_name"></property> |
|||
<property name="window_style"></property> |
|||
<event name="OnActivate"></event> |
|||
<event name="OnActivateApp"></event> |
|||
<event name="OnChar"></event> |
|||
<event name="OnClose"></event> |
|||
<event name="OnEnterWindow"></event> |
|||
<event name="OnEraseBackground"></event> |
|||
<event name="OnHibernate"></event> |
|||
<event name="OnIconize"></event> |
|||
<event name="OnIdle"></event> |
|||
<event name="OnInitDialog"></event> |
|||
<event name="OnKeyDown"></event> |
|||
<event name="OnKeyUp"></event> |
|||
<event name="OnKillFocus"></event> |
|||
<event name="OnLeaveWindow"></event> |
|||
<event name="OnLeftDClick"></event> |
|||
<event name="OnLeftDown"></event> |
|||
<event name="OnLeftUp"></event> |
|||
<event name="OnMiddleDClick"></event> |
|||
<event name="OnMiddleDown"></event> |
|||
<event name="OnMiddleUp"></event> |
|||
<event name="OnMotion"></event> |
|||
<event name="OnMouseEvents"></event> |
|||
<event name="OnMouseWheel"></event> |
|||
<event name="OnPaint"></event> |
|||
<event name="OnRightDClick"></event> |
|||
<event name="OnRightDown"></event> |
|||
<event name="OnRightUp"></event> |
|||
<event name="OnSetFocus"></event> |
|||
<event name="OnSize"></event> |
|||
<event name="OnUpdateUI"></event> |
|||
<object class="wxBoxSizer" expanded="1"> |
|||
<property name="minimum_size"></property> |
|||
<property name="name">bMainSizer</property> |
|||
<property name="orient">wxVERTICAL</property> |
|||
<property name="permission">none</property> |
|||
<object class="sizeritem" expanded="1"> |
|||
<property name="border">5</property> |
|||
<property name="flag">wxALL|wxEXPAND</property> |
|||
<property name="proportion">1</property> |
|||
<object class="wxHtmlWindow" expanded="1"> |
|||
<property name="bg"></property> |
|||
<property name="context_help"></property> |
|||
<property name="enabled">1</property> |
|||
<property name="fg"></property> |
|||
<property name="font"></property> |
|||
<property name="hidden">0</property> |
|||
<property name="id">wxID_ANY</property> |
|||
<property name="maximum_size"></property> |
|||
<property name="minimum_size">400,150</property> |
|||
<property name="name">m_htmlWindow</property> |
|||
<property name="permission">public</property> |
|||
<property name="pos"></property> |
|||
<property name="size"></property> |
|||
<property name="style">wxHW_SCROLLBAR_AUTO</property> |
|||
<property name="subclass"></property> |
|||
<property name="tooltip"></property> |
|||
<property name="window_extra_style"></property> |
|||
<property name="window_name"></property> |
|||
<property name="window_style"></property> |
|||
<event name="OnChar"></event> |
|||
<event name="OnEnterWindow"></event> |
|||
<event name="OnEraseBackground"></event> |
|||
<event name="OnHtmlCellClicked"></event> |
|||
<event name="OnHtmlCellHover"></event> |
|||
<event name="OnHtmlLinkClicked"></event> |
|||
<event name="OnKeyDown"></event> |
|||
<event name="OnKeyUp"></event> |
|||
<event name="OnKillFocus"></event> |
|||
<event name="OnLeaveWindow"></event> |
|||
<event name="OnLeftDClick"></event> |
|||
<event name="OnLeftDown"></event> |
|||
<event name="OnLeftUp"></event> |
|||
<event name="OnMiddleDClick"></event> |
|||
<event name="OnMiddleDown"></event> |
|||
<event name="OnMiddleUp"></event> |
|||
<event name="OnMotion"></event> |
|||
<event name="OnMouseEvents"></event> |
|||
<event name="OnMouseWheel"></event> |
|||
<event name="OnPaint"></event> |
|||
<event name="OnRightDClick"></event> |
|||
<event name="OnRightDown"></event> |
|||
<event name="OnRightUp"></event> |
|||
<event name="OnSetFocus"></event> |
|||
<event name="OnSize"></event> |
|||
<event name="OnUpdateUI"></event> |
|||
</object> |
|||
</object> |
|||
</object> |
|||
</object> |
|||
</object> |
|||
</wxFormBuilder_Project> |
|||
@ -0,0 +1,70 @@ |
|||
/*
|
|||
* This program source code file is part of KICAD, a free EDA CAD application. |
|||
* |
|||
* Copyright (C) 2007 Kicad Developers, see change_log.txt for contributors. |
|||
* |
|||
* This program is free software; you can redistribute it and/or |
|||
* modify it under the terms of the GNU General Public License |
|||
* as published by the Free Software Foundation; either version 2 |
|||
* of the License, or (at your option) any later version. |
|||
* |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program; if not, you may find one here: |
|||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|||
* or you may search the http://www.gnu.org website for the version 2 license,
|
|||
* or you may write to the Free Software Foundation, Inc., |
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
|||
*/ |
|||
|
|||
|
|||
/******************************************************************/ |
|||
/* class_drc_erc_item.cpp - DRC_ITEM class functions for eeschema */ |
|||
/******************************************************************/ |
|||
#include "fctsys.h"
|
|||
#include "common.h"
|
|||
|
|||
#include "class_drc_item.h"
|
|||
#include "erc.h"
|
|||
|
|||
wxString DRC_ITEM::GetErrorText() const |
|||
{ |
|||
switch( m_ErrorCode ) |
|||
{ |
|||
case ERCE_UNSPECIFIED: |
|||
return wxString( _("ERC err unspecified") ); |
|||
case ERCE_DUPLICATE_SHEET_NAME: |
|||
return wxString( _("Duplicate sheet names within a given sheet") ); |
|||
case ERCE_PIN_NOT_CONNECTED: |
|||
return wxString( _("Pin not connected (and no connect symbol found on this pin)") ); |
|||
case ERCE_PIN_NOT_DRIVEN: |
|||
return wxString( _("Pin connected to some others pins but no pin to drive it") ); |
|||
case ERCE_PIN_TO_PIN_WARNING: |
|||
return wxString( _("Confict problem between pins. Severity: warning") ); |
|||
case ERCE_PIN_TO_PIN_ERROR: |
|||
return wxString( _("Confict problem between pins. Severity: error") ); |
|||
case ERCE_HIERACHICAL_LABEL: |
|||
return wxString( _("Mismatch between hierarchical labels and pins sheets")); |
|||
case ERCE_NOCONNECT_CONNECTED: |
|||
return wxString( _("A no connect symbol is connected to more than 1 pin")); |
|||
|
|||
default: |
|||
return wxString( wxT("Unkown.") ); |
|||
} |
|||
} |
|||
|
|||
|
|||
wxString DRC_ITEM::ShowCoord( const wxPoint& aPos ) |
|||
{ |
|||
wxString ret; |
|||
wxPoint pos_in_pcb_units = aPos; |
|||
pos_in_pcb_units.x *= 10; |
|||
pos_in_pcb_units.y *= 10; |
|||
ret << pos_in_pcb_units; |
|||
return ret; |
|||
} |
|||
|
|||
@ -0,0 +1,117 @@ |
|||
///////////////////////////////////////////////////////////////////////////// |
|||
|
|||
// Name: dialog_erc.h |
|||
// Author: jean-pierre Charras |
|||
// Licence: GPL |
|||
///////////////////////////////////////////////////////////////////////////// |
|||
|
|||
#ifndef DIALOG_ERC_LISTBOX_H |
|||
#define DIALOG_ERC_LISTBOX_H |
|||
|
|||
#include <wx/htmllbox.h> |
|||
#include <vector> |
|||
|
|||
#include "fctsys.h" |
|||
#include "class_drawpanel.h" |
|||
#include "program.h" |
|||
#include "class_marker_sch.h" |
|||
|
|||
/** |
|||
* Class ERC_HTML_LISTBOX |
|||
* is used to display a DRC_ITEM_LIST. |
|||
*/ |
|||
class ERC_HTML_LISTBOX : public wxHtmlListBox |
|||
{ |
|||
private: |
|||
std::vector<MARKER_SCH*> m_MarkerList; ///< wxHtmlListBox does not own the list, I do |
|||
|
|||
public: |
|||
ERC_HTML_LISTBOX( wxWindow* parent, wxWindowID id = wxID_ANY, |
|||
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, |
|||
long style = 0, const wxString choices[] = NULL, int unused = 0 ) : |
|||
wxHtmlListBox( parent, id, pos, size, style ) |
|||
{ |
|||
} |
|||
|
|||
|
|||
~ERC_HTML_LISTBOX() |
|||
{ |
|||
} |
|||
|
|||
|
|||
/** |
|||
* Function SetList |
|||
* sets the DRC_ITEM_LIST for this listbox. Ownership of the DRC_ITEM_LIST is |
|||
* transfered to this ERC_HTML_LISTBOX. |
|||
* @param aList The DRC_ITEM_LIST* containing the DRC_ITEMs which will be |
|||
* displayed in the wxHtmlListBox |
|||
*/ |
|||
void AppendToList( MARKER_SCH* aItem ) |
|||
{ |
|||
m_MarkerList.push_back( aItem); |
|||
SetItemCount( m_MarkerList.size() ); |
|||
Refresh(); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* Function GetItem |
|||
* returns a requested DRC_ITEM* or NULL. |
|||
*/ |
|||
const MARKER_SCH* GetItem( unsigned aIndex ) |
|||
{ |
|||
if( m_MarkerList.size() > aIndex ) |
|||
{ |
|||
return m_MarkerList[ aIndex ]; |
|||
} |
|||
return NULL; |
|||
} |
|||
|
|||
|
|||
/** |
|||
* Function OnGetItem |
|||
* returns the html text associated with the DRC_ITEM given by index 'n'. |
|||
* @param n An index into the list. |
|||
* @return wxString - the simple html text to show in the listbox. |
|||
*/ |
|||
wxString OnGetItem( size_t n ) const |
|||
{ |
|||
if( m_MarkerList.size() > n && n >= 0 ) |
|||
{ |
|||
const MARKER_SCH* item = m_MarkerList[ n ]; |
|||
if( item ) |
|||
return item->GetReporter().ShowHtml(); |
|||
} |
|||
return wxString(); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* Function OnGetItem |
|||
* returns the html text associated with the given index 'n'. |
|||
* @param n An index into the list. |
|||
* @return wxString - the simple html text to show in the listbox. |
|||
*/ |
|||
wxString OnGetItemMarkup( size_t n ) const |
|||
{ |
|||
return OnGetItem( n ); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* Function ClearList |
|||
* deletes all items in the list. |
|||
* Does not erase markers in schematic |
|||
*/ |
|||
void ClearList() |
|||
{ |
|||
m_MarkerList.clear(); |
|||
SetItemCount( 0 ); |
|||
SetSelection( -1 ); // -1 is no selection |
|||
Refresh(); |
|||
} |
|||
}; |
|||
|
|||
#endif |
|||
|
|||
// DIALOG_ERC_LISTBOX_H |
|||
@ -0,0 +1,41 @@ |
|||
/////////////////////////////////////////////////////////////////////////// |
|||
// C++ code generated with wxFormBuilder (version Apr 16 2008) |
|||
// http://www.wxformbuilder.org/ |
|||
// |
|||
// PLEASE DO "NOT" EDIT THIS FILE! |
|||
/////////////////////////////////////////////////////////////////////////// |
|||
|
|||
#ifndef __dialog_display_info_HTML_base__ |
|||
#define __dialog_display_info_HTML_base__ |
|||
|
|||
#include <wx/intl.h> |
|||
|
|||
#include <wx/html/htmlwin.h> |
|||
#include <wx/gdicmn.h> |
|||
#include <wx/font.h> |
|||
#include <wx/colour.h> |
|||
#include <wx/settings.h> |
|||
#include <wx/string.h> |
|||
#include <wx/sizer.h> |
|||
#include <wx/dialog.h> |
|||
|
|||
/////////////////////////////////////////////////////////////////////////// |
|||
|
|||
|
|||
/////////////////////////////////////////////////////////////////////////////// |
|||
/// Class DIALOG_DISPLAY_HTML_TEXT_BASE |
|||
/////////////////////////////////////////////////////////////////////////////// |
|||
class DIALOG_DISPLAY_HTML_TEXT_BASE : public wxDialog |
|||
{ |
|||
private: |
|||
|
|||
protected: |
|||
|
|||
public: |
|||
wxHtmlWindow* m_htmlWindow; |
|||
DIALOG_DISPLAY_HTML_TEXT_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 291,165 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); |
|||
~DIALOG_DISPLAY_HTML_TEXT_BASE(); |
|||
|
|||
}; |
|||
|
|||
#endif //__dialog_display_info_HTML_base__ |
|||
2218
internat/fr/kicad.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue