stub for musrWiz added.
This commit is contained in:
parent
fa67af63b7
commit
9d8c1c7606
@ -1600,10 +1600,26 @@ void PTextEdit::textSize( const QString &p )
|
|||||||
*/
|
*/
|
||||||
void PTextEdit::musrWiz()
|
void PTextEdit::musrWiz()
|
||||||
{
|
{
|
||||||
if ( !currentEditor() )
|
QString cmd = fAdmin->getExecPath() + "/musrWiz";
|
||||||
return;
|
QString workDir = "./"; // think about it!!
|
||||||
|
|
||||||
QMessageBox::information(this, "**INFO**", "Will eventually call musrWiz");
|
QProcess *proc = new QProcess(this);
|
||||||
|
|
||||||
|
// make sure that the system environment variables are properly set
|
||||||
|
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
|
||||||
|
env.insert("LD_LIBRARY_PATH", env.value("ROOTSYS") + "/lib:" + env.value("LD_LIBRARY_PATH"));
|
||||||
|
proc->setProcessEnvironment(env);
|
||||||
|
proc->setWorkingDirectory(workDir);
|
||||||
|
proc->start(cmd);
|
||||||
|
if (!proc->waitForStarted()) {
|
||||||
|
// error handling
|
||||||
|
QString msg(tr("Could not execute the output command: ")+cmd[0]);
|
||||||
|
QMessageBox::critical( 0,
|
||||||
|
tr("Fatal error"),
|
||||||
|
msg,
|
||||||
|
tr("Quit") );
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user