Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/capture/capture.h
Show First 20 Lines • Show All 350 Lines • ▼ Show 20 Line(s) | 94 | public: | |||
---|---|---|---|---|---|
351 | * @param model Camera name | 351 | * @param model Camera name | ||
352 | * @param maxW Maximum width in pixels | 352 | * @param maxW Maximum width in pixels | ||
353 | * @param maxH Maximum height in pixels | 353 | * @param maxH Maximum height in pixels | ||
354 | * @param pixelW Pixel horizontal size in microns | 354 | * @param pixelW Pixel horizontal size in microns | ||
355 | * @param pixelH Pizel vertical size in microns | 355 | * @param pixelH Pizel vertical size in microns | ||
356 | */ | 356 | */ | ||
357 | void addDSLRInfo(const QString &model, uint32_t maxW, uint32_t maxH, double pixelW, double pixelH); | 357 | void addDSLRInfo(const QString &model, uint32_t maxW, uint32_t maxH, double pixelW, double pixelH); | ||
358 | 358 | | |||
359 | double getEstimatedDownloadTime(); | ||||
360 | | ||||
359 | public slots: | 361 | public slots: | ||
360 | 362 | | |||
361 | /** \addtogroup CaptureDBusInterface | 363 | /** \addtogroup CaptureDBusInterface | ||
362 | * @{ | 364 | * @{ | ||
363 | */ | 365 | */ | ||
364 | 366 | | |||
365 | /* Capture */ | 367 | /* Capture */ | ||
366 | /** DBUS interface function. | 368 | /** DBUS interface function. | ||
▲ Show 20 Lines • Show All 329 Lines • ▼ Show 20 Line(s) | 619 | private slots: | |||
696 | 698 | | |||
697 | /** | 699 | /** | ||
698 | * @brief registerNewModule Register an Ekos module as it arrives via DBus | 700 | * @brief registerNewModule Register an Ekos module as it arrives via DBus | ||
699 | * and create the appropriate DBus interface to communicate with it. | 701 | * and create the appropriate DBus interface to communicate with it. | ||
700 | * @param name of module | 702 | * @param name of module | ||
701 | */ | 703 | */ | ||
702 | void registerNewModule(const QString &name); | 704 | void registerNewModule(const QString &name); | ||
703 | 705 | | |||
706 | void setDownloadProgress(); | ||||
707 | | ||||
704 | signals: | 708 | signals: | ||
705 | Q_SCRIPTABLE void newLog(const QString &text); | 709 | Q_SCRIPTABLE void newLog(const QString &text); | ||
706 | Q_SCRIPTABLE void meridianFlipStarted(); | 710 | Q_SCRIPTABLE void meridianFlipStarted(); | ||
707 | Q_SCRIPTABLE void meridianFlipCompleted(); | 711 | Q_SCRIPTABLE void meridianFlipCompleted(); | ||
708 | Q_SCRIPTABLE void newStatus(Ekos::CaptureState status); | 712 | Q_SCRIPTABLE void newStatus(Ekos::CaptureState status); | ||
709 | Q_SCRIPTABLE void newSequenceImage(const QString &filename, const QString &previewFITS); | 713 | Q_SCRIPTABLE void newSequenceImage(const QString &filename, const QString &previewFITS); | ||
710 | 714 | | |||
711 | void ready(); | 715 | void ready(); | ||
712 | 716 | | |||
713 | void checkFocus(double); | 717 | void checkFocus(double); | ||
714 | void resetFocus(); | 718 | void resetFocus(); | ||
715 | void suspendGuiding(); | 719 | void suspendGuiding(); | ||
716 | void resumeGuiding(); | 720 | void resumeGuiding(); | ||
717 | void newImage(Ekos::SequenceJob *job); | 721 | void newImage(Ekos::SequenceJob *job); | ||
718 | void newExposureProgress(Ekos::SequenceJob *job); | 722 | void newExposureProgress(Ekos::SequenceJob *job); | ||
723 | void newDownloadProgress(double); | ||||
719 | void sequenceChanged(const QJsonArray &sequence); | 724 | void sequenceChanged(const QJsonArray &sequence); | ||
720 | void settingsUpdated(const QJsonObject &settings); | 725 | void settingsUpdated(const QJsonObject &settings); | ||
721 | void newMeridianFlipStatus(Mount::MeridianFlipStatus status); | 726 | void newMeridianFlipStatus(Mount::MeridianFlipStatus status); | ||
722 | void newMeridianFlipSetup(bool activate, double hours); | 727 | void newMeridianFlipSetup(bool activate, double hours); | ||
723 | void dslrInfoRequested(const QString &cameraName); | 728 | void dslrInfoRequested(const QString &cameraName); | ||
724 | 729 | | |||
725 | private: | 730 | private: | ||
726 | void setBusy(bool enable); | 731 | void setBusy(bool enable); | ||
▲ Show 20 Lines • Show All 201 Lines • ▼ Show 20 Line(s) | |||||
928 | // Execute the meridian flip | 933 | // Execute the meridian flip | ||
929 | void setMeridianFlipStage(MFStage status); | 934 | void setMeridianFlipStage(MFStage status); | ||
930 | void processFlipCompleted(); | 935 | void processFlipCompleted(); | ||
931 | 936 | | |||
932 | // Controls | 937 | // Controls | ||
933 | QPointer<QComboBox> ISOCombo; | 938 | QPointer<QComboBox> ISOCombo; | ||
934 | QPointer<QDoubleSpinBox> GainSpin; | 939 | QPointer<QDoubleSpinBox> GainSpin; | ||
935 | double GainSpinSpecialValue; | 940 | double GainSpinSpecialValue; | ||
941 | | ||||
942 | QList<double> downloadTimes; | ||||
943 | QTime downloadTimer; | ||||
944 | QTimer downloadProgressTimer; | ||||
936 | }; | 945 | }; | ||
937 | } | 946 | } |