KDevelop API Documentation

MakeWidget Class Reference

#include <makewidget.h>

Inheritance diagram for MakeWidget:

QTextEdit List of all members.

Public Slots

void startNextJob ()
void killJob ()
void nextError ()
void prevError ()
void copy ()

Public Member Functions

 MakeWidget (MakeViewPart *part)
 ~MakeWidget ()
void queueJob (const QString &dir, const QString &command)
bool isRunning ()
void updateSettingsFromConfig ()
void processLine (const QString &line)

Protected Member Functions

virtual QPopupMenucreatePopupMenu (const QPoint &pos)
virtual void contentsMouseReleaseEvent (QMouseEvent *e)

Private Slots

void insertStdoutLine (const QString &line)
void insertStderrLine (const QString &line)
void slotProcessExited (KProcess *)
void verticScrollingOn ()
void verticScrollingOff ()
void horizScrollingOn ()
void horizScrollingOff ()
void toggleLineWrapping ()
void slotVeryShortCompilerOutput ()
void slotShortCompilerOutput ()
void slotFullCompilerOutput ()
void toggleShowDirNavigMessages ()
void slotEnteredDirectory (EnteringDirectoryItem *)
void slotExitedDirectory (ExitingDirectoryItem *)
void insertItem (MakeItem *)
void slotDocumentOpened (const QString &filename)
void slotDocumentClosed (QObject *doc)

Private Member Functions

virtual void keyPressEvent (QKeyEvent *e)
void searchItem (int parag)
QString guessFileName (const QString &fName, int parag) const
QString directory (int parag) const
bool brightBg ()
void refill ()
void createCursor (ErrorItem *e, KTextEditor::Document *doc)
bool scanErrorForward (int parag)
bool scanErrorBackward (int parag)
bool appendToLastLine (const QString &text)
void setCompilerOutputLevel (EOutputLevel level)

Private Attributes

DirectoryStatusMessageFilter m_directoryStatusFilter
CompileErrorFilter m_errorFilter
CommandContinuationFilter m_continuationFilter
MakeActionFilter m_actionFilter
OtherFilter m_otherFilter
QStringList commandList
QStringList dirList
QString currentCommand
KProcesschildproc
ProcessLineMakerprocLineMaker
QPtrStack< QStringdirstack
QValueVector< MakeItem * > m_items
QIntDict< MakeItemm_paragraphToItem
long m_paragraphs
int m_lastErrorSelected
MakeViewPartm_part
bool m_vertScrolling
bool m_horizScrolling
bool m_bCompiling
bool m_bLineWrapping
EOutputLevel m_compilerOutputLevel

Constructor & Destructor Documentation

MakeWidget::MakeWidget MakeViewPart part  ) 
 

Definition at line 149 of file makewidget.cpp.

References childproc, error_xpm, horizScrollingOff(), horizScrollingOn(), insertItem(), insertStderrLine(), insertStdoutLine(), m_actionFilter, m_bLineWrapping, m_directoryStatusFilter, m_errorFilter, m_otherFilter, m_part, MakeWidget(), message_xpm, KDevPlugin::partController(), procLineMaker, slotDocumentOpened(), slotEnteredDirectory(), slotExitedDirectory(), slotProcessExited(), updateSettingsFromConfig(), verticScrollingOff(), verticScrollingOn(), and warning_xpm.

Referenced by MakeWidget().

MakeWidget::~MakeWidget  ) 
 

Definition at line 208 of file makewidget.cpp.

References childproc, and procLineMaker.


Member Function Documentation

bool MakeWidget::appendToLastLine const QString text  )  [private]
 

Definition at line 561 of file makewidget.cpp.

References MakeItem::append(), appendToLastLine(), brightBg(), MakeItem::formattedText(), m_compilerOutputLevel, m_horizScrolling, m_items, m_vertScrolling, and text().

Referenced by appendToLastLine(), insertStderrLine(), and insertStdoutLine().

bool MakeWidget::brightBg  )  [private]
 

Definition at line 667 of file makewidget.cpp.

