KDevelop API Documentation

GrepViewWidget Class Reference

#include <grepviewwidget.h>

Inheritance diagram for GrepViewWidget:

Inheritance graph
[legend]
Collaboration diagram for GrepViewWidget:

Collaboration graph
[legend]
List of all members.

Public Slots

void showDialog ()
void showDialogWithPattern (QString pattern)

Public Member Functions

 GrepViewWidget (GrepViewPart *part)
 ~GrepViewWidget ()
void projectChanged (KDevProject *project)

Private Slots

void searchActivated ()
void slotExecuted (QListBoxItem *item)
void popupMenu (QListBoxItem *, const QPoint &p)

Private Member Functions

virtual void childFinished (bool normal, int status)
 This is called when the child process exits.
virtual void insertStdoutLine (const QString &line)
 Inserts one line from stdin into the listbox.

Private Attributes

GrepDialoggrepdlg
GrepViewPartm_part
int m_matchCount
QString _lastfilename

Constructor & Destructor Documentation

GrepViewWidget::GrepViewWidget GrepViewPart part  ) 
 

Definition at line 93 of file grepviewwidget.cpp.

References grepdlg, m_part, popupMenu(), searchActivated(), and slotExecuted().

GrepViewWidget::~GrepViewWidget  ) 
 

Definition at line 112 of file grepviewwidget.cpp.


Member Function Documentation

void GrepViewWidget::childFinished bool  normal,
int  status
[private, virtual]
 

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'.

Reimplemented from ProcessWidget.

Definition at line 233 of file grepviewwidget.cpp.

References ProcessWidget::childFinished(), KDevPlugin::core(), m_matchCount, m_part, ProcessWidget::maybeScrollToBottom(), and KDevCore::running().

void GrepViewWidget::insertStdoutLine const QString line  )  [private, virtual]
 

Inserts one line from stdin into the listbox.

This can be overridden by subclasses to implement syntax highlighting.

Reimplemented from ProcessWidget.

Definition at line 264 of file grepviewwidget.cpp.

References _lastfilename, m_matchCount, and ProcessWidget::maybeScrollToBottom().

void GrepViewWidget::popupMenu QListBoxItem ,
const QPoint p
[private, slot]
 

Definition at line 304 of file grepviewwidget.cpp.

References KActionCollection::action(), KXMLGUIClient::actionCollection(), KPopupMenu::insertTitle(), ProcessWidget::isRunning(), m_part, and KAction::plug().

Referenced by GrepViewWidget().

void GrepViewWidget::projectChanged KDevProject project  ) 
 

Definition at line 298 of file grepviewwidget.cpp.

References grepdlg, KDevProject::projectDirectory(), and GrepDialog::setDirectory().

void GrepViewWidget::searchActivated  )  [private, slot]
 

Definition at line 168 of file grepviewwidget.cpp.

References _lastfilename, GrepDialog::caseSensitiveFlag(), KDevPlugin::core(), GrepDialog::directoryString(), escape(), GrepDialog::filesString(), grepdlg, GrepDialog::ignoreSCMDirsFlag(), m_matchCount, m_part, KDevPlugin::mainWindow(), GrepDialog::patternString(), KShellProcess::quote(), KDevMainWindow::raiseView(), GrepDialog::recursiveFlag(), KDevCore::running(), ProcessWidget::startJob(), and GrepDialog::templateString().

Referenced by GrepViewWidget().

void GrepViewWidget::showDialog  )  [slot]
 

Definition at line 116 of file grepviewwidget.cpp.

References KParts::PartManager::activePart(), grepdlg, KTextEditor::SelectionInterface::hasSelection(), m_part, KDevPlugin::partController(), KTextEditor::SelectionInterface::selection(), GrepDialog::setPattern(), and GrepDialog::show().

void GrepViewWidget::showDialogWithPattern QString  pattern  )  [slot]
 

Definition at line 151 of file grepviewwidget.cpp.

References grepdlg, len, GrepDialog::setPattern(), and GrepDialog::show().

void GrepViewWidget::slotExecuted QListBoxItem item  )  [private, slot]
 

Definition at line 252 of file grepviewwidget.cpp.

References KDevPartController::editDocument(), GrepListBoxItem::filename(), ProcessListBoxItem::isCustomItem(), GrepListBoxItem::linenumber(), m_part, and KDevPlugin::partController().

Referenced by GrepViewWidget().


Member Data Documentation

QString GrepViewWidget::_lastfilename [private]
 

Definition at line 48 of file grepviewwidget.h.

Referenced by insertStdoutLine(), and searchActivated().

GrepDialog* GrepViewWidget::grepdlg [private]
 

Definition at line 45 of file grepviewwidget.h.

Referenced by GrepViewWidget(), projectChanged(), searchActivated(), showDialog(), and showDialogWithPattern().

int GrepViewWidget::m_matchCount [private]
 

Definition at line 47 of file grepviewwidget.h.

Referenced by childFinished(), insertStdoutLine(), and searchActivated().

GrepViewPart* GrepViewWidget::m_part [private]
 

Definition at line 46 of file grepviewwidget.h.

Referenced by childFinished(), GrepViewWidget(), popupMenu(), searchActivated(), showDialog(), and slotExecuted().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:25:47 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003