blob: 7c61deb95bde260218ad74d4483e51c999e59bb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include <AK/String.h>
class GCommand {
public:
virtual ~GCommand();
virtual void undo() {}
virtual void redo() {}
String action_text() const { return m_action_text; }
protected:
GCommand() {}
void set_action_text(const String& text) { m_action_text = text; }
private:
String m_action_text;
};
|