Added labels and icons to wide buttons, #3594
This commit is contained in:
@@ -71,8 +71,7 @@ Crop::Crop (): FoldableToolPanel(this, "crop", M("TP_CROP_LABEL"), false, true)
|
||||
|
||||
pack_start (*hb2, Gtk::PACK_SHRINK, 4);
|
||||
|
||||
selectCrop = Gtk::manage (new Gtk::Button ());
|
||||
selectCrop->set_tooltip_text(M("TP_CROP_SELECTCROP"));
|
||||
selectCrop = Gtk::manage (new Gtk::Button (M("TP_CROP_SELECTCROP")));
|
||||
selectCrop->set_image (*Gtk::manage (new RTImage ("crop.png")));
|
||||
|
||||
pack_start (*selectCrop, Gtk::PACK_SHRINK, 2);
|
||||
|
@@ -28,6 +28,7 @@ Distortion::Distortion (): FoldableToolPanel(this, "distortion", M("TP_DISTORTIO
|
||||
|
||||
rlistener = nullptr;
|
||||
autoDistor = Gtk::manage (new Gtk::Button (M("GENERAL_AUTO")));
|
||||
autoDistor->set_image (*Gtk::manage (new RTImage ("distortion-auto.png")));
|
||||
autoDistor->set_alignment(0.5f, 0.5f);
|
||||
autoDistor->set_tooltip_text (M("TP_DISTORTION_AUTO_TIP"));
|
||||
idConn = autoDistor->signal_pressed().connect( sigc::mem_fun(*this, &Distortion::idPressed) );
|
||||
|
@@ -146,6 +146,7 @@ ICMPanel::ICMPanel () : FoldableToolPanel(this, "icm", M("TP_ICM_LABEL")), iunch
|
||||
//iVBox->pack_start (*ckbBlendCMSMatrix, Gtk::PACK_SHRINK, 2);
|
||||
|
||||
saveRef = Gtk::manage (new Gtk::Button (M("TP_ICM_SAVEREFERENCE")));
|
||||
saveRef->set_image (*Gtk::manage (new RTImage ("gtk-save-large.png")));
|
||||
saveRef->set_alignment (0.5f, 0.5f);
|
||||
saveRef->set_tooltip_markup (M("TP_ICM_SAVEREFERENCE_TOOLTIP"));
|
||||
iVBox->pack_start (*saveRef, Gtk::PACK_SHRINK);
|
||||
|
@@ -29,8 +29,7 @@ LensGeometry::LensGeometry () : FoldableToolPanel(this, "lensgeom", M("TP_LENSGE
|
||||
fill = Gtk::manage (new Gtk::CheckButton (M("TP_LENSGEOM_FILL")));
|
||||
pack_start (*fill);
|
||||
|
||||
autoCrop = Gtk::manage (new Gtk::Button ());
|
||||
autoCrop->set_tooltip_text(M("TP_LENSGEOM_AUTOCROP"));
|
||||
autoCrop = Gtk::manage (new Gtk::Button (M("TP_LENSGEOM_AUTOCROP")));
|
||||
autoCrop->set_image (*Gtk::manage (new RTImage ("crop-auto.png")));
|
||||
pack_start (*autoCrop, Gtk::PACK_SHRINK, 2);
|
||||
|
||||
|
@@ -37,10 +37,8 @@ Rotate::Rotate () : FoldableToolPanel(this, "rotate", M("TP_ROTATE_LABEL"))
|
||||
degree->setAdjusterListener (this);
|
||||
pack_start (*degree);
|
||||
|
||||
selectStraight = Gtk::manage (new Gtk::Button ());
|
||||
selectStraight->set_tooltip_text(M("TP_ROTATE_SELECTLINE"));
|
||||
Gtk::Image* selimg = Gtk::manage (new RTImage ("straighten-small.png"));
|
||||
selectStraight->set_image (*selimg);
|
||||
selectStraight = Gtk::manage (new Gtk::Button (M("TP_ROTATE_SELECTLINE")));
|
||||
selectStraight->set_image (*Gtk::manage (new RTImage ("straighten-small.png")));
|
||||
pack_start (*selectStraight, Gtk::PACK_SHRINK, 2);
|
||||
|
||||
selectStraight->signal_pressed().connect( sigc::mem_fun(*this, &Rotate::selectStraightPressed) );
|
||||
|
Reference in New Issue
Block a user