Commit 74723335 authored by charras's avatar charras
Browse files

minor bugs fix.

parent dd5a407f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -74,13 +74,13 @@ public:
    }
    bool GetEnableAutoPan( void ) { return m_checkAutoPan->GetValue(); }

    void SetEnableAnyBusOrientation( bool enable )
    void SetEnableHVBusOrientation( bool enable )
    {
        m_checkAnyOrientation->SetValue( enable );
        m_checkHVOrientation->SetValue( enable );
    }
    bool GetEnableAnyBusOrientation( void )
    bool GetEnableHVBusOrientation( void )
    {
        return m_checkAnyOrientation->GetValue();
        return m_checkHVOrientation->GetValue();
    }

    void SetShowPageLimits( bool show )
+2 −2
Original line number Diff line number Diff line
@@ -127,9 +127,9 @@ DIALOG_EESCHEMA_OPTIONS_BASE::DIALOG_EESCHEMA_OPTIONS_BASE( wxWindow* parent, wx
	
	bSizer2->Add( m_checkAutoPan, 0, wxALL|wxEXPAND, 3 );
	
	m_checkAnyOrientation = new wxCheckBox( this, wxID_ANY, _("Allow buses and wires to be placed in any &orientation"), wxDefaultPosition, wxDefaultSize, 0 );
	m_checkHVOrientation = new wxCheckBox( this, wxID_ANY, _("Allow buses and wires to be placed in H or V &orientation only"), wxDefaultPosition, wxDefaultSize, 0 );
	
	bSizer2->Add( m_checkAnyOrientation, 0, wxALL|wxEXPAND, 3 );
	bSizer2->Add( m_checkHVOrientation, 0, wxALL|wxEXPAND, 3 );
	
	m_checkPageLimits = new wxCheckBox( this, wxID_ANY, _("Show p&age limits"), wxDefaultPosition, wxDefaultSize, 0 );
	
+2 −2
Original line number Diff line number Diff line
@@ -1289,10 +1289,10 @@
                                        <property name="font"></property>
                                        <property name="hidden">0</property>
                                        <property name="id">wxID_ANY</property>
                                        <property name="label">Allow buses and wires to be placed in any &amp;orientation</property>
                                        <property name="label">Allow buses and wires to be placed in H or V &amp;orientation only</property>
                                        <property name="maximum_size"></property>
                                        <property name="minimum_size"></property>
                                        <property name="name">m_checkAnyOrientation</property>
                                        <property name="name">m_checkHVOrientation</property>
                                        <property name="permission">protected</property>
                                        <property name="pos"></property>
                                        <property name="size"></property>
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ class DIALOG_EESCHEMA_OPTIONS_BASE : public wxDialog
		wxCheckBox* m_checkShowGrid;
		wxCheckBox* m_checkShowHiddenPins;
		wxCheckBox* m_checkAutoPan;
		wxCheckBox* m_checkAnyOrientation;
		wxCheckBox* m_checkHVOrientation;
		wxCheckBox* m_checkPageLimits;
		
		wxStdDialogButtonSizer* m_sdbSizer1;
+1 −1
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ void WinEDA_SchematicFrame::OnSetOptions( wxCommandEvent& event )
    dlg.SetShowGrid( IsGridVisible() );
    dlg.SetShowHiddenPins( m_ShowAllPins );
    dlg.SetEnableAutoPan( DrawPanel->m_AutoPAN_Enable );
    dlg.SetEnableAnyBusOrientation( g_HVLines );
    dlg.SetEnableHVBusOrientation( g_HVLines );
    dlg.SetShowPageLimits( g_ShowPageLimits );
    dlg.Layout();
    dlg.Fit();
Loading