-
Notifications
You must be signed in to change notification settings - Fork 1
/
Action.h
26 lines (16 loc) · 705 Bytes
/
Action.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
#pragma once
#include "ApplicationManager.h"
#include "Cell.h"
// Base class for all possible actions (actions are icons of the toolbar)
class Action
{
protected:
ApplicationManager *pManager; // Actions needs ApplicationManager to do their job
public:
Action(ApplicationManager *pApp); // Constructor
// ============ Virtual Functions ============
virtual void ReadActionParameters() = 0; // Reads parameters required for action to execute
// (code depends on action type so virtual)
virtual void Execute() = 0; // Executes action (code depends on action type so virtual)
virtual ~Action(); // Virtual Destructor
};