##// END OF EJS Templates
Merge branch 'feature/AcquisitionTest' into develop
Merge branch 'feature/AcquisitionTest' into develop

File last commit:

r1382:eb278710ae3b
r1400:a4f96b874829 merge
Show More
ActionsGuiController.h
35 lines | 1.1 KiB | 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);
Put the align actions in sub menus
r1118
std::shared_ptr<SelectionZoneAction>
addSectionZoneAction(const QStringList &subMenuList, const QString &name,
SelectionZoneAction::ExecuteFunction function);
Adds a a gui controller class to manage global actions across the application.
r1111 QVector<std::shared_ptr<SelectionZoneAction> > selectionZoneActions() const;
Refresh catalogue menu when the catalogue list changed
r1381 void removeAction(const std::shared_ptr<SelectionZoneAction> &action);
LineEdit to filter the create catalogue menu
r1382 /// Sets a flag to say that the specified menu can be filtered, usually via a FilteringAction
void addFilterForMenu(const QStringList &menuPath);
/// Returns true if the menu can be filtered
bool isMenuFiltered(const QStringList &menuPath) const;
Adds a a gui controller class to manage global actions across the application.
r1111 private:
class ActionsGuiControllerPrivate;
spimpl::unique_impl_ptr<ActionsGuiControllerPrivate> impl;
};
#endif // SCIQLOP_ACTIONSGUICONTROLLER_H