first commit
This commit is contained in:
133
Lab7/compnent.h
Normal file
133
Lab7/compnent.h
Normal file
@@ -0,0 +1,133 @@
|
||||
//## begin module.cm preserve=no
|
||||
|
||||
// %X% %Q% %Z% %W%
|
||||
|
||||
//## end module.cm
|
||||
|
||||
|
||||
|
||||
//## begin module.cp preserve=no
|
||||
|
||||
//## end module.cp
|
||||
|
||||
|
||||
|
||||
//## Module: Component; Pseudo Package specification
|
||||
|
||||
//## Subsystem: lab7
|
||||
|
||||
//## Source file: H:\kurs\avC++\lab7\Compnent.h
|
||||
|
||||
|
||||
|
||||
#ifndef Compnent_h
|
||||
|
||||
#define Compnent_h 1
|
||||
|
||||
|
||||
|
||||
//## begin module.additionalIncludes preserve=no
|
||||
|
||||
//## end module.additionalIncludes
|
||||
|
||||
|
||||
|
||||
//## begin module.includes preserve=yes
|
||||
|
||||
//## end module.includes
|
||||
|
||||
|
||||
|
||||
// Event
|
||||
|
||||
#include "Event.h"
|
||||
|
||||
// Graphics
|
||||
|
||||
#include "Graphics.h"
|
||||
|
||||
// Rectangle
|
||||
|
||||
#include "Rectngle.h"
|
||||
|
||||
//## begin module.additionalDeclarations preserve=yes
|
||||
|
||||
class Panel;
|
||||
|
||||
//## end module.additionalDeclarations
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//## Class: Component; Abstract
|
||||
|
||||
//## Category: lab7
|
||||
|
||||
//## Subsystem: lab7
|
||||
|
||||
//## Persistence: Transient
|
||||
|
||||
//## Cardinality/Multiplicity: n
|
||||
|
||||
|
||||
|
||||
//## Uses: <unnamed>; Event { -> }
|
||||
|
||||
//## Uses: <unnamed>; Graphics { -> }
|
||||
|
||||
//## Uses: <unnamed>; Rectangle { -> }
|
||||
|
||||
|
||||
|
||||
class Component
|
||||
|
||||
{
|
||||
|
||||
//## begin Component.initialDeclarations preserve=yes
|
||||
|
||||
//## end Component.initialDeclarations
|
||||
|
||||
|
||||
|
||||
public:
|
||||
|
||||
//## Constructors (generated)
|
||||
|
||||
Component();
|
||||
|
||||
|
||||
|
||||
//## Destructor (generated)
|
||||
|
||||
~Component();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//## Other Operations (specified)
|
||||
|
||||
//## Operation: draw%940929791
|
||||
|
||||
virtual void draw (Graphics& g) = 0;
|
||||
|
||||
|
||||
|
||||
//## Operation: getPpp%940945811
|
||||
|
||||
Panel* getPpp ();
|
||||
|
||||
|
||||
|
||||
//## Operation: setPpp%940945812
|
||||
|
||||
void setPpp (Panel* p);
|
||||
|
||||
|
||||
|
||||
//## Operation: handleMouseEvent%941013993
|
||||
|
||||
virtual void handleMouseEvent (Event e) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user