// @(#)root/qt:$Name:  $:$Id$
// Author: Valeri Fine   21/01/2002
/****************************************************************************
**
** Copyright (C) 2002 by Valeri Fine.  All rights reserved.
**
*****************************************************************************/

#ifndef ROOT_TQtPadFont
#define ROOT_TQtPadFont

#include "TAttText.h"
#include "TString.h"

#ifndef __CINT__
#  include <QFont>
#else
   class  QFont;
#endif
   //
   // TQtPadFont class is Qt QFont class with TAttText ROOT class interface
   //
class TQtPadFont : public QFont, public TAttText
{
private:
   static TString fgRomanFontName;
   static TString fgArialFontName;
   static TString fgCourierFontName;
   static TString fgSymbolFontFamily;

public:
   TQtPadFont();
   TQtPadFont(const TQtPadFont &src):QFont(src),TAttText(src) {}
   virtual ~TQtPadFont(){;}
   void  SetTextFont(const char *fontname, int italic, int bold);
   void  SetTextFont(Font_t fontnumber=62);
   void  SetTextSize(Float_t textsize=1);
   void  SetTextSizePixels(Int_t npixels);
   void  SetTextMagnify(Float_t mgn);
   static const char *RomanFontName();
   static const char *ArialFontName();
   static const char *CourierFontName();
   static const char *SymbolFontFamily();
   static void SetSymbolFontFamily(const char *symbolFnName="Symbol");

   ClassDef(TQtPadFont,0) //< Create Qt QFont object based on ROOT TAttText attributes
};

#endif
 TQtPadFont.h:1
 TQtPadFont.h:2
 TQtPadFont.h:3
 TQtPadFont.h:4
 TQtPadFont.h:5
 TQtPadFont.h:6
 TQtPadFont.h:7
 TQtPadFont.h:8
 TQtPadFont.h:9
 TQtPadFont.h:10
 TQtPadFont.h:11
 TQtPadFont.h:12
 TQtPadFont.h:13
 TQtPadFont.h:14
 TQtPadFont.h:15
 TQtPadFont.h:16
 TQtPadFont.h:17
 TQtPadFont.h:18
 TQtPadFont.h:19
 TQtPadFont.h:20
 TQtPadFont.h:21
 TQtPadFont.h:22
 TQtPadFont.h:23
 TQtPadFont.h:24
 TQtPadFont.h:25
 TQtPadFont.h:26
 TQtPadFont.h:27
 TQtPadFont.h:28
 TQtPadFont.h:29
 TQtPadFont.h:30
 TQtPadFont.h:31
 TQtPadFont.h:32
 TQtPadFont.h:33
 TQtPadFont.h:34
 TQtPadFont.h:35
 TQtPadFont.h:36
 TQtPadFont.h:37
 TQtPadFont.h:38
 TQtPadFont.h:39
 TQtPadFont.h:40
 TQtPadFont.h:41
 TQtPadFont.h:42
 TQtPadFont.h:43
 TQtPadFont.h:44
 TQtPadFont.h:45
 TQtPadFont.h:46
 TQtPadFont.h:47
 TQtPadFont.h:48
 TQtPadFont.h:49