Commit 09cccdff authored by charras's avatar charras

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
...@@ -441,7 +441,7 @@ Plot SVG output ...@@ -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>
......
...@@ -9,27 +9,27 @@ KiCad 2010-xx-xx Release ...@@ -9,27 +9,27 @@ KiCad 2010-xx-xx Release
* Plot and print dialog rewritten * Plot and print dialog rewritten
* Remember last dialog position and tab * Remember last dialog position and tab
* Hershey fonts * Hershey fonts
* Generation of bill of materials * Generation of bill of materials
* 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
* New pin properties dialog * New pin properties dialog
== PCBNew == PCBNew
* Advanced layer setup * Advanced layer setup
* New panel for layer management * New panel for layer management
* Support for net classes * Support for net classes
* Incorrect DRC error fixed, DRC min via and min track check * Incorrect DRC error fixed, DRC min via and min track check
* Handle local mask clearance and local net clearance * Handle local mask clearance and local net clearance
== Core == Core
* Many many bugfixes and cleanups * Many many bugfixes and cleanups
* All comments translated to English * All comments translated to English
* Moved to wxAUI and dialogs created with wxFormBuilder * Moved to wxAUI and dialogs created with wxFormBuilder
* Full support for Mac OS X with wxWidgets 2.9 * Full support for Mac OS X with wxWidgets 2.9
/////////////////////////////////////// ///////////////////////////////////////
......
...@@ -421,7 +421,6 @@ void WinEDA_DrawPanel::OnActivate( wxActivateEvent& event ) ...@@ -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 ) ...@@ -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 ) ...@@ -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 );
} }
......
...@@ -45,23 +45,24 @@ DIALOG_SVG_PRINT_base::DIALOG_SVG_PRINT_base( wxWindow* parent, wxWindowID id, c ...@@ -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 ...@@ -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 );
......
...@@ -32,7 +32,7 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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>
......
...@@ -62,7 +62,7 @@ class DIALOG_SVG_PRINT_base : public wxDialog ...@@ -62,7 +62,7 @@ class DIALOG_SVG_PRINT_base : public wxDialog
public: public:
DIALOG_SVG_PRINT_base( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Create SVG file"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 550,459 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); DIALOG_SVG_PRINT_base( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Create SVG file"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 550,446 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
~DIALOG_SVG_PRINT_base(); ~DIALOG_SVG_PRINT_base();
}; };
......
...@@ -92,18 +92,17 @@ int WinEDA_SchematicFrame::LoadOneEEProject( const wxString& FileName, ...@@ -92,18 +92,17 @@ int WinEDA_SchematicFrame::LoadOneEEProject( const wxString& FileName,
SAFE_DELETE( g_RootSheet ); SAFE_DELETE( g_RootSheet );
} }
CreateScreens(); CreateScreens();
ActiveScreen = GetScreen();
screen = (SCH_SCREEN*) GetScreen(); screen = (SCH_SCREEN*) GetScreen();
wxSetWorkingDirectory( wxPathOnly( FullFileName ) ); wxSetWorkingDirectory( wxPathOnly( FullFileName ) );
GetScreen()->m_FileName = FullFileName; screen->m_FileName = FullFileName;
g_RootSheet->SetFileName( FullFileName ); g_RootSheet->SetFileName( FullFileName );
Affiche_Message( wxEmptyString ); Affiche_Message( wxEmptyString );
ClearMsgPanel(); ClearMsgPanel();
memset( &g_EESchemaVar, 0, sizeof(g_EESchemaVar) ); memset( &g_EESchemaVar, 0, sizeof(g_EESchemaVar) );
GetScreen()->ClrModify(); screen->ClrModify();
if( IsNew ) if( IsNew )
{ {
...@@ -215,8 +214,7 @@ Error: %s" ), ...@@ -215,8 +214,7 @@ Error: %s" ),
bool diag = g_RootSheet->Load( this ); bool diag = g_RootSheet->Load( this );
/* Redraw base screen (ROOT) if necessary. */ /* Redraw base screen (ROOT) if necessary. */
ActiveScreen = GetScreen(); GetScreen()->SetGrid( ID_POPUP_GRID_LEVEL_1000 + m_LastGridSizeId );
ActiveScreen->SetGrid( ID_POPUP_GRID_LEVEL_1000 + m_LastGridSizeId );
Zoom_Automatique( FALSE ); Zoom_Automatique( FALSE );
SetSheetNumberAndCount(); SetSheetNumberAndCount();
DrawPanel->Refresh( true ); DrawPanel->Refresh( true );
......
No preview for this file type
This diff is collapsed.
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
; General Product Description Definitions ; General Product Description Definitions
!define PRODUCT_NAME "KiCad" !define PRODUCT_NAME "KiCad"
!define PRODUCT_VERSION "2009.02.16" !define PRODUCT_VERSION "2010.02.21"
!define PRODUCT_WEB_SITE "http://iut-tice.ujf-grenoble.fr/kicad/" !define PRODUCT_WEB_SITE "http://iut-tice.ujf-grenoble.fr/kicad/"
!define SOURCEFORGE_WEB_SITE "http://kicad.sourceforge.net/" !define SOURCEFORGE_WEB_SITE "http://kicad.sourceforge.net/"
!define COMPANY_NAME "" !define COMPANY_NAME ""
......
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