2007-05-06 16:03:28 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2008-03-22 18:08:44 +00:00
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
// Name: dialog_netlist.h
|
2008-03-22 18:08:44 +00:00
|
|
|
// Purpose:
|
2007-05-06 16:03:28 +00:00
|
|
|
// Author: jean-pierre Charras
|
2008-03-22 18:08:44 +00:00
|
|
|
// Modified by:
|
2007-05-06 16:03:28 +00:00
|
|
|
// Created: 26/02/2006 17:42:19
|
2008-03-22 18:08:44 +00:00
|
|
|
// RCS-ID:
|
2007-05-06 16:03:28 +00:00
|
|
|
// Copyright: License GNU
|
2008-03-22 18:08:44 +00:00
|
|
|
// Licence:
|
2007-05-06 16:03:28 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// Generated by DialogBlocks (unregistered), 26/02/2006 17:42:19
|
|
|
|
|
|
|
|
#ifndef _DIALOG_NETLIST_H_
|
|
|
|
#define _DIALOG_NETLIST_H_
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Includes
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin includes
|
2007-06-05 12:10:51 +00:00
|
|
|
#include "wx/valgen.h"
|
2007-11-13 09:35:39 +00:00
|
|
|
#include "wx/statline.h"
|
2007-05-06 16:03:28 +00:00
|
|
|
////@end includes
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Forward declarations
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin forward declarations
|
2007-11-13 09:35:39 +00:00
|
|
|
class wxStdDialogButtonSizer;
|
2007-05-06 16:03:28 +00:00
|
|
|
////@end forward declarations
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Control identifiers
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin control identifiers
|
2007-06-05 12:10:51 +00:00
|
|
|
#define ID_DIALOG 10000
|
2008-03-22 18:08:44 +00:00
|
|
|
#define ID_SELECTION_FOOTPRINT_MODE 10005
|
|
|
|
#define ID_KEEP_OR_CHANGE_FOOTPRINTS 10007
|
|
|
|
#define ID_DELETE_TRACKS_OPTION 10006
|
|
|
|
#define ID_DISPLAY_WARNINGS_OPT 10008
|
|
|
|
#define ID_REMOVE_EXTRA_FOOTPRINTS_OPT 10011
|
2007-06-05 12:10:51 +00:00
|
|
|
#define ID_OPEN_NELIST 10001
|
|
|
|
#define ID_READ_NETLIST_FILE 10002
|
|
|
|
#define ID_TEST_NETLIST 10003
|
|
|
|
#define ID_COMPILE_RATSNEST 10004
|
2008-03-22 18:08:44 +00:00
|
|
|
#define ID_TEXT_NETLIST_FILENAME 10012
|
2007-06-05 12:10:51 +00:00
|
|
|
#define ID_TEXTCTRL 10009
|
2007-11-13 09:35:39 +00:00
|
|
|
#define ID_STATICLINE 10010
|
|
|
|
#define SYMBOL_WINEDA_NETLISTFRAME_STYLE wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER
|
2008-03-22 18:08:44 +00:00
|
|
|
#define SYMBOL_WINEDA_NETLISTFRAME_TITLE _("Netlist Dialog")
|
2007-11-13 09:35:39 +00:00
|
|
|
#define SYMBOL_WINEDA_NETLISTFRAME_IDNAME ID_DIALOG
|
|
|
|
#define SYMBOL_WINEDA_NETLISTFRAME_SIZE wxSize(400, 300)
|
|
|
|
#define SYMBOL_WINEDA_NETLISTFRAME_POSITION wxDefaultPosition
|
2007-05-06 16:03:28 +00:00
|
|
|
////@end control identifiers
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Compatibility
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef wxCLOSE_BOX
|
|
|
|
#define wxCLOSE_BOX 0x1000
|
|
|
|
#endif
|
|
|
|
|
2008-03-22 18:08:44 +00:00
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
/*!
|
|
|
|
* WinEDA_NetlistFrame class declaration
|
|
|
|
*/
|
|
|
|
|
|
|
|
class WinEDA_NetlistFrame: public wxDialog
|
2008-03-22 18:08:44 +00:00
|
|
|
{
|
2007-05-06 16:03:28 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS( WinEDA_NetlistFrame )
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
/// Constructors
|
2008-03-22 18:08:44 +00:00
|
|
|
WinEDA_NetlistFrame();
|
|
|
|
WinEDA_NetlistFrame(WinEDA_PcbFrame* parent,
|
|
|
|
wxDC* DC,
|
|
|
|
const wxString& aNetlistFilename,
|
|
|
|
wxWindowID id = SYMBOL_WINEDA_NETLISTFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_NETLISTFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_NETLISTFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_NETLISTFRAME_SIZE, long style = SYMBOL_WINEDA_NETLISTFRAME_STYLE );
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
/// Creation
|
|
|
|
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_NETLISTFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_NETLISTFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_NETLISTFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_NETLISTFRAME_SIZE, long style = SYMBOL_WINEDA_NETLISTFRAME_STYLE );
|
|
|
|
|
2008-03-22 18:08:44 +00:00
|
|
|
/// Destructor
|
|
|
|
~WinEDA_NetlistFrame();
|
|
|
|
|
|
|
|
/// Initialises member variables
|
|
|
|
void Init();
|
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
/// Creates the controls and sizers
|
|
|
|
void CreateControls();
|
|
|
|
|
|
|
|
////@begin WinEDA_NetlistFrame event handler declarations
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_OPEN_NELIST
|
|
|
|
void OnOpenNelistClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_READ_NETLIST_FILE
|
|
|
|
void OnReadNetlistFileClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_TEST_NETLIST
|
|
|
|
void OnTestNetlistClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_COMPILE_RATSNEST
|
|
|
|
void OnCompileRatsnestClick( wxCommandEvent& event );
|
|
|
|
|
2007-11-13 09:35:39 +00:00
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
|
|
|
void OnCancelClick( wxCommandEvent& event );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
////@end WinEDA_NetlistFrame event handler declarations
|
|
|
|
|
|
|
|
////@begin WinEDA_NetlistFrame member function declarations
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Retrieves bitmap resources
|
|
|
|
wxBitmap GetBitmapResource( const wxString& name );
|
|
|
|
|
|
|
|
/// Retrieves icon resources
|
|
|
|
wxIcon GetIconResource( const wxString& name );
|
2007-05-06 16:03:28 +00:00
|
|
|
////@end WinEDA_NetlistFrame member function declarations
|
|
|
|
|
|
|
|
/// Should we show tooltips?
|
|
|
|
static bool ShowToolTips();
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
////@begin WinEDA_NetlistFrame member variables
|
2007-06-05 12:10:51 +00:00
|
|
|
wxRadioBox* m_Select_By_Timestamp;
|
2008-03-22 18:08:44 +00:00
|
|
|
wxRadioBox* m_ChangeExistingFootprintCtrl;
|
2007-06-05 12:10:51 +00:00
|
|
|
wxRadioBox* m_DeleteBadTracks;
|
|
|
|
wxCheckBox* m_DisplayWarningCtrl;
|
2008-03-22 18:08:44 +00:00
|
|
|
wxCheckBox* m_RemoveExtraFootprintsCtrl;
|
|
|
|
wxTextCtrl* m_NetlistFilenameCtrl;
|
2007-06-05 12:10:51 +00:00
|
|
|
wxTextCtrl* m_MessageWindow;
|
2007-11-13 09:35:39 +00:00
|
|
|
wxStdDialogButtonSizer* StdDialogButtonSizer;
|
2007-05-06 16:03:28 +00:00
|
|
|
////@end WinEDA_NetlistFrame member variables
|
2008-03-22 18:08:44 +00:00
|
|
|
WinEDA_PcbFrame* m_Parent;
|
|
|
|
wxDC* m_DC;
|
2007-05-06 16:03:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2008-03-22 18:08:44 +00:00
|
|
|
|
|
|
|
// _DIALOG_NETLIST_H_
|