KDevelop API Documentation

docindexdlg.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2001 by Bernd Gehrmann                                  *
00003  *   bernd@kdevelop.org                                                    *
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  ***************************************************************************/
00011 
00012 #ifndef _DOCINDEXDLG_H_
00013 #define _DOCINDEXDLG_H_
00014 
00015 #include <stdio.h>
00016 #include <qdialog.h>
00017 #include <qdom.h>
00018 #include <qptrlist.h>
00019 #include <qstringlist.h>
00020 
00021 class QCheckBox;
00022 class KComboBox;
00023 class DocTreeViewPart;
00024 
00025 
00026 class DocIndex
00027 {
00028 public:
00029     QString indexName;
00030     QString title;
00031     QString base;
00032     QStringList conceptNames;
00033     QStringList conceptUrls;
00034     QStringList identNames;
00035     QStringList identUrls;
00036     QStringList fileNames;
00037     QStringList fileUrls;
00038 };
00039 
00040 
00041 class DocIndexDialog : public QDialog
00042 {
00043     Q_OBJECT
00044     
00045 public:
00046     DocIndexDialog( DocTreeViewPart *part, QWidget *parent=0, const char *name=0 );
00047     ~DocIndexDialog();
00048 
00049     void lookup(const QString &str);
00050     void projectChanged();
00051     
00052 protected:
00053     virtual void accept();
00054 
00055 private slots:
00056     void choiceChanged();
00057     
00058 private:
00059     void readConfig();
00060     void storeConfig();
00061     void readKDocIndex();
00062     void readKDocEntryList(FILE *f, QStringList *nameList, QStringList *urlList);
00063     void readIndexFromFile(const QString &fileName);
00064     void readEntryList(const QDomElement &el, QStringList *nameList, QStringList *urlList);
00065 
00066     KComboBox *term_combo;
00067     QPtrList<QCheckBox> books_boxes;
00068     QCheckBox *concept_box;
00069     QCheckBox *ident_box;
00070     QCheckBox *file_box;
00071     QPtrList<DocIndex> indices;
00072     DocTreeViewPart *m_part;
00073 };
00074 
00075 #endif
00076 
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