Commit b6c73700 authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

Reset buttons fixes

parent 3de1e6f8
......@@ -1994,7 +1994,6 @@ void Focus::startFraming()
void Focus::resetButtons()
{
if (inFocusLoop)
{
startFocusB->setEnabled(false);
......@@ -2002,8 +2001,6 @@ void Focus::resetButtons()
stopFocusB->setEnabled(true);
captureB->setEnabled(false);
focusOutB->setEnabled(true);
focusInB->setEnabled(true);
return;
}
......@@ -2017,34 +2014,23 @@ void Focus::resetButtons()
captureB->setEnabled(false);
focusOutB->setEnabled(false);
focusInB->setEnabled(false);
setAbsTicksB->setEnabled(false);
return;
}
if (focusType == FOCUS_AUTO && currentFocuser)
startFocusB->setEnabled(true);
else
startFocusB->setEnabled(false);
stopFocusB->setEnabled(false);
startLoopB->setEnabled(true);
/*if (focusType == FOCUS_MANUAL)
if (currentFocuser)
{
if (currentFocuser)
{
focusOutB->setEnabled(true);
focusInB->setEnabled(true);
}
focusOutB->setEnabled(true);
focusInB->setEnabled(true);
startFocusB->setEnabled(focusType == FOCUS_AUTO);
setAbsTicksB->setEnabled(canAbsMove || canRelMove);
startLoopB->setEnabled(true);
}
else
{
focusOutB->setEnabled(false);
focusInB->setEnabled(false);
}*/
stopFocusB->setEnabled(false);
startLoopB->setEnabled(true);
captureB->setEnabled(true);
}
......
......@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>647</width>
<width>646</width>
<height>579</height>
</rect>
</property>
......@@ -91,7 +91,7 @@
<item row="0" column="2">
<widget class="QPushButton" name="focusInB">
<property name="enabled">
<bool>true</bool>
<bool>false</bool>
</property>
<property name="text">
<string>Focus In</string>
......@@ -144,7 +144,7 @@
<item row="0" column="3">
<widget class="QPushButton" name="focusOutB">
<property name="enabled">
<bool>true</bool>
<bool>false</bool>
</property>
<property name="text">
<string>Focus Out</string>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment