MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / savePanelVersioned

Method savePanelVersioned

Source/Core/CtrlrPanel/CtrlrPanelFileOperations.cpp:289–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289void 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
308const String CtrlrPanel::exportPanel(CtrlrPanel *panel, const File &lastBrowsedDir, const File &destinationFile, MemoryBlock *outputPanelData, MemoryBlock *outputResourcesData, const bool isRestricted)
309{

Callers 1

performMethod · 0.80

Calls 10

setPropertyFunction · 0.85
FileClass · 0.85
getVersionStringFunction · 0.85
existsAsFileMethod · 0.45
hasWriteAccessMethod · 0.45
withFileExtensionMethod · 0.45
getChildFileMethod · 0.45
getParentDirectoryMethod · 0.45
toStringMethod · 0.45
getPropertyMethod · 0.45

Tested by

no test coverage detected