home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / fmitem.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-07-23  |  1.8 KB  |  55 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. /***************************************************************************
  8.                           fmitem.h  -  description
  9.                              -------------------
  10.     begin                : Sun May 13 2001
  11.     copyright            : (C) 2001 by Franz Schmid
  12.     email                : Franz.Schmid@altmuehlnet.de
  13.  ***************************************************************************/
  14.  
  15. /***************************************************************************
  16.  *                                                                         *
  17.  *   This program is free software; you can redistribute it and/or modify  *
  18.  *   it under the terms of the GNU General Public License as published by  *
  19.  *   the Free Software Foundation; either version 2 of the License, or     *
  20.  *   (at your option) any later version.                                   *
  21.  *                                                                         *
  22.  ***************************************************************************/
  23.  
  24. #ifndef FMITEM_H
  25. #define FMITEM_H
  26.  
  27. #include <QSize>
  28. #include <QPainter>
  29. #include <QFont>
  30. #include <QString>
  31. #include <QMenuData>
  32.  
  33. #include "scfonts.h"
  34. #include "scribusapi.h"
  35.  
  36. /**
  37.   *@author Franz Schmid
  38.   */
  39.  
  40. class SCRIBUS_API FmItem : public QCustomMenuItem 
  41. {
  42. public: 
  43.     FmItem(const QString& s, const ScFace& f);
  44.     ~FmItem() {};
  45.     void paint(QPainter *p, const QColorGroup& cg, bool act, bool enabled, int x, int y, int w, int h);
  46.     QSize sizeHint();
  47.     QString Ctext();
  48.  
  49. private:
  50.     QString stringy;
  51.     QFont font;
  52. };
  53.  
  54. #endif
  55.