Ejemplo n.º 1
0
    def __init__(self, ReadOnly=False, parent=None):

        #  Create parent
        CoordinateBasePane.__init__(self, ReadOnly, parent)

        #  Set the read only flag
        self.isReadOnly = ReadOnly

        #  Create the layout
        self.layout = QtGui.QGridLayout()

        #  Create the latitude dialog
        self.latitudeLabel = QtGui.QLabel('Latitude:')
        self.layout.addWidget(self.latitudeLabel, 0, 0)

        #  Create the latitude edit
        self.latitudeEdit = QtGui.QLineEdit()
        self.latitudeEdit.setText('0')
        self.latitudeEdit.setReadOnly(self.isReadOnly)
        self.latitudeEdit.textChanged.connect(self.updateCoordinateValues)
        self.layout.addWidget(self.latitudeEdit, 0, 1, 1, 3)

        #  Create the longitude dialog
        self.longitudeLabel = QtGui.QLabel('Longitude:')
        self.layout.addWidget(self.longitudeLabel, 1, 0)

        #  Create the longitude edit
        self.longitudeEdit = QtGui.QLineEdit()
        self.longitudeEdit.setText('0')
        self.longitudeEdit.setReadOnly(self.isReadOnly)
        self.longitudeEdit.textChanged.connect(self.updateCoordinateValues)
        self.layout.addWidget(self.longitudeEdit, 1, 1, 1, 3)

        #  Create the altitude label
        self.altitudeLabel = QtGui.QLabel('Altitude (m):')
        self.layout.addWidget(self.altitudeLabel, 2, 0)

        #  Create the altitude edit
        self.altitudeEdit = QtGui.QLineEdit()
        self.altitudeEdit.setText('0')
        self.altitudeEdit.setReadOnly(self.isReadOnly)
        self.altitudeEdit.textChanged.connect(self.updateCoordinateValues)
        self.layout.addWidget(self.altitudeEdit, 2, 1)

        #  Create the datum label
        self.datumLabel = QtGui.QLabel('Datum:')
        self.layout.addWidget(self.datumLabel, 2, 2)

        #  Create the datum combo
        self.datumCombo = QtGui.QComboBox()
        for datum in Datums:
            self.datumCombo.addItem(datum[0])
        self.layout.addWidget(self.datumCombo)
        self.datumCombo.currentIndexChanged.connect(
            self.updateCoordinateValues)

        #  Set the layout
        self.setLayout(self.layout)
    def __init__(self, ReadOnly = False, parent=None):

        #  Create parent
        CoordinateBasePane.__init__(self, ReadOnly, parent)

        #  Set the read only flag
        self.isReadOnly = ReadOnly

        #  Create the layout
        self.layout = QtGui.QGridLayout()

        #  Create the latitude dialog
        self.latitudeLabel = QtGui.QLabel('Latitude:')
        self.layout.addWidget(self.latitudeLabel, 0, 0)

        #  Create the latitude edit
        self.latitudeEdit = QtGui.QLineEdit()
        self.latitudeEdit.setText('0')
        self.latitudeEdit.setReadOnly( self.isReadOnly )
        self.latitudeEdit.textChanged.connect(self.updateCoordinateValues)
        self.layout.addWidget(self.latitudeEdit, 0, 1, 1, 3)

        #  Create the longitude dialog
        self.longitudeLabel = QtGui.QLabel('Longitude:')
        self.layout.addWidget(self.longitudeLabel, 1, 0)

        #  Create the longitude edit
        self.longitudeEdit = QtGui.QLineEdit()
        self.longitudeEdit.setText('0')
        self.longitudeEdit.setReadOnly(self.isReadOnly)
        self.longitudeEdit.textChanged.connect(self.updateCoordinateValues)
        self.layout.addWidget(self.longitudeEdit, 1, 1, 1, 3)

        #  Create the altitude label
        self.altitudeLabel = QtGui.QLabel('Altitude (m):')
        self.layout.addWidget(self.altitudeLabel, 2, 0 )

        #  Create the altitude edit
        self.altitudeEdit = QtGui.QLineEdit()
        self.altitudeEdit.setText('0')
        self.altitudeEdit.setReadOnly(self.isReadOnly)
        self.altitudeEdit.textChanged.connect(self.updateCoordinateValues)
        self.layout.addWidget(self.altitudeEdit, 2, 1)

        #  Create the datum label
        self.datumLabel = QtGui.QLabel('Datum:')
        self.layout.addWidget(self.datumLabel, 2, 2 )

        #  Create the datum combo
        self.datumCombo = QtGui.QComboBox()
        for datum in Datums:
            self.datumCombo.addItem(datum[0])
        self.layout.addWidget(self.datumCombo)
        self.datumCombo.currentIndexChanged.connect(self.updateCoordinateValues)

        #  Set the layout
        self.setLayout(self.layout)
