From 89704eba761a18502e23706c36051ef29ff89ee7 Mon Sep 17 00:00:00 2001 From: jsiegle <jsiegle@mit.edu> Date: Tue, 28 Jan 2014 18:24:17 -0500 Subject: [PATCH] Add link to wiki in help menu --- Source/UI/UIComponent.cpp | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/Source/UI/UIComponent.cpp b/Source/UI/UIComponent.cpp index 837bfc5f7..71289171a 100755 --- a/Source/UI/UIComponent.cpp +++ b/Source/UI/UIComponent.cpp @@ -71,13 +71,6 @@ UIComponent::UIComponent(MainWindow* mainWindow_, ProcessorGraph* pgraph, AudioC setBounds(0,0,500,400); - // std::cout << "Component width = " << getWidth() << std::endl; - // std::cout << "Component height = " << getHeight() << std::endl; - - // std::cout << "UI component data viewport: " << dataViewport << std::endl; - - // std::cout << "Finished UI stuff." << std::endl << std::endl << std::endl; - processorGraph->setUIComponent(this); processorList->setUIComponent(this); @@ -88,10 +81,6 @@ UIComponent::UIComponent(MainWindow* mainWindow_, ProcessorGraph* pgraph, AudioC processorGraph->updatePointers(); // needs to happen after processorGraph gets the right pointers - //processorGraph->sendActionMessage("Test."); - - //processorGraph->loadState(); - #if JUCE_MAC MenuBarModel::setMacMainMenu(this); mainWindow->setMenuBar(0); @@ -99,13 +88,6 @@ UIComponent::UIComponent(MainWindow* mainWindow_, ProcessorGraph* pgraph, AudioC mainWindow->setMenuBar(this); #endif - //getEditorViewport()->loadState(File("/home/jsiegle/Programming/GUI/Builds/Linux/build/test.xml")); - - //Check and see where file is being executed - //File executable = File::getSpecialLocation(File::currentExecutableFile); - //const String executableDirectory = executable.getParentDirectory().getFullPathName(); - //sendActionMessage(executableDirectory); - } UIComponent::~UIComponent() @@ -240,7 +222,7 @@ void UIComponent::resized() // messageCenter->setVisible(true); } - // for debugging qpurposes: + // for debugging purposes: if (false) { dataViewport->setVisible(false); @@ -279,11 +261,6 @@ void UIComponent::childComponentChanged() StringArray UIComponent::getMenuBarNames() { - // StringArray names; - // names.add("File"); - // names.add("Edit"); - // names.add("Help"); - const char* const names[] = { "File", "Edit", "View", "Help", 0 }; return StringArray(names); @@ -522,7 +499,8 @@ bool UIComponent::perform(const InvocationInfo& info) } case showHelp: - std::cout << "SHOW ME SOME HELP!" << std::endl; + URL url = URL("https://open-ephys.atlassian.net/wiki/display/OEW/Open+Ephys+GUI"); + url.launchInDefaultBrowser(); break; case toggleProcessorList: -- GitLab