Rebased in new branch to cleanup commit history.
This commit is contained in:
Morgan Hardwood
2018-07-13 18:13:35 +02:00
parent 93d5b3692d
commit 522495f4eb
1457 changed files with 31416 additions and 421 deletions

View File

@@ -30,15 +30,15 @@ Rotate::Rotate () : FoldableToolPanel(this, "rotate", M("TP_ROTATE_LABEL"))
rlistener = nullptr;
//TODO the action of the rotation slider is counter-intuitive
Gtk::Image* irotateL = Gtk::manage (new RTImage ("rotate-right-2.png"));
Gtk::Image* irotateR = Gtk::manage (new RTImage ("rotate-left-2.png"));
Gtk::Image* irotateL = Gtk::manage (new RTImage ("rotate-right.png"));
Gtk::Image* irotateR = Gtk::manage (new RTImage ("rotate-left.png"));
degree = Gtk::manage (new Adjuster (M("TP_ROTATE_DEGREE"), -45, 45, 0.01, 0, irotateL, irotateR));
degree->setAdjusterListener (this);
pack_start (*degree);
selectStraight = Gtk::manage (new Gtk::Button (M("TP_ROTATE_SELECTLINE")));
selectStraight->set_image (*Gtk::manage (new RTImage ("straighten-small.png")));
selectStraight->set_image (*Gtk::manage (new RTImage ("rotate-straighten.png")));
pack_start (*selectStraight, Gtk::PACK_SHRINK, 2);
selectStraight->signal_pressed().connect( sigc::mem_fun(*this, &Rotate::selectStraightPressed) );