KDevelop API Documentation

searchview.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Alexander Dymo                                  *
00003  *   cloudtemple@mksat.net                                                 *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef SEARCHVIEW_H
00021 #define SEARCHVIEW_H
00022 
00023 #include <qwidget.h>
00024 
00025 class DocumentationPart;
00026 class KLineEdit;
00027 class KComboBox;
00028 class KListView;
00029 class KPushButton;
00030 class KProcess;
00031 class QListViewItem;
00032 
00033 class SearchView: public QWidget
00034 {
00035     Q_OBJECT
00036 public:
00037     SearchView(DocumentationPart *part, QWidget *parent = 0, const char *name = 0);
00038     ~SearchView();
00039     
00040 public slots:
00041     void search();
00042     void setSearchTerm(const QString &term);
00043     void askSearchTerm();
00044     
00045 protected slots:
00046     void updateConfig();
00047     void updateIndex();
00048 
00049     void htsearchStdout(KProcess *, char *buffer, int len);
00050     void htsearchExited(KProcess *);
00051     void executed(QListViewItem *item);
00052     
00053     void itemMouseButtonPressed(int button, QListViewItem *item, const QPoint &pos, int c);
00054 
00055 protected:
00056     virtual void focusInEvent(QFocusEvent *e);
00057     
00058     void runHtdig(const QString &arg);
00059     void analyseSearchResults();
00060 
00061 private:
00062     DocumentationPart *m_part;
00063     
00064     KLineEdit *m_edit;
00065     KComboBox *m_searchMethodBox;
00066     KComboBox *m_sortMethodBox;
00067     KListView *m_view;
00068     KPushButton *m_configButton;
00069     KPushButton *m_indexButton;
00070     KPushButton *m_goSearchButton;
00071     
00072     QString searchResult;
00073 };
00074 
00075 #endif
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:22:40 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003