diff --git a/Source/Processors/Editors/RecordControlEditor.cpp b/Source/Processors/Editors/RecordControlEditor.cpp index 05941b249b7a3f18e354ee5f01f86cd8d0ec6785..45d053497b2fdee8497e4949a994f8f3c341c08e 100644 --- a/Source/Processors/Editors/RecordControlEditor.cpp +++ b/Source/Processors/Editors/RecordControlEditor.cpp @@ -120,10 +120,8 @@ void RecordControlEditor::loadEditorParameters(XmlElement* xml) if (xmlNode->hasTagName("PARAMETERS")) { - newFileToggleButton->setToggleState(xmlNode->getBoolAttribute("FileSaveOption"), true); availableChans->setSelectedId(xmlNode->getIntAttribute("Channel"), NotificationType::sendNotification); - } } diff --git a/Source/UI/UIComponent.cpp b/Source/UI/UIComponent.cpp index 7abdaf685442ae1e9a5e10f0c2229c8cff3fed94..60b253f605345638c3a38e27ea24d73eee07a07e 100755 --- a/Source/UI/UIComponent.cpp +++ b/Source/UI/UIComponent.cpp @@ -259,6 +259,8 @@ PopupMenu UIComponent::getMenuForIndex(int menuIndex, const String& menuName) menu.addCommandItem(commandManager, toggleProcessorList); menu.addCommandItem(commandManager, toggleSignalChain); menu.addCommandItem(commandManager, toggleFileInfo); + menu.addSeparator(); + menu.addCommandItem(commandManager, resizeWindow); } else if (menuIndex == 3) @@ -297,7 +299,8 @@ void UIComponent::getAllCommands(Array <CommandID>& commands) toggleProcessorList, toggleSignalChain, toggleFileInfo, - showHelp + showHelp, + resizeWindow }; commands.addArray(ids, numElementsInArray(ids)); @@ -375,6 +378,10 @@ void UIComponent::getCommandInfo(CommandID commandID, ApplicationCommandInfo& re result.setInfo("Show help...", "Show some freakin' help.", "General", 0); result.setActive(false); break; + + case resizeWindow: + result.setInfo("Reset window bounds", "Reset window bounds", "General", 0); + break; default: break; @@ -446,6 +453,10 @@ bool UIComponent::perform(const InvocationInfo& info) case toggleSignalChain: editorViewportButton->toggleState(); break; + + case resizeWindow: + mainWindow->centreWithSize(800, 600); + break; default: break; diff --git a/Source/UI/UIComponent.h b/Source/UI/UIComponent.h index 4e2dc1244e1156220522dd2322581ced01dda803..25661d106b474f8ac86cdc51a3f95f95e71b93a6 100755 --- a/Source/UI/UIComponent.h +++ b/Source/UI/UIComponent.h @@ -195,7 +195,8 @@ private: toggleProcessorList = 0x2008, toggleSignalChain = 0x2009, toggleFileInfo = 0x2010, - showHelp = 0x2011 + showHelp = 0x2011, + resizeWindow = 0x2012 }; JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(UIComponent);