Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/align/align.cpp
Context not available. | |||||
40 | #include <KConfigDialog> | 40 | #include <KConfigDialog> | ||
---|---|---|---|---|---|
41 | #include <KNotifications/KNotification> | 41 | #include <KNotifications/KNotification> | ||
42 | 42 | | |||
43 | #include <memory> | ||||
44 | | ||||
43 | #define PAH_CUTOFF_FOV 30 // Minimum FOV width in arcminutes for PAH to work | 45 | #define PAH_CUTOFF_FOV 30 // Minimum FOV width in arcminutes for PAH to work | ||
44 | #define MAXIMUM_SOLVER_ITERATIONS 10 | 46 | #define MAXIMUM_SOLVER_ITERATIONS 10 | ||
45 | 47 | | |||
Context not available. | |||||
2819 | // CONTINUE HERE | 2821 | // CONTINUE HERE | ||
2820 | 2822 | | |||
2821 | //This block of code along with some sections in the switch below will set the status report in the solution table for this item. | 2823 | //This block of code along with some sections in the switch below will set the status report in the solution table for this item. | ||
2822 | QTableWidgetItem *statusReport = new QTableWidgetItem(); | 2824 | std::unique_ptr<QTableWidgetItem> statusReport(new QTableWidgetItem()); | ||
2825 | | ||||
2823 | if (loadSlewState == IPS_IDLE) | 2826 | if (loadSlewState == IPS_IDLE) | ||
2824 | { | 2827 | { | ||
2825 | solutionTable->setCellWidget(currentRow, 3, new QWidget()); | 2828 | solutionTable->setCellWidget(currentRow, 3, new QWidget()); | ||
Context not available. | |||||
2835 | if (loadSlewState == IPS_IDLE) | 2838 | if (loadSlewState == IPS_IDLE) | ||
2836 | { | 2839 | { | ||
2837 | statusReport->setIcon(QIcon(":/icons/AlignSuccess.svg")); | 2840 | statusReport->setIcon(QIcon(":/icons/AlignSuccess.svg")); | ||
2838 | solutionTable->setItem(currentRow, 3, statusReport); | 2841 | solutionTable->setItem(currentRow, 3, statusReport.release()); | ||
2839 | } | 2842 | } | ||
2840 | 2843 | | |||
2841 | return; | 2844 | return; | ||
Context not available. | |||||
2851 | if (loadSlewState == IPS_IDLE) | 2854 | if (loadSlewState == IPS_IDLE) | ||
2852 | { | 2855 | { | ||
2853 | statusReport->setIcon(QIcon(":/icons/AlignFailure.svg")); | 2856 | statusReport->setIcon(QIcon(":/icons/AlignFailure.svg")); | ||
2854 | solutionTable->setItem(currentRow, 3, statusReport); | 2857 | solutionTable->setItem(currentRow, 3, statusReport.release()); | ||
2855 | } | 2858 | } | ||
2856 | 2859 | | |||
2857 | solverFailed(); | 2860 | solverFailed(); | ||
Context not available. | |||||
2865 | if (loadSlewState == IPS_IDLE) | 2868 | if (loadSlewState == IPS_IDLE) | ||
2866 | { | 2869 | { | ||
2867 | statusReport->setIcon(QIcon(":/icons/AlignWarning.svg")); | 2870 | statusReport->setIcon(QIcon(":/icons/AlignWarning.svg")); | ||
2868 | solutionTable->setItem(currentRow, 3, statusReport); | 2871 | solutionTable->setItem(currentRow, 3, statusReport.release()); | ||
2869 | } | 2872 | } | ||
2870 | 2873 | | |||
2871 | executeGOTO(); | 2874 | executeGOTO(); | ||
Context not available. | |||||
2875 | if (loadSlewState == IPS_IDLE) | 2878 | if (loadSlewState == IPS_IDLE) | ||
2876 | { | 2879 | { | ||
2877 | statusReport->setIcon(QIcon(":/icons/AlignSuccess.svg")); | 2880 | statusReport->setIcon(QIcon(":/icons/AlignSuccess.svg")); | ||
2878 | solutionTable->setItem(currentRow, 3, statusReport); | 2881 | solutionTable->setItem(currentRow, 3, statusReport.release()); | ||
2879 | } | 2882 | } | ||
2880 | 2883 | | |||
2881 | appendLogText(i18n("Target is within acceptable range. Astrometric solver is successful.")); | 2884 | appendLogText(i18n("Target is within acceptable range. Astrometric solver is successful.")); | ||
Context not available. | |||||
2891 | if (loadSlewState == IPS_IDLE) | 2894 | if (loadSlewState == IPS_IDLE) | ||
2892 | { | 2895 | { | ||
2893 | statusReport->setIcon(QIcon(":/icons/AlignSuccess.svg")); | 2896 | statusReport->setIcon(QIcon(":/icons/AlignSuccess.svg")); | ||
2894 | solutionTable->setItem(currentRow, 3, statusReport); | 2897 | solutionTable->setItem(currentRow, 3, statusReport.release()); | ||
2895 | } | 2898 | } | ||
2896 | if (mountModelRunning) | 2899 | if (mountModelRunning) | ||
2897 | { | 2900 | { | ||
Context not available. |