1 /***************************************************************************
2 titlewidget.h - description
5 copyright : (C) 2008 by Marco Gittler
6 email : g.marco@freenet.de
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
26 #include "ui_titlewidget_ui.h"
27 #include "titledocument.h"
29 #include "graphicsscenerectmove.h"
38 double scalex, scaley;
42 class TitleWidget : public QDialog , public Ui::TitleWidget_UI {
45 TitleWidget(Render *render, QWidget *parent = 0);
48 virtual void resizeEvent(QResizeEvent * event);
51 QGraphicsPolygonItem *startViewport, *endViewport;
52 GraphicsSceneRectMove *m_scene;
54 QMap<QGraphicsItem*, Transform > transformations;
55 TitleDocument m_titledocument;
56 QGraphicsRectItem *m_frameBorder;
57 QGraphicsPixmapItem *m_frameImage;
66 void slotChangeBackground();
67 void selectionChanged();
71 void setupViewports();
72 void zIndexChanged(int);
73 void svgSelected(const KUrl&);
80 void slotAdjustSelectedItem();
81 void slotUpdateZoom(int pos);
82 void slotZoom(bool up);
83 void slotAdjustZoom();
84 void slotZoomOneToOne();
85 void slotUpdateText();
86 void displayBackgroundFrame();
87 void setCurrentItem(QGraphicsItem *item);