diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 47d455dd55be855e4cc691c32f687f723d9247ee (patch) | |
tree | 52e236aaa2576bdb3840ebede26619692fed6d7d /kdvi/fontprogress.h | |
download | tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdvi/fontprogress.h')
-rw-r--r-- | kdvi/fontprogress.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/kdvi/fontprogress.h b/kdvi/fontprogress.h new file mode 100644 index 00000000..f9c7232b --- /dev/null +++ b/kdvi/fontprogress.h @@ -0,0 +1,64 @@ +// -*- C++ -*- +// +// fontprogress.h +// +// (C) 2001-2004 Stefan Kebekus +// Distributed under the GPL + +#ifndef FONT_GENERATION_H +#define FONT_GENERATION_H + +#include <kdialogbase.h> +#include <qguardedptr.h> + +class KProcIO; +class KProgress; +class QLabel; + + +/** + * A dialog to give feedback to the user when kpsewhich is generating fonts. + * + * This class implements a dialog which pops up, shows a progress bar + * and displays the MetaFont output. It contains three slots, + * outputReceiver, setTotalSteps and hideDialog which can be connected + * with the appropriate signals emitted by the fontpool class. + * + * @author Stefan Kebekus <[email protected]> + * + * + **/ +class fontProgressDialog : public KDialogBase +{ + Q_OBJECT + +public: + fontProgressDialog( const QString& helpIndex, const QString& label, const QString& abortTip, const QString& whatsThis, const QString& ttip, + QWidget* parent = 0, const QString &name = 0, bool progressbar=true ); + ~fontProgressDialog(); + + /** The number of steps already done is increased, the text received + here is analyzed and presented to the user. */ + void increaseNumSteps(const QString& explanation); + + /** Used to initialize the progress bar. If the argument proc is + non-zero, the associated process will be killed when the "abort" + button is pressed. The FontProgress uses a QGuarderPtr + internally, so it is save to delete the KProcIO anytime. */ + void setTotalSteps(int, KProcIO *proc=0); + + QLabel* TextLabel2; + +private slots: + /** Calling this slot does nothing than to kill the process that is + pointed to be procIO, if procIO is not zero.*/ + void killProcIO(); + +private: + QLabel* TextLabel1; + KProgress* ProgressBar1; + int progress; + QGuardedPtr<KProcIO> procIO; +}; + +#endif // FONT_GENERATION_H |