added musrStep dummy menu. First step towards a full integration of musrStep into musredit.
This commit is contained in:
@ -501,7 +501,7 @@ void PTextEdit::setupMusrActions()
|
||||
menu->addSeparator();
|
||||
tb->addSeparator();
|
||||
|
||||
a = new QAction( QIcon( QPixmap( ":/icons/musrchisq-plain.svg" ) ), tr( "Calculate Chisq" ), this );
|
||||
a = new QAction( QIcon( QPixmap( ":/icons/musrchisq-plain.svg" ) ), tr( "Calculate &Chisq" ), this );
|
||||
a->setShortcut( tr("Alt+C") );
|
||||
a->setStatusTip( tr("Calculate Chi Square (Log Max Likelihood)") );
|
||||
connect( a, SIGNAL( triggered() ), this, SLOT( musrCalcChisq() ) );
|
||||
@ -522,6 +522,13 @@ void PTextEdit::setupMusrActions()
|
||||
tb->addAction(a);
|
||||
menu->addAction(a);
|
||||
|
||||
a = new QAction( QIcon( QPixmap( ":/icons/musrStep-32x32.svg" ) ), tr( "Set Ste&ps" ), this );
|
||||
a->setShortcut( tr("Alt+P") );
|
||||
a->setStatusTip( tr("Set Steps") );
|
||||
connect( a, SIGNAL( triggered() ), this, SLOT( musrSetSteps() ) );
|
||||
tb->addAction(a);
|
||||
menu->addAction(a);
|
||||
|
||||
a = new QAction( QIcon( QPixmap( ":/icons/msr2data-plain.svg" ) ), tr( "&Msr2Data" ), this );
|
||||
a->setShortcut( tr("Alt+M") );
|
||||
a->setStatusTip( tr("Start msr2data interface") );
|
||||
@ -1594,6 +1601,9 @@ void PTextEdit::textSize( const QString &p )
|
||||
*/
|
||||
void PTextEdit::musrWiz()
|
||||
{
|
||||
if ( !currentEditor() )
|
||||
return;
|
||||
|
||||
QMessageBox::information(this, "**INFO**", "Will eventually call musrWiz");
|
||||
}
|
||||
|
||||
@ -2251,6 +2261,15 @@ void PTextEdit::musrPrefs()
|
||||
dlg = 0;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
void PTextEdit::musrSetSteps()
|
||||
{
|
||||
if ( !currentEditor() )
|
||||
return;
|
||||
|
||||
QMessageBox::information(this, "**INFO**", "Eventually this will allow to set the\nstep values of the current msr-file.");
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
* <p>Swaps the currently open msr-file with its mlog-file (if present) and updates musredit accordingly.
|
||||
|
Reference in New Issue
Block a user