KDevelop API Documentation

ProgressDialog Class Reference

#include <htdigindex.h>

Inheritance diagram for ProgressDialog:

Inheritance graph
[legend]
Collaboration diagram for ProgressDialog:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ProgressDialog (bool index, QWidget *parent=0, const char *name=0)
 ~ProgressDialog ()
void addDir (const QString &dir)
void addKdocDir (FILE *f)
void addTocFile (QDomDocument &doc)
void scanDirectories ()
bool createConfig ()
bool generateIndex ()
 ProgressDialog (bool index, QWidget *parent=0, const char *name=0)
 ~ProgressDialog ()
void addDir (const QString &dir)
void scanDirectories ()
bool createConfig ()
bool generateIndex ()

Private Slots

void htdigStdout (KProcess *proc, char *buffer, int buflen)
void htdigExited (KProcess *proc)
void htmergeExited (KProcess *proc)
void cancelClicked ()
void okClicked ()
void slotDelayedStart ()
void htdigStdout (KProcess *proc, char *buffer, int buflen)
void htdigExited (KProcess *proc)
void htmergeExited (KProcess *proc)
void cancelClicked ()
void okClicked ()
void slotDelayedStart ()

Private Member Functions

void setFilesScanned (int s)
void setFilesToDig (int d)
void setFilesDigged (int d)
void setState (int n)
void done (int r)
void startHtdigProcess (bool initial)
void startHtmergeProcess ()
void setFilesScanned (int s)
void setFilesToDig (int d)
void setFilesDigged (int d)
void setState (int n)
void done (int r)
void startHtdigProcess (bool initial)
void startHtmergeProcess ()

Private Attributes

QLabelfilesLabel
QLabelcheck1
QLabelcheck2
QLabelcheck3
KProgressbar
int count
bool procdone
QString databaseDir
QString indexdir
QString exe
QStringList files
KProcessproc
volatile int filesToDig
volatile int filesDigged
volatile int filesScanned
bool htdigRunning
bool htmergeRunning
QLabelfilesLabel
KProgressbar
KProcessproc

Constructor & Destructor Documentation

ProgressDialog::ProgressDialog bool  index,
QWidget parent = 0,
const char *  name = 0
 

Definition at line 38 of file htdigindex.cpp.

References bar, cancelClicked(), check1, check2, check3, config, databaseDir, filesLabel, indexdir, okClicked(), KDialogBase::plainPage(), proc, KConfigBase::readPathEntry(), setFilesScanned(), KConfigBase::setGroup(), setState(), KDialogBase::showButtonOK(), slotDelayedStart(), and KDialog::spacingHint().

ProgressDialog::~ProgressDialog  ) 
 

Definition at line 93 of file htdigindex.cpp.

ProgressDialog::ProgressDialog bool  index,
QWidget parent = 0,
const char *  name = 0
 

ProgressDialog::~ProgressDialog  ) 
 


Member Function Documentation

void ProgressDialog::addDir const QString dir  ) 
 

void ProgressDialog::addDir const QString dir  ) 
 

Definition at line 150 of file htdigindex.cpp.

References files, filesScanned, kdDebug(), and setFilesScanned().

Referenced by addKdocDir(), and scanDirectories().

void ProgressDialog::addKdocDir FILE *  f  ) 
 

Definition at line 182 of file htdigindex.cpp.

References addDir().

Referenced by scanDirectories().

void ProgressDialog::addTocFile QDomDocument doc  ) 
 

Definition at line 198 of file htdigindex.cpp.

References files, filesScanned, kdDebug(), and setFilesScanned().

Referenced by scanDirectories().

void ProgressDialog::cancelClicked  )  [private, slot]
 

Reimplemented from KDialogBase.

void ProgressDialog::cancelClicked  )  [private, slot]
 

Reimplemented from KDialogBase.

Definition at line 578 of file htdigindex.cpp.

References done(), htdigRunning, htmergeRunning, KProcess::isRunning(), kdDebug(), KProcess::kill(), proc, and procdone.

Referenced by ProgressDialog().

bool ProgressDialog::createConfig  ) 
 

bool ProgressDialog::createConfig  ) 
 

Definition at line 366 of file htdigindex.cpp.

References databaseDir, indexdir, KLocale::language(), KGlobal::locale(), and locate().

Referenced by main(), and slotDelayedStart().

void ProgressDialog::done int  r  )  [private]
 

