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

rm unused util fcts

parent 8ff4ff1f
No related branches found
No related tags found
1 merge request!2003In GUI, remove option to switch beteen nm and angstrom, degrees and radians.
...@@ -119,22 +119,6 @@ void LayerEditorUtil::addMultiPropertyToGrid(QGridLayout* m_gridLayout, int firs ...@@ -119,22 +119,6 @@ void LayerEditorUtil::addMultiPropertyToGrid(QGridLayout* m_gridLayout, int firs
addSpacer); addSpacer);
} }
void LayerEditorUtil::addVectorToGrid(QGridLayout* m_gridLayout, int firstCol, VectorProperty& v,
SampleEditorController* ec, bool vertically, bool addSpacer)
{
addMultiPropertyToGrid(m_gridLayout, firstCol, {&v.x(), &v.y(), &v.z()}, ec, vertically,
addSpacer);
}
void LayerEditorUtil::addVectorToGrid(QGridLayout* m_gridLayout, int firstCol, VectorProperty& v,
function<void(double, DoubleProperty&)> setNewValue,
bool vertically, bool addSpacer)
{
addMultiPropertyToGrid(m_gridLayout, firstCol, {&v.x(), &v.y(), &v.z()}, setNewValue,
vertically, addSpacer);
}
void LayerEditorUtil::addMagnetizationNoZToGrid( void LayerEditorUtil::addMagnetizationNoZToGrid(
QGridLayout* m_gridLayout, int firstCol, VectorProperty& v, QGridLayout* m_gridLayout, int firstCol, VectorProperty& v,
std::function<void(double, DoubleProperty&)> setNewValue, bool vertically, bool addSpacer) std::function<void(double, DoubleProperty&)> setNewValue, bool vertically, bool addSpacer)
......
...@@ -55,15 +55,6 @@ void addMultiPropertyToGrid(QGridLayout* m_gridLayout, int firstCol, ...@@ -55,15 +55,6 @@ void addMultiPropertyToGrid(QGridLayout* m_gridLayout, int firstCol,
const DoubleProperties& valueProperties, SampleEditorController* ec, const DoubleProperties& valueProperties, SampleEditorController* ec,
bool addSpacer); bool addSpacer);
//! Create DoubleSpinBoxes for the DoubleProperties and connect them to
//! SampleEditorController::setDouble()
void addVectorToGrid(QGridLayout* m_gridLayout, int firstCol, VectorProperty& v,
SampleEditorController* ec, bool vertically, bool addSpacer);
//! Create DoubleSpinBoxes for the DoubleProperties and connect them to the given setNewValue()
void addVectorToGrid(QGridLayout* m_gridLayout, int firstCol, VectorProperty& v,
std::function<void(double, DoubleProperty&)> setNewValue, bool vertically,
bool addSpacer);
void addMagnetizationNoZToGrid(QGridLayout* m_gridLayout, int firstCol, VectorProperty& v, void addMagnetizationNoZToGrid(QGridLayout* m_gridLayout, int firstCol, VectorProperty& v,
std::function<void(double, DoubleProperty&)> setNewValue, std::function<void(double, DoubleProperty&)> setNewValue,
bool vertically, bool addSpacer); bool vertically, bool addSpacer);
......
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