Referenced by appendToLastLine(), insertItem(), and refill().

void MakeWidget::contentsMouseReleaseEvent QMouseEvent e  )  [protected, virtual]
 

Definition at line 365 of file makewidget.cpp.

References contentsMouseReleaseEvent(), and searchItem().

Referenced by contentsMouseReleaseEvent().

void MakeWidget::copy  )  [slot]
 

Definition at line 294 of file makewidget.cpp.

References text().

void MakeWidget::createCursor ErrorItem e,
KTextEditor::Document doc
[private]
 

Definition at line 626 of file makewidget.cpp.

References KTextEditor::CursorInterface::createCursor(), createCursor(), ErrorItem::fileName, KDevPartController::findOpenDocument(), guessFileName(), ErrorItem::lineNum, ErrorItem::m_cursor, ErrorItem::m_doc, m_paragraphs, m_part, KDevPlugin::partController(), KTextEditor::Cursor::setPosition(), and KTextEditor::EditInterface::textLine().

Referenced by createCursor(), insertItem(), and slotDocumentOpened().

QPopupMenu * MakeWidget::createPopupMenu const QPoint pos  )  [protected, virtual]
 

Definition at line 674 of file makewidget.cpp.

References createPopupMenu(), eFull, eShort, eVeryShort, m_bLineWrapping, m_compilerOutputLevel, slotFullCompilerOutput(), slotShortCompilerOutput(), slotVeryShortCompilerOutput(), toggleLineWrapping(), and toggleShowDirNavigMessages().

Referenced by createPopupMenu().

QString MakeWidget::directory int  parag  )  const [private]
 

Definition at line 386 of file makewidget.cpp.

References DirectoryItem::directory, directory(), QValueVector< MakeItem * >::end(), m_items, and m_paragraphToItem.

Referenced by directory(), and guessFileName().

QString MakeWidget::guessFileName const QString fName,
int  parag
const [private]
 

Definition at line 412 of file makewidget.cpp.

References KDevProject::activeDirectory(), KDevProject::allFiles(), KDevProject::buildDirectory(), URLUtil::canonicalPath(), checkFileExists(), directory(), endl(), file, guessFileName(), kdDebug(), m_part, KDevPlugin::project(), and KDevProject::projectDirectory().

Referenced by createCursor(), guessFileName(), and searchItem().

void MakeWidget::horizScrollingOff  )  [inline, private, slot]
 

Definition at line 66 of file makewidget.h.

References m_horizScrolling.

Referenced by MakeWidget().

void MakeWidget::horizScrollingOn  )  [inline, private, slot]
 

Definition at line 65 of file makewidget.h.

References m_horizScrolling.

Referenced by MakeWidget().

void MakeWidget::insertItem MakeItem  )  [private, slot]
 

Definition at line 587 of file makewidget.cpp.

References brightBg(), createCursor(), MakeItem::formattedText(), insertItem(), m_bCompiling, m_compilerOutputLevel, m_horizScrolling, m_items, m_paragraphs, m_paragraphToItem, m_vertScrolling, and MakeItem::visible().

Referenced by insertItem(), MakeWidget(), slotEnteredDirectory(), slotExitedDirectory(), slotProcessExited(), and startNextJob().

void MakeWidget::insertStderrLine const QString line  )  [private, slot]
 

Definition at line 487 of file makewidget.cpp.

References appendToLastLine(), endl(), insertStderrLine(), kdDebug(), m_errorFilter, and CompileErrorFilter::processLine().

Referenced by insertStderrLine(), and MakeWidget().

void MakeWidget::insertStdoutLine const QString line  )  [private, slot]
 

Definition at line 481 of file makewidget.cpp.

References appendToLastLine(), insertStdoutLine(), m_directoryStatusFilter, and DirectoryStatusMessageFilter::processLine().

Referenced by insertStdoutLine(), and MakeWidget().

bool MakeWidget::isRunning  ) 
 

Definition at line 289 of file makewidget.cpp.

References childproc, and KProcess::isRunning().

