-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFastCanvas.cpp
109 lines (86 loc) · 3.23 KB
/
FastCanvas.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/*******************************************************************************
* FILE NAME: FastCanvas.cpp *
* *
* DESCRIPTION: *
* Class implementation of the class: *
* FastCanvas- A high-performance drawing canvas *
* ---------------------------------------------------------------------------- *
* Warning: This file was generated by the VisualAge C++ Visual Builder. *
* Modifications to this source file will be lost when the part is regenerated. *
*******************************************************************************/
#ifndef _ICANVAS_
#include <icanvas.hpp>
#endif
#ifndef _IPOINT_
#include <ipoint.hpp>
#endif
#ifndef _INOTIFEV_
#include <inotifev.hpp>
#endif
#ifndef _IOBSERVR_
#include <iobservr.hpp>
#endif
#ifndef _ISTDNTFY_
#include <istdntfy.hpp>
#endif
#ifndef _FASTCANVAS_
#include "FastCanvas.hpp"
#endif
#ifndef _IVBDEFS_
#include <ivbdefs.h>
#endif
#ifndef _ITRACE_
#include <itrace.hpp>
#endif
#pragma export (FastCanvas::readyId)
const INotificationId FastCanvas::readyId = "FastCanvas::readyId";
//------------------------------------------------------------------------------
// FastCanvas :: defaultFramingSpec
//------------------------------------------------------------------------------
#pragma export (FastCanvas::defaultFramingSpec())
IRectangle FastCanvas::defaultFramingSpec()
{
return(IRectangle(IPoint(30,109),ISize(400, 300)));
}
//------------------------------------------------------------------------------
// FastCanvas :: FastCanvas
//------------------------------------------------------------------------------
#pragma export (FastCanvas::FastCanvas(unsigned long, IWindow *, IWindow *, const IRectangle &, const ICanvas::Style &))
FastCanvas::FastCanvas(
unsigned long id,
IWindow * parent,
IWindow * owner,
const IRectangle & rect,
const ICanvas::Style & style)
: ICanvas(id, parent, owner, rect, style)
{
this->setMinimumSize(ISize(400, 300));
} //end constructor
//------------------------------------------------------------------------------
// FastCanvas :: ~FastCanvas
//------------------------------------------------------------------------------
#pragma export (FastCanvas::~FastCanvas())
FastCanvas::~FastCanvas()
{
}
//------------------------------------------------------------------------------
// FastCanvas :: initializePart
//------------------------------------------------------------------------------
#pragma export (FastCanvas::initializePart())
FastCanvas & FastCanvas::initializePart()
{
makeConnections();
notifyObservers(INotificationEvent(readyId, *this));
return *this;
}
//------------------------------------------------------------------------------
// FastCanvas :: makeConnections
//------------------------------------------------------------------------------
#pragma export (FastCanvas::makeConnections())
Boolean FastCanvas::makeConnections()
{
this->enableNotification();
unsigned long id = this->id();
return true;
}
#include "FastCanvas.cpv"