15 #ifndef BORNAGAIN_GUI_UTIL_ACTIONFACTORY_H
16 #define BORNAGAIN_GUI_UTIL_ACTIONFACTORY_H
39 std::function<
void()> slot =
nullptr);
46 std::function<
void()> slot =
nullptr);
52 QWidget* toggledWidget =
nullptr);
Factory to create commonly used actions.
static QAction * createShowInRealSpaceAction(QObject *parent, const QString &what, std::function< void()> slot=nullptr)
Create "show in RealSpace" action.
static QAction * createRemoveAction(QObject *parent, const QString &what, std::function< void()> slot=nullptr)
Create "remove" action.
ActionFactory & operator=(ActionFactory &&)=delete
ActionFactory(const ActionFactory &)=delete
static QAction * createTogglePropertiesPanelAction(QObject *parent, QWidget *toggledWidget=nullptr)
Create "toggle properties panel" action.
ActionFactory & operator=(const ActionFactory &)=delete
ActionFactory(ActionFactory &&)=delete