summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-09-30 10:19:51 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-09-30 10:19:51 (GMT)
commitb291c293dd126aa91aeb032f4c95b0353e46adb6 (patch)
tree8c96d7f6ce21480120ba08258ab29f13550d480a
parentf06e813f22a5722cb40e1164d4e5838b18df89f6 (diff)
Refactor changes
-rw-r--r--kstars/ekos/auxiliary/darklibrary.cpp2
-rw-r--r--kstars/ekos/focus/focus.cpp12
2 files changed, 7 insertions, 7 deletions
diff --git a/kstars/ekos/auxiliary/darklibrary.cpp b/kstars/ekos/auxiliary/darklibrary.cpp
index b068cdb..6aa938e 100644
--- a/kstars/ekos/auxiliary/darklibrary.cpp
+++ b/kstars/ekos/auxiliary/darklibrary.cpp
@@ -256,7 +256,7 @@ void DarkLibrary::newFITS(IBLOB *bp)
disconnect(subtractParams.targetChip->getCCD(), SIGNAL(BLOBUpdated(IBLOB*)), this, SLOT(newFITS(IBLOB*)));
- FITSView *calibrationView = subtractParams.targetChip->getImage(FITS_CALIBRATE);
+ FITSView *calibrationView = subtractParams.targetChip->getImageView(FITS_CALIBRATE);
emit newLog(i18n("Dark frame received."));
diff --git a/kstars/ekos/focus/focus.cpp b/kstars/ekos/focus/focus.cpp
index 5086c4a..69b63a2 100644
--- a/kstars/ekos/focus/focus.cpp
+++ b/kstars/ekos/focus/focus.cpp
@@ -273,7 +273,7 @@ void Focus::resetFrame()
starCenter = QVector3D();
subFramed = false;
- FITSView *targetImage = targetChip->getImage(FITS_FOCUS);
+ FITSView *targetImage = targetChip->getImageView(FITS_FOCUS);
if (targetImage)
targetImage->setTrackingBox(QRect());
}
@@ -758,7 +758,7 @@ void Focus::abort()
//resetFrame();
- FITSView *targetImage = targetChip->getImage(FITS_FOCUS);
+ FITSView *targetImage = targetChip->getImageView(FITS_FOCUS);
if (targetImage)
targetImage->updateMode(FITS_FOCUS);
@@ -953,7 +953,7 @@ void Focus::newFITS(IBLOB *bp)
if (darkFrameCheck->isChecked())
{
- FITSView *currentImage = targetChip->getImage(FITS_FOCUS);
+ FITSView *currentImage = targetChip->getImageView(FITS_FOCUS);
FITSData *darkData = NULL;
QVariantMap settings = frameSettings[targetChip];
uint16_t offsetX = settings["x"].toInt() / settings["binx"].toInt();
@@ -985,7 +985,7 @@ void Focus::setCaptureComplete()
// JM 2016-09-28: Disable setting back to FITS_NORMAL as it might be causing issues. Each module should set capture module separately.
//targetChip->setCaptureMode(FITS_NORMAL);
- FITSView *targetImage = targetChip->getImage(FITS_FOCUS);
+ FITSView *targetImage = targetChip->getImageView(FITS_FOCUS);
if (targetImage == NULL)
{
@@ -2056,7 +2056,7 @@ void Focus::updateBoxSize(int value)
if (targetChip == NULL)
return;
- FITSView *targetImage = targetChip->getImage(FITS_FOCUS);
+ FITSView *targetImage = targetChip->getImageView(FITS_FOCUS);
if (targetImage == NULL)
return;
@@ -2088,7 +2088,7 @@ void Focus::focusStarSelected(int x, int y)
int offset = focusBoxSize->value()/subBinX;
- FITSView *targetImage = targetChip->getImage(FITS_FOCUS);
+ FITSView *targetImage = targetChip->getImageView(FITS_FOCUS);
//targetImage->updateMode(FITS_FOCUS);