Skip to content
Snippets Groups Projects
Commit 9a9101a2 authored by Yurov, Dmitry's avatar Yurov, Dmitry
Browse files

Button for data rotation

Redmine: #1618

Not functional for now
parent e0a7b76d
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,12 @@ MaskEditorActions::MaskEditorActions(QWidget *parent)
m_togglePanelAction->setIcon(QIcon(":/images/toolbar16light_propertypanel.svg"));
m_togglePanelAction->setToolTip("Toggle Property Panel");
connect(m_togglePanelAction, SIGNAL(triggered()), this, SIGNAL(propertyPanelRequest()));
m_rotateDataAction = new QAction(this);
m_rotateDataAction->setText("Rotate");
m_rotateDataAction->setIcon(QIcon(":/images/toolbar16light_rotate.svg"));
m_rotateDataAction->setToolTip("Rotate intensity data by 90 deg counterclockwise");
connect(m_rotateDataAction, SIGNAL(triggered()), this, SIGNAL(rotateDataRequest()));
}
void MaskEditorActions::setModel(SessionModel *maskModel, const QModelIndex &rootIndex)
......@@ -90,7 +96,7 @@ QAction *MaskEditorActions::bringToFrontAction()
QList<QAction *> MaskEditorActions::topToolBarActions()
{
return QList<QAction*>() << m_resetViewAction << m_savePlotAction << m_togglePanelAction;
return QList<QAction*>() << m_resetViewAction << m_savePlotAction << m_togglePanelAction << m_rotateDataAction;
}
//! Constructs MaskItem context menu following the request from MaskGraphicsScene
......
......@@ -51,6 +51,7 @@ signals:
void resetViewRequest();
void propertyPanelRequest();
void savePlotRequest();
void rotateDataRequest();
public slots:
void onItemContextMenuRequest(const QPoint& point);
......@@ -76,6 +77,7 @@ private:
QAction* m_resetViewAction;
QAction* m_savePlotAction;
QAction* m_togglePanelAction;
QAction* m_rotateDataAction;
SessionModel* m_maskModel;
QModelIndex m_rootIndex; //! Index in the model corresponding to IntensityDataItem
......
......@@ -40,6 +40,7 @@
<file>images/main_sampleview.svg</file>
<file>images/main_simulationview.svg</file>
<file>images/main_welcomeview.svg</file>
<file>images/toolbar16light_rotate.svg</file>
<file>images/toolbar16light_refresh.svg</file>
<file>images/toolbar16light_save.svg</file>
<file>images/toolbar16light_projections.svg</file>
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment