summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-09-15 23:49:22 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-09-15 23:49:22 (GMT)
commit31a7b6d5c03c04faacdf687bb436d3254d07c4d1 (patch)
treed94d67c9332ff670d2b5a1e0d509e0b6092ef674
parent09ed43aa42b2dfd34330e1f1acc9caf089d4d392 (diff)
Disable all queue edit buttons while sequence is in progress
-rw-r--r--kstars/ekos/capture.cpp6
-rw-r--r--kstars/ekos/capture.ui33
2 files changed, 38 insertions, 1 deletions
diff --git a/kstars/ekos/capture.cpp b/kstars/ekos/capture.cpp
index 53bc826..387c1e7 100644
--- a/kstars/ekos/capture.cpp
+++ b/kstars/ekos/capture.cpp
@@ -377,6 +377,9 @@ void Capture::start()
startB->setToolTip(i18n("Stop Sequence"));
pauseB->setEnabled(true);
+ foreach (QAbstractButton *button, queueEditButtonGroup->buttons())
+ button->setEnabled(false);
+
prepareJob(first_job);
}
@@ -444,6 +447,9 @@ void Capture::stop(bool abort)
pauseB->setEnabled(false);
}
+ foreach (QAbstractButton *button, queueEditButtonGroup->buttons())
+ button->setEnabled(true);
+
seqTimer->stop();
}
diff --git a/kstars/ekos/capture.ui b/kstars/ekos/capture.ui
index 383b1c5..385aa4f 100644
--- a/kstars/ekos/capture.ui
+++ b/kstars/ekos/capture.ui
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>776</width>
- <height>438</height>
+ <height>449</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
@@ -735,6 +735,9 @@
<property name="text">
<string/>
</property>
+ <attribute name="buttonGroup">
+ <string notr="true">queueEditButtonGroup</string>
+ </attribute>
</widget>
</item>
<item>
@@ -757,6 +760,9 @@
<property name="text">
<string/>
</property>
+ <attribute name="buttonGroup">
+ <string notr="true">queueEditButtonGroup</string>
+ </attribute>
</widget>
</item>
<item>
@@ -779,6 +785,9 @@
<property name="text">
<string/>
</property>
+ <attribute name="buttonGroup">
+ <string notr="true">queueEditButtonGroup</string>
+ </attribute>
</widget>
</item>
<item>
@@ -801,6 +810,9 @@
<property name="text">
<string/>
</property>
+ <attribute name="buttonGroup">
+ <string notr="true">queueEditButtonGroup</string>
+ </attribute>
</widget>
</item>
<item>
@@ -826,6 +838,9 @@
<property name="text">
<string/>
</property>
+ <attribute name="buttonGroup">
+ <string notr="true">queueEditButtonGroup</string>
+ </attribute>
</widget>
</item>
<item>
@@ -858,6 +873,9 @@
<property name="text">
<string/>
</property>
+ <attribute name="buttonGroup">
+ <string notr="true">queueEditButtonGroup</string>
+ </attribute>
</widget>
</item>
<item>
@@ -880,6 +898,9 @@
<property name="text">
<string/>
</property>
+ <attribute name="buttonGroup">
+ <string notr="true">queueEditButtonGroup</string>
+ </attribute>
</widget>
</item>
<item>
@@ -902,6 +923,9 @@
<property name="text">
<string/>
</property>
+ <attribute name="buttonGroup">
+ <string notr="true">queueEditButtonGroup</string>
+ </attribute>
</widget>
</item>
</layout>
@@ -1459,4 +1483,11 @@
</widget>
<resources/>
<connections/>
+ <buttongroups>
+ <buttongroup name="queueEditButtonGroup">
+ <property name="exclusive">
+ <bool>false</bool>
+ </property>
+ </buttongroup>
+ </buttongroups>
</ui>