MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / appendExtraGui

Method appendExtraGui

Gui/MultiInstancePanel.cpp:1789–1868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1787}
1788
1789void
1790TrackerPanelV1::appendExtraGui(QVBoxLayout* layout)
1791{
1792 if ( !getMainInstance()->isPointTrackerNode() ) {
1793 return;
1794 }
1795
1796 _imp->exportLabel = new Label( tr("Export data"), layout->parentWidget() );
1797 layout->addWidget(_imp->exportLabel);
1798 layout->addSpacing(10);
1799 _imp->exportContainer = new QWidget( layout->parentWidget() );
1800 _imp->exportLayout = new QHBoxLayout(_imp->exportContainer);
1801 _imp->exportLayout->setContentsMargins(0, 0, 0, 0);
1802
1803 _imp->exportChoice = new ComboBox(_imp->exportContainer);
1804
1805 _imp->exportChoice->setToolTip(QString::fromUtf8("<p><b>") + tr("CornerPinOFX (Use current frame):") + QString::fromUtf8("</p></b>")
1806 + QString::fromUtf8("<p>") + tr("Warp the image according to the relative transform using the current frame as reference.") + QString::fromUtf8("</p>") +
1807 QString::fromUtf8("<p><b>") + tr("CornerPinOFX (Use transform ref frame):") + QString::fromUtf8("</p></b>") +
1808 QString::fromUtf8("<p>") + tr("Warp the image according to the relative transform using the "
1809 "reference frame specified in the transform tab.") + QString::fromUtf8("</p>") +
1810 QString::fromUtf8("<p><b>") + tr("CornerPinOFX (Stabilize):") + QString::fromUtf8("</p></b>") +
1811 QString::fromUtf8("<p>") + tr("Transform the image so that the tracked points do not move.") + QString::fromUtf8("</p>")
1812// "<p><b>" + tr("Transform (Stabilize):</p></b>"
1813// "<p>" + tr("Transform the image so that the tracked points do not move.") + "</p>"
1814// "<p><b>" + tr("Transform (Match-move):</p></b>"
1815// "<p>" + tr("Transform another image so that it moves to match the tracked points.") + "</p>"
1816// "<p>" + tr("The linked versions keep a link between the new node and the track, the others just copy"
1817// " the values.") + "</p>"
1818 );
1819 std::vector<std::string> choices;
1820 std::vector<std::string> helps;
1821
1822 choices.push_back( tr("CornerPin (Use current frame. Linked)").toStdString() );
1823 helps.push_back( tr("Warp the image according to the relative transform using the current frame as reference.").toStdString() );
1824 //
1825 // choices.push_back(tr("CornerPinOFX (Use transform ref frame. Linked)").toStdString());
1826 // helps.push_back(tr("Warp the image according to the relative transform using the "
1827 // "reference frame specified in the transform tab.").toStdString());
1828
1829 choices.push_back( tr("CornerPin (Stabilize. Linked)").toStdString() );
1830 helps.push_back( tr("Transform the image so that the tracked points do not move.").toStdString() );
1831
1832 choices.push_back( tr("CornerPin (Use current frame. Copy)").toStdString() );
1833 helps.push_back( tr("Same as the linked version except that it copies values instead of "
1834 "referencing them via a link to the track").toStdString() );
1835
1836 choices.push_back( tr("CornerPin (Stabilize. Copy)").toStdString() );
1837 helps.push_back( tr("Same as the linked version except that it copies values instead of "
1838 "referencing them via a link to the track").toStdString() );
1839
1840 choices.push_back( tr("CornerPin (Use transform ref frame. Copy)").toStdString() );
1841 helps.push_back( tr("Same as the linked version except that it copies values instead of "
1842 "referencing them via a link to the track").toStdString() );
1843
1844
1845 // choices.push_back(tr("Transform (Stabilize. Linked)").toStdString());
1846 // helps.push_back(tr("Transform the image so that the tracked points do not move.").toStdString());

Callers

nothing calls this directly

Calls 9

getMainInstanceFunction · 0.85
QIconClass · 0.85
isPointTrackerNodeMethod · 0.80
addWidgetMethod · 0.80
toStdStringMethod · 0.80
setToolTipMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45
addItemMethod · 0.45

Tested by

no test coverage detected