midday-commander
Loading...
Searching...
No Matches
GoBackAction.h
Go to the documentation of this file.
1//
2// Created by Vojtěch Pašek on 19.05.2023.
3//
4
5#ifndef MIDDAY_COMMANDER_GOBACKACTION_H
6#define MIDDAY_COMMANDER_GOBACKACTION_H
7
8#include "../OnceAction.h"
9
13class GoBackAction : public OnceAction {
14public:
15 [[nodiscard]] std::unique_ptr<Action> clone() const override;
16private:
17 void executeAction(FileView&, State&) override;
18};
19
20
21#endif //MIDDAY_COMMANDER_GOBACKACTION_H
Represents a file view of the Application.
Definition: FileView.h:16
An Action that moves FileView.wd one directory up (if possible)
Definition: GoBackAction.h:13
void executeAction(FileView &, State &) override
Definition: GoBackAction.cpp:7
std::unique_ptr< Action > clone() const override
Definition: GoBackAction.cpp:11
A base class for Actions that are supposed to fire once.
Definition: OnceAction.h:13
Holds the global state of the Application.
Definition: State.h:16