Allow export of only the selected notes (#7991)
Users can now choose if they only want to export the selected notes when exporting a MIDI clip as an `xpt` or `xptz` file in the piano roll. The export file dialog now shows a checkbox with the label "Export only selected notes". ## Technical details Add the new public method `exportToXML` to `MidiClip`. Compared to `saveSettings` it has an additional parameter `onlySelectedNotes` which controls which notes are exported. The default is to export all notes. The method `saveSettings` now simply delegates to `exportToXML` using the default. `PianoRollWindow::exportMidiClip` now adds a check box to the export dialog which lets users select if they only want to export the selected notes or all notes. The default is to export all notes. The method now uses the new method `exportToXML` for the export and passes the state of the check box into the method.
This commit is contained in:
committed by
GitHub
parent
05a5264870
commit
5c7131aa45
@@ -99,6 +99,7 @@ public:
|
||||
MidiClip * nextMidiClip() const;
|
||||
|
||||
// settings-management
|
||||
void exportToXML(QDomDocument& doc, QDomElement& midiClipElement, bool onlySelectedNotes = false);
|
||||
void saveSettings( QDomDocument & _doc, QDomElement & _parent ) override;
|
||||
void loadSettings( const QDomElement & _this ) override;
|
||||
inline QString nodeName() const override
|
||||
|
||||
Reference in New Issue
Block a user