Skip to content

Commit

Permalink
Re #10705 Spelling errors (just to get started)
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Dec 11, 2014
1 parent 56b860a commit 8a60a8b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Expand Up @@ -16,7 +16,7 @@
#include <QDesktopServices>
#include <QUrl>

//Add this class to the list of specialised dialogs in this namespace
//Add this class to the list of specialized dialogs in this namespace
namespace MantidQt
{
namespace CustomInterfaces
Expand All @@ -36,7 +36,7 @@ using namespace MantidQt::CustomInterfaces;
//----------------------

/**
* Default constructor for class. Initialises interface pointers to NULL values.
* Default constructor for class. Initializes interface pointers to NULL values.
* @param parent :: This is a pointer to the "parent" object in Qt, most likely the main MantidPlot window.
*/
DirectConvertToEnergy::DirectConvertToEnergy(QWidget *parent) :
Expand Down Expand Up @@ -69,7 +69,7 @@ void DirectConvertToEnergy::helpClicked()
}

/**
* This is the function called when the "Run" button is clicked. It will call the relevent function
* This is the function called when the "Run" button is clicked. It will call the relevant function
* in the subclass.
*/
void DirectConvertToEnergy::runClicked()
Expand Down Expand Up @@ -179,7 +179,7 @@ void DirectConvertToEnergy::instrumentSelectChanged(const QString& name)
QString defFile = (Mantid::API::ExperimentInfo::getInstrumentFilename(name.toStdString())).c_str();
if((defFile == "") || !m_uiForm.cbInst->isVisible())
{
g_log.error("Instument loading failed!");
g_log.error("Instrument loading failed!");
m_uiForm.cbInst->setEnabled(true);
m_uiForm.pbRun->setEnabled(true);
return;
Expand All @@ -200,14 +200,14 @@ void DirectConvertToEnergy::instrumentSelectChanged(const QString& name)
}

/**
* Tasks to be carried out after an empty instument has finished loading
* Tasks to be carried out after an empty instrument has finished loading
*/
void DirectConvertToEnergy::instrumentLoadingDone(bool error)
{
QString curInstPrefix = m_uiForm.cbInst->itemData(m_uiForm.cbInst->currentIndex()).toString();
if((curInstPrefix == "") || error)
{
g_log.error("Instument loading failed! (this can be caused by having both direct and indirect interfaces open)");
g_log.error("Instrument loading failed! (this can be caused by having both direct and indirect interfaces open)");
m_uiForm.cbInst->setEnabled(true);
m_uiForm.pbRun->setEnabled(true);
return;
Expand Down
8 changes: 4 additions & 4 deletions Code/Mantid/MantidQt/CustomInterfaces/src/Homer.cpp
Expand Up @@ -167,7 +167,7 @@ void Homer::page1Validators()
/// Adds the diag custom widgets and a check box to allow users to enable or disable the widget
void Homer::setUpPage2()
{
/* The diag -detector diagnositics part of the form is a separate widget, all the work is
/* The diag -detector diagnostics part of the form is a separate widget, all the work is
coded in over there
this second page is largely filled with the diag widget, previous settings,
second argument, depends on the instrument and the detector diagnostic settings are
Expand Down Expand Up @@ -583,7 +583,7 @@ bool Homer::runScripts()
m_backgroundDialog->getRange().first, m_backgroundDialog->getRange().second);
connect(&unitsConv, SIGNAL(runAsPythonScript(const QString&, bool)), this, SIGNAL(runAsPythonScript(const QString&, bool)));

// The diag -detector diagnositics part of the form is a separate widget, all the work is coded in over there
// The diag -detector diagnostics part of the form is a separate widget, all the work is coded in over there
if (m_uiForm.ckRunDiag->isChecked())
{
// mostly important to stop the run button being clicked twice, prevents any change to the form until the run has completed
Expand Down Expand Up @@ -656,7 +656,7 @@ void Homer::helpClicked()
QDesktopServices::openUrl(QUrl("http://www.mantidproject.org/Homer"));
}

/** This slot updates the MWDiag and SPE filename suggestor with the
/** This slot updates the MWDiag and SPE filename suggester with the
* names of the files the user has just chosen
*/
void Homer::runFilesChanged()
Expand Down Expand Up @@ -714,7 +714,7 @@ void Homer::updateWBV()
QString Homer::defaultName()
{
try
{//this will trhow if there is an invalid filename
{//this will throw if there is an invalid filename
QStringList fileList = m_uiForm.runFiles->getFilenames();
if ( fileList.size() == 0 )
{
Expand Down

0 comments on commit 8a60a8b

Please sign in to comment.