Improve tooltipe of operation tools.
Should help to understand how to select multiple objects. --HG-- branch : release
This commit is contained in:
parent
2915402526
commit
14000924e2
|
@ -1071,8 +1071,10 @@ void MainWindow::ClosedDialogUnionDetails(int result)
|
||||||
void MainWindow::ToolGroup(bool checked)
|
void MainWindow::ToolGroup(bool checked)
|
||||||
{
|
{
|
||||||
ToolSelectGroupObjects();
|
ToolSelectGroupObjects();
|
||||||
SetToolButton<DialogGroup>(checked, Tool::Group, ":/cursor/group_plus_cursor.png",
|
const QString tooltip = tr("Select one or more objects, hold <b>%1</b> - for multiple selection, "
|
||||||
tr("Select one or more objects, <b>Enter</b> - finish creation"),
|
"<b>Enter</b> - finish creation")
|
||||||
|
.arg(QCoreApplication::translate("QShortcut", "Ctrl"));
|
||||||
|
SetToolButton<DialogGroup>(checked, Tool::Group, ":/cursor/group_plus_cursor.png", tooltip,
|
||||||
&MainWindow::ClosedDialogGroup);
|
&MainWindow::ClosedDialogGroup);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1080,9 +1082,10 @@ void MainWindow::ToolGroup(bool checked)
|
||||||
void MainWindow::ToolRotation(bool checked)
|
void MainWindow::ToolRotation(bool checked)
|
||||||
{
|
{
|
||||||
ToolSelectOperationObjects();
|
ToolSelectOperationObjects();
|
||||||
SetToolButtonWithApply<DialogRotation>(checked, Tool::Rotation,
|
const QString tooltip = tr("Select one or more objects, hold <b>%1</b> - for multiple selection, "
|
||||||
":/cursor/rotation_cursor.png",
|
"<b>Enter</b> - confirm selection")
|
||||||
tr("Select one or more objects, <b>Enter</b> - confirm selection"),
|
.arg(QCoreApplication::translate("QShortcut", "Ctrl"));
|
||||||
|
SetToolButtonWithApply<DialogRotation>(checked, Tool::Rotation, ":/cursor/rotation_cursor.png", tooltip,
|
||||||
&MainWindow::ClosedDrawDialogWithApply<VToolRotation>,
|
&MainWindow::ClosedDrawDialogWithApply<VToolRotation>,
|
||||||
&MainWindow::ApplyDrawDialog<VToolRotation>);
|
&MainWindow::ApplyDrawDialog<VToolRotation>);
|
||||||
}
|
}
|
||||||
|
@ -1091,21 +1094,23 @@ void MainWindow::ToolRotation(bool checked)
|
||||||
void MainWindow::ToolFlippingByLine(bool checked)
|
void MainWindow::ToolFlippingByLine(bool checked)
|
||||||
{
|
{
|
||||||
ToolSelectOperationObjects();
|
ToolSelectOperationObjects();
|
||||||
SetToolButtonWithApply<DialogFlippingByLine>(checked, Tool::FlippingByLine,
|
const QString tooltip = tr("Select one or more objects, hold <b>%1</b> - for multiple selection, "
|
||||||
":/cursor/flipping_line_cursor.png",
|
"<b>Enter</b> - confirm selection")
|
||||||
tr("Select one or more objects, <b>Enter</b> - confirm selection"),
|
.arg(QCoreApplication::translate("QShortcut", "Ctrl"));
|
||||||
&MainWindow::ClosedDrawDialogWithApply<VToolFlippingByLine>,
|
SetToolButtonWithApply<DialogFlippingByLine>(checked, Tool::FlippingByLine, ":/cursor/flipping_line_cursor.png",
|
||||||
&MainWindow::ApplyDrawDialog<VToolFlippingByLine>);
|
tooltip, &MainWindow::ClosedDrawDialogWithApply<VToolFlippingByLine>,
|
||||||
|
&MainWindow::ApplyDrawDialog<VToolFlippingByLine>);
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void MainWindow::ToolFlippingByAxis(bool checked)
|
void MainWindow::ToolFlippingByAxis(bool checked)
|
||||||
{
|
{
|
||||||
ToolSelectOperationObjects();
|
ToolSelectOperationObjects();
|
||||||
SetToolButtonWithApply<DialogFlippingByAxis>(checked, Tool::FlippingByAxis,
|
const QString tooltip = tr("Select one or more objects, hold <b>%1</b> - for multiple selection, "
|
||||||
":/cursor/flipping_axis_cursor.png",
|
"<b>Enter</b> - confirm selection")
|
||||||
tr("Select one or more objects, <b>Enter</b> - confirm selection"),
|
.arg(QCoreApplication::translate("QShortcut", "Ctrl"));
|
||||||
&MainWindow::ClosedDrawDialogWithApply<VToolFlippingByAxis>,
|
SetToolButtonWithApply<DialogFlippingByAxis>(checked, Tool::FlippingByAxis, ":/cursor/flipping_axis_cursor.png",
|
||||||
|
tooltip, &MainWindow::ClosedDrawDialogWithApply<VToolFlippingByAxis>,
|
||||||
&MainWindow::ApplyDrawDialog<VToolFlippingByAxis>);
|
&MainWindow::ApplyDrawDialog<VToolFlippingByAxis>);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1113,11 +1118,12 @@ void MainWindow::ToolFlippingByAxis(bool checked)
|
||||||
void MainWindow::ToolMove(bool checked)
|
void MainWindow::ToolMove(bool checked)
|
||||||
{
|
{
|
||||||
ToolSelectOperationObjects();
|
ToolSelectOperationObjects();
|
||||||
SetToolButtonWithApply<DialogMove>(checked, Tool::Move,
|
const QString tooltip = tr("Select one or more objects, hold <b>%1</b> - for multiple selection, "
|
||||||
":/cursor/move_cursor.png",
|
"<b>Enter</b> - confirm selection")
|
||||||
tr("Select one or more objects, <b>Enter</b> - confirm selection"),
|
.arg(QCoreApplication::translate("QShortcut", "Ctrl"));
|
||||||
&MainWindow::ClosedDrawDialogWithApply<VToolMove>,
|
SetToolButtonWithApply<DialogMove>(checked, Tool::Move, ":/cursor/move_cursor.png", tooltip,
|
||||||
&MainWindow::ApplyDrawDialog<VToolMove>);
|
&MainWindow::ClosedDrawDialogWithApply<VToolMove>,
|
||||||
|
&MainWindow::ApplyDrawDialog<VToolMove>);
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user