You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.9 KiB
78 lines
1.9 KiB
// -*- C++ -*- |
|
// |
|
// fontprogress.h |
|
// |
|
// (C) 2001-2004 Stefan Kebekus |
|
// Distributed under the GPL |
|
|
|
#ifndef FONT_GENERATION_H |
|
#define FONT_GENERATION_H |
|
|
|
#include <kdialogbase.h> |
|
#include <qpointer.h> |
|
//Added by qt3to4: |
|
#include <QLabel> |
|
#include <QVBoxLayout> |
|
#include <Q3Frame> |
|
#include <QHBoxLayout> |
|
#include <QGridLayout> |
|
|
|
class KProcIO; |
|
class KProgress; |
|
class KPushButton; |
|
class QVBoxLayout; |
|
class QHBoxLayout; |
|
class QGridLayout; |
|
class Q3Frame; |
|
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 <kebekus@kde.org> |
|
* |
|
* |
|
**/ |
|
|
|
|
|
|
|
class fontProgressDialog : public KDialogBase |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
fontProgressDialog( QString helpIndex, QString label, QString abortTip, QString whatsThis, 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; |
|
QPointer<KProcIO> procIO; |
|
}; |
|
|
|
#endif // FONT_GENERATION_H
|
|
|