void ProgressDialog::done int  r  )  [private]
 

Definition at line 109 of file htdigindex.cpp.

References KDialogBase::showButtonCancel(), and KDialogBase::showButtonOK().

Referenced by cancelClicked(), generateIndex(), htdigExited(), htmergeExited(), slotDelayedStart(), and startHtdigProcess().

bool ProgressDialog::generateIndex  ) 
 

bool ProgressDialog::generateIndex  ) 
 

Definition at line 455 of file htdigindex.cpp.

References config, count, done(), exe, files, filesDigged, filesToDig, procdone, KConfigBase::readPathEntry(), setFilesToDig(), KConfigBase::setGroup(), setState(), and startHtdigProcess().

Referenced by slotDelayedStart().

void ProgressDialog::htdigExited KProcess proc  )  [private, slot]
 

void ProgressDialog::htdigExited KProcess proc  )  [private, slot]
 

Definition at line 498 of file htdigindex.cpp.

References config, done(), exe, KProcess::exitStatus(), filesDigged, filesToDig, htdigRunning, kdDebug(), KProcess::normalExit(), KConfigBase::readPathEntry(), setFilesDigged(), KConfigBase::setGroup(), setState(), KMessageBox::sorry(), startHtdigProcess(), and startHtmergeProcess().

Referenced by startHtdigProcess().

void ProgressDialog::htdigStdout KProcess proc,
char *  buffer,
int  buflen
[private, slot]
 

void ProgressDialog::htdigStdout KProcess proc,
char *  buffer,
int  buflen
[private, slot]
 

Definition at line 480 of file htdigindex.cpp.

References filesDigged, len, and setFilesDigged().

void ProgressDialog::htmergeExited KProcess proc  )  [private, slot]
 

void ProgressDialog::htmergeExited KProcess proc  )  [private, slot]
 

Definition at line 556 of file htdigindex.cpp.

References done(), KProcess::exitStatus(), htmergeRunning, kdDebug(), KProcess::normalExit(), setState(), and KMessageBox::sorry().

Referenced by startHtmergeProcess().

void ProgressDialog::okClicked  )  [private, slot]
 

Reimplemented from KDialogBase.

void ProgressDialog::okClicked  )  [private, slot]
 

Reimplemented from KDialogBase.

Definition at line 592 of file htdigindex.cpp.

References KProcess::kill(), and proc.

Referenced by ProgressDialog().

void ProgressDialog::scanDirectories  ) 
 

void ProgressDialog::scanDirectories  ) 
 

Todo:
Problem: they are in index.cache.bz2 :-(
Fixme:
Perhaps one should consider indexing the whole directory the file

Definition at line 248 of file htdigindex.cpp.

References addDir(), addKdocDir(), addTocFile(), config, KGlobal::dirs(), KConfig::entryMap(), files, filesScanned, KStandardDirs::findAllResources(), DocTreeViewTool::getAllLibraries(), DocTreeViewTool::getBookmarks(), DocTreeViewTool::getHiddenLibraries(), kdDebug(), KShellProcess::quote(), KProcess::quote(), KConfigBase::readBoolEntry(), KConfigBase::readPathEntry(), setFilesScanned(), and KConfigBase::setGroup().

Referenced by slotDelayedStart().

void ProgressDialog::setFilesDigged int  d  )  [private]
 

void ProgressDialog::setFilesDigged int  d  )  [private]
 

Definition at line 133 of file htdigindex.cpp.

References bar, and KProgress::setValue().

Referenced by htdigExited(), and htdigStdout().

void ProgressDialog::setFilesScanned int  s  )  [private]
 

void ProgressDialog::setFilesScanned int  s  )  [private]
 

Definition at line 121 of file htdigindex.cpp.

References filesLabel.

Referenced by addDir(), addTocFile(), ProgressDialog(), and scanDirectories().

void ProgressDialog::setFilesToDig int  d  )  [private]
 

void ProgressDialog::setFilesToDig int  d  )  [private]
 

Definition at line 127 of file htdigindex.cpp.

References bar, and KProgress::setRange().

Referenced by generateIndex().

void ProgressDialog::setState int  n  )  [private]
 

void ProgressDialog::setState int  n  )  [private]
 

Definition at line 139 of file htdigindex.cpp.

References check1, check2, check3, and locate().

Referenced by generateIndex(), htdigExited(), htmergeExited(), and ProgressDialog().

