Commit cc4b3623 authored by jean-pierre charras's avatar jean-pierre charras

Design rule dialog: use wxLC_VIRTUAL options in wxListBoxes tu speed up nets...

Design rule dialog: use wxLC_VIRTUAL options in wxListBoxes tu speed  up nets lists display (which was very long for board with a lot of nets)
parent d00f3744
...@@ -113,8 +113,10 @@ static void InitKiCadAboutNew( AboutAppInfo& info ) ...@@ -113,8 +113,10 @@ static void InitKiCadAboutNew( AboutAppInfo& info )
description << wxT( "<p>" ); description << wxT( "<p>" );
description << wxT( "<b><u>" ) << _( "Description" ) << wxT( "</u></b>" ); // bold & underlined font for caption description << wxT( "<b><u>" ) << _( "Description" ) << wxT( "</u></b>" ); // bold & underlined font for caption
description << wxT( description << wxT( "<p>" ) <<
"<p>The KiCad EDA Suite is a set of open source applications for the creation of electronic schematics and to design printed circuit boards.</p>" ); _(
"The KiCad EDA Suite is a set of open source applications for the creation of electronic schematics and to design printed circuit boards." )
<< wxT( "</p>" );
description << wxT( "</p>" ); description << wxT( "</p>" );
...@@ -170,7 +172,7 @@ static void InitKiCadAboutNew( AboutAppInfo& info ) ...@@ -170,7 +172,7 @@ static void InitKiCadAboutNew( AboutAppInfo& info )
<< HtmlNewline( 4 ) << HtmlNewline( 4 )
<< _( "The complete KiCad EDA Suite is released under the" ) << HtmlNewline( 2 ) << _( "The complete KiCad EDA Suite is released under the" ) << HtmlNewline( 2 )
<< HtmlHyperlink( wxT( "http://www.gnu.org/licenses" ), << HtmlHyperlink( wxT( "http://www.gnu.org/licenses" ),
_( "GNU General Public License version 2" ) ) _( "GNU General Public License (GPL) version 2" ) )
<< wxT( "</div>" ); << wxT( "</div>" );
info.SetLicense( license ); info.SetLicense( license );
...@@ -201,7 +203,8 @@ static void InitKiCadAboutNew( AboutAppInfo& info ) ...@@ -201,7 +203,8 @@ static void InitKiCadAboutNew( AboutAppInfo& info )
info.AddDeveloper( new Contributor( wxT( "Lorenzo Marcantonio" ), wxT( "lomarcan@tin.it" ) ) ); info.AddDeveloper( new Contributor( wxT( "Lorenzo Marcantonio" ), wxT( "lomarcan@tin.it" ) ) );
info.AddDeveloper( new Contributor( wxT( "Marco Serantoni" ), wxT( "marco.serantoni@gmail.com" ) ) ); info.AddDeveloper( new Contributor( wxT( "Marco Serantoni" ), wxT( "marco.serantoni@gmail.com" ) ) );
info.AddDeveloper( new Contributor( wxT( "Marco Mattila" ), wxT( "marcom99@gmail.com" ) ) ); info.AddDeveloper( new Contributor( wxT( "Marco Mattila" ), wxT( "marcom99@gmail.com" ) ) );
info.AddDeveloper( new Contributor( wxT( "Rafael Sokolowski" ), wxT( "rafael.sokolowski@web.de" ) ) ); info.AddDeveloper( new Contributor( wxT( "Rafael Sokolowski" ),
wxT( "rafael.sokolowski@web.de" ) ) );
info.AddDeveloper( new Contributor( wxT( "Rok Markovic" ), wxT( "rok@kanardia.eu" ) ) ); info.AddDeveloper( new Contributor( wxT( "Rok Markovic" ), wxT( "rok@kanardia.eu" ) ) );
info.AddDeveloper( new Contributor( wxT( "Tim Hanson" ), wxT( "sideskate@gmail.com" ) ) ); info.AddDeveloper( new Contributor( wxT( "Tim Hanson" ), wxT( "sideskate@gmail.com" ) ) );
info.AddDeveloper( new Contributor( wxT( "Vesa Solonen" ), wxT( "vesa.solonen@hut.fi" ) ) ); info.AddDeveloper( new Contributor( wxT( "Vesa Solonen" ), wxT( "vesa.solonen@hut.fi" ) ) );
......
This diff is collapsed.
...@@ -76,7 +76,7 @@ private: ...@@ -76,7 +76,7 @@ private:
void CopyGlobalRulesToBoard(); void CopyGlobalRulesToBoard();
void CopyDimensionsListsToBoard( ); void CopyDimensionsListsToBoard( );
void SetRoutableLayerStatus(); void SetRoutableLayerStatus();
void FillListBoxWithNetNames( wxListCtrl* aListCtrl, const wxString& aNetClass ); void FillListBoxWithNetNames( NETS_LIST_CTRL* aListCtrl, const wxString& aNetClass );
void PrintCurrentSettings( ); void PrintCurrentSettings( );
/** /**
...@@ -96,9 +96,7 @@ private: ...@@ -96,9 +96,7 @@ private:
void setNetClass( const wxString& aNetName, const wxString& aClassName ); void setNetClass( const wxString& aNetName, const wxString& aClassName );
static void setRowItem( wxListCtrl* aListCtrl, int aRow, NETCUP* aNetAndClass ); void moveSelectedItems( NETS_LIST_CTRL* src, const wxString& newClassName );
void moveSelectedItems( wxListCtrl* src, const wxString& newClassName );
public: public:
......
This diff is collapsed.
This diff is collapsed.
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr 16 2008) // C++ code generated with wxFormBuilder (version Apr 16 2008)
// http://www.wxformbuilder.org/ // http://www.wxformbuilder.org/
// //
// PLEASE DO "NOT" EDIT THIS FILE! // PLEASE DO "NOT" EDIT THIS FILE!
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
#ifndef __dialog_design_rules_base__ #ifndef __dialog_design_rules_base__
#define __dialog_design_rules_base__ #define __dialog_design_rules_base__
#include <wx/intl.h> #include <wx/intl.h>
#include <wx/colour.h> class NETS_LIST_CTRL;
#include <wx/settings.h>
#include <wx/string.h> #include <wx/colour.h>
#include <wx/font.h> #include <wx/settings.h>
#include <wx/grid.h> #include <wx/string.h>
#include <wx/gdicmn.h> #include <wx/font.h>
#include <wx/button.h> #include <wx/grid.h>
#include <wx/sizer.h> #include <wx/gdicmn.h>
#include <wx/statbox.h> #include <wx/button.h>
#include <wx/choice.h> #include <wx/sizer.h>
#include <wx/listctrl.h> #include <wx/statbox.h>
#include <wx/panel.h> #include <wx/choice.h>
#include <wx/bitmap.h> #include <wx/listctrl.h>
#include <wx/image.h> #include <wx/panel.h>
#include <wx/icon.h> #include <wx/bitmap.h>
#include <wx/radiobox.h> #include <wx/image.h>
#include <wx/stattext.h> #include <wx/icon.h>
#include <wx/textctrl.h> #include <wx/radiobox.h>
#include <wx/statline.h> #include <wx/stattext.h>
#include <wx/notebook.h> #include <wx/textctrl.h>
#include <wx/html/htmlwin.h> #include <wx/statline.h>
#include <wx/dialog.h> #include <wx/notebook.h>
#include <wx/html/htmlwin.h>
/////////////////////////////////////////////////////////////////////////// #include <wx/dialog.h>
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
/// Class DIALOG_DESIGN_RULES_BASE
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
class DIALOG_DESIGN_RULES_BASE : public wxDialog /// Class DIALOG_DESIGN_RULES_BASE
{ ///////////////////////////////////////////////////////////////////////////////
private: class DIALOG_DESIGN_RULES_BASE : public wxDialog
{
protected: private:
enum
{ protected:
wxID_ADD_NETCLASS = 1000, enum
wxID_REMOVE_NETCLASS, {
ID_LEFT_CHOICE_CLICK, wxID_ADD_NETCLASS = 1000,
ID_LEFT_TO_RIGHT_COPY, wxID_REMOVE_NETCLASS,
ID_RIGHT_TO_LEFT_COPY, ID_LEFT_CHOICE_CLICK,
ID_RIGHT_CHOICE_CLICK, ID_LEFT_TO_RIGHT_COPY,
}; ID_RIGHT_TO_LEFT_COPY,
ID_RIGHT_CHOICE_CLICK,
wxNotebook* m_DRnotebook; };
wxPanel* m_panelNetClassesEditor;
wxGrid* m_grid; wxNotebook* m_DRnotebook;
wxButton* m_addButton; wxPanel* m_panelNetClassesEditor;
wxButton* m_removeButton; wxGrid* m_grid;
wxButton* m_moveUpButton; wxButton* m_addButton;
wxChoice* m_leftClassChoice; wxButton* m_removeButton;
wxListCtrl* m_leftListCtrl; wxButton* m_moveUpButton;
wxButton* m_buttonRightToLeft; wxChoice* m_leftClassChoice;
wxButton* m_buttonLeftToRight; NETS_LIST_CTRL* m_leftListCtrl;
wxButton* m_buttonLeftSelAll; wxButton* m_buttonRightToLeft;
wxButton* m_buttonRightSelAll; wxButton* m_buttonLeftToRight;
wxChoice* m_rightClassChoice; wxButton* m_buttonLeftSelAll;
wxListCtrl* m_rightListCtrl; wxButton* m_buttonRightSelAll;
wxPanel* m_panelGolbalDesignRules; wxChoice* m_rightClassChoice;
wxRadioBox* m_OptViaType; NETS_LIST_CTRL* m_rightListCtrl;
wxStaticText* m_ViaMinTitle; wxPanel* m_panelGolbalDesignRules;
wxTextCtrl* m_SetViasMinSizeCtrl; wxRadioBox* m_OptViaType;
wxStaticText* m_ViaMinDrillTitle; wxStaticText* m_ViaMinTitle;
wxTextCtrl* m_SetViasMinDrillCtrl; wxTextCtrl* m_SetViasMinSizeCtrl;
wxRadioBox* m_AllowMicroViaCtrl; wxStaticText* m_ViaMinDrillTitle;
wxStaticText* m_MicroViaMinSizeTitle; wxTextCtrl* m_SetViasMinDrillCtrl;
wxTextCtrl* m_SetMicroViasMinSizeCtrl; wxRadioBox* m_AllowMicroViaCtrl;
wxStaticText* m_MicroViaMinDrillTitle; wxStaticText* m_MicroViaMinSizeTitle;
wxTextCtrl* m_SetMicroViasMinDrillCtrl; wxTextCtrl* m_SetMicroViasMinSizeCtrl;
wxStaticText* m_TrackMinWidthTitle; wxStaticText* m_MicroViaMinDrillTitle;
wxTextCtrl* m_SetTrackMinWidthCtrl; wxTextCtrl* m_SetMicroViasMinDrillCtrl;
wxStaticLine* m_staticline1; wxStaticText* m_TrackMinWidthTitle;
wxStaticText* m_staticTextInfo; wxTextCtrl* m_SetTrackMinWidthCtrl;
wxStaticText* m_staticText7; wxStaticLine* m_staticline1;
wxGrid* m_gridViaSizeList; wxStaticText* m_staticTextInfo;
wxStaticText* m_staticText8; wxStaticText* m_staticText7;
wxGrid* m_gridTrackWidthList; wxGrid* m_gridViaSizeList;
wxHtmlWindow* m_MessagesList; wxStaticText* m_staticText8;
wxButton* m_buttonOk; wxGrid* m_gridTrackWidthList;
wxButton* m_buttonCancel; wxHtmlWindow* m_MessagesList;
wxButton* m_buttonOk;
// Virtual event handlers, overide them in your derived class wxButton* m_buttonCancel;
virtual void OnNetClassesNameLeftClick( wxGridEvent& event ){ event.Skip(); }
virtual void OnNetClassesNameRightClick( wxGridEvent& event ){ event.Skip(); } // Virtual event handlers, overide them in your derived class
virtual void OnAddNetclassClick( wxCommandEvent& event ){ event.Skip(); } virtual void OnNetClassesNameLeftClick( wxGridEvent& event ){ event.Skip(); }
virtual void OnRemoveNetclassClick( wxCommandEvent& event ){ event.Skip(); } virtual void OnNetClassesNameRightClick( wxGridEvent& event ){ event.Skip(); }
virtual void OnMoveUpSelectedNetClass( wxCommandEvent& event ){ event.Skip(); } virtual void OnAddNetclassClick( wxCommandEvent& event ){ event.Skip(); }
virtual void OnLeftCBSelection( wxCommandEvent& event ){ event.Skip(); } virtual void OnRemoveNetclassClick( wxCommandEvent& event ){ event.Skip(); }
virtual void OnRightToLeftCopyButton( wxCommandEvent& event ){ event.Skip(); } virtual void OnMoveUpSelectedNetClass( wxCommandEvent& event ){ event.Skip(); }
virtual void OnLeftToRightCopyButton( wxCommandEvent& event ){ event.Skip(); } virtual void OnLeftCBSelection( wxCommandEvent& event ){ event.Skip(); }
virtual void OnLeftSelectAllButton( wxCommandEvent& event ){ event.Skip(); } virtual void OnRightToLeftCopyButton( wxCommandEvent& event ){ event.Skip(); }
virtual void OnRightSelectAllButton( wxCommandEvent& event ){ event.Skip(); } virtual void OnLeftToRightCopyButton( wxCommandEvent& event ){ event.Skip(); }
virtual void OnRightCBSelection( wxCommandEvent& event ){ event.Skip(); } virtual void OnLeftSelectAllButton( wxCommandEvent& event ){ event.Skip(); }
virtual void OnOkButtonClick( wxCommandEvent& event ){ event.Skip(); } virtual void OnRightSelectAllButton( wxCommandEvent& event ){ event.Skip(); }
virtual void OnCancelButtonClick( wxCommandEvent& event ){ event.Skip(); } virtual void OnRightCBSelection( wxCommandEvent& event ){ event.Skip(); }
virtual void OnOkButtonClick( wxCommandEvent& event ){ event.Skip(); }
virtual void OnCancelButtonClick( wxCommandEvent& event ){ event.Skip(); }
public:
DIALOG_DESIGN_RULES_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Design Rules Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 777,640 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
~DIALOG_DESIGN_RULES_BASE(); public:
DIALOG_DESIGN_RULES_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Design Rules Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 777,640 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
}; ~DIALOG_DESIGN_RULES_BASE();
#endif //__dialog_design_rules_base__ };
#endif //__dialog_design_rules_base__
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