Adding a recent images tab to the FITSTools Panel and Histogram Improvements, and Fixing an issue with StarProfileViewer
ClosedPublic

Authored by lancaster on Nov 29 2018, 7:04 AM.

Details

Reviewers
mutlaqja
Summary

Adding Recent Images Tab and making it function.
Removing the Intensity and Frequency from the Histogram
Putting Intensity and Frequency in Tooltips
Making the histogram and sliders work for decimal (double or float) images.
Making the statistics load after the image is fully loaded.
Fixing the Star Profile Viewer issue a different way and fixing a bug
And getting rid of a few warnings

Diff Detail

Repository
R321 KStars
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 5647
Build 5665: arc lint + arc unit
lancaster created this revision.Nov 29 2018, 7:04 AM
Restricted Application added a project: KDE Edu. · View Herald TranscriptNov 29 2018, 7:04 AM
Restricted Application added a subscriber: kde-edu. · View Herald Transcript
lancaster requested review of this revision.Nov 29 2018, 7:04 AM
lancaster updated this revision to Diff 46462.Nov 29 2018, 12:34 PM

Fixing a build error in FitsView

lancaster updated this revision to Diff 46521.Nov 30 2018, 3:31 AM

Making Histogram panel work better for decimals.
Removing Intensity and Frequency report and putting them in tooltips.
Improving the layout of the Histogram panel.

lancaster updated this revision to Diff 46525.Nov 30 2018, 4:23 AM

Making precision uniform in the Histogram

lancaster retitled this revision from Adding a recent images tab to the FITSTools Panel to Adding a recent images tab to the FITSTools Panel and Histogram Improvements.Nov 30 2018, 4:25 AM
lancaster edited the summary of this revision. (Show Details)
lancaster edited the summary of this revision. (Show Details)
lancaster updated this revision to Diff 46527.Nov 30 2018, 4:56 AM

Expanding histogram range just slightly to include saturation spikes

lancaster updated this revision to Diff 46582.Nov 30 2018, 6:50 PM

Adding a Hide Saturation Spike feature to the histogram
Also preventing moving the max/min cut sliders further out since
this does not make sense unless we can undo the cut.

mutlaqja requested changes to this revision.Dec 1 2018, 11:19 AM

Temporary preview images should not be displayed in recent images.

This revision now requires changes to proceed.Dec 1 2018, 11:19 AM
lancaster updated this revision to Diff 46638.Dec 1 2018, 7:27 PM

Fixing Preview issue

lancaster updated this revision to Diff 46668.Dec 2 2018, 7:30 AM

Fixing a another bug in StarProfileWidget display and a better solution for the previous issue

lancaster edited the summary of this revision. (Show Details)Dec 2 2018, 7:30 AM
lancaster edited the summary of this revision. (Show Details)
lancaster updated this revision to Diff 46669.Dec 2 2018, 7:37 AM

Forgot an if statement

yurchor added a subscriber: yurchor.Dec 2 2018, 7:39 AM
yurchor added inline comments.
kstars/fitsviewer/fitstab.cpp
129

i18n("Clear") ?

kstars/fitsviewer/fitsviewer.cpp
374

Can it be written in a new style connection syntax as above?

543

i18n("View 3D Graph") ?

lancaster updated this revision to Diff 46670.Dec 2 2018, 8:09 AM

Fixing Translation concerns

lancaster marked 3 inline comments as done.Dec 2 2018, 8:10 AM
mutlaqja added inline comments.Dec 2 2018, 10:12 AM
kstars/fitsviewer/fitshistogram.cpp
62–72

Please use the new Style for connecting Signal/Slots.

lancaster updated this revision to Diff 46720.Dec 2 2018, 3:58 PM

Updating Signal-Slot to new structure

lancaster marked an inline comment as done.Dec 2 2018, 3:58 PM
lancaster updated this revision to Diff 46723.Dec 2 2018, 4:20 PM

Fixing another one

lancaster added inline comments.Dec 2 2018, 4:23 PM
kstars/fitsviewer/fitshistogram.cpp
62–72

I can't change the others because they don't seem to work in the new style

lancaster marked an inline comment as done.Dec 2 2018, 4:23 PM
yurchor added inline comments.Dec 2 2018, 4:30 PM
kstars/fitsviewer/fitshistogram.cpp
62–72

I guess QOverload<int>::of() or QOverload<double>::of() for the second argument is needed for the new connection to work.

According to QT, it looks like trying to make the others work in the new style would require a syntax like this:

...because QSpinBox has two signals named valueChanged() with different arguments. Instead, the new code needs to be:
connect( mySpinBox, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), mySlider, &QSlider::setValue );

They say "The best thing is probably to recommend not to overload signals or slots …"

But you see, I didn't write the overloaded signals for these classes, QT did.

Do we really want that sort of syntax in the code?

Jasem said we can't use QOverload because it doesn't exist in QT 5.6

Jasem said we can't use QOverload because it doesn't exist in QT 5.6

Ok. That was just a proposal. You're behind the wheel. :)

lancaster updated this revision to Diff 46725.Dec 2 2018, 5:18 PM

Fixing a crash

lancaster retitled this revision from Adding a recent images tab to the FITSTools Panel and Histogram Improvements to Adding a recent images tab to the FITSTools Panel and Histogram Improvements, and Fixing an issue with StarProfileViewer.Dec 2 2018, 5:28 PM
mutlaqja accepted this revision.Dec 2 2018, 5:49 PM
This revision is now accepted and ready to land.Dec 2 2018, 5:49 PM
lancaster updated this revision to Diff 46730.Dec 2 2018, 6:06 PM

Too many graphs were on the histogram due to blue and green getting created without being deleted

lancaster marked an inline comment as done.Dec 2 2018, 6:16 PM
mutlaqja closed this revision.Dec 4 2018, 7:11 AM