Skip to content

Commit

Permalink
RE 6901 MantidEV usability
Browse files Browse the repository at this point in the history
Added help menu item and linked it to initial, incomplete
help page for MantidEV.  The help page will be completed
before the release.

refs #6901
  • Loading branch information
DennisMikkelson committed Apr 25, 2013
1 parent 0649a3e commit d410c9c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ class MantidEV : public API::UserSubWindow

private slots:

/// Go to help page
void help_slot();

/// Slot for the select workspace tab's Apply button
void selectWorkspace_slot();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,15 @@
</property>
<addaction name="actionShow_UB"/>
</widget>
<widget class="QMenu" name="menuHelp">
<property name="title">
<string>Help</string>
</property>
<addaction name="actionOnline_Help_Page"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuView"/>
<addaction name="menuHelp"/>
</widget>
</item>
<item>
Expand Down Expand Up @@ -1688,6 +1695,11 @@
<string>Reset Default Settings</string>
</property>
</action>
<action name="actionOnline_Help_Page">
<property name="text">
<string>Online Help Page</string>
</property>
</action>
</widget>
<resources/>
<connections/>
Expand Down
14 changes: 14 additions & 0 deletions Code/Mantid/MantidQt/CustomInterfaces/src/MantidEV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <QMessageBox>
#include <QFileDialog>
#include <QSettings>
#include <QDesktopServices>

#include "MantidQtCustomInterfaces/MantidEV.h"
#include "MantidAPI/AlgorithmManager.h"
Expand Down Expand Up @@ -273,6 +274,10 @@ void MantidEV::initLayout()

QObject::connect( m_uiForm.actionShow_UB, SIGNAL(triggered()),
this, SLOT(showUB_slot()) );

QObject::connect( m_uiForm.actionOnline_Help_Page, SIGNAL(triggered()),
this, SLOT(help_slot()) );


// connect the slots for enabling and disabling
// various subsets of widgets
Expand Down Expand Up @@ -439,6 +444,15 @@ void MantidEV::setDefaultState_slot()
}


/**
* Go to MantidEV web page when help menu item is chosen
*/
void MantidEV::help_slot()
{
QDesktopServices::openUrl(QUrl("http://www.mantidproject.org/SCD_Event_Data_Reduction_Interface_(MantidEV)"));
}


/**
* Slot called when the Apply button is pressed on the Select Data tab.
*/
Expand Down

0 comments on commit d410c9c

Please sign in to comment.