PartDesign: Fillet/chamger/draft/thickness: change the button strings to 'Preview' and 'Select'
This commit is contained in:
@@ -175,7 +175,7 @@ void TaskChamferParameters::onCheckBoxUseAllEdgesToggled(bool checked)
|
||||
void TaskChamferParameters::setButtons(const selectionModes mode)
|
||||
{
|
||||
ui->buttonRefSel->setChecked(mode == refSel);
|
||||
ui->buttonRefSel->setText(mode == refSel ? tr("End selection") : tr("Start selection"));
|
||||
ui->buttonRefSel->setText(mode == refSel ? btnPreviewStr : btnSelectStr);
|
||||
}
|
||||
|
||||
void TaskChamferParameters::onRefDeleted()
|
||||
|
||||
@@ -165,7 +165,7 @@ void TaskDraftParameters::onSelectionChanged(const Gui::SelectionChanges& msg)
|
||||
|
||||
void TaskDraftParameters::setButtons(const selectionModes mode)
|
||||
{
|
||||
ui->buttonRefSel->setText(mode == refSel ? tr("End selection") : tr("Start selection"));
|
||||
ui->buttonRefSel->setText(mode == refSel ? btnPreviewStr : btnSelectStr);
|
||||
ui->buttonRefSel->setChecked(mode == refSel);
|
||||
ui->buttonLine->setChecked(mode == line);
|
||||
ui->buttonPlane->setChecked(mode == plane);
|
||||
|
||||
@@ -51,6 +51,9 @@ FC_LOG_LEVEL_INIT("PartDesign",true,true)
|
||||
using namespace PartDesignGui;
|
||||
using namespace Gui;
|
||||
|
||||
const QString TaskDressUpParameters::btnPreviewStr = tr("Preview");
|
||||
const QString TaskDressUpParameters::btnSelectStr = tr("Select");
|
||||
|
||||
/* TRANSLATOR PartDesignGui::TaskDressUpParameters */
|
||||
|
||||
TaskDressUpParameters::TaskDressUpParameters(ViewProviderDressUp *DressUpView, bool selectEdges, bool selectFaces, QWidget *parent)
|
||||
|
||||
@@ -99,6 +99,9 @@ protected:
|
||||
bool allowFaces, allowEdges;
|
||||
selectionModes selectionMode;
|
||||
int transactionID;
|
||||
|
||||
static const QString btnPreviewStr;
|
||||
static const QString btnSelectStr;
|
||||
};
|
||||
|
||||
/// simulation dialog for the TaskView
|
||||
|
||||
@@ -128,7 +128,7 @@ void TaskFilletParameters::onCheckBoxUseAllEdgesToggled(bool checked)
|
||||
void TaskFilletParameters::setButtons(const selectionModes mode)
|
||||
{
|
||||
ui->buttonRefSel->setChecked(mode == refSel);
|
||||
ui->buttonRefSel->setText(mode == refSel ? tr("End selection") : tr("Start selection"));
|
||||
ui->buttonRefSel->setText(mode == refSel ? btnPreviewStr : btnSelectStr);
|
||||
}
|
||||
|
||||
void TaskFilletParameters::onRefDeleted()
|
||||
|
||||
@@ -131,7 +131,7 @@ void TaskThicknessParameters::onSelectionChanged(const Gui::SelectionChanges& ms
|
||||
void TaskThicknessParameters::setButtons(const selectionModes mode)
|
||||
{
|
||||
ui->buttonRefSel->setChecked(mode == refSel);
|
||||
ui->buttonRefSel->setText(mode == refSel ? tr("End selection") : tr("Start selection"));
|
||||
ui->buttonRefSel->setText(mode == refSel ? btnPreviewStr : btnSelectStr);
|
||||
}
|
||||
|
||||
void TaskThicknessParameters::onRefDeleted(void)
|
||||
|
||||
Reference in New Issue
Block a user