Commit f1e5be9a authored by jean-pierre charras's avatar jean-pierre charras
Browse files

Fix @JP messages (no bugs, just comment lines)

Eeschema: Viewlib is now accessible from Libedit (to browse libs or load a component to edit)
Libedit: uses now the same dialog as the schematic editor to load a component
Some code cleaning.
parent 9ef6ae5b
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -3,7 +3,6 @@
/*********************************/
/*********************************/


#include <fctsys.h>
#include <fctsys.h>
//#include "gr_basic.h"
#include <common.h>
#include <common.h>
#include <macros.h>
#include <macros.h>
#include <wxstruct.h>
#include <wxstruct.h>
@@ -46,6 +45,7 @@ void DIALOG_GET_COMPONENT::initDialog( wxArrayString& aHistoryList )
{
{
    SetFocus();
    SetFocus();
    m_GetExtraFunction = false;
    m_GetExtraFunction = false;
    m_selectionIsKeyword = false;
    m_historyList->Append( aHistoryList );
    m_historyList->Append( aHistoryList );
    if( !m_auxToolSelector )
    if( !m_auxToolSelector )
    {
    {
@@ -63,6 +63,7 @@ void DIALOG_GET_COMPONENT::OnCancel( wxCommandEvent& event )


void DIALOG_GET_COMPONENT::Accept( wxCommandEvent& event )
void DIALOG_GET_COMPONENT::Accept( wxCommandEvent& event )
{
{
    m_selectionIsKeyword = false;
    switch( event.GetId() )
    switch( event.GetId() )
    {
    {
    case ID_SEL_BY_LISTBOX:
    case ID_SEL_BY_LISTBOX:
@@ -74,7 +75,8 @@ void DIALOG_GET_COMPONENT::Accept( wxCommandEvent& event )
        break;
        break;


    case ID_ACCEPT_KEYWORD:
    case ID_ACCEPT_KEYWORD:
        m_Text = wxT( "= " ) + m_textCmpNameCtrl->GetValue();
        m_selectionIsKeyword = true;
        m_Text = m_textCmpNameCtrl->GetValue();
        break;
        break;


    case ID_LIST_ALL:
    case ID_LIST_ALL:
Loading