File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,12 +10,22 @@ import SVSCraft.UIComponents.impl
1010
1111import QActionKit
1212
13+ import DiffScope.DspxModel as DspxModel
14+
1315ActionCollection {
1416 id: d
1517
1618 required property QtObject addOn
1719 readonly property PianoRollPanelInterface pianoRollPanelInterface: addOn? .pianoRollPanelInterface ?? null
1820
21+ ActionItem {
22+ actionId: " org.diffscope.visualeditor.edit.editCurrentClipInPianoRoll"
23+ Action {
24+ enabled: d .addOn ? .windowHandle .projectDocumentContext .document .selectionModel .selectionType === DspxModel .SelectionModel .ST_Clip && d .addOn ? .windowHandle .projectDocumentContext .document .selectionModel .currentItem ? .type === DspxModel .Clip .Singing
25+ onTriggered: d .pianoRollPanelInterface .editingClip = d .addOn .windowHandle .projectDocumentContext .document .selectionModel .currentItem
26+ }
27+ }
28+
1929 ActionItem {
2030 actionId: " org.diffscope.visualeditor.pianoRollPanel.pointerTool"
2131 Action {
Original file line number Diff line number Diff line change 1515 </configuration >
1616
1717 <items >
18+ <action id =" org.diffscope.visualeditor.edit.editCurrentClipInPianoRoll" icon =" midi" shortcut =" Ctrl+P" />
19+
1820 <action id =" org.diffscope.visualeditor.arrangementPanel.pointerTool" icon =" cursor" />
1921 <action id =" org.diffscope.visualeditor.arrangementPanel.pencilTool" icon =" edit" />
2022 <action id =" org.diffscope.visualeditor.arrangementPanel.scissorTool" icon =" cut" />
5557 </items >
5658
5759 <layouts >
60+ <group id =" org.diffscope.visualeditor.edit.editCurrentClipInPianoRollActions" >
61+ <action id =" org.diffscope.visualeditor.edit.editCurrentClipInPianoRoll" />
62+ </group >
5863 <menu id =" org.diffscope.visualeditor.arrangementPanelToolBar" >
5964 <group id =" org.diffscope.visualeditor.arrangementPanelToolBar.toolActions" >
6065 <action id =" org.diffscope.visualeditor.arrangementPanel.pointerTool" />
106111 </layouts >
107112
108113 <insertions >
109-
114+ <insertion target =" org.diffscope.core.edit" anchor =" last" >
115+ <group id =" org.diffscope.visualeditor.edit.editCurrentClipInPianoRollActions" />
116+ </insertion >
117+ <insertion target =" org.diffscope.core.clipItemContextMenu" anchor =" before" relativeTo =" org.diffscope.core.genericItemContextMenuActions" >
118+ <group id =" org.diffscope.visualeditor.edit.editCurrentClipInPianoRollActions" />
119+ </insertion >
110120 </insertions >
111121
112122</actionExtension >
You can’t perform that action at this time.
0 commit comments