2007-06-05 12:10:51 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dialog_cvpcb_config.h
|
2008-08-01 17:41:51 +00:00
|
|
|
// Purpose:
|
2007-06-05 12:10:51 +00:00
|
|
|
// Author: jean-pierre Charras
|
2008-08-01 17:41:51 +00:00
|
|
|
// Modified by:
|
2007-06-05 12:10:51 +00:00
|
|
|
// Created: 17/02/2006 18:43:13
|
2008-08-01 17:41:51 +00:00
|
|
|
// RCS-ID:
|
2007-06-05 12:10:51 +00:00
|
|
|
// Copyright: License GNU
|
2008-08-01 17:41:51 +00:00
|
|
|
// Licence:
|
2007-06-05 12:10:51 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// Generated by DialogBlocks (unregistered), 17/02/2006 18:43:13
|
|
|
|
|
|
|
|
#ifndef _DIALOG_CVPCB_CONFIG_H_
|
|
|
|
#define _DIALOG_CVPCB_CONFIG_H_
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Includes
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin includes
|
|
|
|
////@end includes
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Forward declarations
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin forward declarations
|
|
|
|
class wxBoxSizer;
|
|
|
|
////@end forward declarations
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Control identifiers
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin control identifiers
|
|
|
|
#define ID_DIALOG 10000
|
|
|
|
#define SAVE_CFG 10001
|
|
|
|
#define ID_READ_OLDCFG 10002
|
|
|
|
#define DEL_LIB 10004
|
|
|
|
#define ADD_LIB 10005
|
|
|
|
#define INSERT_LIB 10006
|
|
|
|
#define ID_LISTBOX 10010
|
|
|
|
#define DEL_EQU 10007
|
|
|
|
#define ADD_EQU 10008
|
|
|
|
#define INSERT_EQU 10009
|
|
|
|
#define ID_LISTBOX1 10011
|
2007-10-27 12:24:09 +00:00
|
|
|
#define SYMBOL_KICONFIGCVPCBFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
|
|
|
|
#define SYMBOL_KICONFIGCVPCBFRAME_TITLE _("Cvpcb Configuration")
|
|
|
|
#define SYMBOL_KICONFIGCVPCBFRAME_IDNAME ID_DIALOG
|
|
|
|
#define SYMBOL_KICONFIGCVPCBFRAME_SIZE wxSize(400, 300)
|
|
|
|
#define SYMBOL_KICONFIGCVPCBFRAME_POSITION wxDefaultPosition
|
2007-06-05 12:10:51 +00:00
|
|
|
////@end control identifiers
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Compatibility
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef wxCLOSE_BOX
|
|
|
|
#define wxCLOSE_BOX 0x1000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* KiConfigCvpcbFrame class declaration
|
|
|
|
*/
|
|
|
|
|
|
|
|
class KiConfigCvpcbFrame: public wxDialog
|
2008-08-01 17:41:51 +00:00
|
|
|
{
|
2007-06-05 12:10:51 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS( KiConfigCvpcbFrame )
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
/// Constructors
|
|
|
|
KiConfigCvpcbFrame( );
|
|
|
|
KiConfigCvpcbFrame( WinEDA_CvpcbFrame* parent, wxWindowID id = SYMBOL_KICONFIGCVPCBFRAME_IDNAME, const wxString& caption = SYMBOL_KICONFIGCVPCBFRAME_TITLE, const wxPoint& pos = SYMBOL_KICONFIGCVPCBFRAME_POSITION, const wxSize& size = SYMBOL_KICONFIGCVPCBFRAME_SIZE, long style = SYMBOL_KICONFIGCVPCBFRAME_STYLE );
|
|
|
|
|
|
|
|
/// Creation
|
|
|
|
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_KICONFIGCVPCBFRAME_IDNAME, const wxString& caption = SYMBOL_KICONFIGCVPCBFRAME_TITLE, const wxPoint& pos = SYMBOL_KICONFIGCVPCBFRAME_POSITION, const wxSize& size = SYMBOL_KICONFIGCVPCBFRAME_SIZE, long style = SYMBOL_KICONFIGCVPCBFRAME_STYLE );
|
|
|
|
|
|
|
|
/// Creates the controls and sizers
|
|
|
|
void CreateControls();
|
|
|
|
|
|
|
|
////@begin KiConfigCvpcbFrame event handler declarations
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for SAVE_CFG
|
|
|
|
void OnSaveCfgClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_READ_OLDCFG
|
|
|
|
void OnReadOldcfgClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
|
|
|
|
void OnOkClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for DEL_LIB
|
|
|
|
void OnDelLibClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ADD_LIB
|
|
|
|
void OnAddLibClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for INSERT_LIB
|
|
|
|
void OnInsertLibClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for DEL_EQU
|
|
|
|
void OnDelEquClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ADD_EQU
|
|
|
|
void OnAddEquClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for INSERT_EQU
|
|
|
|
void OnInsertEquClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
////@end KiConfigCvpcbFrame event handler declarations
|
|
|
|
|
|
|
|
////@begin KiConfigCvpcbFrame member function declarations
|
|
|
|
|
|
|
|
/// Retrieves bitmap resources
|
|
|
|
wxBitmap GetBitmapResource( const wxString& name );
|
|
|
|
|
|
|
|
/// Retrieves icon resources
|
|
|
|
wxIcon GetIconResource( const wxString& name );
|
|
|
|
////@end KiConfigCvpcbFrame member function declarations
|
|
|
|
|
|
|
|
/// Should we show tooltips?
|
|
|
|
static bool ShowToolTips();
|
|
|
|
|
2007-09-13 11:55:46 +00:00
|
|
|
void Update();
|
2007-06-05 12:10:51 +00:00
|
|
|
void AcceptCfg(wxCommandEvent& event);
|
|
|
|
void SaveCfg(wxCommandEvent& event);
|
|
|
|
void ReadOldCfg(wxCommandEvent& event);
|
|
|
|
void LibDelFct(wxCommandEvent& event);
|
|
|
|
void LibAddFct(wxCommandEvent& event);
|
|
|
|
void EquDelFct(wxCommandEvent& event);
|
|
|
|
void EquAddFct(wxCommandEvent& event);
|
2007-09-13 11:55:46 +00:00
|
|
|
void SetDialogDatas();
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
////@begin KiConfigCvpcbFrame member variables
|
2008-06-11 11:27:58 +00:00
|
|
|
wxButton* m_OkButton;
|
2007-06-05 12:10:51 +00:00
|
|
|
wxStaticBoxSizer* m_FileExtList;
|
|
|
|
wxBoxSizer* m_RightBoxSizer;
|
|
|
|
wxListBox* m_ListLibr;
|
|
|
|
wxListBox* m_ListEquiv;
|
|
|
|
wxBoxSizer* m_FileExtBoxSizerH;
|
|
|
|
wxBoxSizer* m_NetExtBoxSizer;
|
|
|
|
////@end KiConfigCvpcbFrame member variables
|
|
|
|
|
|
|
|
WinEDA_CvpcbFrame * m_Parent;
|
|
|
|
bool m_DoUpdate;
|
|
|
|
|
|
|
|
WinEDA_EnterText * m_LibDirCtrl;
|
|
|
|
WinEDA_EnterText * m_NetInputExtCtrl;
|
|
|
|
WinEDA_EnterText * m_PkgExtCtrl;
|
|
|
|
WinEDA_EnterText * m_TextHelpModulesFileName;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _DIALOG_CVPCB_CONFIG_H_
|