46#ifndef _PFITOUTPUTHANDLER_H_
47#define _PFITOUTPUTHANDLER_H_
53#include <QPlainTextEdit>
126 virtual void processDone(
int exitCode, QProcess::ExitStatus exitStatus);
virtual ~PFitOutputHandler()
Destructor - ensures the musrfit process is terminated.
qint64 fProcPID
Process ID of the running musrfit process.
virtual void processDone(int exitCode, QProcess::ExitStatus exitStatus)
Slot called when the musrfit process finishes.
PFitOutputHandler(QString workingDirectory, QVector< QString > &cmd)
Constructs the fit output handler dialog and starts the musrfit process.
virtual void readFromStdOut()
Slot to read and display standard output from musrfit.
std::unique_ptr< QPlainTextEdit > fOutput
Read-only text widget displaying musrfit output (max 1000 lines).
std::unique_ptr< QProcess > fProc
QProcess object managing the musrfit execution.
std::unique_ptr< QVBoxLayout > fVbox
Vertical layout manager for dialog widgets.
virtual void readFromStdErr()
Slot to read and display standard error from musrfit.
std::unique_ptr< QPushButton > fQuitButton
Button showing "Fitting..." during fit, "Done" after completion.
virtual void quitButtonPressed()
Slot called when the Quit/Done button is pressed.