#include <processwidget.h>
Inherits TDEListBox.
Public Slots | |
void | startJob (const TQString &dir, const TQString &command) |
void | killJob (int signo=SIGTERM) |
virtual void | insertStdoutLine (const TQCString &line) |
virtual void | insertStderrLine (const TQCString &line) |
virtual void | addPartialStdoutLine (const TQCString &) |
virtual void | addPartialStderrLine (const TQCString &) |
Signals | |
void | processExited (TDEProcess *) |
void | rowSelected (int row) |
Public Member Functions | |
ProcessWidget (TQWidget *parent, const char *name=0) | |
bool | isRunning () |
Protected Slots | |
void | slotProcessExited (TDEProcess *) |
Protected Member Functions | |
virtual void | childFinished (bool normal, int status) |
virtual TQSize | minimumSizeHint () const |
void | maybeScrollToBottom () |
Detailed Description
This class is designed to share code between the grep and application output widgets.
Definition at line 58 of file processwidget.h.
Member Function Documentation
◆ childFinished()
|
protectedvirtual |
This is called when the child process exits.
The flag 'normal' is true if the process exited normally (i.e. not by a signal or similar), otherwise the exit status can be taken from 'status'.
Definition at line 223 of file processwidget.cpp.
◆ insertStderrLine
|
virtualslot |
Inserts one line from stderr into the listbox.
This can be overridden by subclasses to implement syntax highlighting. By default, a ProcessListBoxItem is used.
Definition at line 204 of file processwidget.cpp.
◆ insertStdoutLine
|
virtualslot |
Inserts one line from stdin into the listbox.
This can be overridden by subclasses to implement syntax highlighting.
Definition at line 185 of file processwidget.cpp.
◆ isRunning()
bool ProcessWidget::isRunning | ( | ) |
Returns whether a process is running in this view.
Definition at line 166 of file processwidget.cpp.
◆ killJob
|
slot |
Kills the child processss.
Definition at line 158 of file processwidget.cpp.
◆ maybeScrollToBottom()
|
protected |
Should be called right after an insertItem(), will automatic scroll the listbox if it is already at the bottom to prevent automatic scrolling when the user has scrolled up.
Definition at line 265 of file processwidget.cpp.
◆ startJob
|
slot |
Starts the child process.
Definition at line 141 of file processwidget.cpp.
The documentation for this class was generated from the following files: