158 for (
int i = 0; i < 8; ++i) {
183 QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Fixed);
184 sizePolicy1.setHorizontalStretch(0);
185 sizePolicy1.setVerticalStretch(0);
232 for (
int i = 0; i < 3; ++i) {
267 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);
268 sizePolicy.setHorizontalStretch(0);
269 sizePolicy.setVerticalStretch(0);
295 ElementEditor->setWindowTitle(QCoreApplication::translate(
"ElementEditor",
"Element Editor"));
299 groupBoxIdentity->setTitle(QCoreApplication::translate(
"ElementEditor",
"Identity"));
300 groupBoxPorts->setTitle(QCoreApplication::translate(
"ElementEditor",
"Ports"));
301 groupBoxTiming->setTitle(QCoreApplication::translate(
"ElementEditor",
"Timing"));
302 groupBoxSound->setTitle(QCoreApplication::translate(
"ElementEditor",
"Sound"));
303 groupBoxInteraction->setTitle(QCoreApplication::translate(
"ElementEditor",
"Interaction"));
305 comboBoxAudio->setItemText(0, QCoreApplication::translate(
"ElementEditor",
"C6"));
306 comboBoxAudio->setItemText(1, QCoreApplication::translate(
"ElementEditor",
"D6"));
307 comboBoxAudio->setItemText(2, QCoreApplication::translate(
"ElementEditor",
"E6"));
308 comboBoxAudio->setItemText(3, QCoreApplication::translate(
"ElementEditor",
"F6"));
309 comboBoxAudio->setItemText(4, QCoreApplication::translate(
"ElementEditor",
"G6"));
310 comboBoxAudio->setItemText(5, QCoreApplication::translate(
"ElementEditor",
"A6"));
311 comboBoxAudio->setItemText(6, QCoreApplication::translate(
"ElementEditor",
"B6"));
312 comboBoxAudio->setItemText(7, QCoreApplication::translate(
"ElementEditor",
"C7"));
315 labelLabels->setText(QCoreApplication::translate(
"ElementEditor",
"Label:"));
316 labelTrigger->setText(QCoreApplication::translate(
"ElementEditor",
"Trigger:"));
317 pushButtonTruthTable->setText(QCoreApplication::translate(
"ElementEditor",
"Edit Truth Table"));
322 labelValue->setText(QCoreApplication::translate(
"ElementEditor",
"Value:"));
325 labelFrequency->setText(QCoreApplication::translate(
"ElementEditor",
"Frequency:"));
326 labelColor->setText(QCoreApplication::translate(
"ElementEditor",
"Color:"));
330 pushButtonAudioBox->setAccessibleName(QCoreApplication::translate(
"ElementEditor",
"Choose audio file"));
331 pushButtonAudioBox->setToolTip(QCoreApplication::translate(
"ElementEditor",
"Choose audio file"));
332 labelInputs->setText(QCoreApplication::translate(
"ElementEditor",
"Inputs:"));
334 labelAudioBox->setText(QCoreApplication::translate(
"ElementEditor",
"Sound file:"));
335 labelOutputs->setText(QCoreApplication::translate(
"ElementEditor",
"Outputs:"));
336 labelLocked->setText(QCoreApplication::translate(
"ElementEditor",
"Locked:"));
337 labelAudio->setText(QCoreApplication::translate(
"ElementEditor",
"Tone:"));
338 labelDelay->setText(QCoreApplication::translate(
"ElementEditor",
"Delay:"));
339 labelWirelessMode->setText(QCoreApplication::translate(
"ElementEditor",
"Wireless:"));
341 comboBoxWirelessMode->setItemText(1, QCoreApplication::translate(
"ElementEditor",
"Transmit (Tx)"));
342 comboBoxWirelessMode->setItemText(2, QCoreApplication::translate(
"ElementEditor",
"Receive (Rx)"));
343 labelBlobName->setText(QCoreApplication::translate(
"ElementEditor",
"IC Name:"));
344 labelVolume->setText(QCoreApplication::translate(
"ElementEditor",
"Volume:"));
347 const QString lockedTip = QCoreApplication::translate(
348 "ElementEditor",
"Prevent this element from being toggled by clicking it during simulation.");
352 const QString wirelessTip = QCoreApplication::translate(
353 "ElementEditor",
"Nodes with the same label connect wirelessly — Transmit sends its input, Receive outputs it.");
357 const QString valueTip = QCoreApplication::translate(
"ElementEditor",
"The value this input element outputs.");
361 const QString triggerTip = QCoreApplication::translate(
362 "ElementEditor",
"Keyboard key that toggles this element during simulation.");
366 const QString delayTip = QCoreApplication::translate(
367 "ElementEditor",
"Phase offset from the driving clock, as a fraction of its period.");