-
Notifications
You must be signed in to change notification settings - Fork 2
/
Select.h
44 lines (29 loc) · 862 Bytes
/
Select.h
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
#pragma once
#include"Actions/Action.h"
#include"Components/Component.h"
#include"Defs.H"
class Select :public Action
{
private:
// pointer to componenet selected
Component* &CompSelected;
GraphicsInfo r_GInfo;
MODE m_mode;
//Parameters for rectangular area to be occupied by the gate
int x, y; //location of point clicked
int x1, y1, x2, y2; //Two corners of the rectangluar area
GraphicsInfo m_GfxInfo;
public:
//constructor
Select(ApplicationManager* pApp, Component*&, GraphicsInfo&, MODE);
//destructor
~Select();
//Reads parameters required for action to execute
virtual void ReadActionParameters();
//Execute action (code depends on action type)
virtual void Execute();
//To undo this action (code depends on action type)
virtual void Undo();
//To redo this action (code depends on action type)
virtual void Redo();
};