| 2422 | } // createCornerPinFromSelection |
| 2423 | |
| 2424 | void |
| 2425 | |
| 2426 | TrackerPanelV1::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 | |
| 2445 | NATRON_NAMESPACE_EXIT |
| 2446 |
nothing calls this directly
no test coverage detected