Skip to content

Commit

Permalink
remove broken tool name
Browse files Browse the repository at this point in the history
  • Loading branch information
carrotIndustries committed Jan 3, 2018
1 parent 2c33703 commit e3d3c6f
Show file tree
Hide file tree
Showing 51 changed files with 0 additions and 63 deletions.
10 changes: 0 additions & 10 deletions core/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,16 +323,6 @@ namespace horizon {
}
return ToolResponse();
}

const std::string Core::get_tool_name() {
if(tool) {
return tool->name;
}
return "None";
}




Junction *Core::insert_junction(const UUID &uu, bool work) {
auto map = get_junction_map(work);
Expand Down
2 changes: 0 additions & 2 deletions core/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ namespace horizon {
virtual bool is_specific() {return false;}

virtual ~ToolBase() {}
std::string name;

protected :
Cores core;
Expand Down Expand Up @@ -140,7 +139,6 @@ namespace horizon {
*/
class Core :public sigc::trackable {
public :
const std::string get_tool_name();
virtual bool has_object_type(ObjectType ty) {return false;}

virtual class Junction *insert_junction(const UUID &uu, bool work = true);
Expand Down
1 change: 0 additions & 1 deletion core/tool_add_part.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace horizon {

ToolAddPart::ToolAddPart(Core *c, ToolID tid): ToolBase(c, tid), ToolHelperMapSymbol(c, tid), ToolHelperMove(c, tid) {
name = "Add Part";
}

bool ToolAddPart::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_add_vertex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolAddVertex::ToolAddVertex(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Add vertex";
}

bool ToolAddVertex::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_assign_part.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace horizon {

ToolAssignPart::ToolAssignPart(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Assign part";
}

bool ToolAssignPart::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_bend_line_net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolBendLineNet::ToolBendLineNet(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Bend net line";
}

bool ToolBendLineNet::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_drag_keep_slope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace horizon {

ToolDragKeepSlope::ToolDragKeepSlope(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Drag keeping slope";
}

bool ToolDragKeepSlope::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_draw_arc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace horizon {

ToolDrawArc::ToolDrawArc(Core *c, ToolID tid):ToolBase(c, tid) {
name = "Draw Arc";
}

bool ToolDrawArc::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_draw_dimension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

namespace horizon {
ToolDrawDimension::ToolDrawDimension(Core *c, ToolID tid):ToolBase(c, tid) {
name = "Draw Dim";
}

bool ToolDrawDimension::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_draw_line.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolDrawLine::ToolDrawLine(Core *c, ToolID tid):ToolBase(c, tid) {
name = "Draw Line";
}

bool ToolDrawLine::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_draw_line_net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace horizon {

ToolDrawLineNet::ToolDrawLineNet(Core *c, ToolID tid):ToolBase(c, tid), ToolHelperMerge(c, tid) {
name = "Draw Net Line";
}

bool ToolDrawLineNet::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_draw_line_rectangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolDrawLineRectangle::ToolDrawLineRectangle(Core *c, ToolID tid):ToolBase(c, tid) {
name = "Draw Line rect";
}

bool ToolDrawLineRectangle::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_draw_polygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolDrawPolygon::ToolDrawPolygon(Core *c, ToolID tid):ToolBase(c, tid) {
name = "Draw Polygon";
}

bool ToolDrawPolygon::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_draw_polygon_rectangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolDrawPolygonRectangle::ToolDrawPolygonRectangle(Core *c, ToolID tid):ToolBase(c, tid) {
name = "Draw Polygon rect";
}

bool ToolDrawPolygonRectangle::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_draw_track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolDrawTrack::ToolDrawTrack(Core *c, ToolID tid):ToolBase(c, tid) {
name = "Draw Track";
}

bool ToolDrawTrack::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_edit_board_hole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolEditBoardHole::ToolEditBoardHole(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Edit pad brd hole";
}

bool ToolEditBoardHole::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_edit_line_rectangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolEditLineRectangle::ToolEditLineRectangle(Core *c, ToolID tid):ToolBase(c, tid) {
name = "Edit Line rect";
}

bool ToolEditLineRectangle::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_edit_pad_parameter_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolEditPadParameterSet::ToolEditPadParameterSet(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Edit pad parameter set";
}

bool ToolEditPadParameterSet::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_edit_parameter_program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace horizon {

ToolEditParameterProgram::ToolEditParameterProgram(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Edit param program";
}

bool ToolEditParameterProgram::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_edit_plane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
namespace horizon {

ToolEditPlane::ToolEditPlane(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Edit plane";
}

Polygon *ToolEditPlane::get_poly() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_edit_shape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolEditShape::ToolEditShape(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Edit shape";
}

bool ToolEditShape::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_edit_symbol_pin_names.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolEditSymbolPinNames::ToolEditSymbolPinNames(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Edit symbol pin names";
}

SchematicSymbol *ToolEditSymbolPinNames::get_symbol() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_edit_via.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolEditVia::ToolEditVia(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Edit via";
}

bool ToolEditVia::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_enter_datum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
namespace horizon {

ToolEnterDatum::ToolEnterDatum(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Enter Datum";
}


Expand Down
1 change: 0 additions & 1 deletion core/tool_lock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace horizon {

ToolLock::ToolLock(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Lock";
}

std::set<Via*> ToolLock::get_vias(bool locked) {
Expand Down
1 change: 0 additions & 1 deletion core/tool_manage_buses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolManageBuses::ToolManageBuses(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Bus Manager";
}

bool ToolManageBuses::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_map_package.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

namespace horizon {
ToolMapPackage::ToolMapPackage(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Map Pkg";
}

bool ToolMapPackage::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_map_pin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
namespace horizon {

ToolMapPin::ToolMapPin(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Map Pin";
}

bool ToolMapPin::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_map_symbol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace horizon {

ToolMapSymbol::ToolMapSymbol(Core *c, ToolID tid): ToolBase(c, tid), ToolHelperMapSymbol(c, tid), ToolHelperMove(c, tid) {
name = "Map Symbol";
}

bool ToolMapSymbol::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_move.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
namespace horizon {

ToolMove::ToolMove(Core *c, ToolID tid): ToolBase(c, tid), ToolHelperMove(c, tid), ToolHelperMerge(c, tid) {
name = "Move";
}

void ToolMove::expand_selection() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_move_net_segment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace horizon {

ToolMoveNetSegment::ToolMoveNetSegment(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Move net segment";
}

bool ToolMoveNetSegment::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_paste.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
namespace horizon {

ToolPaste::ToolPaste(Core *c, ToolID tid): ToolBase(c, tid), ToolHelperMove(c, tid), ToolHelperMerge(c, tid) {
name = "Paste";
}

class JunctionProvider: public ObjectProvider {
Expand Down
1 change: 0 additions & 1 deletion core/tool_place_board_hole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolPlaceBoardHole::ToolPlaceBoardHole(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Place board hole";
}

bool ToolPlaceBoardHole::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_place_bus_label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace horizon {

ToolPlaceBusLabel::ToolPlaceBusLabel(Core *c, ToolID tid):ToolPlaceJunction(c, tid) {
name = "Place bus label";
}

bool ToolPlaceBusLabel::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_place_bus_ripper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace horizon {

ToolPlaceBusRipper::ToolPlaceBusRipper(Core *c, ToolID tid): ToolPlaceJunction(c, tid) {
name = "Place Bus Ripper";
}

bool ToolPlaceBusRipper::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_place_hole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolPlaceHole::ToolPlaceHole(Core *c, ToolID tid):ToolBase(c, tid) {
name = "Place Hole";
}

bool ToolPlaceHole::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_place_junction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolPlaceJunction::ToolPlaceJunction(Core *c, ToolID tid):ToolBase(c, tid) {
name = "Place Junction";
}

bool ToolPlaceJunction::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_place_net_label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace horizon {

ToolPlaceNetLabel::ToolPlaceNetLabel(Core *c, ToolID tid):ToolPlaceJunction(c, tid) {
name = "Place Net label";
}

bool ToolPlaceNetLabel::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_place_pad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolPlacePad::ToolPlacePad(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Place pad";
}

bool ToolPlacePad::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_place_power_symbol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolPlacePowerSymbol::ToolPlacePowerSymbol(Core *c, ToolID tid): ToolPlaceJunction(c, tid) {
name = "Place Power Symbol";
}

bool ToolPlacePowerSymbol::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_place_shape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolPlaceShape::ToolPlaceShape(Core *c, ToolID tid):ToolBase(c, tid) {
name = "Place Shape";
}

bool ToolPlaceShape::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_place_text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace horizon {

ToolPlaceText::ToolPlaceText(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Place Text";
}

bool ToolPlaceText::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_place_via.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolPlaceVia::ToolPlaceVia(Core *c, ToolID tid): ToolPlaceJunction(c, tid) {
name = "Place Via";
}

bool ToolPlaceVia::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_rotate_arbitrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
namespace horizon {

ToolRotateArbitrary::ToolRotateArbitrary(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Move";
}

void ToolRotateArbitrary::expand_selection() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_route_track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
namespace horizon {

ToolRouteTrack::ToolRouteTrack(Core *c, ToolID tid):ToolBase(c, tid) {
name = "Route Track";
}

bool ToolRouteTrack::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_route_track_interactive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ namespace horizon {
};

ToolRouteTrackInteractive::ToolRouteTrackInteractive(Core *c, ToolID tid):ToolBase(c, tid) {
name = "Route Track interactive";
}

bool ToolRouteTrackInteractive::can_begin() {
Expand Down
1 change: 0 additions & 1 deletion core/tool_select_more.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
namespace horizon {

ToolSelectMore::ToolSelectMore(Core *c, ToolID tid): ToolBase(c, tid) {
name = "Select more";
}

bool ToolSelectMore::can_begin() {
Expand Down

0 comments on commit e3d3c6f

Please sign in to comment.