A tab widget for displaying process output.
More...
#include <process_tab.h>
|
|
void | processStarted () |
| | Emitted when a process starts.
|
| void | processFinished (int exitCode, QProcess::ExitStatus status) |
| | Emitted when a process finishes.
|
|
| void | appendText (const QString &text) |
| | Appends text to the output.
|
| void | handleProcessData (const QByteArray &raw) |
| | Handles process data.
|
| void | applySgr (const QList< int > &codes) |
| | Applies SGR (Select Graphic Rendition) codes to the current format.
|
| void | deleteLastLine (QTextCursor &cursor) |
| | Deletes the last line from the text cursor.
|
|
|
QTextCharFormat | mCurrentFormat |
| | Pointer to the text browser for displaying output.
|
|
bool | mMergeLogs |
| | Current text format for output.
|
A tab widget for displaying process output.
◆ ProcessTab()
| ProcessTab::ProcessTab |
( |
QWidget * | parent = nullptr | ) |
|
Constructs a new ProcessTab with the given parent.
- Parameters
-
◆ addPipeline()
| void ProcessTab::addPipeline |
( |
Pipeline * | pipeline | ) |
|
Sets the pipeline for this tab.
- Parameters
-
| pipeline | The pipeline to set. |
◆ appendText()
| void ProcessTab::appendText |
( |
const QString & | text | ) |
|
|
private |
Appends text to the output.
- Parameters
-
◆ applySgr()
| void ProcessTab::applySgr |
( |
const QList< int > & | codes | ) |
|
|
private |
Applies SGR (Select Graphic Rendition) codes to the current format.
- Parameters
-
| codes | A list of SGR codes. |
◆ deleteLastLine()
| void ProcessTab::deleteLastLine |
( |
QTextCursor & | cursor | ) |
|
|
private |
Deletes the last line from the text cursor.
- Parameters
-
◆ handleProcessData()
| void ProcessTab::handleProcessData |
( |
const QByteArray & | raw | ) |
|
|
private |
Handles process data.
- Parameters
-
| raw | The raw data received from the process. |
◆ onErrorOccurred
| void ProcessTab::onErrorOccurred |
( |
const Pipeline::Info & | info, |
|
|
QProcess::ProcessError | error, |
|
|
const QString & | process ) |
|
privateslot |
Handles an error occurring during process execution.
- Parameters
-
| info | Information about the pipeline. |
| error | The type of error that occurred. |
| process | The name of the process. |
◆ onFinished
| void ProcessTab::onFinished |
( |
const Pipeline::Info & | info, |
|
|
int | exitCode, |
|
|
QProcess::ExitStatus | status ) |
|
privateslot |
Handles the completion of a process.
- Parameters
-
| info | Information about the pipeline. |
| exitCode | The exit code of the process. |
| status | The exit status of the process. |
◆ onFinishedLast
| void ProcessTab::onFinishedLast |
( |
const Pipeline::Info & | info, |
|
|
int | exitCode, |
|
|
const QString & | message ) |
|
privateslot |
Handles the completion of the last process.
- Parameters
-
| info | Information about the pipeline. |
| exitCode | The exit code of the process. |
| message | A message related to the process. |
◆ onReadyReadStandardError
| void ProcessTab::onReadyReadStandardError |
( |
const QByteArray & | message | ) |
|
|
privateslot |
Handles ready read standard error.
- Parameters
-
| message | The data read from standard error. |
◆ onReadyReadStandardOutput
| void ProcessTab::onReadyReadStandardOutput |
( |
const QByteArray & | message | ) |
|
|
privateslot |
Handles ready read standard output.
- Parameters
-
| message | The data read from standard output. |
◆ onStartingProcess
| void ProcessTab::onStartingProcess |
( |
const Pipeline::Info & | info, |
|
|
const QString & | process, |
|
|
const QStringList & | arguments ) |
|
privateslot |
Handles the start of a process.
- Parameters
-
| info | Information about the pipeline. |
| process | The name of the process. |
| arguments | The arguments for the process. |
◆ processFinished
| void ProcessTab::processFinished |
( |
int | exitCode, |
|
|
QProcess::ExitStatus | status ) |
|
signal |
Emitted when a process finishes.
- Parameters
-
| exitCode | The exit code of the process. |
| status | The exit status of the process. |
The documentation for this class was generated from the following files:
- /__w/maki/maki/app/system/process_tab.h
- /__w/maki/maki/app/system/process_tab.cpp