Skip to content

Commit

Permalink
imp padstack: remove MyCheckButton class
Browse files Browse the repository at this point in the history
does nothing
  • Loading branch information
carrotIndustries committed Sep 25, 2024
1 parent 68ed8a9 commit 4970401
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/imp/imp_padstack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ void ImpPadstack::canvas_update()
canvas->update(core_padstack.get_canvas_data());
}

class MyCheckButton : public Gtk::CheckButton, public Changeable {
public:
MyCheckButton(const std::string &s) : Gtk::CheckButton(s)
{
signal_toggled().connect([this] { s_signal_changed.emit(); });
}
};

void ImpPadstack::construct()
{
ImpLayer::construct_layer_box();
Expand Down Expand Up @@ -79,7 +71,7 @@ void ImpPadstack::construct()

auto editor = new ParameterSetEditor(&core_padstack.parameter_set, false); //, &core_padstack.parameters_required);
editor->signal_create_extra_widget().connect([this](ParameterID id) {
auto w = Gtk::manage(new MyCheckButton("Required"));
auto w = Gtk::manage(new Gtk::CheckButton("Required"));
w->set_tooltip_text("Parameter has to be set in pad");
w->set_active(core_padstack.parameters_required.count(id));
w->signal_toggled().connect([this, id, w] {
Expand Down

0 comments on commit 4970401

Please sign in to comment.