##// END OF EJS Templates
Reads variable's metadata to retrieve the type of data series (scalar, vector, spectrogram)
Reads variable's metadata to retrieve the type of data series (scalar, vector, spectrogram)

File last commit:

r1118:f354146de80e
r1304:23206e07bbc2
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;
}