~ubuntu-branches/ubuntu/edgy/koffice/edgy-updates

« back to all changes in this revision

Viewing changes to kugar/kudesigner_lib/canvbox.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040509113300-xi5t1z4yxe7n03x7
Tags: upstream-1.3.1
ImportĀ upstreamĀ versionĀ 1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          canvbox.cpp  -  description
 
3
                             -------------------
 
4
    begin                : 07.06.2002
 
5
    copyright            : (C) 2002 by Alexander Dymo
 
6
    email                : cloudtemple@mksat.net
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
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.                       *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
#include <qcanvas.h>
 
18
 
 
19
#include "canvbox.h"
 
20
#include "mycanvas.h"
 
21
#include "plugin.h"
 
22
 
 
23
CanvasBox::~CanvasBox()
 
24
{
 
25
}
 
26
 
 
27
void CanvasBox::registerAs(int type)
 
28
{
 
29
    if (((MyCanvas*)canvas())->plugin()) {
 
30
        (((MyCanvas*)canvas())->plugin())->newCanvasBox(type,this);
 
31
    }
 
32
}
 
33
 
 
34
void CanvasBox::scale(int scale)
 
35
{
 
36
    setSize(width()*scale, height()*scale);
 
37
}
 
38
 
 
39
void CanvasBox::draw(QPainter &painter)
 
40
{
 
41
    QCanvasRectangle::draw(painter);
 
42
}
 
43