2023-05-12 21:03:54 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2023-12-13 16:07:09 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
|
2023-05-12 21:03:54 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <wx/artprov.h>
|
|
|
|
#include <wx/xrc/xmlres.h>
|
|
|
|
#include <wx/intl.h>
|
|
|
|
class PCB_LAYER_BOX_SELECTOR;
|
|
|
|
|
|
|
|
#include "dialog_shim.h"
|
|
|
|
#include <wx/string.h>
|
|
|
|
#include <wx/checkbox.h>
|
|
|
|
#include <wx/gdicmn.h>
|
|
|
|
#include <wx/font.h>
|
|
|
|
#include <wx/colour.h>
|
|
|
|
#include <wx/settings.h>
|
|
|
|
#include <wx/sizer.h>
|
|
|
|
#include <wx/statbox.h>
|
|
|
|
#include <widgets/net_selector.h>
|
|
|
|
#include <wx/choice.h>
|
|
|
|
#include <wx/bmpcbox.h>
|
|
|
|
#include <wx/radiobut.h>
|
|
|
|
#include <wx/hyperlink.h>
|
|
|
|
#include <wx/stattext.h>
|
|
|
|
#include <wx/textctrl.h>
|
|
|
|
#include <wx/bitmap.h>
|
|
|
|
#include <wx/image.h>
|
|
|
|
#include <wx/icon.h>
|
|
|
|
#include <wx/statbmp.h>
|
2023-05-23 16:45:26 +00:00
|
|
|
#include <wx/spinctrl.h>
|
2023-05-12 21:03:54 +00:00
|
|
|
#include <wx/button.h>
|
|
|
|
#include <wx/dialog.h>
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#define ID_SPECIFIED_NET_TO_NETCLASS_VALUES 1000
|
|
|
|
#define ID_SPECIFIED_NET_TO_SPECIFIED_VALUES 1001
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
/// Class DIALOG_GLOBAL_EDIT_TEARDROPS_BASE
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
class DIALOG_GLOBAL_EDIT_TEARDROPS_BASE : public DIALOG_SHIM
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
|
|
|
|
protected:
|
|
|
|
wxCheckBox* m_pthPads;
|
|
|
|
wxCheckBox* m_smdPads;
|
|
|
|
wxCheckBox* m_vias;
|
|
|
|
wxCheckBox* m_trackToTrack;
|
|
|
|
wxCheckBox* m_netFilterOpt;
|
|
|
|
NET_SELECTOR* m_netFilter;
|
|
|
|
wxCheckBox* m_netclassFilterOpt;
|
|
|
|
wxChoice* m_netclassFilter;
|
|
|
|
wxCheckBox* m_layerFilterOpt;
|
|
|
|
PCB_LAYER_BOX_SELECTOR* m_layerFilter;
|
|
|
|
wxCheckBox* m_roundPadsFilter;
|
|
|
|
wxCheckBox* m_existingFilter;
|
|
|
|
wxCheckBox* m_selectedItemsFilter;
|
|
|
|
wxRadioButton* m_removeTeardrops;
|
|
|
|
wxRadioButton* m_addTeardrops;
|
|
|
|
wxHyperlinkCtrl* m_boardSetupLink;
|
|
|
|
wxRadioButton* m_specifiedValues;
|
|
|
|
wxCheckBox* m_cbPreferZoneConnection;
|
|
|
|
wxCheckBox* m_cbTeardropsUseNextTrack;
|
|
|
|
wxStaticText* m_stHDRatio;
|
|
|
|
wxTextCtrl* m_tcHDRatio;
|
|
|
|
wxStaticText* m_stHDRatioUnits;
|
|
|
|
wxStaticText* m_minTrackWidthHint;
|
|
|
|
wxStaticBitmap* m_bitmapTeardrop;
|
|
|
|
wxStaticText* m_stLenPercentLabel;
|
|
|
|
wxTextCtrl* m_tcLenPercent;
|
|
|
|
wxStaticText* m_stLenPercentUnits;
|
|
|
|
wxStaticText* m_stMaxLen;
|
|
|
|
wxTextCtrl* m_tcTdMaxLen;
|
|
|
|
wxStaticText* m_stMaxLenUnits;
|
|
|
|
wxStaticText* m_stHeightPercentLabel;
|
|
|
|
wxTextCtrl* m_tcHeightPercent;
|
|
|
|
wxStaticText* m_stHeightPercentUnits;
|
|
|
|
wxStaticText* m_stMaxHeight;
|
|
|
|
wxTextCtrl* m_tcMaxHeight;
|
|
|
|
wxStaticText* m_stMaxHeightUnits;
|
2023-05-23 16:45:26 +00:00
|
|
|
wxCheckBox* m_curvedEdges;
|
2023-05-12 21:03:54 +00:00
|
|
|
wxStaticText* m_curvePointsLabel;
|
2023-05-23 16:45:26 +00:00
|
|
|
wxSpinCtrl* m_curvePointsCtrl;
|
2023-05-12 21:03:54 +00:00
|
|
|
wxStdDialogButtonSizer* m_sdbSizer;
|
|
|
|
wxButton* m_sdbSizerOK;
|
|
|
|
wxButton* m_sdbSizerCancel;
|
|
|
|
|
|
|
|
// Virtual event handlers, override them in your derived class
|
|
|
|
virtual void onTrackToTrack( wxCommandEvent& event ) { event.Skip(); }
|
|
|
|
virtual void onFilterUpdateUi( wxUpdateUIEvent& event ) { event.Skip(); }
|
|
|
|
virtual void OnNetclassFilterSelect( wxCommandEvent& event ) { event.Skip(); }
|
|
|
|
virtual void OnLayerFilterSelect( wxCommandEvent& event ) { event.Skip(); }
|
|
|
|
virtual void OnExistingFilterSelect( wxCommandEvent& event ) { event.Skip(); }
|
|
|
|
virtual void onShowBoardSetup( wxHyperlinkEvent& event ) { event.Skip(); }
|
|
|
|
virtual void onSpecifiedValuesUpdateUi( wxUpdateUIEvent& event ) { event.Skip(); }
|
|
|
|
virtual void onCurvedEdgesUpdateUi( wxUpdateUIEvent& event ) { event.Skip(); }
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
DIALOG_GLOBAL_EDIT_TEARDROPS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Set Teardrops"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
|
|
|
|
|
|
|
~DIALOG_GLOBAL_EDIT_TEARDROPS_BASE();
|
|
|
|
|
|
|
|
};
|
|
|
|
|