Referenced by queueJob().

void MakeWidget::keyPressEvent QKeyEvent e  )  [private, virtual]
 

Definition at line 373 of file makewidget.cpp.

References keyPressEvent(), and searchItem().

Referenced by keyPressEvent().

void MakeWidget::killJob  )  [slot]
 

Definition at line 284 of file makewidget.cpp.

References childproc, and KProcess::kill().

void MakeWidget::nextError  )  [slot]
 

Definition at line 320 of file makewidget.cpp.

References KNotifyClient::beep(), m_lastErrorSelected, and scanErrorForward().

void MakeWidget::prevError  )  [slot]
 

Definition at line 340 of file makewidget.cpp.

References KNotifyClient::beep(), m_items, m_lastErrorSelected, and scanErrorBackward().

void MakeWidget::processLine const QString line  ) 
 

void MakeWidget::queueJob const QString dir,
const QString command
 

Definition at line 215 of file makewidget.cpp.

References commandList, dirList, isRunning(), m_part, KDevPlugin::mainWindow(), queueJob(), startNextJob(), and KDevMainWindow::storeOutputViewTab().

Referenced by queueJob().

void MakeWidget::refill  )  [private]
 

Definition at line 719 of file makewidget.cpp.

References brightBg(), m_bCompiling, m_compilerOutputLevel, m_items, m_paragraphs, and m_paragraphToItem.

Referenced by setCompilerOutputLevel(), and toggleShowDirNavigMessages().

bool MakeWidget::scanErrorBackward int  parag  )  [private]
 

Definition at line 792 of file makewidget.cpp.

References m_paragraphToItem, scanErrorBackward(), and searchItem().

Referenced by prevError(), and scanErrorBackward().

bool MakeWidget::scanErrorForward int  parag  )  [private]
 

Definition at line 768 of file makewidget.cpp.

References m_items, m_paragraphToItem, scanErrorForward(), and searchItem().

Referenced by nextError(), and scanErrorForward().

void MakeWidget::searchItem int  parag  )  [private]
 

Definition at line 460 of file makewidget.cpp.

References KDevPartController::editDocument(), endl(), ErrorItem::fileName, guessFileName(), kdDebug(), ErrorItem::lineNum, KDevMainWindow::lowerView(), ErrorItem::m_cursor, ErrorItem::m_error, m_lastErrorSelected, m_paragraphToItem, m_part, KDevPlugin::mainWindow(), KDevPlugin::partController(), KTextEditor::Cursor::position(), searchItem(), and KDevMainWindow::statusBar().

Referenced by contentsMouseReleaseEvent(), keyPressEvent(), scanErrorBackward(), scanErrorForward(), and searchItem().

void MakeWidget::setCompilerOutputLevel EOutputLevel  level  )  [private]
 

Definition at line 738 of file makewidget.cpp.

References m_compilerOutputLevel, refill(), setCompilerOutputLevel(), KConfigBase::setGroup(), KConfigBase::sync(), and KConfigBase::writeEntry().

Referenced by setCompilerOutputLevel(), slotFullCompilerOutput(), slotShortCompilerOutput(), and slotVeryShortCompilerOutput().

void MakeWidget::slotDocumentClosed QObject doc  )  [private, slot]
 

Definition at line 653 of file makewidget.cpp.

References QValueVector< MakeItem * >::end(), ErrorItem::m_cursor, ErrorItem::m_doc, m_items, and slotDocumentClosed().

Referenced by slotDocumentClosed(), and slotDocumentOpened().

void MakeWidget::slotDocumentOpened const QString filename  )  [private, slot]
 

Definition at line 604 of file makewidget.cpp.

References createCursor(), QValueVector< MakeItem * >::end(), endl(), ErrorItem::fileName, KDevPartController::findOpenDocument(), k_funcinfo, kdWarning(), ErrorItem::m_cursor, m_items, m_part, KDevPlugin::partController(), slotDocumentClosed(), and slotDocumentOpened().

Referenced by MakeWidget(), and slotDocumentOpened().

