Skip to content
Snippets Groups Projects
Commit fe836ceb authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

MaskEditorActions reduced to actions

parent 15d5e478
No related branches found
No related tags found
1 merge request!2297frame actions -> global pointer
......@@ -15,8 +15,8 @@
#include "GUI/View/Frame/MaskEditingFrame.h"
#include "Base/Util/Assert.h"
#include "GUI/Model/Data/Data2DItem.h"
#include "GUI/Model/Mask/MaskeditorListmodel.h"
#include "GUI/Model/Mask/MaskList.h"
#include "GUI/Model/Mask/MaskeditorListmodel.h"
#include "GUI/Model/Project/ProjectDocument.h"
#include "GUI/View/Canvas/MaskEditorCanvas.h"
#include "GUI/View/Scene/MaskGraphicsScene.h"
......@@ -138,8 +138,6 @@ void MaskEditingFrame::updateFrame()
m_canvas2D->updateCanvas(currentData2DItem());
m_actions->setModels(mask_list_model);
update();
}
......
......@@ -13,10 +13,6 @@
// ************************************************************************************************
#include "GUI/View/Setup/MaskEditorActions.h"
#include "GUI/Model/Mask/MaskItems.h"
#include "GUI/Model/Mask/MaskList.h"
#include "GUI/Model/Mask/MaskeditorListmodel.h"
#include "GUI/Model/Project/ProjectDocument.h"
#include "GUI/View/Tool/ActionFactory.h"
MaskEditorActions::MaskEditorActions()
......@@ -27,7 +23,6 @@ MaskEditorActions::MaskEditorActions()
, reset_view(new QAction)
, save_plot(new QAction)
, toggle_panel(ActionFactory::createTogglePropertiesPanelAction(this))
, m_mask_list_model(nullptr)
{
toggle_mask_value->setText("Toggle mask value");
......@@ -54,12 +49,6 @@ MaskEditorActions::MaskEditorActions()
save_plot->setToolTip("Save Plot");
}
void MaskEditorActions::setModels(MaskeditorListmodel* mask_list_model)
{
ASSERT(mask_list_model);
m_mask_list_model = mask_list_model;
}
QList<QAction*> MaskEditorActions::providedActions()
{
return {reset_view, toggle_panel};
......
......@@ -19,8 +19,6 @@
#include <QList>
#include <QObject>
class MaskeditorListmodel;
//! Defines actions for MaskEditor which are related to selected MaskItem (toggle mask value,
//! lower/rize mask in the stack, delete mask). If more than one MaskItem is selected,
//! action will be applied to the whole selection, if possible.
......@@ -40,11 +38,6 @@ public:
QAction* reset_view;
QAction* save_plot;
QAction* toggle_panel;
void setModels(MaskeditorListmodel* mask_list_model);
private:
MaskeditorListmodel* m_mask_list_model;
};
#endif // BORNAGAIN_GUI_VIEW_SETUP_MASKEDITORACTIONS_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment