| 287 | } |
| 288 | |
| 289 | void CtrlrPanel::savePanelVersioned() |
| 290 | { |
| 291 | File panelFile(getProperty (Ids::panelFilePath)); |
| 292 | |
| 293 | if (panelFile.existsAsFile() && panelFile.hasWriteAccess()) |
| 294 | { |
| 295 | setProperty (Ids::panelVersionMinor, (int)getProperty(Ids::panelVersionMinor)+1); |
| 296 | |
| 297 | if (panelFile != File()) |
| 298 | { |
| 299 | savePanelXml (File(panelFile.getParentDirectory().getChildFile(getProperty(Ids::name).toString() + owner.getProperty(Ids::ctrlrVersionSeparator).toString() + getVersionString()).withFileExtension((bool)owner.getProperty(Ids::ctrlrVersionCompressed) ? "panelz" : "panel")), this, owner.getProperty(Ids::ctrlrVersionCompressed)); |
| 300 | } |
| 301 | } |
| 302 | else |
| 303 | { |
| 304 | savePanel(); |
| 305 | } |
| 306 | } |
| 307 | |
| 308 | const String CtrlrPanel::exportPanel(CtrlrPanel *panel, const File &lastBrowsedDir, const File &destinationFile, MemoryBlock *outputPanelData, MemoryBlock *outputResourcesData, const bool isRestricted) |
| 309 | { |
no test coverage detected