Commit 7e76fd08 authored by Mikhail Karpenko's avatar Mikhail Karpenko
Browse files

Move teardrops editor to tool framework

parent a1ac84e5
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -279,7 +279,6 @@ set( PCB_COMMON_SRCS
    ../pcbnew/class_zone.cpp
    ../pcbnew/class_zone.cpp
    ../pcbnew/class_zone_settings.cpp
    ../pcbnew/class_zone_settings.cpp
    ../pcbnew/class_teardrop.cpp
    ../pcbnew/class_teardrop.cpp
    ../pcbnew/edit_teardrops.cpp
    ../pcbnew/classpcb.cpp
    ../pcbnew/classpcb.cpp
    ../pcbnew/ratsnest_data.cpp
    ../pcbnew/ratsnest_data.cpp
    ../pcbnew/ratsnest_viewitem.cpp
    ../pcbnew/ratsnest_viewitem.cpp
+1 −0
Original line number Original line Diff line number Diff line
@@ -276,6 +276,7 @@ set( PCBNEW_CLASS_SRCS
    tools/bright_box.cpp
    tools/bright_box.cpp
    tools/edit_points.cpp
    tools/edit_points.cpp
    tools/edit_constraints.cpp
    tools/edit_constraints.cpp
    tools/edit_teardrops.cpp
    tools/point_editor.cpp
    tools/point_editor.cpp
    tools/drawing_tool.cpp
    tools/drawing_tool.cpp
    tools/edit_tool.cpp
    tools/edit_tool.cpp
+1 −1
Original line number Original line Diff line number Diff line
@@ -80,7 +80,7 @@ bool TEARDROP::CurvedSegments(TRACK &aTrack, const VIA &aVia, std::vector<VECTOR


    // Check that the track is not too short
    // Check that the track is not too short
    double segOutsideVia = aTrack.GetLength() - (aVia.GetWidth() / 2);
    double segOutsideVia = aTrack.GetLength() - (aVia.GetWidth() / 2);
    double minLength = (90 * aVia.GetWidth() / 2) / 100;
    double minLength = (150 * aVia.GetWidth() / 2) / 100;
    if (segOutsideVia < minLength) {
    if (segOutsideVia < minLength) {
        return false;
        return false;
    }
    }
+1 −1
Original line number Original line Diff line number Diff line
@@ -88,7 +88,7 @@ DIALOG_TEARDROPS_BASE::DIALOG_TEARDROPS_BASE( wxWindow* parent, wxWindowID id, c
	m_scopeVias->SetValue(true); 
	m_scopeVias->SetValue(true); 
	sbSizer16->Add( m_scopeVias, 0, 0, 5 );
	sbSizer16->Add( m_scopeVias, 0, 0, 5 );
	
	
	m_scopePads = new wxCheckBox( this, wxID_ANY, wxT("Pads"), wxDefaultPosition, wxDefaultSize, 0 );
	m_scopePads = new wxCheckBox( this, wxID_ANY, wxT("Circular pads"), wxDefaultPosition, wxDefaultSize, 0 );
	m_scopePads->SetValue(true); 
	m_scopePads->SetValue(true); 
	sbSizer16->Add( m_scopePads, 0, 0, 5 );
	sbSizer16->Add( m_scopePads, 0, 0, 5 );
	
	
+1 −1
Original line number Original line Diff line number Diff line
@@ -689,7 +689,7 @@
                                                <property name="font"></property>
                                                <property name="font"></property>
                                                <property name="hidden">0</property>
                                                <property name="hidden">0</property>
                                                <property name="id">wxID_ANY</property>
                                                <property name="id">wxID_ANY</property>
                                                <property name="label">Pads</property>
                                                <property name="label">Circular pads</property>
                                                <property name="maximum_size"></property>
                                                <property name="maximum_size"></property>
                                                <property name="minimum_size"></property>
                                                <property name="minimum_size"></property>
                                                <property name="name">m_scopePads</property>
                                                <property name="name">m_scopePads</property>
Loading