diff -Naur ../kicad.org/common/drawframe.cpp common/drawframe.cpp --- ../kicad.org/common/drawframe.cpp 2010-09-10 15:53:57.000000000 +0200 +++ common/drawframe.cpp 2010-09-12 22:24:32.000000000 +0200 @@ -33,6 +33,7 @@ static const wxString ShowGridEntryKeyword( wxT( "ShowGrid" ) ); static const wxString GridColorEntryKeyword( wxT( "GridColor" ) ); static const wxString LastGridSizeId( wxT( "_LastGridSize" ) ); +static const wxString ShowFrameRefKeyword( wxT( "ShowFrameRef" ) ); BEGIN_EVENT_TABLE( WinEDA_DrawFrame, WinEDA_BasicFrame ) @@ -703,6 +704,8 @@ if( cfg->Read( m_FrameName + GridColorEntryKeyword, &itmp ) ) SetGridColor(itmp); cfg->Read( m_FrameName + LastGridSizeId, &m_LastGridSizeId, 0L ); + if ( cfg->Read( m_FrameName + ShowFrameRefKeyword, &btmp ) ) + m_Draw_Sheet_Ref = TRUE; } @@ -723,6 +726,7 @@ cfg->Write( m_FrameName + ShowGridEntryKeyword, IsGridVisible() ); cfg->Write( m_FrameName + GridColorEntryKeyword, GetGridColor() ); cfg->Write( m_FrameName + LastGridSizeId, ( long ) m_LastGridSizeId ); + cfg->Write( m_FrameName + ShowFrameRefKeyword, m_Draw_Sheet_Ref ); } diff -Naur ../kicad.org/eeschema/dialog_eeschema_options_base.cpp eeschema/dialog_eeschema_options_base.cpp --- ../kicad.org/eeschema/dialog_eeschema_options_base.cpp 2010-09-10 15:53:58.000000000 +0200 +++ eeschema/dialog_eeschema_options_base.cpp 2010-09-12 22:14:26.000000000 +0200 @@ -143,6 +143,10 @@ bSizer2->Add( m_checkPageLimits, 0, wxALL|wxEXPAND, 3 ); + m_checkSheetRef = new wxCheckBox( m_panel1, wxID_ANY, _("Show sh&eet ref"), wxDefaultPosition, wxDefaultSize, 0 ); + + bSizer2->Add( m_checkSheetRef, 0, wxALL|wxEXPAND, 3 ); + bSizer3->Add( bSizer2, 0, wxEXPAND, 0 ); diff -Naur ../kicad.org/eeschema/dialog_eeschema_options_base.h eeschema/dialog_eeschema_options_base.h --- ../kicad.org/eeschema/dialog_eeschema_options_base.h 2010-09-10 15:53:58.000000000 +0200 +++ eeschema/dialog_eeschema_options_base.h 2010-09-12 21:54:24.000000000 +0200 @@ -72,6 +72,7 @@ wxCheckBox* m_checkAutoPan; wxCheckBox* m_checkHVOrientation; wxCheckBox* m_checkPageLimits; + wxCheckBox* m_checkSheetRef; wxPanel* m_panel2; wxStaticText* m_staticText211; diff -Naur ../kicad.org/eeschema/dialog_eeschema_options.h eeschema/dialog_eeschema_options.h --- ../kicad.org/eeschema/dialog_eeschema_options.h 2010-09-10 15:53:58.000000000 +0200 +++ eeschema/dialog_eeschema_options.h 2010-09-12 21:55:33.000000000 +0200 @@ -92,6 +92,15 @@ return m_checkPageLimits->GetValue(); } + void SetShowSheetRef( bool show ) + { + m_checkSheetRef->SetValue( show ); + } + bool GetShowSheetRef( void ) + { + return m_checkSheetRef->GetValue(); + } + /** Set the field \a aNdx textctrl to \a aName */ void SetFieldName( int aNdx, wxString aName); diff -Naur ../kicad.org/eeschema/eeschema_config.cpp eeschema/eeschema_config.cpp --- ../kicad.org/eeschema/eeschema_config.cpp 2010-09-10 15:53:58.000000000 +0200 +++ eeschema/eeschema_config.cpp 2010-09-12 22:34:57.000000000 +0200 @@ -203,6 +203,8 @@ dlg.SetEnableAutoPan( DrawPanel->m_AutoPAN_Enable ); dlg.SetEnableHVBusOrientation( g_HVLines ); dlg.SetShowPageLimits( g_ShowPageLimits ); + dlg.SetShowSheetRef( m_Draw_Sheet_Ref ); + dlg.Layout(); dlg.Fit(); dlg.SetMinSize( dlg.GetSize() ); @@ -235,6 +237,7 @@ DrawPanel->m_AutoPAN_Enable = dlg.GetEnableAutoPan(); g_HVLines = dlg.GetEnableHVBusOrientation(); g_ShowPageLimits = dlg.GetShowPageLimits(); + m_Draw_Sheet_Ref = dlg.GetShowSheetRef(); wxString templateFieldName; @@ -371,6 +374,8 @@ &m_printMonochrome, true ) ); m_projectFileParams.push_back( new PARAM_CFG_BOOL( wxT( "ShowSheetReferenceAndTitleBlock" ), &m_showSheetReference, true ) ); + m_projectFileParams.push_back( new PARAM_CFG_BOOL( wxT( "ShowSheetRef" ), + &m_Draw_Sheet_Ref, true ) ); return m_projectFileParams; }