Eneboo - Documentación para desarrolladores
src/flbase/FLStylePainter.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002                      FLStylePainter.h
00003                     -------------------
00004 begin                : 24/12/2008
00005 copyright            : (C) 2003-2008 by InfoSiAL S.L.
00006 email                : mail@infosial.com
00007 ***************************************************************************/
00008 /***************************************************************************
00009  *   This program is free software; you can redistribute it and/or modify  *
00010  *   it under the terms of the GNU General Public License as published by  *
00011  *   the Free Software Foundation; version 2 of the License.               *
00012  ***************************************************************************/
00013 /***************************************************************************
00014    Este  programa es software libre. Puede redistribuirlo y/o modificarlo
00015    bajo  los  términos  de  la  Licencia  Pública General de GNU   en  su
00016    versión 2, publicada  por  la  Free  Software Foundation.
00017  ***************************************************************************/
00018 
00019 #ifndef FLSTYLEPAINTER_H
00020 #define FLSTYLEPAINTER_H
00021 
00022 #include <qobject.h>
00023 #include <qpainter.h>
00024 
00025 class FLStylePainterPrivate;
00026 
00027 class FL_EXPORT FLStylePainter
00028 {
00029 
00030 public:
00031 
00032   enum ErrCode {
00033     NoError = 0,
00034     IdNotFound
00035   };
00036 
00037   FLStylePainter();
00038   ~FLStylePainter();
00039 
00040   QPainter *painter() const;
00041 
00042   QString styleName() const;
00043   void setStyleName(const QString &style);
00044 
00045   float relDpi() const;
00046   void setRelDpi(float relDpi);
00047 
00048   void beginMark(int x, int y, QObject *obj);
00049   void endMark();
00050   void beginSection(int x, int y, int w, int h, QObject *obj);
00051   void endSection();
00052 
00053   bool drawPixmap(const QPixmap &pixmap, int sx = 0,
00054                   int sy = 0, int sw = -1, int sh = -1, QObject *obj = 0);
00055   bool drawText(const QString &text, int tf, QObject *obj);
00056   bool drawLine(QObject *obj);
00057   bool drawRect(QObject *obj);
00058   bool setStyle(QObject *obj);
00059 
00060   void applyTransforms();
00061 
00062   ErrCode errCode() const;
00063 
00064   static void normalizeSVGFile(const QString &fileName, const QStringList &fileNames);
00065   static void setSVGMode(bool mode);
00066 
00067 private:
00068 
00069   FLStylePainterPrivate *d;
00070 };
00071 
00072 #endif
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'