Commit 09cccdff authored by charras's avatar charras
Browse files

All: fixing a recent problem when using scroll bars: the full screen was...

All: fixing a recent problem when using scroll bars: the full screen was redrawn, that can be very slow in Pcbnew.
parent 1aaabf2c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -441,7 +441,7 @@ Plot SVG output
<div class="ulist"><ul>
<div class="ulist"><ul>
<li>
<li>
<p>
<p>
Bug fixed when added directory with alot of subdirectories, now you need to add yourself.
Issue fixed when opening a project in a directory with a lot of subdirectories
</p>
</p>
</li>
</li>
<li>
<li>
+5 −5
Original line number Original line Diff line number Diff line
@@ -13,7 +13,7 @@ KiCad 2010-xx-xx Release
  * Plot SVG output
  * Plot SVG output


== KiCad
== KiCad
  * Bug fixed when added directory with alot of subdirectories, now you need to add yourself.
  * Issue fixed when opening a project in a directory with a lot of subdirectories.
  * If project is noname.pro no `error` will be displayed
  * If project is noname.pro no `error` will be displayed


== EESchema
== EESchema
+2 −8
Original line number Original line Diff line number Diff line
@@ -421,7 +421,6 @@ void WinEDA_DrawPanel::OnActivate( wxActivateEvent& event )
    event.Skip();
    event.Skip();
}
}



void WinEDA_DrawPanel::OnScroll( wxScrollWinEvent& event )
void WinEDA_DrawPanel::OnScroll( wxScrollWinEvent& event )
{
{
    int id = event.GetEventType();
    int id = event.GetEventType();
@@ -490,13 +489,10 @@ void WinEDA_DrawPanel::OnScroll( wxScrollWinEvent& event )
                     "posX=%d, posY=%d" ), ppux, ppuy, unitsX, unitsY, x, y );
                     "posX=%d, posY=%d" ), ppux, ppuy, unitsX, unitsY, x, y );
#endif
#endif


    SetScrollbars( ppux, ppuy, unitsX, unitsY, x, y, true );
    Scroll( x/ppux, y/ppux );
    INSTALL_DC( dc, this );
    ReDraw( &dc, true );
    event.Skip();
    event.Skip();
}
}



void WinEDA_DrawPanel::OnSize( wxSizeEvent& event )
void WinEDA_DrawPanel::OnSize( wxSizeEvent& event )
{
{
    if( IsShown() )
    if( IsShown() )
@@ -1447,9 +1443,7 @@ void WinEDA_DrawPanel::OnPan( wxCommandEvent& event )
    if( y > maxY )
    if( y > maxY )
        y = maxY;
        y = maxY;


    SetScrollbars( ppux, ppuy, unitsX, unitsY, x, y, true );
    Scroll( x/ppux, y/ppux );
    INSTALL_DC( dc, this );
    ReDraw( &dc, true );
}
}




