Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
11351324
Commit
11351324
authored
9 years ago
by
Matthew D Jones
Browse files
Options
Downloads
Patches
Plain Diff
Re #11422 Enable "n=" GUI element when power scale type selected
parent
f2312c5e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Mantid/MantidPlot/src/ScaleDetails.cpp
+19
-0
19 additions, 0 deletions
Code/Mantid/MantidPlot/src/ScaleDetails.cpp
Code/Mantid/MantidPlot/src/ScaleDetails.h
+1
-0
1 addition, 0 deletions
Code/Mantid/MantidPlot/src/ScaleDetails.h
with
20 additions
and
0 deletions
Code/Mantid/MantidPlot/src/ScaleDetails.cpp
+
19
−
0
View file @
11351324
...
...
@@ -403,6 +403,7 @@ void ScaleDetails::initWidgets()
m_spnMajorValue
->
setValue
(
lst
.
count
());
checkstep
();
checkscaletype
();
connect
(
m_grpAxesBreaks
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
setModified
()));
connect
(
m_chkInvert
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
setModified
()));
...
...
@@ -415,8 +416,10 @@ void ScaleDetails::initWidgets()
connect
(
m_cmbMinorValue
,
SIGNAL
(
currentIndexChanged
(
int
)),
this
,
SLOT
(
setModified
()));
connect
(
m_cmbUnit
,
SIGNAL
(
currentIndexChanged
(
int
)),
this
,
SLOT
(
setModified
()));
connect
(
m_cmbScaleType
,
SIGNAL
(
currentIndexChanged
(
int
)),
this
,
SLOT
(
setModified
()));
connect
(
m_cmbScaleType
,
SIGNAL
(
currentIndexChanged
(
int
)),
this
,
SLOT
(
checkscaletype
()));
connect
(
m_dspnEnd
,
SIGNAL
(
valueChanged
(
double
)),
this
,
SLOT
(
setModified
()));
connect
(
m_dspnStart
,
SIGNAL
(
valueChanged
(
double
)),
this
,
SLOT
(
setModified
()));
connect
(
m_dspnN
,
SIGNAL
(
valueChanged
(
double
)),
this
,
SLOT
(
setModified
()));
connect
(
m_dspnStep
,
SIGNAL
(
valueChanged
(
double
)),
this
,
SLOT
(
setModified
()));
connect
(
m_dspnBreakStart
,
SIGNAL
(
valueChanged
(
double
)),
this
,
SLOT
(
setModified
()));
connect
(
m_dspnStepBeforeBreak
,
SIGNAL
(
valueChanged
(
double
)),
this
,
SLOT
(
setModified
()));
...
...
@@ -632,6 +635,22 @@ void ScaleDetails::checkstep()
}
}
/*
* Enable the "n =" widget if X^n scale type is selected
*/
void
ScaleDetails
::
checkscaletype
()
{
// If "power X^n" scale option is selected
if
(
m_cmbScaleType
->
currentIndex
()
==
2
)
{
m_dspnN
->
setEnabled
(
true
);
}
else
{
m_dspnN
->
setEnabled
(
false
);
}
}
/**
* Recalculates the minimum value allowed in step to stop too many labels being rendered
*/
...
...
This diff is collapsed.
Click to expand it.
Code/Mantid/MantidPlot/src/ScaleDetails.h
+
1
−
0
View file @
11351324
...
...
@@ -67,6 +67,7 @@ private slots:
void
radiosSwitched
();
void
setModified
();
void
recalcStepMin
();
void
checkscaletype
();
private
:
bool
m_modified
,
m_initialised
;
...
...
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