##// END OF EJS Templates
Refresh catalogue menu when the catalogue list changed
Refresh catalogue menu when the catalogue list changed

File last commit:

r1327:07b2554d7734
r1327:07b2554d7734
Show More
ActionsGuiController.h
29 lines | 905 B | text/x-c | CLexer
/ gui / include / Actions / ActionsGuiController.h
#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);
std::shared_ptr<SelectionZoneAction>
addSectionZoneAction(const QStringList &subMenuList, const QString &name,
SelectionZoneAction::ExecuteFunction function);
QVector<std::shared_ptr<SelectionZoneAction> > selectionZoneActions() const;
void removeAction(const std::shared_ptr<SelectionZoneAction> &action);
private:
class ActionsGuiControllerPrivate;
spimpl::unique_impl_ptr<ActionsGuiControllerPrivate> impl;
};
#endif // SCIQLOP_ACTIONSGUICONTROLLER_H