• 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>

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()

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 223 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 204 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 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

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

Kills the child processss.

Definition at line 158 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 265 of file processwidget.cpp.

◆ startJob

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

Starts the child process.

Definition at line 141 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.8.13
This website is maintained by Timothy Pearson.