Commit b87d0341 authored by jean-pierre charras's avatar jean-pierre charras

Cvpcb, fp conflict assignment selector: fix issue on Linux.

parents f86eb756 6f99e608
...@@ -34,11 +34,11 @@ ...@@ -34,11 +34,11 @@
DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR::DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR( wxWindow* aParent ) DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR::DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR( wxWindow* aParent )
: DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR_BASE( aParent ) : DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR_BASE( aParent )
{ {
m_listFp->InsertColumn( 0, _( "Ref" ) ); m_listFp->AppendColumn( _( "Ref" ) );
m_listFp->InsertColumn( 1, _( "Schematic assignment" ) ); m_listFp->AppendColumn( _( "Schematic assignment" ) );
m_listFp->InsertColumn( 2, wxT( "<=" ) ); m_listFp->AppendColumn( wxT( "<=" ) );
m_listFp->InsertColumn( 3, wxT( "=>" ) ); m_listFp->AppendColumn( wxT( "=>" ) );
m_listFp->InsertColumn( 4, _( "Cmp file assignment" ) ); m_listFp->AppendColumn( _( "Cmp file assignment" ) );
m_lineCount = 0; m_lineCount = 0;
} }
...@@ -46,29 +46,12 @@ DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR::DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR( ...@@ -46,29 +46,12 @@ DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR::DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR(
void DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR::Add( const wxString& aRef, const wxString& aFpSchName, void DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR::Add( const wxString& aRef, const wxString& aFpSchName,
const wxString& aFpCmpName ) const wxString& aFpCmpName )
{ {
wxListItem item; long idx = m_listFp->InsertItem(m_lineCount, aRef );
item.SetId( m_lineCount ); m_listFp->SetItem(idx, COL_FPSCH, aFpSchName );
item.SetText( aRef ); m_listFp->SetItem(idx, COL_SELSCH, wxT("") );
item.SetColumn( COL_REF ); m_listFp->SetItem(idx, COL_SELCMP, wxT("X") );
m_listFp->InsertItem( item ); m_listFp->SetItem(idx, COL_FPCMP, aFpCmpName );
item.SetText( aFpSchName );
item.SetColumn( COL_FPSCH );
m_listFp->SetItem( item );
item.SetText( wxT("") );
item.SetColumn( COL_SELSCH );
m_listFp->SetItem( item );
item.SetText( wxT("X") );
item.SetColumn( COL_SELCMP );
m_listFp->SetItem( item );
item.SetText( aFpCmpName );
item.SetColumn( COL_FPCMP );
m_listFp->SetItem( item );
m_lineCount ++; m_lineCount ++;
} }
......
...@@ -20,7 +20,7 @@ DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR_BASE::DIALOG_FP_CONFLICT_ASSIGNMENT_SELEC ...@@ -20,7 +20,7 @@ DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR_BASE::DIALOG_FP_CONFLICT_ASSIGNMENT_SELEC
m_staticTextInfo->Wrap( -1 ); m_staticTextInfo->Wrap( -1 );
bSizerMain->Add( m_staticTextInfo, 0, wxALL|wxEXPAND, 5 ); bSizerMain->Add( m_staticTextInfo, 0, wxALL|wxEXPAND, 5 );
m_listFp = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_HRULES|wxLC_ICON|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES ); m_listFp = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_HRULES|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES );
bSizerMain->Add( m_listFp, 1, wxALL|wxEXPAND, 5 ); bSizerMain->Add( m_listFp, 1, wxALL|wxEXPAND, 5 );
m_sdbSizer = new wxStdDialogButtonSizer(); m_sdbSizer = new wxStdDialogButtonSizer();
......
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
<property name="resize">Resizable</property> <property name="resize">Resizable</property>
<property name="show">1</property> <property name="show">1</property>
<property name="size"></property> <property name="size"></property>
<property name="style">wxLC_HRULES|wxLC_ICON|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES</property> <property name="style">wxLC_HRULES|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES</property>
<property name="subclass"></property> <property name="subclass"></property>
<property name="toolbar_pane">0</property> <property name="toolbar_pane">0</property>
<property name="tooltip"></property> <property name="tooltip"></property>
......
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