Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/manager.cpp
Show First 20 Lines • Show All 2037 Lines • ▼ Show 20 Line(s) | 2036 | { | |||
---|---|---|---|---|---|
2038 | { | 2038 | { | ||
2039 | if (previewFITS.isEmpty() == false) | 2039 | if (previewFITS.isEmpty() == false) | ||
2040 | summaryPreview->loadFITS(previewFITS); | 2040 | summaryPreview->loadFITS(previewFITS); | ||
2041 | } | 2041 | } | ||
2042 | else | 2042 | else | ||
2043 | summaryPreview->loadFITS(filename); | 2043 | summaryPreview->loadFITS(filename); | ||
2044 | } | 2044 | } | ||
2045 | }); | 2045 | }); | ||
2046 | connect(captureProcess.get(), &Ekos::Capture::newDownloadProgress, this, &Ekos::Manager::updateDownloadProgress); | ||||
2046 | connect(captureProcess.get(), &Ekos::Capture::newExposureProgress, this, &Ekos::Manager::updateExposureProgress); | 2047 | connect(captureProcess.get(), &Ekos::Capture::newExposureProgress, this, &Ekos::Manager::updateExposureProgress); | ||
2047 | captureGroup->setEnabled(true); | 2048 | captureGroup->setEnabled(true); | ||
2048 | sequenceProgress->setEnabled(true); | 2049 | sequenceProgress->setEnabled(true); | ||
2049 | captureProgress->setEnabled(true); | 2050 | captureProgress->setEnabled(true); | ||
2050 | imageProgress->setEnabled(true); | 2051 | imageProgress->setEnabled(true); | ||
2051 | 2052 | | |||
2052 | captureProcess->setFilterManager(filterManager); | 2053 | captureProcess->setFilterManager(filterManager); | ||
2053 | 2054 | | |||
▲ Show 20 Lines • Show All 751 Lines • ▼ Show 20 Line(s) | 2800 | { | |||
2805 | QString filename = job->property("filename").toString(); | 2806 | QString filename = job->property("filename").toString(); | ||
2806 | ekosLiveClient.get()->media()->sendPreviewImage(filename, uuid); | 2807 | ekosLiveClient.get()->media()->sendPreviewImage(filename, uuid); | ||
2807 | if (job->isPreview() == false) | 2808 | if (job->isPreview() == false) | ||
2808 | ekosLiveClient.get()->cloud()->sendPreviewImage(filename, uuid); | 2809 | ekosLiveClient.get()->cloud()->sendPreviewImage(filename, uuid); | ||
2809 | 2810 | | |||
2810 | } | 2811 | } | ||
2811 | } | 2812 | } | ||
2812 | 2813 | | |||
2814 | void Manager::updateDownloadProgress(double timeLeft) | ||||
2815 | { | ||||
2816 | imageCountDown.setHMS(0, 0, 0); | ||||
2817 | imageCountDown = imageCountDown.addSecs(timeLeft); | ||||
2818 | imageRemainingTime->setText(imageCountDown.toString("hh:mm:ss")); | ||||
2819 | } | ||||
2820 | | ||||
2813 | void Manager::updateExposureProgress(Ekos::SequenceJob * job) | 2821 | void Manager::updateExposureProgress(Ekos::SequenceJob * job) | ||
2814 | { | 2822 | { | ||
2815 | imageCountDown.setHMS(0, 0, 0); | 2823 | imageCountDown.setHMS(0, 0, 0); | ||
2816 | imageCountDown = imageCountDown.addSecs(job->getExposeLeft()); | 2824 | imageCountDown = imageCountDown.addSecs(job->getExposeLeft() + captureProcess->getEstimatedDownloadTime()); | ||
2817 | if (imageCountDown.hour() == 23) | 2825 | if (imageCountDown.hour() == 23) | ||
2818 | imageCountDown.setHMS(0, 0, 0); | 2826 | imageCountDown.setHMS(0, 0, 0); | ||
2819 | 2827 | | |||
2820 | imageProgress->setRange(0, job->getExposure()); | 2828 | imageProgress->setRange(0, job->getExposure()); | ||
2821 | imageProgress->setValue(job->getExposeLeft()); | 2829 | imageProgress->setValue(job->getExposeLeft()); | ||
2822 | 2830 | | |||
2823 | imageRemainingTime->setText(imageCountDown.toString("hh:mm:ss")); | 2831 | imageRemainingTime->setText(imageCountDown.toString("hh:mm:ss")); | ||
2824 | 2832 | | |||
▲ Show 20 Lines • Show All 538 Lines • Show Last 20 Lines |