##// END OF EJS Templates
Adds variable controller and properties to test structure...
Adds variable controller and properties to test structure - Properties will be used to define test bounds, like the number of variables to manipulate or the number of random operations to make - Variable controller will be the object manipulated during the random operations

File last commit:

r1118:f354146de80e
r1200:49d15be9d590
Show More
ActionsGuiController.cpp
36 lines | 1.2 KiB | text/x-c | CppLexer
/ gui / src / Actions / ActionsGuiController.cpp
Adds a a gui controller class to manage global actions across the application.
r1111 #include "Actions/ActionsGuiController.h"
struct ActionsGuiController::ActionsGuiControllerPrivate {
QVector<std::shared_ptr<SelectionZoneAction> > m_SelectionZoneActions;
};
ActionsGuiController::ActionsGuiController()
: impl{spimpl::make_unique_impl<ActionsGuiControllerPrivate>()}
{
}
std::shared_ptr<SelectionZoneAction>
ActionsGuiController::addSectionZoneAction(const QString &name,
SelectionZoneAction::ExecuteFunction function)
{
auto action = std::make_shared<SelectionZoneAction>(name, function);
impl->m_SelectionZoneActions.push_back(action);
return action;
}
Put the align actions in sub menus
r1118 std::shared_ptr<SelectionZoneAction>
ActionsGuiController::addSectionZoneAction(const QStringList &subMenuList, const QString &name,
SelectionZoneAction::ExecuteFunction function)
{
auto action = std::make_shared<SelectionZoneAction>(subMenuList, name, function);
impl->m_SelectionZoneActions.push_back(action);
return action;
}
Adds a a gui controller class to manage global actions across the application.
r1111 QVector<std::shared_ptr<SelectionZoneAction> > ActionsGuiController::selectionZoneActions() const
{
return impl->m_SelectionZoneActions;
}