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.
38 lines
538 B
38 lines
538 B
|
|
#ifndef VIEWER_H
|
|
#define VIEWER_H
|
|
|
|
|
|
#include <qwidget.h>
|
|
#include <qfont.h>
|
|
|
|
class QTextView;
|
|
class QPushButton;
|
|
|
|
class Viewer : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Viewer();
|
|
|
|
private slots:
|
|
void setDefault();
|
|
void setSansSerif();
|
|
void setItalics();
|
|
|
|
private:
|
|
void setFontSubstitutions();
|
|
void layout();
|
|
void showFontInfo( QFont & );
|
|
|
|
QTextView * greetings;
|
|
QTextView * fontInfo;
|
|
|
|
QPushButton * defaultButton;
|
|
QPushButton * sansSerifButton;
|
|
QPushButton * italicsButton;
|
|
};
|
|
|
|
#endif
|