documentation_widget.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 __DOCUMENTATION_WIDGET_H__ 00021 #define __DOCUMENTATION_WIDGET_H__ 00022 00023 #include <qwidget.h> 00024 00025 class FindDocumentation; 00026 class KDevProject; 00027 class DocumentationPart; 00028 class ContentsView; 00029 class IndexView; 00030 class DocumentationCatalogItem; 00031 class QToolBox; 00032 class IndexBox; 00033 class SearchView; 00034 class BookmarkView; 00035 class KListView; 00036 00037 class DocumentationWidget : public QWidget 00038 { 00039 Q_OBJECT 00040 public: 00041 DocumentationWidget(DocumentationPart *part); 00042 ~DocumentationWidget(); 00043 00044 DocumentationPart *part() const { return m_part; } 00045 00046 KListView *contents() const; 00047 IndexBox *index() const; 00048 00049 public slots: 00050 void lookInDocumentationIndex(); 00051 void lookInDocumentationIndex(const QString &term); 00052 void searchInDocumentation(); 00053 void searchInDocumentation(const QString &term); 00054 void findInDocumentation(); 00055 void findInDocumentation(const QString &term); 00056 00057 protected: 00058 virtual void focusInEvent(QFocusEvent *e); 00059 00060 protected slots: 00061 void tabChanged(int t); 00062 00063 private: 00064 DocumentationPart *m_part; 00065 ContentsView *m_contents; 00066 IndexView *m_index; 00067 SearchView *m_search; 00068 BookmarkView *m_bookmarks; 00069 FindDocumentation *m_finder; 00070 QToolBox *m_tab; 00071 00072 friend class FindDocumentation; 00073 }; 00074 00075 #endif