void MakeWidget::slotEnteredDirectory EnteringDirectoryItem  )  [private, slot]
 

Definition at line 536 of file makewidget.cpp.

References DirectoryItem::directory, dirstack, insertItem(), and slotEnteredDirectory().

Referenced by MakeWidget(), and slotEnteredDirectory().

void MakeWidget::slotExitedDirectory ExitingDirectoryItem  )  [private, slot]
 

Definition at line 544 of file makewidget.cpp.

References DirectoryItem::directory, dirstack, endl(), insertItem(), kdWarning(), and slotExitedDirectory().

Referenced by MakeWidget(), and slotExitedDirectory().

void MakeWidget::slotFullCompilerOutput  )  [private, slot]
 

Definition at line 736 of file makewidget.cpp.

References eFull, and setCompilerOutputLevel().

Referenced by createPopupMenu().

void MakeWidget::slotProcessExited KProcess  )  [private, slot]
 

Definition at line 496 of file makewidget.cpp.

References childproc, KDevMakeFrontend::commandFailed(), KDevMakeFrontend::commandFinished(), commandList, KDevPlugin::core(), currentCommand, dirList, KNotifyClient::event(), KProcess::exitStatus(), insertItem(), m_part, MakeItem::m_text, KDevPlugin::mainWindow(), KProcess::normalExit(), KDevMainWindow::restoreOutputViewTab(), KDevCore::running(), slotProcessExited(), startNextJob(), and KDevMainWindow::statusBar().

Referenced by MakeWidget(), and slotProcessExited().

void MakeWidget::slotShortCompilerOutput  )  [private, slot]
 

Definition at line 735 of file makewidget.cpp.

References eShort, and setCompilerOutputLevel().

Referenced by createPopupMenu().

void MakeWidget::slotVeryShortCompilerOutput  )  [private, slot]
 

Definition at line 734 of file makewidget.cpp.

References eVeryShort, and setCompilerOutputLevel().

Referenced by createPopupMenu().

void MakeWidget::startNextJob  )  [slot]
 

Definition at line 228 of file makewidget.cpp.

References childproc, KProcess::clearArguments(), commandList, KDevPlugin::core(), currentCommand, dirList, dirstack, QValueVector< MakeItem * >::end(), insertItem(), m_bCompiling, m_items, m_lastErrorSelected, m_paragraphs, m_paragraphToItem, m_part, KDevPlugin::mainWindow(), KDevMainWindow::raiseView(), KDevCore::running(), and KProcess::start().

Referenced by queueJob(), and slotProcessExited().

void MakeWidget::toggleLineWrapping  )  [private, slot]
 

Definition at line 703 of file makewidget.cpp.

References m_bLineWrapping, KConfigBase::setGroup(), KConfigBase::sync(), and KConfigBase::writeEntry().

Referenced by createPopupMenu().

void MakeWidget::toggleShowDirNavigMessages  )  [private, slot]
 

Definition at line 748 of file makewidget.cpp.

References refill(), KConfigBase::setGroup(), KConfigBase::sync(), and KConfigBase::writeEntry().

Referenced by createPopupMenu().

void MakeWidget::updateSettingsFromConfig  ) 
 

Definition at line 758 of file makewidget.cpp.

References EOutputLevel, eVeryShort, m_bLineWrapping, m_compilerOutputLevel, KConfigBase::readBoolEntry(), KConfigBase::readFontEntry(), KConfigBase::readNumEntry(), and KConfigBase::setGroup().

Referenced by MakeWidget().

void MakeWidget::verticScrollingOff  )  [inline, private, slot]
 

Definition at line 64 of file makewidget.h.

References m_vertScrolling.

Referenced by MakeWidget().

void MakeWidget::verticScrollingOn  )  [inline, private, slot]
 

Definition at line 63 of file makewidget.h.

References m_vertScrolling.

Referenced by MakeWidget().


Member Data Documentation

KProcess* MakeWidget::childproc [private]
 

Definition at line 102 of file makewidget.h.

