20#include <glibmm/i18n.h>
21#include <gtkmm/image.h>
22#include <gtkmm/notebook.h>
33 auto const box = Gtk::make_managed<Gtk::Box>(Gtk::Orientation::HORIZONTAL, 4);
34 auto const image = Gtk::make_managed<Gtk::Image>();
35 image->set_from_icon_name(icon_name);
36 auto const label = Gtk::make_managed<Gtk::Label>(label_text,
true);
43 :
DialogBase(
"/dialogs/gridtiler",
"AlignDistribute")
45 _align_tab = Gtk::make_managed<AlignAndDistribute>(
this);
46 _arrangeBox = Gtk::make_managed<Gtk::Box>(Gtk::Orientation::VERTICAL);
48 _notebook = Gtk::make_managed<Gtk::Notebook>();
52 set_valign(Gtk::Align::START);
61 _notebook->signal_switch_page().connect([
this](Widget*, guint
page){
67 _arrangeButton = Gtk::make_managed<Gtk::Button>(C_(
"Arrange dialog",
"_Arrange"));
74 auto const button_box = Gtk::make_managed<Gtk::Box>();
75 button_box->set_halign(Gtk::Align::CENTER);
76 button_box->set_spacing(6);
77 button_box->set_margin(4);
Align and Distribute widget.
void desktop_changed(SPDesktop *desktop)
void _apply()
Callback from Apply.
GridArrangeTab * _gridArrangeTab
void desktopReplaced() final
Called when the desktop has certainly changed.
Gtk::Button * _arrangeButton
void update_arrange_btn()
PolarArrangeTab * _polarArrangeTab
AlignAndDistribute * _align_tab
Gtk::Notebook * _notebook
DialogBase is the base class for the dialog system.
SPDesktop * getDesktop() const
void arrange() override
Do the actual work.
void setDesktop(SPDesktop *)
void arrange() override
Do the actual arrangement.
Macro for icon names used in Inkscape.
std::unique_ptr< Magick::Image > image
Gtk::Box & create_tab_label(const char *label_text, const char *icon_name)
void pack_end(Gtk::Box &box, Gtk::Widget &child, bool const expand, bool const fill, unsigned const padding)
Adds child to box, packed with reference to the end of box.
void pack_start(Gtk::Box &box, Gtk::Widget &child, bool const expand, bool const fill, unsigned const padding)
Adds child to box, packed with reference to the start of box.
Helpers for using Gtk::Boxes, encapsulating large changes between GTK3 & GTK4.