mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-01 13:50:58 +00:00
21 lines
341 B
C
21 lines
341 B
C
|
|
#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;
|
||
|
|
};
|