+8 −5
Original line number Original line Diff line number Diff line
@@ -45,23 +45,24 @@ DIALOG_SVG_PRINT_base::DIALOG_SVG_PRINT_base( wxWindow* parent, wxWindowID id, c
	
	
	sbOptionsSizer->Add( m_Print_Sheet_Ref, 0, wxALL, 5 );
	sbOptionsSizer->Add( m_Print_Sheet_Ref, 0, wxALL, 5 );
	
	
	bUpperSizer->Add( sbOptionsSizer, 1, wxEXPAND, 5 );
	bUpperSizer->Add( sbOptionsSizer, 1, 0, 5 );
	
	
	wxBoxSizer* bButtonsSizer;
	wxBoxSizer* bButtonsSizer;
	bButtonsSizer = new wxBoxSizer( wxVERTICAL );
	bButtonsSizer = new wxBoxSizer( wxVERTICAL );
	
	
	m_buttonPlotCurrent = new wxButton( this, wxID_PRINT_CURRENT, _("Print Current"), wxDefaultPosition, wxDefaultSize, 0 );
	m_buttonPlotCurrent = new wxButton( this, wxID_PRINT_CURRENT, _("Print Current"), wxDefaultPosition, wxDefaultSize, 0 );
	bButtonsSizer->Add( m_buttonPlotCurrent, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
	bButtonsSizer->Add( m_buttonPlotCurrent, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 );
	
	
	m_buttonPlotAll = new wxButton( this, wxID_PRINT_ALL, _("Print All"), wxDefaultPosition, wxDefaultSize, 0 );
	m_buttonPlotAll = new wxButton( this, wxID_PRINT_ALL, _("Print All"), wxDefaultPosition, wxDefaultSize, 0 );
	bButtonsSizer->Add( m_buttonPlotAll, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
	m_buttonPlotAll->SetDefault(); 
	bButtonsSizer->Add( m_buttonPlotAll, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 );
	
	
	m_buttonQuit = new wxButton( this, wxID_CANCEL, _("Quit"), wxDefaultPosition, wxDefaultSize, 0 );
	m_buttonQuit = new wxButton( this, wxID_CANCEL, _("Quit"), wxDefaultPosition, wxDefaultSize, 0 );
	bButtonsSizer->Add( m_buttonQuit, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
	bButtonsSizer->Add( m_buttonQuit, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 );
	
	
	bUpperSizer->Add( bButtonsSizer, 0, wxALIGN_CENTER_VERTICAL, 5 );
	bUpperSizer->Add( bButtonsSizer, 0, wxALIGN_CENTER_VERTICAL, 5 );
	
	
	bMainSizer->Add( bUpperSizer, 1, wxEXPAND, 5 );
	bMainSizer->Add( bUpperSizer, 0, wxEXPAND, 5 );
	
	
	m_staticText1 = new wxStaticText( this, wxID_ANY, _("Filename:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText1 = new wxStaticText( this, wxID_ANY, _("Filename:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText1->Wrap( -1 );
	m_staticText1->Wrap( -1 );
@@ -78,6 +79,8 @@ DIALOG_SVG_PRINT_base::DIALOG_SVG_PRINT_base( wxWindow* parent, wxWindowID id, c
	bMainSizer->Add( m_staticText2, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
	bMainSizer->Add( m_staticText2, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
	
	
	m_MessagesBox = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
	m_MessagesBox = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
	m_MessagesBox->SetMinSize( wxSize( -1,80 ) );
	
	bMainSizer->Add( m_MessagesBox, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
	bMainSizer->Add( m_MessagesBox, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
	
	
	this->SetSizer( bMainSizer );
	this->SetSizer( bMainSizer );
+8 −8
Original line number Original line Diff line number Diff line
@@ -32,7 +32,7 @@
            <property name="minimum_size">-1,-1</property>
            <property name="minimum_size">-1,-1</property>
            <property name="name">DIALOG_SVG_PRINT_base</property>
            <property name="name">DIALOG_SVG_PRINT_base</property>
            <property name="pos"></property>
            <property name="pos"></property>
            <property name="size">550,459</property>
            <property name="size">550,446</property>
            <property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
            <property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
            <property name="subclass"></property>
            <property name="subclass"></property>
            <property name="title">Create SVG file</property>
            <property name="title">Create SVG file</property>
@@ -78,7 +78,7 @@
                <object class="sizeritem" expanded="1">
                <object class="sizeritem" expanded="1">
                    <property name="border">5</property>
                    <property name="border">5</property>
                    <property name="flag">wxEXPAND</property>
                    <property name="flag">wxEXPAND</property>
                    <property name="proportion">1</property>
                    <property name="proportion">0</property>
                    <object class="wxBoxSizer" expanded="1">
                    <object class="wxBoxSizer" expanded="1">
                        <property name="minimum_size"></property>
                        <property name="minimum_size"></property>
                        <property name="name">bUpperSizer</property>
                        <property name="name">bUpperSizer</property>
@@ -86,7 +86,7 @@
                        <property name="permission">none</property>
                        <property name="permission">none</property>
                        <object class="sizeritem" expanded="1">
                        <object class="sizeritem" expanded="1">
                            <property name="border">5</property>
                            <property name="border">5</property>
                            <property name="flag">wxEXPAND</property>
                            <property name="flag"></property>
                            <property name="proportion">1</property>
                            <property name="proportion">1</property>
                            <object class="wxStaticBoxSizer" expanded="1">
                            <object class="wxStaticBoxSizer" expanded="1">
                                <property name="id">wxID_ANY</property>
                                <property name="id">wxID_ANY</property>
@@ -321,7 +321,7 @@
                                <property name="permission">none</property>
                                <property name="permission">none</property>
                                <object class="sizeritem" expanded="1">
                                <object class="sizeritem" expanded="1">
                                    <property name="border">5</property>
                                    <property name="border">5</property>
                                    <property name="flag">wxALL|wxALIGN_CENTER_HORIZONTAL</property>
                                    <property name="flag">wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND</property>
                                    <property name="proportion">0</property>
                                    <property name="proportion">0</property>
                                    <object class="wxButton" expanded="1">
                                    <object class="wxButton" expanded="1">
                                        <property name="bg"></property>
                                        <property name="bg"></property>
@@ -373,12 +373,12 @@
                                </object>
                                </object>
                                <object class="sizeritem" expanded="1">
                                <object class="sizeritem" expanded="1">
                                    <property name="border">5</property>
                                    <property name="border">5</property>
                                    <property name="flag">wxALL|wxALIGN_CENTER_HORIZONTAL</property>
                                    <property name="flag">wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND</property>
                                    <property name="proportion">0</property>
                                    <property name="proportion">0</property>
                                    <object class="wxButton" expanded="1">
                                    <object class="wxButton" expanded="1">
                                        <property name="bg"></property>
                                        <property name="bg"></property>
                                        <property name="context_help"></property>
                                        <property name="context_help"></property>
                                        <property name="default">0</property>
                                        <property name="default">1</property>
                                        <property name="enabled">1</property>
                                        <property name="enabled">1</property>
                                        <property name="fg"></property>
                                        <property name="fg"></property>
                                        <property name="font"></property>
                                        <property name="font"></property>
@@ -425,7 +425,7 @@
                                </object>
                                </object>
                                <object class="sizeritem" expanded="1">
                                <object class="sizeritem" expanded="1">
                                    <property name="border">5</property>
                                    <property name="border">5</property>
                                    <property name="flag">wxALL|wxALIGN_CENTER_HORIZONTAL</property>
                                    <property name="flag">wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND</property>
                                    <property name="proportion">0</property>
                                    <property name="proportion">0</property>
                                    <object class="wxButton" expanded="1">
                                    <object class="wxButton" expanded="1">
                                        <property name="bg"></property>
                                        <property name="bg"></property>
@@ -650,7 +650,7 @@
                        <property name="id">wxID_ANY</property>
                        <property name="id">wxID_ANY</property>
                        <property name="maximum_size"></property>
                        <property name="maximum_size"></property>
                        <property name="maxlength">0</property>
                        <property name="maxlength">0</property>
                        <property name="minimum_size"></property>
                        <property name="minimum_size">-1,80</property>
                        <property name="name">m_MessagesBox</property>
                        <property name="name">m_MessagesBox</property>
                        <property name="permission">protected</property>
                        <property name="permission">protected</property>
                        <property name="pos"></property>
                        <property name="pos"></property>
Loading