2009-04-06 16:21:39 +00:00
///////////////////////////////////////////////////////////////////////////
2011-08-19 16:24:23 +00:00
// C++ code generated with wxFormBuilder (version Jun 6 2011)
2009-04-06 16:21:39 +00:00
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
# include "dialog_eeschema_config_fbp.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_EESCHEMA_CONFIG_FBP : : DIALOG_EESCHEMA_CONFIG_FBP ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : wxDialog ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
wxBoxSizer * bMainSizer ;
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
wxStaticBoxSizer * sbLibsChoiceSizer ;
2009-05-01 18:06:03 +00:00
sbLibsChoiceSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Component library files " ) ) , wxHORIZONTAL ) ;
2009-04-06 16:21:39 +00:00
2010-04-02 11:48:30 +00:00
m_ListLibr = new wxListBox ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 , NULL , wxLB_EXTENDED | wxLB_HSCROLL | wxLB_NEEDED_SB | wxLB_SINGLE ) ;
2009-04-06 16:21:39 +00:00
m_ListLibr - > SetToolTip ( _ ( " List of active library files. \n Only library files in this list are loaded by Eeschema. \n The order of this list is important: \n Eeschema searchs for a given component using this list order priority. " ) ) ;
2009-05-16 05:38:38 +00:00
m_ListLibr - > SetMinSize ( wxSize ( 400 , 250 ) ) ;
2009-04-06 16:21:39 +00:00
2010-04-02 14:26:27 +00:00
sbLibsChoiceSizer - > Add ( m_ListLibr , 1 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2009-04-06 16:21:39 +00:00
wxBoxSizer * bRightSizer ;
bRightSizer = new wxBoxSizer ( wxVERTICAL ) ;
2009-04-18 14:14:40 +00:00
m_buttonAddLib = new wxButton ( this , ID_ADD_LIB , _ ( " Add " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_buttonAddLib - > SetToolTip ( _ ( " Add a new library after the selected library, and load it " ) ) ;
2009-04-06 16:21:39 +00:00
2010-04-02 11:48:30 +00:00
bRightSizer - > Add ( m_buttonAddLib , 0 , wxALIGN_CENTER_HORIZONTAL | wxLEFT | wxRIGHT | wxTOP | wxEXPAND , 5 ) ;
2009-04-06 16:21:39 +00:00
2009-04-18 14:14:40 +00:00
m_buttonIns = new wxButton ( this , wxID_ANY , _ ( " Insert " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2009-04-06 16:21:39 +00:00
m_buttonIns - > SetToolTip ( _ ( " Add a new library before the selected library, and load it " ) ) ;
2010-04-02 11:48:30 +00:00
bRightSizer - > Add ( m_buttonIns , 0 , wxALIGN_CENTER_HORIZONTAL | wxLEFT | wxRIGHT | wxTOP | wxEXPAND , 5 ) ;
2009-04-19 15:03:48 +00:00
m_buttonRemoveLib = new wxButton ( this , ID_REMOVE_LIB , _ ( " Remove " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_buttonRemoveLib - > SetToolTip ( _ ( " Unload the selected library " ) ) ;
2010-04-02 11:48:30 +00:00
bRightSizer - > Add ( m_buttonRemoveLib , 0 , wxALL | wxALIGN_CENTER_HORIZONTAL | wxEXPAND , 5 ) ;
m_buttonUp = new wxButton ( this , wxID_ANY , _ ( " Up " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bRightSizer - > Add ( m_buttonUp , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
m_buttonDown = new wxButton ( this , wxID_ANY , _ ( " Down " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bRightSizer - > Add ( m_buttonDown , 0 , wxALL | wxEXPAND , 5 ) ;
2009-04-06 16:21:39 +00:00
2009-05-01 18:06:03 +00:00
sbLibsChoiceSizer - > Add ( bRightSizer , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2009-04-06 16:21:39 +00:00
2011-08-19 16:24:23 +00:00
bMainSizer - > Add ( sbLibsChoiceSizer , 2 , wxALL | wxEXPAND , 5 ) ;
2009-04-06 16:21:39 +00:00
2009-04-14 16:45:22 +00:00
wxStaticBoxSizer * sbSizer4 ;
2009-05-01 18:06:03 +00:00
sbSizer4 = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " User defined search path " ) ) , wxHORIZONTAL ) ;
2009-04-14 16:45:22 +00:00
2009-05-01 18:06:03 +00:00
m_listUserPaths = new wxListBox ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 , NULL , wxLB_HSCROLL | wxLB_NEEDED_SB | wxLB_SINGLE ) ;
2009-04-19 15:03:48 +00:00
m_listUserPaths - > SetToolTip ( _ ( " Additional paths used in this project. The priority is highter than default Kicad paths. " ) ) ;
2009-05-01 18:06:03 +00:00
m_listUserPaths - > SetMinSize ( wxSize ( 400 , 90 ) ) ;
2009-04-19 15:03:48 +00:00
2010-04-02 14:26:27 +00:00
sbSizer4 - > Add ( m_listUserPaths , 1 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2009-04-14 16:45:22 +00:00
wxBoxSizer * bUserPathsButtonsSizer ;
bUserPathsButtonsSizer = new wxBoxSizer ( wxVERTICAL ) ;
2009-04-06 16:21:39 +00:00
2009-04-18 14:14:40 +00:00
m_buttonAddPath = new wxButton ( this , ID_LIB_PATH_SEL , _ ( " Add " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2010-04-02 11:48:30 +00:00
bUserPathsButtonsSizer - > Add ( m_buttonAddPath , 0 , wxLEFT | wxRIGHT | wxTOP | wxEXPAND , 5 ) ;
2009-04-14 16:45:22 +00:00
2009-04-18 14:14:40 +00:00
m_buttonInsPath = new wxButton ( this , wxID_INSERT_PATH , _ ( " Insert " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2010-04-02 11:48:30 +00:00
bUserPathsButtonsSizer - > Add ( m_buttonInsPath , 0 , wxLEFT | wxRIGHT | wxTOP | wxEXPAND , 5 ) ;
2009-04-19 15:03:48 +00:00
m_buttonRemovePath = new wxButton ( this , wxID_REMOVE_PATH , _ ( " Remove " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2010-04-02 11:48:30 +00:00
bUserPathsButtonsSizer - > Add ( m_buttonRemovePath , 0 , wxALL | wxEXPAND , 5 ) ;
2009-04-14 16:45:22 +00:00
2009-05-01 18:06:03 +00:00
sbSizer4 - > Add ( bUserPathsButtonsSizer , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2009-04-14 16:45:22 +00:00
2011-08-19 16:24:23 +00:00
bMainSizer - > Add ( sbSizer4 , 1 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2009-04-12 14:39:54 +00:00
2009-05-01 18:06:03 +00:00
wxStaticBoxSizer * sbLibPathSizer ;
sbLibPathSizer = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Current search path list " ) ) , wxVERTICAL ) ;
2009-04-12 14:39:54 +00:00
m_DefaultLibraryPathslistBox = new wxListBox ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 , NULL , wxLB_NEEDED_SB ) ;
2009-04-14 16:45:22 +00:00
m_DefaultLibraryPathslistBox - > SetToolTip ( _ ( " Paths (system paths and user paths) used to search and load libraries files and component doc files. \n Sorted by decreasing priority order. " ) ) ;
2009-04-12 14:39:54 +00:00
2011-08-19 16:24:23 +00:00
sbLibPathSizer - > Add ( m_DefaultLibraryPathslistBox , 1 , wxALL | wxEXPAND , 5 ) ;
2009-04-06 16:21:39 +00:00
2011-08-19 16:24:23 +00:00
bMainSizer - > Add ( sbLibPathSizer , 1 , wxALL | wxBOTTOM | wxEXPAND | wxLEFT | wxRIGHT , 5 ) ;
2009-05-01 18:06:03 +00:00
m_staticline3 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
2010-04-02 14:26:27 +00:00
bMainSizer - > Add ( m_staticline3 , 0 , wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
2009-05-01 18:06:03 +00:00
m_sdbSizer1 = new wxStdDialogButtonSizer ( ) ;
m_sdbSizer1OK = new wxButton ( this , wxID_OK ) ;
m_sdbSizer1 - > AddButton ( m_sdbSizer1OK ) ;
m_sdbSizer1Cancel = new wxButton ( this , wxID_CANCEL ) ;
m_sdbSizer1 - > AddButton ( m_sdbSizer1Cancel ) ;
m_sdbSizer1 - > Realize ( ) ;
bMainSizer - > Add ( m_sdbSizer1 , 0 , wxALL | wxEXPAND , 5 ) ;
2009-04-06 16:21:39 +00:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
2009-05-01 18:06:03 +00:00
bMainSizer - > Fit ( this ) ;
this - > Centre ( wxBOTH ) ;
2009-04-06 16:21:39 +00:00
// Connect Events
this - > Connect ( wxEVT_CLOSE_WINDOW , wxCloseEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnCloseWindow ) ) ;
2010-04-02 11:48:30 +00:00
m_ListLibr - > Connect ( wxEVT_COMMAND_LISTBOX_SELECTED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnFilesListClick ) , NULL , this ) ;
m_ListLibr - > Connect ( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnFilesListClick ) , NULL , this ) ;
2009-04-18 14:14:40 +00:00
m_buttonAddLib - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnAddOrInsertLibClick ) , NULL , this ) ;
2009-04-06 16:21:39 +00:00
m_buttonIns - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnAddOrInsertLibClick ) , NULL , this ) ;
2009-04-19 15:03:48 +00:00
m_buttonRemoveLib - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnRemoveLibClick ) , NULL , this ) ;
2010-04-02 11:48:30 +00:00
m_buttonUp - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnButtonUpClick ) , NULL , this ) ;
m_buttonDown - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnButtonDownClick ) , NULL , this ) ;
2009-04-18 14:14:40 +00:00
m_buttonAddPath - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnAddOrInsertPath ) , NULL , this ) ;
m_buttonInsPath - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnAddOrInsertPath ) , NULL , this ) ;
2009-04-19 15:03:48 +00:00
m_buttonRemovePath - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnRemoveUserPath ) , NULL , this ) ;
2009-05-01 18:06:03 +00:00
m_sdbSizer1Cancel - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnCancelClick ) , NULL , this ) ;
m_sdbSizer1OK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnOkClick ) , NULL , this ) ;
2009-04-06 16:21:39 +00:00
}
DIALOG_EESCHEMA_CONFIG_FBP : : ~ DIALOG_EESCHEMA_CONFIG_FBP ( )
{
// Disconnect Events
this - > Disconnect ( wxEVT_CLOSE_WINDOW , wxCloseEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnCloseWindow ) ) ;
2010-04-02 11:48:30 +00:00
m_ListLibr - > Disconnect ( wxEVT_COMMAND_LISTBOX_SELECTED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnFilesListClick ) , NULL , this ) ;
m_ListLibr - > Disconnect ( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnFilesListClick ) , NULL , this ) ;
2009-04-18 14:14:40 +00:00
m_buttonAddLib - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnAddOrInsertLibClick ) , NULL , this ) ;
2009-04-06 16:21:39 +00:00
m_buttonIns - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnAddOrInsertLibClick ) , NULL , this ) ;
2009-04-19 15:03:48 +00:00
m_buttonRemoveLib - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnRemoveLibClick ) , NULL , this ) ;
2010-04-02 11:48:30 +00:00
m_buttonUp - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnButtonUpClick ) , NULL , this ) ;
m_buttonDown - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnButtonDownClick ) , NULL , this ) ;
2009-04-18 14:14:40 +00:00
m_buttonAddPath - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnAddOrInsertPath ) , NULL , this ) ;
m_buttonInsPath - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnAddOrInsertPath ) , NULL , this ) ;
2009-04-19 15:03:48 +00:00
m_buttonRemovePath - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnRemoveUserPath ) , NULL , this ) ;
2009-05-01 18:06:03 +00:00
m_sdbSizer1Cancel - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnCancelClick ) , NULL , this ) ;
m_sdbSizer1OK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EESCHEMA_CONFIG_FBP : : OnOkClick ) , NULL , this ) ;
2011-08-19 16:24:23 +00:00
2009-04-06 16:21:39 +00:00
}