Ejemplo n.º 3
0
    def __init__(self, ReadOnly = False, parent=None):

        #  Create parent
        CoordinateBasePane.__init__(self, ReadOnly, parent)

        #  Grab readonly flag
        self.isReadOnly = ReadOnly

        #  Create layout
        self.layout = QtGui.QGridLayout()

        #  Create easting label
        self.eastingLabel = QtGui.QLabel('Easting:')
        self.layout.addWidget(self.eastingLabel, 0, 0)

        #  Create easting edit
        self.eastingEdit = QtGui.QLineEdit()
        self.eastingEdit.setReadOnly(self.isReadOnly)
        self.eastingEdit.textChanged.connect(self.updateCoordinateValues)
        self.layout.addWidget(self.eastingEdit, 0, 1, 1, 3)

        #  Create northing label
        self.northingLabel = QtGui.QLabel('Northing:')
        self.layout.addWidget(self.northingLabel, 1, 0)

        #  Create northing edit
        self.northingEdit = QtGui.QLineEdit()
        self.northingEdit.setReadOnly(self.isReadOnly)
        self.northingEdit.textChanged.connect(self.updateCoordinateValues)
        self.layout.addWidget(self.northingEdit, 1, 1, 1, 3)

        #  Create the altitude label
        self.altitudeLabel = QtGui.QLabel('Altitude:')
        self.layout.addWidget(self.altitudeLabel, 2, 0)

        #  Create the altitude edit
        self.altitudeEdit = QtGui.QLineEdit()
        self.altitudeEdit.setReadOnly(self.isReadOnly)
        self.altitudeEdit.textChanged.connect(self.updateCoordinateValues)
        self.layout.addWidget(self.altitudeEdit, 2, 1)

        #  Create Zone label
        self.zoneLabel = QtGui.QLabel('Zone:')
        self.layout.addWidget(self.zoneLabel, 3, 0)

        #  Create zone combo
        self.zoneCombo = QtGui.QComboBox()
        for x in xrange(0,60):
            self.zoneCombo.addItem(str(x+1))
        self.layout.addWidget(self.zoneCombo, 3, 1)
        self.zoneCombo.currentIndexChanged.connect(self.updateCoordinateValues)

        #  Create datum label
        self.datumLabel = QtGui.QLabel('Datum:')
        self.layout.addWidget(self.datumLabel, 3, 2)

        #  Create the datum combo
        self.datumCombo = QtGui.QComboBox()
        for datum in Datums:
            self.datumCombo.addItem(datum[0])
        self.layout.addWidget(self.datumCombo, 3, 3)
        self.datumCombo.currentIndexChanged.connect(self.updateCoordinateValues)

        #  Set the layout
        self.setLayout(self.layout)
Ejemplo n.º 4
0
    def __init__(self, ReadOnly=False, parent=None):

        #  Create parent
        CoordinateBasePane.__init__(self, ReadOnly, parent)

        #  Grab readonly flag
        self.isReadOnly = ReadOnly

        #  Create layout
        self.layout = QtGui.QGridLayout()

        #  Create easting label
        self.eastingLabel = QtGui.QLabel('Easting:')
        self.layout.addWidget(self.eastingLabel, 0, 0)

        #  Create easting edit
        self.eastingEdit = QtGui.QLineEdit()
        self.eastingEdit.setReadOnly(self.isReadOnly)
        self.eastingEdit.textChanged.connect(self.updateCoordinateValues)
        self.layout.addWidget(self.eastingEdit, 0, 1, 1, 3)

        #  Create northing label
        self.northingLabel = QtGui.QLabel('Northing:')
        self.layout.addWidget(self.northingLabel, 1, 0)

        #  Create northing edit
        self.northingEdit = QtGui.QLineEdit()
        self.northingEdit.setReadOnly(self.isReadOnly)
        self.northingEdit.textChanged.connect(self.updateCoordinateValues)
        self.layout.addWidget(self.northingEdit, 1, 1, 1, 3)

        #  Create the altitude label
        self.altitudeLabel = QtGui.QLabel('Altitude:')
        self.layout.addWidget(self.altitudeLabel, 2, 0)

        #  Create the altitude edit
        self.altitudeEdit = QtGui.QLineEdit()
        self.altitudeEdit.setReadOnly(self.isReadOnly)
        self.altitudeEdit.textChanged.connect(self.updateCoordinateValues)
        self.layout.addWidget(self.altitudeEdit, 2, 1)

        #  Create Zone label
        self.zoneLabel = QtGui.QLabel('Zone:')
        self.layout.addWidget(self.zoneLabel, 3, 0)

        #  Create zone combo
        self.zoneCombo = QtGui.QComboBox()
        for x in xrange(0, 60):
            self.zoneCombo.addItem(str(x + 1))
        self.layout.addWidget(self.zoneCombo, 3, 1)
        self.zoneCombo.currentIndexChanged.connect(self.updateCoordinateValues)

        #  Create datum label
        self.datumLabel = QtGui.QLabel('Datum:')
        self.layout.addWidget(self.datumLabel, 3, 2)

        #  Create the datum combo
        self.datumCombo = QtGui.QComboBox()
        for datum in Datums:
            self.datumCombo.addItem(datum[0])
        self.layout.addWidget(self.datumCombo, 3, 3)
        self.datumCombo.currentIndexChanged.connect(
            self.updateCoordinateValues)

        #  Set the layout
        self.setLayout(self.layout)