Pcbnew: minor geographical annotation dialog layout fixes.
This commit is contained in:
parent
6e0a40e32e
commit
010e147700
|
@ -42,7 +42,8 @@ bool DescendingFirst;
|
|||
bool DescendingSecond;
|
||||
|
||||
//
|
||||
// This converts the index into a sort code. Note that Back sort code will have left and right swapped.
|
||||
// This converts the index into a sort code. Note that Back sort code will have left and
|
||||
// right swapped.
|
||||
//
|
||||
int FrontDirectionsArray[] = {
|
||||
SORTYFIRST + ASCENDINGFIRST + ASCENDINGSECOND, //"Top to bottom, left to right", // 100
|
||||
|
@ -117,6 +118,7 @@ DIALOG_BOARD_REANNOTATE::DIALOG_BOARD_REANNOTATE( PCB_EDIT_FRAME* aParentFrame )
|
|||
|
||||
m_sdbSizerOK->SetLabel( _( "Reannotate PCB" ) );
|
||||
m_sdbSizerCancel->SetLabel( _( "Close" ) );
|
||||
m_sdbSizer->Layout();
|
||||
|
||||
m_Settings = aParentFrame->config();
|
||||
wxArrayString gridslist;
|
||||
|
@ -162,8 +164,9 @@ DIALOG_BOARD_REANNOTATE::DIALOG_BOARD_REANNOTATE( PCB_EDIT_FRAME* aParentFrame )
|
|||
m_ExcludeList->SetToolTip( m_ExcludeListText->GetToolTipText() );
|
||||
m_GridChoice->SetToolTip( m_SortGridText->GetToolTipText() );
|
||||
|
||||
// Set the reporter window filename to something sensible
|
||||
if( m_MessageWindow->GetFileName().empty() )
|
||||
{ //Set the reporter window filename to something sensible
|
||||
{
|
||||
wxFileName fn = m_frame->GetBoard()->GetFileName();
|
||||
fn.SetName( "annotationreport" );
|
||||
fn.SetExt( "txt " );
|
||||
|
@ -171,7 +174,7 @@ DIALOG_BOARD_REANNOTATE::DIALOG_BOARD_REANNOTATE( PCB_EDIT_FRAME* aParentFrame )
|
|||
m_MessageWindow->SetFileName( fullname );
|
||||
}
|
||||
|
||||
m_MessageWindow->SetPrintInfo( false ); //Suppress the "Info: " prefix
|
||||
m_MessageWindow->SetPrintInfo( false ); // Suppress the "Info: " prefix
|
||||
}
|
||||
|
||||
|
||||
|
@ -198,6 +201,7 @@ DIALOG_BOARD_REANNOTATE::~DIALOG_BOARD_REANNOTATE()
|
|||
cfg->m_Reannotate.report_file_name = m_MessageWindow->GetFileName();
|
||||
}
|
||||
|
||||
|
||||
/// Copy saved app settings to the dialog
|
||||
void DIALOG_BOARD_REANNOTATE::InitValues( void )
|
||||
{
|
||||
|
@ -581,6 +585,7 @@ void DIALOG_BOARD_REANNOTATE::LogModules( wxString& aMessage, std::vector<RefDes
|
|||
ShowReport( message, RPT_SEVERITY_INFO );
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
/// Actually reannotate the board
|
||||
/// @return false if fail, true if success
|
||||
|
@ -924,6 +929,7 @@ void DIALOG_BOARD_REANNOTATE::BuildChangeArray( std::vector<RefDesInfo>& aModule
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
/// @returns the new refdes for this module
|
||||
RefDesChange* DIALOG_BOARD_REANNOTATE::GetNewRefDes( MODULE* aMod )
|
||||
|
@ -934,6 +940,8 @@ RefDesChange* DIALOG_BOARD_REANNOTATE::GetNewRefDes( MODULE* aMod )
|
|||
if( aMod->m_Uuid == m_ChangeArray[i].Uuid )
|
||||
return ( &m_ChangeArray[i] );
|
||||
|
||||
ShowReport( _( "Footprint not found in changelist" ) + wxS( " " )+ aMod->GetReference(), RPT_SEVERITY_ERROR );
|
||||
ShowReport( _( "Footprint not found in changelist" ) + wxS( " " ) + aMod->GetReference(),
|
||||
RPT_SEVERITY_ERROR );
|
||||
|
||||
return nullptr; //Should never happen
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
///////////////////////////////////////////////////////////////////////////
|
||||
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
||||
// C++ code generated with wxFormBuilder (version 3.9.0 Nov 1 2020)
|
||||
// http://www.wxformbuilder.org/
|
||||
//
|
||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||
|
@ -127,7 +127,7 @@ DIALOG_BOARD_REANNOTATE_BASE::DIALOG_BOARD_REANNOTATE_BASE( wxWindow* parent, wx
|
|||
|
||||
m_staticText9 = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("Based on location of:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_staticText9->Wrap( -1 );
|
||||
fgSizer11->Add( m_staticText9, 0, wxALL, 5 );
|
||||
fgSizer11->Add( m_staticText9, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||
|
||||
wxString m_locationChoiceChoices[] = { _("Footprint"), _("Reference Designator") };
|
||||
int m_locationChoiceNChoices = sizeof( m_locationChoiceChoices ) / sizeof( wxString );
|
||||
|
@ -139,7 +139,7 @@ DIALOG_BOARD_REANNOTATE_BASE::DIALOG_BOARD_REANNOTATE_BASE( wxWindow* parent, wx
|
|||
m_SortGridText->Wrap( -1 );
|
||||
m_SortGridText->SetToolTip( _("Component position will be rounded\nto this grid before sorting.\nThis helps with misaligned parts.") );
|
||||
|
||||
fgSizer11->Add( m_SortGridText, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
||||
fgSizer11->Add( m_SortGridText, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
||||
|
||||
wxArrayString m_GridChoiceChoices;
|
||||
m_GridChoice = new wxChoice( sbSizer3->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_GridChoiceChoices, 0 );
|
||||
|
@ -194,7 +194,7 @@ DIALOG_BOARD_REANNOTATE_BASE::DIALOG_BOARD_REANNOTATE_BASE( wxWindow* parent, wx
|
|||
m_StandardOptions->SetSizer( bSizer4 );
|
||||
m_StandardOptions->Layout();
|
||||
bSizer4->Fit( m_StandardOptions );
|
||||
m_notebook->AddPage( m_StandardOptions, _("Options"), true );
|
||||
m_notebook->AddPage( m_StandardOptions, _("Options"), false );
|
||||
m_Advanced = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
wxBoxSizer* bSizer5;
|
||||
bSizer5 = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
@ -287,7 +287,7 @@ DIALOG_BOARD_REANNOTATE_BASE::DIALOG_BOARD_REANNOTATE_BASE( wxWindow* parent, wx
|
|||
m_Advanced->SetSizer( bSizer5 );
|
||||
m_Advanced->Layout();
|
||||
bSizer5->Fit( m_Advanced );
|
||||
m_notebook->AddPage( m_Advanced, _("Reference Designators"), false );
|
||||
m_notebook->AddPage( m_Advanced, _("Reference Designators"), true );
|
||||
|
||||
bupperSizer->Add( m_notebook, 0, wxALL|wxEXPAND|wxLEFT|wxRIGHT, 5 );
|
||||
|
||||
|
@ -323,6 +323,7 @@ DIALOG_BOARD_REANNOTATE_BASE::DIALOG_BOARD_REANNOTATE_BASE( wxWindow* parent, wx
|
|||
|
||||
this->SetSizer( bmainSizer );
|
||||
this->Layout();
|
||||
bmainSizer->Fit( this );
|
||||
|
||||
// Connect Events
|
||||
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_BOARD_REANNOTATE_BASE::OnClose ) );
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
<property name="file">dialog_board_reannotate_base</property>
|
||||
<property name="first_id">1000</property>
|
||||
<property name="help_provider">none</property>
|
||||
<property name="image_path_wrapper_function_name"></property>
|
||||
<property name="indent_with_spaces"></property>
|
||||
<property name="internationalize">1</property>
|
||||
<property name="name">dialog_board_reannotate_base</property>
|
||||
|
@ -25,6 +26,7 @@
|
|||
<property name="skip_php_events">1</property>
|
||||
<property name="skip_python_events">1</property>
|
||||
<property name="ui_table">UI</property>
|
||||
<property name="use_array_enum">0</property>
|
||||
<property name="use_enum">0</property>
|
||||
<property name="use_microsoft_bom">0</property>
|
||||
<object class="Dialog" expanded="1">
|
||||
|
@ -45,7 +47,7 @@
|
|||
<property name="minimum_size"></property>
|
||||
<property name="name">DIALOG_BOARD_REANNOTATE_BASE</property>
|
||||
<property name="pos"></property>
|
||||
<property name="size">745,760</property>
|
||||
<property name="size">-1,-1</property>
|
||||
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
||||
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
||||
<property name="title">Geographical Reannotation</property>
|
||||
|
@ -128,7 +130,7 @@
|
|||
<object class="notebookpage" expanded="1">
|
||||
<property name="bitmap"></property>
|
||||
<property name="label">Options</property>
|
||||
<property name="select">1</property>
|
||||
<property name="select">0</property>
|
||||
<object class="wxPanel" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
<property name="LeftDockable">1</property>
|
||||
|
@ -1269,7 +1271,7 @@
|
|||
<property name="vgap">0</property>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALL</property>
|
||||
<property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxStaticText" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
|
@ -1394,7 +1396,7 @@
|
|||
</object>
|
||||
<object class="sizeritem" expanded="0">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxBOTTOM|wxLEFT|wxRIGHT</property>
|
||||
<property name="flag">wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxStaticText" expanded="0">
|
||||
<property name="BottomDockable">1</property>
|
||||
|
@ -1940,7 +1942,7 @@
|
|||
<object class="notebookpage" expanded="1">
|
||||
<property name="bitmap"></property>
|
||||
<property name="label">Reference Designators</property>
|
||||
<property name="select">0</property>
|
||||
<property name="select">1</property>
|
||||
<object class="wxPanel" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
<property name="LeftDockable">1</property>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
///////////////////////////////////////////////////////////////////////////
|
||||
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
||||
// C++ code generated with wxFormBuilder (version 3.9.0 Nov 1 2020)
|
||||
// http://www.wxformbuilder.org/
|
||||
//
|
||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||
|
@ -104,7 +104,7 @@ class DIALOG_BOARD_REANNOTATE_BASE : public DIALOG_SHIM
|
|||
|
||||
public:
|
||||
|
||||
DIALOG_BOARD_REANNOTATE_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Geographical Reannotation"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 745,760 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||
DIALOG_BOARD_REANNOTATE_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Geographical Reannotation"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||
~DIALOG_BOARD_REANNOTATE_BASE();
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue