• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Widgets Library
 

KDevelop Widgets Library

Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
ProcessWidget Class Reference

#include <processwidget.h>

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.

Constructor & Destructor Documentation

◆ ProcessWidget()

ProcessWidget::ProcessWidget ( TQWidget * parent,
const char * name = 0 )

Definition at line 105 of file processwidget.cpp.

◆ ~ProcessWidget()

ProcessWidget::~ProcessWidget ( )

Definition at line 133 of file processwidget.cpp.

Member Function Documentation

◆ addPartialStderrLine

void ProcessWidget::addPartialStderrLine ( const TQCString & linepart)
virtualslot

Definition at line 272 of file processwidget.cpp.

◆ addPartialStdoutLine

void ProcessWidget::addPartialStdoutLine ( const TQCString & linepart)
virtualslot

Definition at line 277 of file processwidget.cpp.

◆ childFinished()

void ProcessWidget::childFinished ( bool normal,
int status )
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 222 of file processwidget.cpp.

◆ insertStderrLine

void ProcessWidget::insertStderrLine ( const TQCString & line)
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 203 of file processwidget.cpp.

◆ insertStdoutLine

void ProcessWidget::insertStdoutLine ( const TQCString & line)
virtualslot

Inserts one line from stdin into the listbox.

This can be overridden by subclasses to implement syntax highlighting.

Definition at line 184 of file processwidget.cpp.

◆ isRunning()

bool ProcessWidget::isRunning ( )

Returns whether a process is running in this view.

Definition at line 165 of file processwidget.cpp.

◆ killJob

void ProcessWidget::killJob ( int signo = SIGTERM)
slot

Kills the child processss.

Definition at line 157 of file processwidget.cpp.

◆ maybeScrollToBottom()

void ProcessWidget::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 264 of file processwidget.cpp.

◆ minimumSizeHint()

TQSize ProcessWidget::minimumSizeHint ( ) const
protectedvirtual

Definition at line 251 of file processwidget.cpp.

◆ slotProcessExited

void ProcessWidget::slotProcessExited ( TDEProcess * )
protectedslot

Definition at line 171 of file processwidget.cpp.

◆ startJob

void ProcessWidget::startJob ( const TQString & dir,
const TQString & command )
slot

Starts the child process.

Definition at line 140 of file processwidget.cpp.


The documentation for this class was generated from the following files:
  • processwidget.h
  • processwidget.cpp

KDevelop Widgets Library

Skip menu "KDevelop Widgets Library"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

KDevelop Widgets Library

Skip menu "KDevelop Widgets Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Widgets Library by doxygen 1.15.0
This website is maintained by Timothy Pearson.