1
/***************************************************************************
2
mycanvas.h - description
5
copyright : (C) 2002 by Alexander Dymo
6
email : cloudtemple@mksat.net
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU Library General Public License as *
13
* published by the Free Software Foundation; either version 2 of the *
14
* License, or (at your option) any later version. *
16
***************************************************************************/
23
class CanvasKugarTemplate;
24
class KuDesignerPlugin;
26
class MyCanvas: public QCanvas{
29
MyCanvas(int w, int h);
32
// KudesignerDoc *document(){return m_doc;}
33
CanvasKugarTemplate *templ;
34
QPtrList<CanvasBox> selected;
36
KuDesignerPlugin *plugin();
37
void setPlugin(KuDesignerPlugin *plugin);
41
void selectItem(CanvasBox *it, bool addToSelection = true);
42
void unselectItem(CanvasBox *it);
43
// void deleteSelected();
46
virtual void drawForeground ( QPainter & painter, const QRect & clip );
49
// KudesignerDoc *m_doc;
50
void scaleCanvas(int scale);
51
KuDesignerPlugin *m_plugin;