2009-04-19 15:03:48 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dialog_pcbnew_config_libs_and_paths.h
|
|
|
|
// Author: jean-pierre Charras
|
|
|
|
// Licence: GPL
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _DIALOG_PCBNEW_CONFIG_LIBS_H_
|
|
|
|
#define _DIALOG_PCBNEW_CONFIG_LIBS_H_
|
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
#include <dialog_pcbnew_config_libs_and_paths_fbp.h>
|
2009-04-19 15:03:48 +00:00
|
|
|
|
|
|
|
class DIALOG_PCBNEW_CONFIG_LIBS : public DIALOG_PCBNEW_CONFIG_LIBS_FBP
|
|
|
|
{
|
|
|
|
private:
|
2011-09-26 20:32:56 +00:00
|
|
|
wxConfig* m_Config;
|
2009-04-19 15:03:48 +00:00
|
|
|
bool m_LibListChanged;
|
|
|
|
bool m_LibPathChanged;
|
|
|
|
wxString m_UserLibDirBufferImg; // Copy of original g_UserLibDirBuffer
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
// event handlers, overiding the fbp handlers
|
|
|
|
void Init();
|
|
|
|
void OnCloseWindow( wxCloseEvent& event );
|
|
|
|
void OnSaveCfgClick( wxCommandEvent& event );
|
|
|
|
void OnRemoveLibClick( wxCommandEvent& event );
|
|
|
|
void OnAddOrInsertLibClick( wxCommandEvent& event );
|
|
|
|
void OnAddOrInsertPath( wxCommandEvent& event );
|
2012-01-23 04:33:36 +00:00
|
|
|
void OnOkClick( wxCommandEvent& event );
|
|
|
|
void OnCancelClick( wxCommandEvent& event );
|
2009-04-19 15:03:48 +00:00
|
|
|
void OnRemoveUserPath( wxCommandEvent& event );
|
2012-01-23 04:33:36 +00:00
|
|
|
void OnBrowseModDocFile( wxCommandEvent& event );
|
|
|
|
void OnButtonUpClick( wxCommandEvent& event );
|
|
|
|
void OnButtonDownClick( wxCommandEvent& event );
|
2009-04-19 15:03:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
public:
|
2011-03-01 19:26:17 +00:00
|
|
|
DIALOG_PCBNEW_CONFIG_LIBS( PCB_EDIT_FRAME * parent );
|
2009-04-19 15:03:48 +00:00
|
|
|
~DIALOG_PCBNEW_CONFIG_LIBS() {};
|
2011-09-26 20:32:56 +00:00
|
|
|
|
|
|
|
PCB_EDIT_FRAME* GetParent() { return (PCB_EDIT_FRAME*) wxDialog::GetParent(); }
|
2009-04-19 15:03:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _DIALOG_PCBNEW_CONFIG_LIBS_H_
|