KDevelop API Documentation

SearchView Class Reference

#include <searchview.h>

Inheritance diagram for SearchView:

Inheritance graph
[legend]
Collaboration diagram for SearchView:

Collaboration graph
[legend]
List of all members.

Public Slots

void search ()
void setSearchTerm (const QString &term)
void askSearchTerm ()

Public Member Functions

 SearchView (DocumentationPart *part, QWidget *parent=0, const char *name=0)
 ~SearchView ()

Protected Slots

void updateConfig ()
void updateIndex ()
void htsearchStdout (KProcess *, char *buffer, int len)
void htsearchExited (KProcess *)
void executed (QListViewItem *item)
void itemMouseButtonPressed (int button, QListViewItem *item, const QPoint &pos, int c)

Protected Member Functions

virtual void focusInEvent (QFocusEvent *e)
void runHtdig (const QString &arg)
void analyseSearchResults ()

Private Attributes

DocumentationPartm_part
KLineEditm_edit
KComboBoxm_searchMethodBox
KComboBoxm_sortMethodBox
KListViewm_view
KPushButtonm_configButton
KPushButtonm_indexButton
KPushButtonm_goSearchButton
QString searchResult

Constructor & Destructor Documentation

SearchView::SearchView DocumentationPart part,
QWidget parent = 0,
const char *  name = 0
 

Definition at line 52 of file searchview.cpp.

References KListView::addColumn(), executed(), itemMouseButtonPressed(), m_configButton, m_edit, m_goSearchButton, m_indexButton, m_searchMethodBox, m_sortMethodBox, m_view, search(), KListView::setSorting(), updateConfig(), and updateIndex().

SearchView::~SearchView  ) 
 

Definition at line 113 of file searchview.cpp.


Member Function Documentation

void SearchView::analyseSearchResults  )  [protected]
 

Definition at line 256 of file searchview.cpp.

References m_view, searchResult, and DocumentationItem::setURL().

Referenced by search().

void SearchView::askSearchTerm  )  [slot]
 

Definition at line 313 of file searchview.cpp.

References m_edit.

Referenced by DocumentationWidget::searchInDocumentation().

void SearchView::executed QListViewItem item  )  [protected, slot]
 

Definition at line 288 of file searchview.cpp.

References m_part, KDevPlugin::partController(), KDevPartController::showDocument(), and DocumentationItem::url().

Referenced by SearchView().

void SearchView::focusInEvent QFocusEvent e  )  [protected, virtual]
 

Definition at line 318 of file searchview.cpp.

References m_edit.

void SearchView::htsearchExited KProcess  )  [protected, slot]
 

Definition at line 251 of file searchview.cpp.

Referenced by search().

void SearchView::htsearchStdout KProcess ,
char *  buffer,
int  len
[protected, slot]
 

Definition at line 246 of file searchview.cpp.

References len, and searchResult.

Referenced by search().

void SearchView::itemMouseButtonPressed int  button,
QListViewItem item,
const QPoint pos,
int  c
[protected, slot]
 

Definition at line 297 of file searchview.cpp.

References DocUtils::docItemPopup(), and m_part.

Referenced by SearchView().

void SearchView::runHtdig const QString arg  )  [protected]
 

Definition at line 127 of file searchview.cpp.

References KProcess::start().

Referenced by updateConfig(), and updateIndex().

void SearchView::search  )  [slot]
 

Definition at line 137 of file searchview.cpp.

References analyseSearchResults(), DocumentationPart::config(), DocumentationPart::configure(), KMessageBox::error(), KProcess::exitStatus(), htsearchExited(), htsearchStdout(), KMessageBox::information(), kdDebug(), m_edit, m_part, m_searchMethodBox, m_sortMethodBox, KProcess::normalExit(), qt_enter_modal(), qt_leave_modal(), KConfigBase::readBoolEntry(), KConfigBase::readPathEntry(), searchResult, KProcess::setEnvironment(), KConfigBase::setGroup(), KProcess::start(), updateIndex(), and KConfigBase::writeEntry().

Referenced by DocumentationWidget::searchInDocumentation(), and SearchView().

void SearchView::setSearchTerm const QString term  )  [slot]
 

Definition at line 308 of file searchview.cpp.

References m_edit, and KLineEdit::setText().

Referenced by DocumentationWidget::searchInDocumentation().

void SearchView::updateConfig  )  [protected, slot]
 

Definition at line 117 of file searchview.cpp.

References runHtdig().

Referenced by SearchView().

void SearchView::updateIndex  )  [protected, slot]
 

Definition at line 122 of file searchview.cpp.

References runHtdig().

Referenced by search(), and SearchView().


Member Data Documentation

KPushButton* SearchView::m_configButton [private]
 

Definition at line 68 of file searchview.h.

Referenced by SearchView().

KLineEdit* SearchView::m_edit [private]
 

Definition at line 64 of file searchview.h.

Referenced by askSearchTerm(), focusInEvent(), search(), SearchView(), and setSearchTerm().

KPushButton* SearchView::m_goSearchButton [private]
 

Definition at line 70 of file searchview.h.

Referenced by SearchView().

KPushButton* SearchView::m_indexButton [private]
 

Definition at line 69 of file searchview.h.

Referenced by SearchView().

DocumentationPart* SearchView::m_part [private]
 

Definition at line 62 of file searchview.h.

Referenced by executed(), itemMouseButtonPressed(), and search().

KComboBox* SearchView::m_searchMethodBox [private]
 

Definition at line 65 of file searchview.h.

Referenced by search(), and SearchView().

KComboBox* SearchView::m_sortMethodBox [private]
 

Definition at line 66 of file searchview.h.

Referenced by search(), and SearchView().

KListView* SearchView::m_view [private]
 

Definition at line 67 of file searchview.h.

Referenced by analyseSearchResults(), and SearchView().

QString SearchView::searchResult [private]
 

Definition at line 72 of file searchview.h.

Referenced by analyseSearchResults(), htsearchStdout(), and search().


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 Tue Feb 22 09:47:31 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003