Skip to content

Commit ec82062

Browse files
committed
Version 1.23.2
Reversed the order of M291 jog buttons and babystep buttons so that negative values are on the left as in DWC and the Move popup
1 parent 369e369 commit ec82062

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/UserInterface.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@ AlertPopup::AlertPopup(const ColourScheme& colours)
190190
constexpr PixelNumber hOffset = popupSideMargin + (alertPopupWidth - 2 * popupSideMargin - totalUnits * unitWidth)/2;
191191

192192
DisplayField::SetDefaultColours(colours.buttonTextColour, colours.buttonTextBackColour);
193-
AddField(zUpCourseButton = new TextButton(popupTopMargin + 6 * rowTextHeight, hOffset, buttonWidth, MORE_ARROW "2.0", evMoveZ, "2.0"));
194-
AddField(zUpMedButton = new TextButton(popupTopMargin + 6 * rowTextHeight, hOffset + buttonStep, buttonWidth, MORE_ARROW "0.2", evMoveZ, "0.2"));
195-
AddField(zUpFineButton = new TextButton(popupTopMargin + 6 * rowTextHeight, hOffset + 2 * buttonStep, buttonWidth, MORE_ARROW "0.02", evMoveZ, "0.02"));
196-
AddField(zDownFineButton = new TextButton(popupTopMargin + 6 * rowTextHeight, hOffset + 3 * buttonStep, buttonWidth, LESS_ARROW "0.02", evMoveZ, "-0.02"));
197-
AddField(zDownMedButton = new TextButton(popupTopMargin + 6 * rowTextHeight, hOffset + 4 * buttonStep, buttonWidth, LESS_ARROW "0.2", evMoveZ, "-0.2"));
198-
AddField(zDownCourseButton = new TextButton(popupTopMargin + 6 * rowTextHeight, hOffset + 5 * buttonStep, buttonWidth, LESS_ARROW "2.0", evMoveZ, "-2.0"));
193+
AddField(zUpCourseButton = new TextButton(popupTopMargin + 6 * rowTextHeight, hOffset, buttonWidth, LESS_ARROW "2.0", evMoveZ, "-2.0"));
194+
AddField(zUpMedButton = new TextButton(popupTopMargin + 6 * rowTextHeight, hOffset + buttonStep, buttonWidth, LESS_ARROW "0.2", evMoveZ, "-0.2"));
195+
AddField(zUpFineButton = new TextButton(popupTopMargin + 6 * rowTextHeight, hOffset + 2 * buttonStep, buttonWidth, LESS_ARROW "0.02", evMoveZ, "-0.02"));
196+
AddField(zDownFineButton = new TextButton(popupTopMargin + 6 * rowTextHeight, hOffset + 3 * buttonStep, buttonWidth, MORE_ARROW "0.02", evMoveZ, "0.02"));
197+
AddField(zDownMedButton = new TextButton(popupTopMargin + 6 * rowTextHeight, hOffset + 4 * buttonStep, buttonWidth, MORE_ARROW "0.2", evMoveZ, "0.2"));
198+
AddField(zDownCourseButton = new TextButton(popupTopMargin + 6 * rowTextHeight, hOffset + 5 * buttonStep, buttonWidth, MORE_ARROW "2.0", evMoveZ, "2.0"));
199199

200200
AddField(okButton = new TextButton(popupTopMargin + 6 * rowTextHeight + buttonHeight + moveButtonRowSpacing, hOffset + buttonStep, buttonWidth + buttonStep, "OK", evCloseAlert, "M292 P0"));
201201
AddField(cancelButton = new TextButton(popupTopMargin + 6 * rowTextHeight + buttonHeight + moveButtonRowSpacing, hOffset + 3 * buttonStep, buttonWidth + buttonStep, "Cancel", evCloseAlert, "M292 P1"));
@@ -689,8 +689,8 @@ void CreateKeyboardPopup(uint32_t language, ColourScheme colours)
689689
// Create the babystep popup
690690
void CreateBabystepPopup(const ColourScheme& colours)
691691
{
692-
static const char * array const babystepStrings[2] = { MORE_ARROW " 0.02", LESS_ARROW " 0.02" };
693-
static const char * array const babystepAmounts[2] = { "+0.02", "-0.02" };
692+
static const char * array const babystepStrings[2] = { LESS_ARROW " 0.02", MORE_ARROW " 0.02" };
693+
static const char * array const babystepAmounts[2] = { "-0.02", "+0.02" };
694694
babystepPopup = new StandardPopupWindow(babystepPopupHeight, babystepPopupWidth, colours.popupBackColour, colours.popupBorderColour, colours.popupTextColour, colours.buttonImageBackColour,
695695
strings->babyStepping);
696696
PixelNumber ypos = popupTopMargin + babystepRowSpacing;

src/Version.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
#ifndef SRC_VERSION_HPP_
99
#define SRC_VERSION_HPP_
1010

11-
#define VERSION_TEXT "1.23.1"
11+
#define VERSION_TEXT "1.23.2"
1212

1313
#endif /* SRC_VERSION_HPP_ */

0 commit comments

Comments
 (0)