KDevelop API Documentation

find_documentation.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Tobias Glaesser                                 *
00003  *   tobi.web@gmx.de                                                       *
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 
00021 #ifndef FINDDOCUMENTATION_H
00022 #define FINDDOCUMENTATION_H
00023 
00024 #include "find_documentationbase.h"
00025 
00026 class DocumentationWidget;
00027 class KListViewItem;
00028 class FindDocumentationOptions;
00029 class QProcess;
00030 
00031 class FindDocumentation : public FindDocumentationBase
00032 {
00033 Q_OBJECT
00034 public:
00035     FindDocumentation(DocumentationWidget* parent, const char* name = 0);
00036     ~FindDocumentation();
00037     /*$PUBLIC_FUNCTIONS$*/
00038 
00039 public slots:
00040     /*$PUBLIC_SLOTS$*/
00041     virtual void buttonPressedOnItem( int button, QListViewItem * item, const QPoint & pos, int c );
00042     virtual void clickOnItem( QListViewItem * item );
00043     virtual void procInfoReadFromStdout();
00044     virtual void procManReadFromStdout();
00045     virtual void searchInInfo();
00046     virtual void searchInMan();
00047     virtual void searchInGoogle();
00048     virtual void searchInContents();
00049     virtual void searchInIndex();
00050     virtual void startSearch();
00051     virtual void setSearchTerm( const QString & term );
00052     virtual void clickOptions();
00053 
00054 protected:
00055     /*$PROTECTED_FUNCTIONS$*/
00056     virtual void focusInEvent(QFocusEvent *e);
00057 
00058 protected slots:
00059   /*$PROTECTED_SLOTS$*/
00060 
00061 private:
00062     QProcess* proc_man;
00063     QProcess* proc_info;
00064     KListViewItem* man_item;
00065     KListViewItem* info_item;
00066     KListViewItem* index_item;
00067     KListViewItem* google_item;
00068     KListViewItem* contents_item;
00069     KListViewItem* last_item;
00070     DocumentationWidget* m_widget;
00071     FindDocumentationOptions* m_options;
00072     bool first_match_found;
00073     
00074 };
00075 
00076 #endif
00077 
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:03:55 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003