mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-17 23:11:48 +00:00
235c9d7dc4
Patch by Angus Leeming svn path=/trunk/KDE/kdegraphics/kdvi/; revision=453640
71 lines
1.6 KiB
C++
71 lines
1.6 KiB
C++
// -*- C++ -*-
|
|
// infodialog.h
|
|
//
|
|
// (C) 2001 Stefan Kebekus
|
|
// Distributed under the GPL
|
|
|
|
#ifndef INFO_KDVI_H
|
|
#define INFO_KDVI_H
|
|
|
|
#include <qstring.h>
|
|
#include <qvariant.h>
|
|
//Added by qt3to4:
|
|
#include <QLabel>
|
|
#include <QVBoxLayout>
|
|
#include <QHBoxLayout>
|
|
#include <QGridLayout>
|
|
#include <kdialogbase.h>
|
|
|
|
class dvifile;
|
|
|
|
class QVBoxLayout;
|
|
class QHBoxLayout;
|
|
class QGridLayout;
|
|
class QLabel;
|
|
class KPushButton;
|
|
class QTabWidget;
|
|
class Q3Table;
|
|
class Q3TextView;
|
|
class QWidget;
|
|
class fontPool;
|
|
|
|
class infoDialog : public KDialogBase
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
infoDialog( QWidget* parent = 0 );
|
|
|
|
/** This method is used to set the data coming from the DVI
|
|
file. Note that 0 is a permissible argument, that just means:
|
|
"no file loaded" */
|
|
void setDVIData(dvifile *dviFile);
|
|
|
|
Q3TextView* TextLabel1;
|
|
Q3TextView* TextLabel2;
|
|
Q3TextView* TextLabel3;
|
|
|
|
public slots:
|
|
/** This slot is called when Output from the MetaFont programm
|
|
is received via the fontpool/kpsewhich */
|
|
void outputReceiver(QString);
|
|
|
|
/** This slot is called whenever anything in the fontpool has
|
|
changed. If the infoDialog is shown, the dialog could then
|
|
query the fontpool for more information. */
|
|
void setFontInfo(fontPool *fp);
|
|
|
|
/** Calling this slot clears the text view and stores the
|
|
headline. The next time output is received via the
|
|
outputReceiver, the headline is displayed in bold on top of
|
|
the text view. */
|
|
void clear(QString);
|
|
|
|
protected:
|
|
bool MFOutputReceived;
|
|
QString headline;
|
|
QString pool;
|
|
};
|
|
|
|
#endif // INFO_KDVI_H
|