| 594 | } |
| 595 | |
| 596 | void CtrlrPanel::writePanelXml(OutputStream &outputStream, CtrlrPanel *panel, const bool compressPanel) |
| 597 | { |
| 598 | if (panel == nullptr) |
| 599 | return; |
| 600 | |
| 601 | panel->sync(); |
| 602 | |
| 603 | ScopedPointer <XmlElement> panelXml (panel->getPanelTree().createXml().release()); |
| 604 | |
| 605 | if (compressPanel && panelXml) |
| 606 | { |
| 607 | String xml = panelXml->createDocument(""); |
| 608 | { |
| 609 | GZIPCompressorOutputStream gzipOutputStream(&outputStream, 9, false); |
| 610 | gzipOutputStream.writeString (xml); |
| 611 | } |
| 612 | } |
| 613 | if (!compressPanel && panelXml) |
| 614 | { |
| 615 | panelXml->writeToStream (outputStream,""); |
| 616 | } |
| 617 | } |
| 618 | |
| 619 | File CtrlrPanel::getLuaMethodSourceFile(const ValueTree *method) |
| 620 | { |
nothing calls this directly
no test coverage detected