first commit
This commit is contained in:
160
Lab7/button.h
Normal file
160
Lab7/button.h
Normal file
@@ -0,0 +1,160 @@
|
||||
//## begin module.cm preserve=no
|
||||
|
||||
// %X% %Q% %Z% %W%
|
||||
|
||||
//## end module.cm
|
||||
|
||||
|
||||
|
||||
//## begin module.cp preserve=no
|
||||
|
||||
//## end module.cp
|
||||
|
||||
|
||||
|
||||
//## Module: Button; Pseudo Package specification
|
||||
|
||||
//## Subsystem: lab7
|
||||
|
||||
//## Source file: H:\kurs\avC++\lab7\Button.h
|
||||
|
||||
|
||||
|
||||
#ifndef Button_h
|
||||
|
||||
#define Button_h 1
|
||||
|
||||
|
||||
|
||||
//## begin module.additionalIncludes preserve=no
|
||||
|
||||
//## end module.additionalIncludes
|
||||
|
||||
|
||||
|
||||
//## begin module.includes preserve=yes
|
||||
|
||||
//## end module.includes
|
||||
|
||||
|
||||
|
||||
// Component
|
||||
|
||||
#include "Compnent.h"
|
||||
|
||||
// Panel
|
||||
|
||||
#include "Panel.h"
|
||||
|
||||
// BH
|
||||
|
||||
#include "BttnHndl.h"
|
||||
|
||||
//## begin module.additionalDeclarations preserve=yes
|
||||
|
||||
//## end module.additionalDeclarations
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//## Class: Button
|
||||
|
||||
//## Category: lab7
|
||||
|
||||
//## Subsystem: lab7
|
||||
|
||||
//## Persistence: Transient
|
||||
|
||||
//## Cardinality/Multiplicity: n
|
||||
|
||||
|
||||
|
||||
//## Uses: <unnamed>; Panel { -> }
|
||||
|
||||
|
||||
|
||||
class Button : public Component //## Inherits: <unnamed>
|
||||
|
||||
{
|
||||
|
||||
//## begin Button.initialDeclarations preserve=yes
|
||||
|
||||
//## end Button.initialDeclarations
|
||||
|
||||
|
||||
|
||||
public:
|
||||
|
||||
//## Constructors (generated)
|
||||
|
||||
Button();
|
||||
|
||||
|
||||
|
||||
//## Constructors (specified)
|
||||
|
||||
//## Operation: Button%940854117
|
||||
|
||||
Button (int xpos, int ypos, int width, int height, char* text);
|
||||
|
||||
|
||||
|
||||
//## Destructor (generated)
|
||||
|
||||
~Button();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//## Other Operations (specified)
|
||||
|
||||
//## Operation: handleMouseEvent%940929796
|
||||
|
||||
void handleMouseEvent (Event e);
|
||||
|
||||
|
||||
|
||||
//## Operation: draw%940929797
|
||||
|
||||
void draw (Graphics& g);
|
||||
|
||||
|
||||
|
||||
//## Operation: handleKeyEvent%941013995
|
||||
|
||||
void handleKeyEvent (Event e);
|
||||
|
||||
|
||||
|
||||
//## Operation: isHit%941013997
|
||||
|
||||
bool isHit (int x, int y);
|
||||
|
||||
|
||||
|
||||
//## Operation: setAction%941013999
|
||||
|
||||
void setAction (BH* bh);
|
||||
|
||||
|
||||
|
||||
// Additional Public Declarations
|
||||
|
||||
//## begin Button.public preserve=yes
|
||||
|
||||
//## end Button.public
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
// Additional Protected Declarations
|
||||
|
||||
//## begin Button.protected preserve=yes
|
||||
|
||||
//## end Button.protected
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user