Example #1
0
    def __init__(self, parent=None):
        """Constructor."""
        super(GoToXYZDialog, self).__init__(parent)
        self.setupUi(self)
        self.z_lineEdit.setValidator(QtGui.QIntValidator(self.z_lineEdit))
        self.x_lineEdit.setValidator(QtGui.QIntValidator(self.x_lineEdit))
        self.y_lineEdit.setValidator(QtGui.QIntValidator(self.y_lineEdit))

        self.XYZ_radiobutton.clicked.connect(self.checked_change)
        self.tms_radiobutton.clicked.connect(self.checked_change)
    def __init__(self, parent=None):
        """Constructor."""
        super(NodoFinalTramosDialog, self).__init__(parent)
        # Set up the user interface from Designer.
        # After setupUI you can access any designer object by doing
        # self.<objectname>, and you can use autoconnect slots - see
        # http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
        # #widgets-and-dialogs-with-auto-connect
        self.setupUi(self)

        self.n_nodo_final.setValidator(QtGui.QIntValidator())
        self.ztn_final.setValidator(QtGui.QDoubleValidator())
    def __init__(self, parent=None, iface=None):
        """Constructor."""

        super(OpenEODialog, self).__init__(parent)
        # Set up the user interface from Designer through FORM_CLASS.
        # After self.setupUi() you can access any designer object by doing
        # self.<objectname>, and you can use autoconnect slots - see
        # http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
        # #widgets-and-dialogs-with-auto-connect

        self.iface = iface
        self.connection = Connection()
        self.processgraph = Processgraph()
        self.processes = None

        self.setupUi(self)
        self.connectButton.clicked.connect(self.connect)
        self.addButton.clicked.connect(self.add_process)
        self.processBox.currentTextChanged.connect(self.process_selected)
        # self.collectionBox.currentTextChanged.connect(self.collection_selected)
        self.refreshButton.clicked.connect(self.refresh_jobs)
        self.clearButton.clicked.connect(self.collection_selected)
        self.sendButton.clicked.connect(self.send_job)
        self.loadButton.clicked.connect(self.load_collection)

        self.processgraphEdit.textChanged.connect(self.update_processgraph)

        # Init filter boxes validators
        self.westEdit.setValidator(QtGui.QDoubleValidator())
        self.eastEdit.setValidator(QtGui.QDoubleValidator())
        self.southEdit.setValidator(QtGui.QDoubleValidator())
        self.northEdit.setValidator(QtGui.QDoubleValidator())
        self.crsEdit.setValidator(QtGui.QIntValidator())

        # Jobs Tab
        self.init_jobs()