home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / qfd / fontdisplayer.h < prev    next >
C/C++ Source or Header  |  2001-10-11  |  1KB  |  49 lines

  1. /****************************************************************************
  2. ** $Id:  qt/fontdisplayer.h   3.0.0   edited Jun 22 13:24 $
  3. **
  4. ** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
  5. **
  6. ** This file is part of an example program for Qt.  This example
  7. ** program may be used, distributed and modified without limitation.
  8. **
  9. *****************************************************************************/
  10.  
  11. #ifndef FontDisplayer_H
  12. #define FontDisplayer_H
  13.  
  14. #include <qframe.h>
  15. #include <qmainwindow.h>
  16.  
  17. class QSlider;
  18.  
  19. class FontRowTable : public QFrame {
  20.     Q_OBJECT
  21. public:
  22.     FontRowTable( QWidget* parent=0, const char* name=0 );
  23.  
  24.     QSize sizeHint() const;
  25.  
  26. signals:
  27.     void fontInformation(const QString&);
  28.  
  29. public slots:
  30.     void setRow(int);
  31.     void chooseFont();
  32.  
  33.  
  34. protected:
  35.     QSize cellSize() const;
  36.     void paintEvent( QPaintEvent* );
  37. private:
  38.     QFont tablefont;
  39.     int row;
  40. };
  41.  
  42. class FontDisplayer : public QMainWindow {
  43.     Q_OBJECT
  44. public:
  45.     FontDisplayer( QWidget* parent=0, const char* name=0 );
  46. };
  47.  
  48. #endif
  49.