KDevelop API Documentation

parts/doctreeview/htdigindex.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * Copyright (C) 1999-2001 by Matthias Hoelzer-Kluepfel * 00003 * hoelzer@kde.org * 00004 * Copyright (C) 2001 by Bernd Gehrmann * 00005 * bernd@kdevelop.org * 00006 * * 00007 * This program is free software; you can redistribute it and/or modify * 00008 * it under the terms of the GNU General Public License as published by * 00009 * the Free Software Foundation; either version 2 of the License, or * 00010 * (at your option) any later version. * 00011 * * 00012 ***************************************************************************/ 00013 00014 #ifndef _HTDIGINDEX_H_ 00015 #define _HTDIGINDEX_H_ 00016 00017 #include <stdio.h> 00018 #include <qdom.h> 00019 #include <qlabel.h> 00020 #include <kdialogbase.h> 00021 #include <kprocess.h> 00022 #include <kprogress.h> 00023 00024 00025 class QTimer; 00026 00027 00028 class ProgressDialog : public KDialogBase 00029 { 00030 Q_OBJECT 00031 00032 public: 00033 ProgressDialog(QWidget *parent=0, const char *name=0); 00034 ~ProgressDialog(); 00035 00036 void addDir(const QString &dir); 00037 void addKdocDir(FILE *f); 00038 void addTocFile(QDomDocument &doc); 00039 void scanDirectories(); 00040 bool createConfig(); 00041 bool generateIndex(); 00042 00043 private slots: 00044 void htdigStdout(KProcess *proc, char *buffer, int buflen); 00045 void htdigExited(KProcess *proc); 00046 void htmergeExited(KProcess *proc); 00047 void cancelClicked(); 00048 void slotDelayedStart(); 00049 00050 private: 00051 void setFilesScanned(int s); 00052 void setFilesToDig(int d); 00053 void setFilesDigged(int d); 00054 void setState(int n); 00055 void done(int r); 00056 void startHtdigProcess(bool initial); 00057 void startHtmergeProcess(); 00058 00059 QLabel *filesLabel, *check1, *check2, *check3; 00060 KProgress *bar; 00061 00062 int count; 00063 bool procdone; 00064 QString indexdir; 00065 QString exe; 00066 QStringList files; 00067 KProcess *proc; 00068 volatile int filesToDig, filesDigged, filesScanned; 00069 bool htdigRunning, htmergeRunning; 00070 }; 00071 00072 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:11 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003