예제 #1
0
 def __onTimerPushButtonClicked(self):
     Logger().trace("ShootController.__onTimerPushButtonClicked()")
     controller = ConfigController(self, self._model)
     controller.selectTab(5, disable=True)
     controller.exec_()
     if self._model.timerRepeatEnable:
         self._view.repeatLabel.setText("--/%d" % self._model.timerRepeat)
     else:
         self._view.repeatLabel.setText("")
     self.refreshView()
예제 #2
0
    def __openConfigDialog(self):
        """ Open the configuration dialog.
        """
        self.setStatusbarMessage(self.tr("Opening configuration dialog. Please wait..."))
        if config.platform != 'darwin':
            while QtGui.QApplication.hasPendingEvents():
                QtGui.QApplication.processEvents()  #QtCore.QEventLoop.ExcludeUserInputEvents)
        QtGui.qApp.setOverrideCursor(QtGui.QCursor(QtCore.Qt.WaitCursor))
        try:
            #self._view.configPushButton.setEnabled(False)
            controller = ConfigController(self, self._model)
            controller.setSelectedTab(self.__lastConfigTabSelected)
        finally:
            #self._view.configPushButton.setEnabled(True)
            QtGui.qApp.restoreOverrideCursor()
            self.clearStatusBar()
        response = controller.exec_()
        self.__lastConfigTabSelected = controller.getSelectedTab()
        controller.shutdown()

        if response:
            Logger().setLevel(ConfigManager().get('Configuration/LOGGER_LEVEL'))
            if self.__mosaicInputParam == 'corners':
                pass
            elif self.__mosaicInputParam == 'fov':
                yawFov = float(self._view.yawFovLabel.text())
                pitchFov = float(self._view.pitchFovLabel.text())
                self._model.setCornersFromFov(yawFov, pitchFov)
            elif self.__mosaicInputParam == 'nbPicts':
                yawNbPicts = int(self._view.yawNbPictsLabel.text())
                pitchNbPicts = int(self._view.pitchNbPictsLabel.text())
                self._model.setCornersFromNbPicts(yawNbPicts, pitchNbPicts)
            self.refreshView()
예제 #3
0
 def __onTimerPushButtonClicked(self):
     Logger().trace("ShootController.__onTimerPushButtonClicked()")
     controller = ConfigController(self, self._model)
     controller.selectTab(5, disable=True)
     controller.exec_()
     if self._model.timerRepeatEnable:
         self._view.repeatLabel.setText("--/%d" % self._model.timerRepeat)
     else:
         self._view.repeatLabel.setText("")
     self.refreshView()
예제 #4
0
 def __onDataPushButtonClicked(self):
     Logger().trace("ShootController.__onDataPushButtonClicked()")
     controller = ConfigController(self, self._model)
     controller.selectTab(4, disable=True)
     controller.exec_()
     self.refreshView()
예제 #5
0
 def __onDataPushButtonClicked(self):
     Logger().trace("ShootController.__onDataPushButtonClicked()")
     controller = ConfigController(self, self._model)
     controller.selectTab(4, disable=True)
     controller.exec_()
     self.refreshView()