2007-05-06 16:03:28 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dialog_netlist.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: jean-pierre Charras
|
|
|
|
// Modified by:
|
|
|
|
// Created: 26/02/2006 17:42:19
|
|
|
|
// RCS-ID:
|
|
|
|
// Copyright: License GNU
|
|
|
|
// Licence:
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// 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
|
|
|
|
#define ID_RADIOBOX 10005
|
|
|
|
#define ID_RADIOBOX1 10006
|
|
|
|
#define ID_RADIOBOX2 10007
|
|
|
|
#define ID_CHECKBOX 10008
|
|
|
|
#define ID_OPEN_NELIST 10001
|
|
|
|
#define ID_READ_NETLIST_FILE 10002
|
|
|
|
#define ID_TEST_NETLIST 10003
|
|
|
|
#define ID_COMPILE_RATSNEST 10004
|
|
|
|
#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
|
|
|
|
#define SYMBOL_WINEDA_NETLISTFRAME_TITLE _("Netlist: ")
|
|
|
|
#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
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* WinEDA_NetlistFrame class declaration
|
|
|
|
*/
|
|
|
|
|
|
|
|
class WinEDA_NetlistFrame: public wxDialog
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS( WinEDA_NetlistFrame )
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
/// Constructors
|
|
|
|
WinEDA_NetlistFrame( );
|
|
|
|
WinEDA_NetlistFrame( WinEDA_PcbFrame* parent,wxDC * DC,
|
|
|
|
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 );
|
|
|
|
|
|
|
|
/// 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 );
|
|
|
|
|
|
|
|
/// 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-11-13 09:35:39 +00:00
|
|
|
void ReadPcbNetlist(wxCommandEvent& event);
|
|
|
|
void Set_NetlisteName(wxCommandEvent& event);
|
|
|
|
bool OpenNetlistFile(wxCommandEvent& event);
|
|
|
|
int BuildListeNetModules(wxCommandEvent& event, wxArrayString & BufName);
|
|
|
|
void ModulesControle(wxCommandEvent& event);
|
|
|
|
int ReadListeModules(const wxString * RefCmp, long TimeStamp, wxString & NameModule);
|
|
|
|
int SetPadNetName( char * Line, MODULE * Module);
|
|
|
|
MODULE * ReadNetModule( char * Text, int * UseFichCmp, int TstOnly);
|
2008-02-12 21:12:46 +00:00
|
|
|
void AddToList(const wxString & NameLibCmp,
|
|
|
|
const wxString & NameCmp,
|
|
|
|
int TimeStamp,
|
|
|
|
const wxString& path);
|
2007-11-13 09:35:39 +00:00
|
|
|
void LoadListeModules(wxDC *DC);
|
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;
|
|
|
|
wxRadioBox* m_DeleteBadTracks;
|
|
|
|
wxRadioBox* m_ChangeExistantModuleCtrl;
|
|
|
|
wxCheckBox* m_DisplayWarningCtrl;
|
|
|
|
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
|
2007-11-13 09:35:39 +00:00
|
|
|
WinEDA_PcbFrame * m_Parent;
|
|
|
|
wxDC * m_DC;
|
2007-05-06 16:03:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _DIALOG_NETLIST_H_
|