Show warning icon and pin points for tab Labels.
--HG-- branch : feature
This commit is contained in:
parent
367c78936a
commit
08d712ffb6
|
@ -138,6 +138,7 @@ void DialogSeamAllowance::EnableApply(bool enable)
|
||||||
ui->tabSeamAllowance->setEnabled(applyAllowed);
|
ui->tabSeamAllowance->setEnabled(applyAllowed);
|
||||||
ui->tabInternalPaths->setEnabled(applyAllowed);
|
ui->tabInternalPaths->setEnabled(applyAllowed);
|
||||||
ui->tabPieceLabelData->setEnabled(applyAllowed);
|
ui->tabPieceLabelData->setEnabled(applyAllowed);
|
||||||
|
ui->tabLabels->setEnabled(applyAllowed);
|
||||||
ui->tabGrainline->setEnabled(applyAllowed);
|
ui->tabGrainline->setEnabled(applyAllowed);
|
||||||
ui->tabPins->setEnabled(applyAllowed);
|
ui->tabPins->setEnabled(applyAllowed);
|
||||||
}
|
}
|
||||||
|
@ -920,7 +921,7 @@ void DialogSeamAllowance::TabChanged(int index)
|
||||||
{
|
{
|
||||||
if (index == ui->tabWidget->indexOf(ui->tabPins)
|
if (index == ui->tabWidget->indexOf(ui->tabPins)
|
||||||
|| index == ui->tabWidget->indexOf(ui->tabGrainline)
|
|| index == ui->tabWidget->indexOf(ui->tabGrainline)
|
||||||
|| index == ui->tabWidget->indexOf(ui->tabPieceLabelData))
|
|| index == ui->tabWidget->indexOf(ui->tabLabels))
|
||||||
{
|
{
|
||||||
if (m_visPins.isNull())
|
if (m_visPins.isNull())
|
||||||
{
|
{
|
||||||
|
@ -1326,7 +1327,7 @@ void DialogSeamAllowance::DetailPinPointChanged()
|
||||||
|
|
||||||
if (flagPPin)
|
if (flagPPin)
|
||||||
{
|
{
|
||||||
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabPieceLabelData), QIcon());
|
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabLabels), QIcon());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1335,7 +1336,7 @@ void DialogSeamAllowance::DetailPinPointChanged()
|
||||||
color = errorColor;
|
color = errorColor;
|
||||||
|
|
||||||
QIcon icon(":/icons/win.icon.theme/16x16/status/dialog-warning.png");
|
QIcon icon(":/icons/win.icon.theme/16x16/status/dialog-warning.png");
|
||||||
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabPieceLabelData), icon);
|
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabLabels), icon);
|
||||||
}
|
}
|
||||||
ChangeColor(ui->labelDetailLabelTopLeftPin, color);
|
ChangeColor(ui->labelDetailLabelTopLeftPin, color);
|
||||||
ChangeColor(ui->labelDetailLabelBottomRightPin, color);
|
ChangeColor(ui->labelDetailLabelBottomRightPin, color);
|
||||||
|
@ -1356,7 +1357,7 @@ void DialogSeamAllowance::PatternPinPointChanged()
|
||||||
|
|
||||||
if (flagDPin)
|
if (flagDPin)
|
||||||
{
|
{
|
||||||
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabPieceLabelData), QIcon());
|
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabLabels), QIcon());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1365,7 +1366,7 @@ void DialogSeamAllowance::PatternPinPointChanged()
|
||||||
color = errorColor;
|
color = errorColor;
|
||||||
|
|
||||||
QIcon icon(":/icons/win.icon.theme/16x16/status/dialog-warning.png");
|
QIcon icon(":/icons/win.icon.theme/16x16/status/dialog-warning.png");
|
||||||
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabPieceLabelData), icon);
|
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabLabels), icon);
|
||||||
}
|
}
|
||||||
ChangeColor(ui->labelPatternLabelTopLeftPin, color);
|
ChangeColor(ui->labelPatternLabelTopLeftPin, color);
|
||||||
ChangeColor(ui->labelPatternLabelBottomRightPin, color);
|
ChangeColor(ui->labelPatternLabelBottomRightPin, color);
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>521</width>
|
<width>639</width>
|
||||||
<height>611</height>
|
<height>680</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
@ -20,9 +20,6 @@
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="tabWidget">
|
||||||
<property name="currentIndex">
|
|
||||||
<number>3</number>
|
|
||||||
</property>
|
|
||||||
<widget class="QWidget" name="tabMainPath">
|
<widget class="QWidget" name="tabMainPath">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Main path</string>
|
<string>Main path</string>
|
||||||
|
@ -1027,9 +1024,48 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_8">
|
<spacer name="verticalSpacer_3">
|
||||||
<item>
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QListWidget" name="listWidgetMCP">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>180</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="focusPolicy">
|
||||||
|
<enum>Qt::ClickFocus</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="tabLabels">
|
||||||
|
<attribute name="title">
|
||||||
|
<string>Labels</string>
|
||||||
|
</attribute>
|
||||||
<widget class="QGroupBox" name="groupBoxDetailLabel">
|
<widget class="QGroupBox" name="groupBoxDetailLabel">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>30</x>
|
||||||
|
<y>40</y>
|
||||||
|
<width>234</width>
|
||||||
|
<height>96</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Detail label visible</string>
|
<string>Detail label visible</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -1068,9 +1104,15 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QGroupBox" name="groupBoxPatternLabel">
|
<widget class="QGroupBox" name="groupBoxPatternLabel">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>30</x>
|
||||||
|
<y>240</y>
|
||||||
|
<width>234</width>
|
||||||
|
<height>198</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Pattern label visible</string>
|
<string>Pattern label visible</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -1106,25 +1148,6 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<widget class="QListWidget" name="listWidgetMCP">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="focusPolicy">
|
|
||||||
<enum>Qt::ClickFocus</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tabGrainline">
|
<widget class="QWidget" name="tabGrainline">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user