Skip to content

Commit

Permalink
SheetBox: add tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
carrotIndustries committed Dec 22, 2021
1 parent 954ec48 commit 08a866c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/widgets/sheet_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,26 +194,30 @@ SheetBox::SheetBox(CoreSchematic &c) : Gtk::Box(Gtk::Orientation::ORIENTATION_VE
tb->pack_start(*box, false, false, 0);
{
auto tbo = Gtk::manage(new Gtk::Button());
tbo->set_tooltip_text("Add sheet");
tbo->set_image_from_icon_name("list-add-symbolic");
tbo->signal_clicked().connect([this] { core.add_sheet(); });
box->pack_start(*tbo, false, false, 0);
}
{
auto tbo = Gtk::manage(new Gtk::Button());
tbo->set_tooltip_text("Remove current sheet");
tbo->set_image_from_icon_name("list-remove-symbolic");
tbo->signal_clicked().connect(sigc::mem_fun(*this, &SheetBox::remove_clicked));
box->pack_start(*tbo, false, false, 0);
remove_button = tbo;
}
{
auto tbo = Gtk::manage(new Gtk::Button());
tbo->set_tooltip_text("Move current sheet up");
tbo->set_image_from_icon_name("go-up-symbolic");
tbo->signal_clicked().connect([this] { sheet_move(-1); });
box->pack_start(*tbo, false, false, 0);
move_up_button = tbo;
}
{
auto tbo = Gtk::manage(new Gtk::Button());
tbo->set_tooltip_text("Move current sheet down");
tbo->set_image_from_icon_name("go-down-symbolic");
tbo->signal_clicked().connect([this] { sheet_move(1); });
box->pack_start(*tbo, false, false, 0);
Expand All @@ -224,6 +228,7 @@ SheetBox::SheetBox(CoreSchematic &c) : Gtk::Box(Gtk::Orientation::ORIENTATION_VE
auto box = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL, 0));
tb->pack_end(*box, false, false, 0);
auto tbo = Gtk::manage(new Gtk::Button());
tbo->set_tooltip_text("Schematic properties…");
tbo->set_image_from_icon_name("view-more-symbolic");
tbo->signal_clicked().connect([this] { s_signal_edit_more.emit(); });
box->pack_start(*tbo, false, false, 0);
Expand Down

0 comments on commit 08a866c

Please sign in to comment.