dialog_cvpcb_config.h 4.89 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
/////////////////////////////////////////////////////////////////////////////
// Name:        dialog_cvpcb_config.h
// Purpose:     
// Author:      jean-pierre Charras
// Modified by: 
// Created:     17/02/2006 18:43:13
// RCS-ID:      
// Copyright:   License GNU
// Licence:     
/////////////////////////////////////////////////////////////////////////////

// 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 SYMBOL_KICONFIGCVPCBFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
#define SYMBOL_KICONFIGCVPCBFRAME_TITLE _("Dialog")
#define SYMBOL_KICONFIGCVPCBFRAME_IDNAME ID_DIALOG
#define SYMBOL_KICONFIGCVPCBFRAME_SIZE wxSize(400, 300)
#define SYMBOL_KICONFIGCVPCBFRAME_POSITION wxDefaultPosition
#define SAVE_CFG 10001
#define ID_READ_OLDCFG 10002
#define FORMAT_NETLIST 10003
#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
////@end control identifiers

/*!
 * Compatibility
 */

#ifndef wxCLOSE_BOX
#define wxCLOSE_BOX 0x1000
#endif

/*!
 * KiConfigCvpcbFrame class declaration
 */

class KiConfigCvpcbFrame: public wxDialog
{    
    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_RADIOBOX_SELECTED event handler for FORMAT_NETLIST
    void OnFormatNetlistSelected( 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();

	void Update(void);
	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);
	void ReturnNetFormat(wxCommandEvent& event);
	void SetDialogDatas(void);


////@begin KiConfigCvpcbFrame member variables
    wxRadioBox* m_NetFormatBox;
    wxStaticBoxSizer* m_FileExtList;
    wxBoxSizer* m_RightBoxSizer;
    wxListBox* m_ListLibr;
    wxListBox* m_ListEquiv;
    wxBoxSizer* m_FileExtBoxSizerH;
    wxBoxSizer* m_NetExtBoxSizer;
    wxBoxSizer* m_PkgExtBoxSizer;
////@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_