Referenced by isRunning(), killJob(), MakeWidget(), slotProcessExited(), startNextJob(), and ~MakeWidget().

QStringList MakeWidget::commandList [private]
 

Definition at line 99 of file makewidget.h.

Referenced by queueJob(), slotProcessExited(), and startNextJob().

QString MakeWidget::currentCommand [private]
 

Definition at line 101 of file makewidget.h.

Referenced by slotProcessExited(), and startNextJob().

QStringList MakeWidget::dirList [private]
 

Definition at line 100 of file makewidget.h.

Referenced by queueJob(), slotProcessExited(), and startNextJob().

QPtrStack<QString> MakeWidget::dirstack [private]
 

Definition at line 104 of file makewidget.h.

Referenced by slotEnteredDirectory(), slotExitedDirectory(), and startNextJob().

MakeActionFilter MakeWidget::m_actionFilter [private]
 

Definition at line 93 of file makewidget.h.

Referenced by MakeWidget().

bool MakeWidget::m_bCompiling [private]
 

Definition at line 113 of file makewidget.h.

Referenced by insertItem(), refill(), and startNextJob().

bool MakeWidget::m_bLineWrapping [private]
 

Definition at line 115 of file makewidget.h.

Referenced by createPopupMenu(), MakeWidget(), toggleLineWrapping(), and updateSettingsFromConfig().

EOutputLevel MakeWidget::m_compilerOutputLevel [private]
 

Definition at line 116 of file makewidget.h.

Referenced by appendToLastLine(), createPopupMenu(), insertItem(), refill(), setCompilerOutputLevel(), and updateSettingsFromConfig().

CommandContinuationFilter MakeWidget::m_continuationFilter [private]
 

Definition at line 92 of file makewidget.h.

DirectoryStatusMessageFilter MakeWidget::m_directoryStatusFilter [private]
 

Definition at line 90 of file makewidget.h.

Referenced by insertStdoutLine(), and MakeWidget().

CompileErrorFilter MakeWidget::m_errorFilter [private]
 

Definition at line 91 of file makewidget.h.

Referenced by insertStderrLine(), and MakeWidget().

bool MakeWidget::m_horizScrolling [private]
 

Definition at line 112 of file makewidget.h.

Referenced by appendToLastLine(), horizScrollingOff(), horizScrollingOn(), and insertItem().

QValueVector<MakeItem*> MakeWidget::m_items [private]
 

Definition at line 105 of file makewidget.h.

Referenced by appendToLastLine(), directory(), insertItem(), prevError(), refill(), scanErrorForward(), slotDocumentClosed(), slotDocumentOpened(), and startNextJob().

int MakeWidget::m_lastErrorSelected [private]
 

Definition at line 108 of file makewidget.h.

Referenced by nextError(), prevError(), searchItem(), and startNextJob().

OtherFilter MakeWidget::m_otherFilter [private]
 

Definition at line 94 of file makewidget.h.

Referenced by MakeWidget().

long MakeWidget::m_paragraphs [private]
 

Definition at line 107 of file makewidget.h.

Referenced by createCursor(), insertItem(), refill(), and startNextJob().

QIntDict<MakeItem> MakeWidget::m_paragraphToItem [private]
 

Definition at line 106 of file makewidget.h.

Referenced by directory(), insertItem(), refill(), scanErrorBackward(), scanErrorForward(), searchItem(), and startNextJob().

MakeViewPart* MakeWidget::m_part [private]
 

Definition at line 110 of file makewidget.h.

Referenced by createCursor(), guessFileName(), MakeWidget(), queueJob(), searchItem(), slotDocumentOpened(), slotProcessExited(), and startNextJob().

bool MakeWidget::m_vertScrolling [private]
 

Definition at line 112 of file makewidget.h.

Referenced by appendToLastLine(), insertItem(), verticScrollingOff(), and verticScrollingOn().

ProcessLineMaker* MakeWidget::procLineMaker [private]
 

Definition at line 103 of file makewidget.h.

Referenced by MakeWidget(), and ~MakeWidget().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:26 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003