kpresenter
KPrUtils.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _kpresenter_utils_h__
00022 #define _kpresenter_utils_h__
00023
00024 #include "global.h"
00025 #include "KoPointArray.h"
00026 #include <qcursor.h>
00027 class QPoint;
00028 class QColor;
00029 class QPainter;
00030 class KoZoomHandler;
00031 class KoSize;
00032 class KoPoint;
00033 class QDomElement;
00034 class KPrObject;
00035
00036 void drawFigure( LineEnd figure, QPainter* painter, const KoPoint &coord, const QColor & color,
00037 int _w, float angle, KoZoomHandler*_zoomHandler );
00038 void drawFigureWithOffset( LineEnd figure, QPainter* painter, const QPoint &coord, const QColor & color,
00039 int _w, float angle, KoZoomHandler*_zoomHandler );
00040 void drawFigureWithOffset( LineEnd figure, QPainter* painter, const KoPoint &coord, const QColor &color,
00041 int w, float angle, KoZoomHandler*_zoomHandler, bool begin);
00042 KoSize getBoundingSize( LineEnd figure, int _w, const KoZoomHandler*_zoomHandler );
00043 KoSize getOffset( LineEnd figure, int _w, float angle );
00044 QString lineEndBeginName( LineEnd type );
00045 LineEnd lineEndBeginFromString( const QString & name );
00046 QString lineEndBeginSvg( LineEnd element );
00047 QString saveOasisTimer( int second );
00048 int loadOasisTimer( const QString & timer );
00049
00050 class KPrUtils
00051 {
00052 public:
00053 static QCursor penCursor();
00054 static QCursor rotateCursor();
00055 };
00056
00057 int readOasisSettingsInt( const QDomElement & element );
00058 double readOasisSettingsDouble( const QDomElement & element );
00059 bool readOasisSettingsBool( const QDomElement & element );
00060 QString readOasisSettingsString( const QDomElement & element );
00061
00062 #endif
|