Skip to content
Snippets Groups Projects
Verified Commit dd936372 authored by Tobias WEBER's avatar Tobias WEBER
Browse files

added some tooltips

parent 771e0629
No related branches found
No related tags found
No related merge requests found
...@@ -75,14 +75,16 @@ CoordPropertiesWidget::CoordPropertiesWidget(QWidget *parent) ...@@ -75,14 +75,16 @@ CoordPropertiesWidget::CoordPropertiesWidget(QWidget *parent)
m_checkKfFixed->setChecked(true); m_checkKfFixed->setChecked(true);
QPushButton *btnGoto = new QPushButton("Jump to Coordinates", this); QPushButton *btnGoto = new QPushButton("Jump to Coordinates", this);
QPushButton *btnTarget = new QPushButton("Set Target Angles", this); QPushButton *btnTarget = new QPushButton("Set Coordinates as Target Angles", this);
btnGoto->setToolTip("Set the current instrument position to the given crystal coordinates.");
btnTarget->setToolTip("Set the given crystal coordinates as the target position for pathfinding.");
const char* labels[] = { const char* labels[] = {
"Momentum (h):", "Momentum (h):",
"Momentum (k):", "Momentum (k):",
"Momentum (l):", "Momentum (l):",
"Initial k (ki):", "Initial k (ki):",
"Final k (kf):", "Final k (kf):",
"Energy (E):" "Energy (E):"
}; };
......
...@@ -68,6 +68,9 @@ PathPropertiesWidget::PathPropertiesWidget(QWidget *parent) ...@@ -68,6 +68,9 @@ PathPropertiesWidget::PathPropertiesWidget(QWidget *parent)
QPushButton *btnGotoFinish = new QPushButton("Jump to Target Angles", this); QPushButton *btnGotoFinish = new QPushButton("Jump to Target Angles", this);
m_btnCalcMesh = new QPushButton(CALC_MESH_TITLE, this); m_btnCalcMesh = new QPushButton(CALC_MESH_TITLE, this);
m_btnCalcPath = new QPushButton(CALC_PATH_TITLE, this); m_btnCalcPath = new QPushButton(CALC_PATH_TITLE, this);
btnGotoFinish->setToolTip("Set the current instrument position to the given target angles.");
m_btnCalcMesh->setToolTip("Calculate the mesh of possible paths used for pathfinding.");
m_btnCalcPath->setToolTip("Calculate the actual path from the current to the target instrument position.");
//m_btnCalcMesh->setShortcut(Qt::ALT | Qt::Key_M); //m_btnCalcMesh->setShortcut(Qt::ALT | Qt::Key_M);
//m_btnCalcPath->setShortcut(Qt::ALT | Qt::Key_P); //m_btnCalcPath->setShortcut(Qt::ALT | Qt::Key_P);
m_sliderPath = new QSlider(Qt::Horizontal, this); m_sliderPath = new QSlider(Qt::Horizontal, this);
......
...@@ -51,6 +51,7 @@ TASPropertiesWidget::TASPropertiesWidget(QWidget *parent) ...@@ -51,6 +51,7 @@ TASPropertiesWidget::TASPropertiesWidget(QWidget *parent)
m_spinAnaD = new QDoubleSpinBox(this); m_spinAnaD = new QDoubleSpinBox(this);
QPushButton *btnTarget = new QPushButton("Set Current Angles as Target", this); QPushButton *btnTarget = new QPushButton("Set Current Angles as Target", this);
btnTarget->setToolTip("Set the current instrument position as the target position for pathfinding.");
m_checkScatteringSense[0] = new QCheckBox(this); m_checkScatteringSense[0] = new QCheckBox(this);
m_checkScatteringSense[1] = new QCheckBox(this); m_checkScatteringSense[1] = new QCheckBox(this);
...@@ -59,6 +60,9 @@ TASPropertiesWidget::TASPropertiesWidget(QWidget *parent) ...@@ -59,6 +60,9 @@ TASPropertiesWidget::TASPropertiesWidget(QWidget *parent)
m_checkScatteringSense[0]->setText("Monochromator ccw"); m_checkScatteringSense[0]->setText("Monochromator ccw");
m_checkScatteringSense[1]->setText("Sample ccw"); m_checkScatteringSense[1]->setText("Sample ccw");
m_checkScatteringSense[2]->setText("Analyser ccw"); m_checkScatteringSense[2]->setText("Analyser ccw");
m_checkScatteringSense[0]->setToolTip("Move the monochromator scattering angle in the counterclockwise direction.");
m_checkScatteringSense[1]->setToolTip("Move the sample scattering angle in the counterclockwise direction.");
m_checkScatteringSense[2]->setToolTip("Move the analyser scattering angle in the counterclockwise direction.");
m_checkScatteringSense[0]->setChecked(true); m_checkScatteringSense[0]->setChecked(true);
m_checkScatteringSense[1]->setChecked(false); m_checkScatteringSense[1]->setChecked(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment