Skip to content

Commit

Permalink
Altered LoadAscii Cumstom dialog
Browse files Browse the repository at this point in the history
The LoadAscii Dialog now changes depending on the version being invoked.

Version 2 has the new comment indicator feild

Refs #7732
  • Loading branch information
keithnbrown committed Oct 18, 2013
1 parent a2f513d commit d6ef0ab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Expand Up @@ -70,6 +70,7 @@ protected slots:
/* GUI components */
QLineEdit *m_lineFilename;
QLineEdit *m_lineOutputWorkspace;
QLineEdit *m_lineCommentIndicator;
QComboBox *m_separatorBox;

};
Expand Down
14 changes: 12 additions & 2 deletions Code/Mantid/MantidQt/CustomDialogs/src/LoadAsciiDialog.cpp
Expand Up @@ -55,10 +55,20 @@ void LoadAsciiDialog::initLayout()
paramsLayout->addWidget(m_separatorBox,2,1);
tie(m_separatorBox,"Separator",paramsLayout);

if (getAlgorithm()->version() == 2)
{
label = new QLabel(tr("CommentIndicator"));
m_lineCommentIndicator = new QLineEdit;
label->setBuddy(m_lineCommentIndicator);
paramsLayout->addWidget(label,3,0);
paramsLayout->addWidget(m_lineCommentIndicator,3,1);
tie(m_lineCommentIndicator, "CommentIndicator", paramsLayout);
}

QComboBox *unitBox = new QComboBox;
fillAndSetComboBox("Unit",unitBox );
paramsLayout->addWidget(new QLabel("Unit"),3,0);
paramsLayout->addWidget(unitBox ,3,1);
paramsLayout->addWidget(new QLabel("Unit"),4,0);
paramsLayout->addWidget(unitBox ,4,1);
tie(unitBox ,"Unit",paramsLayout);

QVBoxLayout *mainLayout = new QVBoxLayout;
Expand Down

0 comments on commit d6ef0ab

Please sign in to comment.