Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TAS-Paths
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Scientific Software
Takin
TAS-Paths
Commits
dd936372
Verified
Commit
dd936372
authored
3 years ago
by
Tobias WEBER
Browse files
Options
Downloads
Patches
Plain Diff
added some tooltips
parent
771e0629
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/gui/dock/CoordProperties.cpp
+8
-6
8 additions, 6 deletions
src/gui/dock/CoordProperties.cpp
src/gui/dock/PathProperties.cpp
+3
-0
3 additions, 0 deletions
src/gui/dock/PathProperties.cpp
src/gui/dock/TASProperties.cpp
+4
-0
4 additions, 0 deletions
src/gui/dock/TASProperties.cpp
with
15 additions
and
6 deletions
src/gui/dock/CoordProperties.cpp
+
8
−
6
View file @
dd936372
...
@@ -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):"
};
};
...
...
This diff is collapsed.
Click to expand it.
src/gui/dock/PathProperties.cpp
+
3
−
0
View file @
dd936372
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
src/gui/dock/TASProperties.cpp
+
4
−
0
View file @
dd936372
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment