00001 #ifndef __FONT_VIEW_PART_H__
00002 #define __FONT_VIEW_PART_H__
00003
00005
00006
00007
00008
00009
00010
00011
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00029
00031
00032 #include <kparts/part.h>
00033
00034 class TQPushButton;
00035 class TQFrame;
00036 class TQLabel;
00037 class KIntNumInput;
00038 class KAction;
00039 class KURL;
00040
00041 namespace KFI
00042 {
00043
00044 class CFontPreview;
00045
00046 class CFontViewPart : public KParts::ReadOnlyPart
00047 {
00048 Q_OBJECT
00049
00050 public:
00051
00052 CFontViewPart(TQWidget *parent=0, const char *name=0);
00053 virtual ~CFontViewPart() {}
00054
00055 bool openURL(const KURL &url);
00056
00057 protected:
00058
00059 bool openFile();
00060
00061 private slots:
00062
00063 void previewStatus(bool st);
00064 void timeout();
00065 void install();
00066 void changeText();
00067 void print();
00068
00069 private:
00070
00071 CFontPreview *itsPreview;
00072 TQPushButton *itsInstallButton;
00073 TQFrame *itsFrame,
00074 *itsToolsFrame;
00075 TQLabel *itsFaceLabel;
00076 KIntNumInput *itsFaceSelector;
00077 KAction *itsChangeTextAction,
00078 *itsPrintAction;
00079 bool itsShowInstallButton;
00080 int itsFace;
00081 };
00082
00083 }
00084
00085 #endif