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

Method showMenuForInstance

Gui/MultiInstancePanel.cpp:2424–2443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2422} // createCornerPinFromSelection
2423
2424void
2425
2426TrackerPanelV1::showMenuForInstance(Node* instance)
2427{
2428 if ( !getMainInstance()->isPointTrackerNode() ) {
2429 return;
2430 }
2431 Menu menu( getGui() );
2432
2433 //menu.setFont( QFont(appFont,appFontSize) );
2434 QAction* copyTrackAnimation = new QAction(tr("Copy track animation"), &menu);
2435 menu.addAction(copyTrackAnimation);
2436
2437 QAction* ret = menu.exec( QCursor::pos() );
2438 if (ret == copyTrackAnimation) {
2439 KnobDoublePtr centerKnob = getCenterKnobForTracker(instance);
2440 assert(centerKnob);
2441 centerKnob->copyAnimationToClipboard();
2442 }
2443}
2444
2445NATRON_NAMESPACE_EXIT
2446

Callers

nothing calls this directly

Calls 7

getMainInstanceFunction · 0.85
getGuiFunction · 0.85
getCenterKnobForTrackerFunction · 0.85
isPointTrackerNodeMethod · 0.80
addActionMethod · 0.80
execMethod · 0.45

Tested by

no test coverage detected