Improve dialog Piece path. Hide unused tabs depending on path type.
--HG-- branch : develop
This commit is contained in:
parent
551d11f298
commit
7b3ab26832
|
@ -95,6 +95,12 @@ void DialogPiecePath::EnbleShowMode(bool disable)
|
||||||
ValidObjects(PathIsValid());
|
ValidObjects(PathIsValid());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void DialogPiecePath::HideVisibilityTrigger()
|
||||||
|
{
|
||||||
|
ui->tabWidget->removeTab(ui->tabWidget->indexOf(ui->tabControl));
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void DialogPiecePath::ChosenObject(quint32 id, const SceneObject &type)
|
void DialogPiecePath::ChosenObject(quint32 id, const SceneObject &type)
|
||||||
{
|
{
|
||||||
|
|
|
@ -44,6 +44,7 @@ public:
|
||||||
virtual ~DialogPiecePath();
|
virtual ~DialogPiecePath();
|
||||||
|
|
||||||
void EnbleShowMode(bool disable);
|
void EnbleShowMode(bool disable);
|
||||||
|
void HideVisibilityTrigger();
|
||||||
|
|
||||||
VPiecePath GetPiecePath() const;
|
VPiecePath GetPiecePath() const;
|
||||||
void SetPiecePath(const VPiecePath &path);
|
void SetPiecePath(const VPiecePath &path);
|
||||||
|
|
|
@ -704,6 +704,7 @@ void DialogSeamAllowance::ShowCustomSAContextMenu(const QPoint &pos)
|
||||||
{
|
{
|
||||||
dialog->SetFormulaSAWidth(GetFormulaSAWidth());
|
dialog->SetFormulaSAWidth(GetFormulaSAWidth());
|
||||||
}
|
}
|
||||||
|
dialog->HideVisibilityTrigger();
|
||||||
dialog->EnbleShowMode(true);
|
dialog->EnbleShowMode(true);
|
||||||
m_dialog = dialog;
|
m_dialog = dialog;
|
||||||
m_dialog->setModal(true);
|
m_dialog->setModal(true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user