Add the new element type : thumbnail

This type must be used for element who goal is to display a
thumbnail/front view of an element, notably used for cabinet contents
view and placement.
This commit is contained in:
joshua
2022-05-13 20:02:29 +02:00
parent 1f4dfdba3f
commit 021aea1d8b
5 changed files with 22 additions and 2 deletions

View File

@@ -122,6 +122,7 @@ void ElementPropertiesEditorWidget::setUpInterface()
ui->m_base_type_cb->addItem (tr("Renvoi de folio suivant"), ElementData::NextReport);
ui->m_base_type_cb->addItem (tr("Renvoi de folio précédent"), ElementData::PreviousReport);
ui->m_base_type_cb->addItem (tr("Bornier"), ElementData::Terminale);
ui->m_base_type_cb->addItem (tr("Vignette"), ElementData::Thumbnail);
// Slave option
ui->m_state_cb->addItem(tr("Normalement ouvert"), ElementData::NO);
@@ -179,6 +180,9 @@ void ElementPropertiesEditorWidget::updateTree()
case ElementData::Terminale:
ui->m_tree->setEnabled(true);
break;
default:
ui->m_tree->setDisabled(true);
break;
}
}