Creating the FitsTools Panel and Histogram Fixes
ClosedPublic

Authored by lancaster on Nov 25 2018, 7:16 AM.

Details

Summary

Creating the FitsTools Panel on the left side of the FITSViewer to contain the Histogram, the FITSHeader, and the Statistics.
In the future, this will be a good location for parameters for liveStacking and possibly a recent tab too.
Also fixed some bugs in the Histogram and made the histogram more responsive.

Diff Detail

Repository
R321 KStars
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
lancaster created this revision.Nov 25 2018, 7:16 AM
Restricted Application added a project: KDE Edu. · View Herald TranscriptNov 25 2018, 7:16 AM
Restricted Application added a subscriber: kde-edu. · View Herald Transcript
lancaster requested review of this revision.Nov 25 2018, 7:16 AM
yurchor added inline comments.
kstars/fitsviewer/fitstab.cpp
100

Can it be

fitsTools->addItem(statWidget, i18n("Statistics"));

to enable translations?

102

Same here.

106

Same here.

lancaster updated this revision to Diff 46178.Nov 25 2018, 7:54 AM

Fixing Translations issues

Updating D17147: Creating the FitsTools Panel on the left side of the FITSViewer to contain

the Histogram, the FITSHeader, and the Statistics.
In the future, this will be a good location for parameters for
liveStacking and possibly a recent tab too.
Also...

lancaster marked 3 inline comments as done.Nov 25 2018, 7:56 AM

Fixed

mutlaqja commandeered this revision.Nov 25 2018, 3:15 PM
mutlaqja added a reviewer: lancaster.
lancaster commandeered this revision.Nov 25 2018, 5:46 PM
lancaster edited reviewers, added: mutlaqja; removed: lancaster.

Taking it back since Jasem accidentally did this :-)

lancaster retitled this revision from Creating the FitsTools Panel on the left side of the FITSViewer to contain the Histogram, the FITSHeader, and the Statistics. In the future, this will be a good location for parameters for liveStacking and possibly a recent tab too. Also... to Creating the FitsTools Panel and Histogram Fixes.Nov 25 2018, 5:47 PM
lancaster edited the summary of this revision. (Show Details)
lancaster edited the summary of this revision. (Show Details)

I'm still new to Phabricator so am having some troubles still. Sorry about the issues.

Looks great! Btw, on a slightly different topic, what does the histogram looks "weird"? is it because it's linear and we're used to see non-linear histograms? Any change of black vs white controls to manage contrast within the histogram itself? like a simple control to drag?

mutlaqja requested changes to this revision.Nov 26 2018, 8:16 PM
mutlaqja added inline comments.
kstars/fitsviewer/fitstab.h
91

Let us try to avoid raw pointers in new code. use QPointer<QDialog> ..etc

This revision now requires changes to proceed.Nov 26 2018, 8:16 PM
lancaster updated this revision to Diff 46289.Nov 26 2018, 8:55 PM

Fixing issue with QSharedPointer

lancaster marked an inline comment as done.Nov 26 2018, 8:56 PM

Fixing QPointer

mutlaqja accepted this revision.Nov 26 2018, 8:59 PM
This revision is now accepted and ready to land.Nov 26 2018, 8:59 PM
This revision was automatically updated to reflect the committed changes.