void ProgressDialog::slotDelayedStart  )  [private, slot]
 

void ProgressDialog::slotDelayedStart  )  [private, slot]
 

Definition at line 96 of file htdigindex.cpp.

References createConfig(), done(), generateIndex(), procdone, and scanDirectories().

Referenced by ProgressDialog().

void ProgressDialog::startHtdigProcess bool  initial  )  [private]
 

void ProgressDialog::startHtdigProcess bool  initial  )  [private]
 

Definition at line 418 of file htdigindex.cpp.

References count, done(), exe, files, htdigExited(), htdigRunning, indexdir, kdDebug(), proc, procdone, and KProcess::start().

Referenced by generateIndex(), and htdigExited().

void ProgressDialog::startHtmergeProcess  )  [private]
 

void ProgressDialog::startHtmergeProcess  )  [private]
 

Definition at line 539 of file htdigindex.cpp.

References exe, htmergeExited(), htmergeRunning, indexdir, kdDebug(), proc, and KProcess::start().

Referenced by htdigExited().


Member Data Documentation

KProgress* ProgressDialog::bar [private]
 

Definition at line 55 of file htdigindex.h.

KProgress* ProgressDialog::bar [private]
 

Definition at line 61 of file htdigindex.h.

Referenced by ProgressDialog(), setFilesDigged(), and setFilesToDig().

QLabel * ProgressDialog::check1 [private]
 

Definition at line 54 of file htdigindex.h.

Referenced by ProgressDialog(), and setState().

QLabel * ProgressDialog::check2 [private]
 

Definition at line 54 of file htdigindex.h.

Referenced by ProgressDialog(), and setState().

QLabel * ProgressDialog::check3 [private]
 

Definition at line 54 of file htdigindex.h.

Referenced by ProgressDialog(), and setState().

int ProgressDialog::count [private]
 

Definition at line 57 of file htdigindex.h.

Referenced by generateIndex(), and startHtdigProcess().

QString ProgressDialog::databaseDir [private]
 

Definition at line 59 of file htdigindex.h.

Referenced by createConfig(), and ProgressDialog().

QString ProgressDialog::exe [private]
 

Definition at line 61 of file htdigindex.h.

Referenced by generateIndex(), htdigExited(), startHtdigProcess(), and startHtmergeProcess().

QStringList ProgressDialog::files [private]
 

Definition at line 62 of file htdigindex.h.

Referenced by addDir(), addTocFile(), generateIndex(), scanDirectories(), and startHtdigProcess().

volatile int ProgressDialog::filesDigged [private]
 

Definition at line 64 of file htdigindex.h.

Referenced by generateIndex(), htdigExited(), and htdigStdout().

QLabel* ProgressDialog::filesLabel [private]
 

Definition at line 54 of file htdigindex.h.

QLabel* ProgressDialog::filesLabel [private]
 

Definition at line 60 of file htdigindex.h.

Referenced by ProgressDialog(), and setFilesScanned().

volatile int ProgressDialog::filesScanned [private]
 

Definition at line 64 of file htdigindex.h.

Referenced by addDir(), addTocFile(), and scanDirectories().

volatile int ProgressDialog::filesToDig [private]
 

Definition at line 64 of file htdigindex.h.

Referenced by generateIndex(), and htdigExited().

bool ProgressDialog::htdigRunning [private]
 

Definition at line 65 of file htdigindex.h.

Referenced by cancelClicked(), htdigExited(), and startHtdigProcess().

bool ProgressDialog::htmergeRunning [private]
 

Definition at line 65 of file htdigindex.h.

Referenced by cancelClicked(), htmergeExited(), and startHtmergeProcess().

QString ProgressDialog::indexdir [private]
 

Definition at line 60 of file htdigindex.h.

Referenced by createConfig(), ProgressDialog(), startHtdigProcess(), and startHtmergeProcess().

KProcess* ProgressDialog::proc [private]
 

Definition at line 63 of file htdigindex.h.

KProcess* ProgressDialog::proc [private]
 

Definition at line 69 of file htdigindex.h.

Referenced by cancelClicked(), okClicked(), ProgressDialog(), startHtdigProcess(), and startHtmergeProcess().

bool ProgressDialog::procdone [private]
 

Definition at line 58 of file htdigindex.h.

Referenced by cancelClicked(), generateIndex(), slotDelayedStart(), and startHtdigProcess().


The documentation for this class was generated from the following files:
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:28:28 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003