##// END OF EJS Templates
Adds selection zone actions in the context menu
Adds selection zone actions in the context menu

File last commit:

r1111:666a84a7f3b2
r1112:77b0e391c46a
Show More
ActionsGuiController.h
22 lines | 628 B | text/x-c | CLexer
/ gui / include / Actions / ActionsGuiController.h
Adds a a gui controller class to manage global actions across the application.
r1111 #ifndef SCIQLOP_ACTIONSGUICONTROLLER_H
#define SCIQLOP_ACTIONSGUICONTROLLER_H
#include <Actions/SelectionZoneAction.h>
#include <Common/spimpl.h>
#include <memory>
class ActionsGuiController {
public:
ActionsGuiController();
std::shared_ptr<SelectionZoneAction>
addSectionZoneAction(const QString &name, SelectionZoneAction::ExecuteFunction function);
QVector<std::shared_ptr<SelectionZoneAction> > selectionZoneActions() const;
private:
class ActionsGuiControllerPrivate;
spimpl::unique_impl_ptr<ActionsGuiControllerPrivate> impl;
};
#endif // SCIQLOP_ACTIONSGUICONTROLLER_H