summaryrefslogtreecommitdiffstats
path: root/kdvi/infodialog.h
blob: a5ecde8bfefb58fda84fc9e443d3209d3c062938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// -*- C++ -*-
// infodialog.h
//
// (C) 2001 Stefan Kebekus
// Distributed under the GPL

#ifndef INFO_KDVI_H
#define INFO_KDVI_H

#include <kdialogbase.h>

#include <tqstring.h>

class dvifile;
class fontPool;
class TQTextView;
class TQWidget;


class infoDialog : public KDialogBase
{
    Q_OBJECT
  TQ_OBJECT

public:
    infoDialog( TQWidget* 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);

    TQTextView* TextLabel1;
    TQTextView* TextLabel2;
    TQTextView* TextLabel3;

public slots:
    /** This slot is called when Output from the MetaFont programm
        is received via the fontpool/kpsewhich */
    void       outputReceiver(const TQString&);

    /** 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(const TQString&);

protected:
 bool     MFOutputReceived;
 TQString  headline;
 TQString  pool;
};

#endif // INFO_KDVI_H