コード例 #1
0
    def __init__(self, parent, title, valueList=None):
        QDialog.__init__(self, parent)

        self.resize(100, 70)
        self.setWindowTitle(title)
        sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth())
        self.setSizePolicy(sizePolicy)
        verticalLayoutDlg = QVBoxLayout(self)
        verticalLayoutDlg.setObjectName(("verticalLayoutDlg"))

        self.frameBasic = Frame(self)
        verticalLayoutDlg.addWidget(self.frameBasic)

        self.pnlName = TextBoxPanel(self.frameBasic)
        self.pnlName.Caption = "Name"
        self.pnlName.LabelWidth = 120
        self.frameBasic.Add = self.pnlName

        self.pnlLowerLimit = DistanceBoxPanel(self.frameBasic, DistanceUnits.M)
        self.pnlLowerLimit.Caption = "Lower Limit"
        self.pnlLowerLimit.Button = None
        self.pnlLowerLimit.LabelWidth = 120
        self.frameBasic.Add = self.pnlLowerLimit

        self.pnlUpperLimit = DistanceBoxPanel(self.frameBasic, DistanceUnits.M)
        self.pnlUpperLimit.Caption = "Upper Limit"
        self.pnlUpperLimit.Button = None
        self.pnlUpperLimit.LabelWidth = 120
        self.frameBasic.Add = self.pnlUpperLimit

        self.pnlRadius = DistanceBoxPanel(self.frameBasic, DistanceUnits.M)
        self.pnlRadius.Caption = "Radius"
        self.pnlRadius.Button = None
        self.pnlRadius.LabelWidth = 120
        self.frameBasic.Add = self.pnlRadius

        self.btnBoxOkCancel = QDialogButtonBox(self)
        self.btnBoxOkCancel.setObjectName(("btnBoxOkCancel"))
        self.btnBoxOkCancel.setStandardButtons(QDialogButtonBox.Cancel
                                               | QDialogButtonBox.Ok)
        self.connect(self.btnBoxOkCancel, SIGNAL("accepted()"), self.acceptDlg)
        self.connect(self.btnBoxOkCancel, SIGNAL("rejected()"), self.reject)

        verticalLayoutDlg.addWidget(self.btnBoxOkCancel)

        self.name = ""
        self.lowerLimit = ""
        self.upperLimit = ""
        self.radius = ""

        if valueList != None:
            self.pnlName.Value = valueList[0]
            self.pnlLowerLimit.Value = Distance(float(valueList[1]))
            self.pnlUpperLimit.Value = Distance(float(valueList[2]))
            if valueList[3] != None and valueList[3] != "":
                self.pnlRadius.Value = Distance(float(valueList[3]))
コード例 #2
0
 def set_Fato(self, fato):
     if (fato != None):
         self.pnlName.Value = fato.Name
         self.pnlDesignator.Value = fato.DesignatorHeading
         self.cmbDesignator.SelectedIndex = self.cmbDesignator.FindString(fato.DesignatorCode)
         self.pnlSafetyAreaWidth.Value = Distance(fato.SafetyAreaWidth)
         self.pnlSafetyAreaStart.Value = Distance(fato.SafetyAreaStart)
         self.pnlSafetyAreaEnd.Value = Distance(fato.SafetyAreaEnd)
     self.method_5(fato)
コード例 #3
0
    def __init__(self, parent, thrPos, rwyPos=None, track=None):
        QDialog.__init__(self, parent)
        self.baseTrack = track
        self.resize(290, 136)
        self.setWindowTitle("Calculate FAP")
        sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth())
        self.setSizePolicy(sizePolicy)
        verticalLayoutDlg = QVBoxLayout(self)
        verticalLayoutDlg.setObjectName(("verticalLayoutDlg"))

        self.groupBox = GroupBox(self)
        verticalLayoutDlg.addWidget(self.groupBox)

        self.pnlThrPosition = PositionPanel(self.groupBox)
        self.pnlThrPosition.Point3d = thrPos
        self.groupBox.Add = self.pnlThrPosition
        self.pnlThrPosition.Visible = False

        self.pnlRwyEndPosition = PositionPanel(self.groupBox)
        self.pnlRwyEndPosition.Point3d = rwyPos
        self.groupBox.Add = self.pnlRwyEndPosition
        self.pnlRwyEndPosition.Visible = False

        self.pnlTrack = TrackRadialBoxPanel(self.groupBox)
        self.pnlTrack.Caption = "Track"
        if rwyPos == None:
            self.pnlTrack.Value = track
        else:
            self.pnlTrack.Value = MathHelper.getBearing(thrPos, rwyPos)
        self.pnlTrack.LabelWidth = 100
        self.groupBox.Add = self.pnlTrack

        self.pnlDist = DistanceBoxPanel(self.groupBox, DistanceUnits.M,
                                        DistanceUnits.NM)
        self.pnlDist.Caption = "Distance"
        self.pnlDist.Value = Distance(5, DistanceUnits.NM)
        self.pnlDist.LabelWidth = 100
        self.groupBox.Add = self.pnlDist

        self.btnBoxOkCancel = QDialogButtonBox(self)
        self.btnBoxOkCancel.setObjectName(("btnBoxOkCancel"))
        self.btnBoxOkCancel.setStandardButtons(QDialogButtonBox.Cancel
                                               | QDialogButtonBox.Ok)
        self.connect(self.btnBoxOkCancel, SIGNAL("accepted()"), self.acceptDlg)
        self.connect(self.btnBoxOkCancel, SIGNAL("rejected()"), self.reject)

        verticalLayoutDlg.addWidget(self.btnBoxOkCancel)
コード例 #4
0
    def acceptDlg(self):
        nauticalMiles = self.pnlDist.Value.NauticalMiles
        value = Unit.ConvertDegToRad(self.pnlTrack.Value)
        num1 = math.fabs(self.baseTrack - value)
        if (num1 > 180):
            num1 = 360 - num1
        num2 = math.sin(Unit.smethod_0(num1)) * 0.7559395
        num3 = Unit.smethod_1(math.asin(num2 / nauticalMiles))
        num4 = math.cos(Unit.smethod_0(num1)) * 0.755939525
        num5 = math.cos(Unit.smethod_0(num3)) * nauticalMiles
        calcPt = RnavWaypoints.smethod_3(
            self.pos1400m, self.pnlTrack.Value,
            Distance(math.fabs(num5 - num4), DistanceUnits.NM))

        self.accept()
コード例 #5
0
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(473, 580)
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setBold(False)
        font.setWeight(50)
        Form.setFont(font)
        self.vlForm = QtGui.QVBoxLayout(Form)
        self.vlForm.setObjectName(("vlForm"))

        self.gbBaseLine = GroupBox(Form)
        self.gbBaseLine.Title = "Base Line"
        self.vlForm.addWidget(self.gbBaseLine)

        self.pnlBasePoint = PositionPanel(self.gbBaseLine)
        self.pnlBasePoint.btnCalculater.hide()
        self.pnlBasePoint.hideframe_Altitude()
        self.gbBaseLine.Add = self.pnlBasePoint

        self.pnlBaseAltitude = AltitudeBoxPanel(self.gbBaseLine)
        self.pnlBaseAltitude.CaptionUnits = "m"
        self.pnlBaseAltitude.Caption = "Altitude"
        self.pnlBaseAltitude.Value = Altitude(0)
        self.gbBaseLine.Add = self.pnlBaseAltitude

        self.cmbBaseOrientation = ComboBoxPanel(self.gbBaseLine)
        self.cmbBaseOrientation.Caption = "Orientation"
        self.gbBaseLine.Add = self.cmbBaseOrientation

        self.gbParameters = GroupBox(Form)
        self.gbParameters.Caption = "Parameters"
        self.gbParameters.layoutBoxPanel.setSpacing(9)
        self.vlForm.addWidget(self.gbParameters)

        self.pnlMode = ComboBoxPanel(self.gbParameters)
        self.pnlMode.Caption = "Mode (Obstacle Input)"
        self.gbParameters.Add = self.pnlMode

        self.pnlUsedFor = ComboBoxPanel(self.gbParameters)
        self.pnlUsedFor.Caption = "Used For"
        self.gbParameters.Add = self.pnlUsedFor

        self.pnlPDG = NumberBoxPanel(self.gbParameters)
        self.pnlPDG.CaptionUnits = "%"
        self.pnlPDG.Caption = "PDG"
        self.pnlPDG.Value = 3.3
        self.gbParameters.Add = self.pnlPDG

        self.pnlMOC = NumberBoxPanel(self.gbParameters)
        self.pnlMOC.CaptionUnits = "%"
        self.pnlMOC.Caption = "MOC"
        self.pnlMOC.Value = 0.8
        self.gbParameters.Add = self.pnlMOC

        self.pnlGP = NumberBoxPanel(self.gbParameters)
        self.pnlGP.CaptionUnits = "degree"
        self.pnlGP.Caption = "GP"
        self.pnlGP.Value = 3
        self.gbParameters.Add = self.pnlGP

        self.pnlRDH = AltitudeBoxPanel(self.gbParameters)
        self.pnlRDH.CaptionUnits = "m"
        self.pnlRDH.Caption = "RDH"
        self.pnlRDH.Value = Altitude(15)
        self.gbParameters.Add = self.pnlRDH

        self.gbConstruction = GroupBox(self.gbParameters)
        self.gbConstruction.layoutBoxPanel.setSpacing(9)
        self.gbConstruction.Caption = "Construction"
        self.gbParameters.Add = self.gbConstruction

        self.pnlLength = DistanceBoxPanel(self.gbConstruction, DistanceUnits.NM)
        self.pnlLength.Caption = "Length"
        self.pnlLength.Value = Distance(10, DistanceUnits.NM)
        self.gbConstruction.Add = self.pnlLength

        self.gbCustom = GroupBox(self.gbConstruction)
        self.gbCustom.Caption = "Custom Distance / Text"
        self.gbConstruction.Add = self.gbCustom

        p1 = Frame(self.gbCustom, "HL")
        self.gbCustom.Add = p1

        self.txtDist1 = DistanceBoxPanel(p1, DistanceUnits.NM)
        self.txtDist1.Caption = "Distance"
        self.txtDist1.Value = Distance(0, DistanceUnits.NM)
        self.txtDist1.Button = None
        p1.Add = self.txtDist1

        self.txtDist2 = DistanceBoxPanel(p1, DistanceUnits.NM)
        self.txtDist2.LabelWidth = 0
        self.txtDist2.Value = Distance(0, DistanceUnits.NM)
        self.txtDist2.Button = None
        p1.Add = self.txtDist2

        self.txtDist3 = DistanceBoxPanel(p1, DistanceUnits.NM)
        self.txtDist3.LabelWidth = 0
        self.txtDist3.Value = Distance(0, DistanceUnits.NM)
        self.txtDist3.Button = None
        p1.Add = self.txtDist3

        p2 = Frame(self.gbCustom, "HL")
        self.gbCustom.Add = p2

        self.txtText1 = TextBoxPanel(p2)
        self.txtText1.Caption = "Text"
        # self.txtText1.Value = "ABC"
        p2.Add = self.txtText1

        self.txtText2 = TextBoxPanel(p2)
        self.txtText2.LabelWidth = 0
        p2.Add = self.txtText2

        self.txtText3 = TextBoxPanel(p2)
        self.txtText3.LabelWidth = 0
        p2.Add = self.txtText3

        self.chbMarkDistances = QtGui.QCheckBox(self.gbConstruction)
        self.chbMarkDistances.setText("Mark Standard Distances")
        self.gbConstruction.Add = self.chbMarkDistances

        self.pnlThrDer = PositionPanel(self.gbParameters)
        self.pnlThrDer.Caption = "THR/DER Position"
        self.pnlThrDer.btnCalculater.hide()
        self.pnlThrDer.hideframe_Altitude()
        self.gbParameters.Add = self.pnlThrDer

        self.pnlOutbound = TrackRadialBoxPanel(self.gbParameters)
        self.pnlOutbound.Caption = "Outbound Track"
        self.gbParameters.Add = self.pnlOutbound

        self.pnlEtp = PositionPanel(self.gbParameters)
        self.pnlEtp.Caption = "ETP Position"
        self.pnlEtp.btnCalculater.hide()
        self.pnlEtp.hideframe_Altitude()
        self.gbParameters.Add = self.pnlEtp

        self.pnlHASP = AltitudeBoxPanel(self.gbParameters)
        self.pnlHASP.CaptionUnits = "m"
        self.pnlHASP.Value = Altitude(5)
        self.pnlHASP.Caption = "Height Above Start Point"
        self.gbParameters.Add = self.pnlHASP

        self.pnlTA = AltitudeBoxPanel(self.gbParameters)
        self.pnlTA.CaptionUnits = "m"
        self.pnlTA.Value = Altitude(300)
        self.pnlTA.Caption = "Turning Altitude"
        self.gbParameters.Add = self.pnlTA

        self.pnlClimbGradient = NumberBoxPanel(self.gbParameters)
        self.pnlClimbGradient.CaptionUnits = "%"
        self.pnlClimbGradient.Value = 3.3
        self.pnlClimbGradient.Caption = "Climb-out Gradient"
        self.gbParameters.Add = self.pnlClimbGradient

        self.chbMarkTA = QtGui.QCheckBox(self.gbParameters)
        self.chbMarkTA.setText("Mark Turning Altitude")
        self.gbParameters.Add = self.chbMarkTA

        self.chbDeparture = QtGui.QCheckBox(self.gbParameters)
        self.chbDeparture.setText("Departure")
        self.gbParameters.Add = self.chbDeparture

        self.chbPolyline = QtGui.QCheckBox(self.gbParameters)
        self.chbPolyline.setText("Draw Polyline")
        self.gbParameters.Add = self.chbPolyline

        self.pnlInput = Frame(self.gbParameters)
        self.pnlInput.Margin = 0
        self.gbParameters.Add = self.pnlInput

        self.chbUseTolerance = QtGui.QCheckBox(self.pnlInput)
        self.chbUseTolerance.setText("Use Tolerance")
        self.pnlInput.Add = self.chbUseTolerance

        pnlInput_0 = Frame(self.pnlInput, "HL")
        pnlInput_0.Margin = 0
        # pnlInput_0.layoutBoxPanel.setSpacing(100)
        self.pnlInput.Add = pnlInput_0

        self.chbWriteName = QtGui.QCheckBox(pnlInput_0)
        self.chbWriteName.setText("Write Name")
        self.chbWriteName.setMaximumWidth(200)
        self.chbWriteName.setMinimumWidth(200)
        pnlInput_0.Add = self.chbWriteName

        self.pnlTextHeight = NumberBoxPanel(pnlInput_0)
        self.pnlTextHeight.Caption = "Text Height"
        self.pnlTextHeight.LabelWidth = 100
        self.pnlTextHeight.Value = 8
        pnlInput_0.Add = self.pnlTextHeight
コード例 #6
0
    def setupUi(self, Form):
        Form.setObjectName(("Form"))
        Form.resize(473, 580)
        font = QtGui.QFont()
        font.setFamily(("Arial"))
        font.setBold(False)
        font.setWeight(50)
        Form.setFont(font)

        self.vlForm = QtGui.QVBoxLayout(Form)
        self.vlForm.setObjectName(("vlForm"))
        self.vlForm.setSpacing(0)
        self.vlForm.setMargin(0)

        self.gbParameters = GroupBox(Form)
        self.gbParameters.Caption = "Parameters"
        self.vlForm.addWidget(self.gbParameters)

        self.pnlNavType = ComboBoxPanel(self.gbParameters)
        self.pnlNavType.Caption = "Navigation Type"
        self.pnlNavType.LabelWidth = 120
        self.gbParameters.Add = self.pnlNavType

        self.gbNavAid = GroupBox(Form)
        self.gbNavAid.Caption = "Navigational Aid"
        self.gbParameters.Add = self.gbNavAid

        self.pnlRunwayGroup = Frame(self.gbNavAid, "HL")
        self.gbNavAid.Add = self.pnlRunwayGroup

        self.pnlNavAid = ComboBoxPanel(self.pnlRunwayGroup, False, True)
        self.pnlNavAid.Caption = ""
        self.pnlNavAid.LabelWidth = 0
        self.pnlRunwayGroup.Add = self.pnlNavAid

        self.btnNavAidAdd = QtGui.QPushButton(self.pnlRunwayGroup)
        self.btnNavAidAdd.setObjectName("btnNavAidAdd")
        self.btnNavAidAdd.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("Resource/add.png"), QtGui.QIcon.Normal,
                       QtGui.QIcon.Off)
        self.btnNavAidAdd.setIcon(icon)
        self.pnlRunwayGroup.Add = self.btnNavAidAdd

        self.btnNavAidModify = QtGui.QPushButton(self.pnlRunwayGroup)
        self.btnNavAidModify.setObjectName("btnNavAidModify")
        self.btnNavAidModify.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("Resource/mIconEditableEdits.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnNavAidModify.setIcon(icon)
        self.pnlRunwayGroup.Add = self.btnNavAidModify

        self.btnNavAidRemove = QtGui.QPushButton(self.pnlRunwayGroup)
        self.btnNavAidRemove.setObjectName("btnNavAidRemove")
        self.btnNavAidRemove.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("Resource/remove.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnNavAidRemove.setIcon(icon)
        self.pnlRunwayGroup.Add = self.btnNavAidRemove

        self.pnlNavAidPos = PositionPanel(self.gbNavAid)
        self.pnlNavAidPos.Caption = "Position"
        self.pnlNavAidPos.btnCalculater.setVisible(False)
        self.gbNavAid.Add = self.pnlNavAidPos

        self.gbWaypoint1 = GroupBox(self.gbParameters)
        self.gbWaypoint1.Caption = "Waypoint 1"
        self.gbParameters.Add = self.gbWaypoint1

        self.pnlWaypoint1 = PositionPanel(self.gbWaypoint1)
        self.pnlWaypoint1.Caption = ""
        self.pnlWaypoint1.btnCalculater.setVisible(False)
        self.pnlWaypoint1.hideframe_Altitude()
        self.gbWaypoint1.Add = self.pnlWaypoint1

        self.chbTurningWaypoint1 = CheckBox(self.gbWaypoint1)
        self.chbTurningWaypoint1.Caption = "Turning Waypoint"
        self.gbWaypoint1.Add = self.chbTurningWaypoint1

        self.gbWaypoint2 = GroupBox(self.gbParameters)
        self.gbWaypoint2.Caption = "Waypoint 2"
        self.gbParameters.Add = self.gbWaypoint2

        self.pnlWaypoint2 = PositionPanel(self.gbWaypoint2)
        self.pnlWaypoint2.Caption = ""
        self.pnlWaypoint2.btnCalculater.setVisible(False)
        self.pnlWaypoint2.hideframe_Altitude()
        self.gbWaypoint2.Add = self.pnlWaypoint2

        self.chbTurningWaypoint2 = CheckBox(self.gbWaypoint2)
        self.chbTurningWaypoint2.Caption = "Turning Waypoint"
        self.gbWaypoint2.Add = self.chbTurningWaypoint2

        self.pnlTrack = TrackRadialBoxPanel(self.gbParameters)
        self.pnlTrack.Caption = "Track"
        self.pnlTrack.LabelWidth = 150
        self.gbParameters.Add = self.pnlTrack

        self.pnlDistToThr = DistanceBoxPanel(self.gbParameters,
                                             DistanceUnits.M)
        self.pnlDistToThr.Caption = "Distance to Threshold"
        self.pnlDistToThr.LabelWidth = 150
        self.gbParameters.Add = self.pnlDistToThr

        self.pnlMinimumAltitude = AltitudeBoxPanel(self.gbParameters)
        self.pnlMinimumAltitude.CaptionUnits = "ft"
        self.pnlMinimumAltitude.Caption = "Minimum Altitude"
        self.pnlMinimumAltitude.Value = Altitude(2000, AltitudeUnits.FT)
        self.pnlMinimumAltitude.LabelWidth = 150
        self.gbParameters.Add = self.pnlMinimumAltitude

        self.pnlSegmentWidth = DistanceBoxPanel(self.gbParameters,
                                                DistanceUnits.NM)
        self.pnlSegmentWidth.Caption = "Segment Width"
        self.pnlSegmentWidth.LabelWidth = 150
        self.pnlSegmentWidth.Value = Distance(5, DistanceUnits.NM)
        self.gbParameters.Add = self.pnlSegmentWidth

        self.chbEarthCurvature = CheckBox(self.gbParameters)
        self.chbEarthCurvature.Caption = "Allow for Earth Curvature"
        self.gbParameters.Add = self.chbEarthCurvature

        self.gbConstruction = GroupBox(Form)
        self.gbConstruction.Caption = "Construction"
        self.vlForm.addWidget(self.gbConstruction)

        self.pnlConstructionType = ComboBoxPanel(self.gbConstruction)
        self.pnlConstructionType.Caption = "Construction Type"
        self.pnlConstructionType.LabelWidth = 150
        self.gbConstruction.Add = self.pnlConstructionType

        self.pnlMarkAltitudes = Frame(self.gbConstruction, "HL")
        self.gbConstruction.Add = self.pnlMarkAltitudes

        self.chbMarkAltitudes = CheckBox(self.pnlMarkAltitudes)
        self.chbMarkAltitudes.Caption = "Mark Contour Altitudes"
        self.chbMarkAltitudes.setMinimumSize(QSize(150, 0))
        self.chbMarkAltitudes.setMaximumSize(QSize(150, 16777215))
        self.pnlMarkAltitudes.Add = self.chbMarkAltitudes

        self.pnlMarkAltitudesIn = Frame(self.pnlMarkAltitudes)
        self.pnlMarkAltitudes.Add = self.pnlMarkAltitudesIn

        self.pnlAltitudesEvery = AltitudeBoxPanel(self.pnlMarkAltitudesIn)
        self.pnlAltitudesEvery.CaptionUnits = "m"
        self.pnlAltitudesEvery.Caption = "Every"
        self.pnlAltitudesEvery.Value = Altitude(5)
        # self.pnlAltitudesEvery.LabelWidth = 60
        self.pnlMarkAltitudesIn.Add = self.pnlAltitudesEvery

        self.pnlAltitudesTextHeight = NumberBoxPanel(self.pnlMarkAltitudesIn)
        self.pnlAltitudesTextHeight.Caption = "Text Height"
        self.pnlAltitudesTextHeight.Value = 5
        # self.pnlAltitudesTextHeight.LabelWidth = 60
        self.pnlMarkAltitudesIn.Add = self.pnlAltitudesTextHeight

        self.pnl3DQuality = Frame(self.gbConstruction, "HL")
        self.gbConstruction.Add = self.pnl3DQuality

        self.lbl3DQuality = QtGui.QLabel(self.pnl3DQuality)
        self.lbl3DQuality.setObjectName("lbl3DQuality")
        self.lbl3DQuality.setText("Rendering Quality:")
        self.lbl3DQuality.setMinimumSize(QSize(150, 0))
        self.lbl3DQuality.setMaximumSize(QSize(150, 16777215))
        self.pnl3DQuality.Add = self.lbl3DQuality

        self.pnlTrackbar = Frame(self.pnl3DQuality, "HL")
        self.pnl3DQuality.Add = self.pnlTrackbar

        self.lblCoarse = QtGui.QLabel(self.pnlTrackbar)
        self.lblCoarse.setObjectName("lblCoarse")
        self.lblCoarse.setText("Coarse")
        self.pnlTrackbar.Add = self.lblCoarse

        self.trackBar = QtGui.QSlider(self.pnlTrackbar)
        self.trackBar.setObjectName("trackBar")
        self.trackBar.setOrientation(Qt.Horizontal)
        self.trackBar.setMinimum(10)
        self.trackBar.setMaximum(200)
        # self.trackBar.setSingleStep(10)
        self.trackBar.setValue(20)
        self.pnlTrackbar.Add = self.trackBar

        self.lblSmooth = QtGui.QLabel(self.pnlTrackbar)
        self.lblSmooth.setObjectName("lblSmooth")
        self.lblSmooth.setText("Smooth")
        self.pnlTrackbar.Add = self.lblSmooth
コード例 #7
0
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(435, 580)
        self.verticalLayout = QVBoxLayout(Form)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))

        self.gbParameters = GroupBox(Form)
        self.gbParameters.Caption = "General"
        self.verticalLayout.addWidget(self.gbParameters)

        self.cmbAerodrome = ComboBoxPanel(self.gbParameters, True)
        self.cmbAerodrome.Caption = "Aerodrome"
        self.cmbAerodrome.LabelWidth = 150
        self.cmbAerodrome.Width = 150
        self.gbParameters.Add = self.cmbAerodrome

        self.cmbRwyDir = ComboBoxPanel(self.gbParameters, True)
        self.cmbRwyDir.Caption = "Runway Direction"
        self.cmbRwyDir.LabelWidth = 150
        self.cmbRwyDir.Width = 150
        self.gbParameters.Add = self.cmbRwyDir

        self.annotationFAWP = QgsTextAnnotationItem(define._canvas)
        self.annotationFAWP.setDocument(QTextDocument("FAF"))
        self.annotationFAWP.hide()

        self.pnlFafPosition = PositionPanel(self.gbParameters,
                                            self.annotationFAWP)
        self.pnlFafPosition.Caption = "FAF Position"
        self.pnlFafPosition.btnCalculater.hide()
        self.pnlFafPosition.hideframe_Altitude()
        self.gbParameters.Add = self.pnlFafPosition

        self.pnlThrPosition = PositionPanel(self.gbParameters)
        self.pnlThrPosition.Caption = "Threshold Position"
        self.pnlThrPosition.btnCalculater.hide()
        self.gbParameters.Add = self.pnlThrPosition

        # self.annotationMapt = QgsTextAnnotationItem(define._canvas)
        # self.annotationMapt.setDocument(QTextDocument("MAPt"))
        # self.annotationMapt.hide()

        self.pnlMaPtPosition = PositionPanel(self.gbParameters)
        self.pnlMaPtPosition.Caption = "MAPt Position"
        self.pnlMaPtPosition.btnCalculater.hide()
        self.pnlMaPtPosition.hideframe_Altitude()
        self.gbParameters.Add = self.pnlMaPtPosition

        self.pnlRwyEndPosition = PositionPanel(self.gbParameters)
        self.pnlRwyEndPosition.Caption = "Rwy End Position"
        self.pnlRwyEndPosition.btnCalculater.hide()
        self.pnlRwyEndPosition.hideframe_Altitude()
        self.gbParameters.Add = self.pnlRwyEndPosition
        self.pnlRwyEndPosition.Visible = False

        self.pnlInboundTrack = TrackRadialBoxPanel(self.gbParameters)
        self.pnlInboundTrack.Caption = "In-bound Track"
        self.pnlInboundTrack.LabelWidth = 150
        self.pnlInboundTrack.Enabled = False
        self.gbParameters.Add = self.pnlInboundTrack

        self.pnlEstimatedAltitude = AltitudeBoxPanel(self.gbParameters)
        self.pnlEstimatedAltitude.Caption = "Estimated Altitude"
        self.pnlEstimatedAltitude.LabelWidth = 150
        self.pnlEstimatedAltitude.Value = Altitude(1000)
        self.gbParameters.Add = self.pnlEstimatedAltitude

        self.pnlAerodromeAltitude = AltitudeBoxPanel(self.gbParameters)
        self.pnlAerodromeAltitude.Caption = "Aerodrome Altitude"
        self.pnlAerodromeAltitude.LabelWidth = 150
        self.pnlAerodromeAltitude.Value = Altitude(1000)
        self.gbParameters.Add = self.pnlAerodromeAltitude

        self.pnlIsa = NumberBoxPanel(self.gbParameters, "0.0")
        self.pnlIsa.CaptionUnits = define._degreeStr + "C"
        self.pnlIsa.Caption = "ISA"
        self.pnlIsa.LabelWidth = 150
        self.pnlIsa.Value = 15
        self.gbParameters.Add = self.pnlIsa

        self.cmbAircraftCategory = ComboBoxPanel(self.gbParameters)
        self.cmbAircraftCategory.Caption = "Aircraft Category"
        self.cmbAircraftCategory.LabelWidth = 150
        self.gbParameters.Add = self.cmbAircraftCategory

        # self.pnlHeightLoss = AltitudeBoxPanel(self.gbParameters)
        # self.pnlHeightLoss.Caption = "Height Loss"
        # self.pnlHeightLoss.LabelWidth = 150
        # self.gbParameters.Add = self.pnlHeightLoss

        self.pnlIas = SpeedBoxPanel(self.gbParameters)
        self.pnlIas.Caption = "IAS"
        self.pnlIas.LabelWidth = 150
        self.pnlIas.Value = Speed(100)
        self.pnlIas.Enabled = False
        self.gbParameters.Add = self.pnlIas

        self.pnlTas = SpeedBoxPanel(self.gbParameters)
        self.pnlTas.Caption = "TAS"
        self.pnlTas.Enabled = False
        self.pnlTas.LabelWidth = 150
        self.gbParameters.Add = self.pnlTas

        self.pnlWind = WindPanel(self.gbParameters)
        self.pnlWind.LabelWidth = 145
        self.gbParameters.Add = self.pnlWind

        self.pnlSocAltitude = AltitudeBoxPanel(self.gbParameters)
        self.pnlSocAltitude.Caption = "SOC Altitude"
        self.pnlSocAltitude.LabelWidth = 150
        self.gbParameters.Add = self.pnlSocAltitude

        self.pnlDistFixTolerance = DistanceBoxPanel(self.gbParameters,
                                                    DistanceUnits.M,
                                                    DistanceUnits.NM)
        self.pnlDistFixTolerance.Caption = "FIX Tolerance"
        self.pnlDistFixTolerance.LabelWidth = 150
        self.pnlDistFixTolerance.Button = "coordinate_capture.png"
        self.pnlDistFixTolerance.Value = Distance(900)
        # self.pnlDistFixTolerance.Enabled = False
        self.gbParameters.Add = self.pnlDistFixTolerance

        self.pnlDistD = DistanceBoxPanel(self.gbParameters, DistanceUnits.M,
                                         DistanceUnits.NM)
        self.pnlDistD.Caption = "d(10kts/3s)"
        self.pnlDistD.LabelWidth = 150
        self.pnlDistD.Button = None
        self.pnlDistD.Value = Distance(900)
        self.pnlDistD.Enabled = False
        self.gbParameters.Add = self.pnlDistD

        self.pnlDistX = DistanceBoxPanel(self.gbParameters, DistanceUnits.M,
                                         DistanceUnits.NM)
        self.pnlDistX.Caption = "X(10kts/15s)"
        self.pnlDistX.LabelWidth = 150
        self.pnlDistX.Button = None
        self.pnlDistX.Value = Distance(900)
        self.pnlDistX.Enabled = False
        self.gbParameters.Add = self.pnlDistX

        self.pnlDistOfFafMapt = DistanceBoxPanel(self.gbParameters,
                                                 DistanceUnits.M,
                                                 DistanceUnits.NM)
        self.pnlDistOfFafMapt.Caption = "FAP-MAPt Distance"
        self.pnlDistOfFafMapt.LabelWidth = 150
        self.pnlDistOfFafMapt.Button = None
        self.pnlDistOfFafMapt.Enabled = False
        self.gbParameters.Add = self.pnlDistOfFafMapt

        self.pnlDistOfMaptThr = DistanceBoxPanel(self.gbParameters,
                                                 DistanceUnits.M,
                                                 DistanceUnits.NM)
        self.pnlDistOfMaptThr.Caption = "MAPt-THR Distance"
        self.pnlDistOfMaptThr.LabelWidth = 150
        self.pnlDistOfMaptThr.Button = None
        self.pnlDistOfMaptThr.Enabled = False
        self.gbParameters.Add = self.pnlDistOfMaptThr

        self.pnlDistOfMaptSoc = DistanceBoxPanel(self.gbParameters,
                                                 DistanceUnits.M,
                                                 DistanceUnits.NM)
        self.pnlDistOfMaptSoc.Caption = "MAPt-SOC Distance"
        self.pnlDistOfMaptSoc.LabelWidth = 150
        self.pnlDistOfMaptSoc.Button = None
        self.pnlDistOfMaptSoc.Enabled = False
        self.gbParameters.Add = self.pnlDistOfMaptSoc

        self.pnlDistOfSocThr = DistanceBoxPanel(self.gbParameters,
                                                DistanceUnits.M,
                                                DistanceUnits.NM)
        self.pnlDistOfSocThr.Caption = "THR-SOC Distance"
        self.pnlDistOfSocThr.LabelWidth = 150
        self.pnlDistOfSocThr.Button = None
        self.pnlDistOfSocThr.Enabled = False
        self.gbParameters.Add = self.pnlDistOfSocThr
コード例 #8
0
    def setupUi(self, Form):
        Form.setObjectName(("Form"))
        Form.resize(473, 580)
        font = QtGui.QFont()
        font.setFamily(("Arial"))
        font.setBold(False)
        font.setWeight(50)
        Form.setFont(font)

        self.aprAnnotation = QgsTextAnnotationItem(define._canvas)
        self.aprAnnotation.setDocument(QtGui.QTextDocument("ARP"))
        self.aprAnnotation.setFrameSize(QtCore.QSizeF(30, 20))
        self.aprAnnotation.hide()
        self.thrAnnotation = QgsTextAnnotationItem(define._canvas)
        self.thrAnnotation.setDocument(QtGui.QTextDocument("THR"))
        self.thrAnnotation.setFrameSize(QtCore.QSizeF(30, 20))
        self.thrAnnotation.hide()

        self.vlForm = QtGui.QVBoxLayout(Form)
        self.vlForm.setObjectName(("vlForm"))
        self.vlForm.setSpacing(0)
        self.vlForm.setMargin(0)

        self.pnlPositions = QtGui.QFrame(Form)
        self.pnlPositions.setObjectName(("pnlPositions"))
        self.hl_pnlPositions = QtGui.QVBoxLayout(self.pnlPositions)
        self.hl_pnlPositions.setObjectName(("hl_pnlPositions"))
        self.hl_pnlPositions.setMargin(0)

        self.cmbAerodrome = ComboBoxPanel(self.pnlPositions, True)
        self.cmbAerodrome.Caption = "Aerodrome"
        self.cmbAerodrome.LabelWidth = 120
        self.hl_pnlPositions.addWidget(self.cmbAerodrome)

        self.cmbRwyDir = ComboBoxPanel(self.pnlPositions, True)
        self.cmbRwyDir.Caption = "Runway Direction"
        self.cmbRwyDir.LabelWidth = 120
        self.cmbRwyDir.Width = 120
        self.hl_pnlPositions.addWidget(self.cmbRwyDir)

        self.gbAerodrome = QtGui.QGroupBox(Form)
        self.gbAerodrome.setObjectName("gbAerodrome")
        self.gbAerodrome.setTitle("Aerodrome")
        self.vl_gbAerodrome = QtGui.QVBoxLayout(self.gbAerodrome)
        self.vl_gbAerodrome.setObjectName("vl_gbAerodrome")

        self.pnlArp = PositionPanel(self.gbAerodrome, self.aprAnnotation)
        self.pnlArp.groupBox.setTitle("Reference Point (ARP)")
        self.pnlArp.btnCalculater.hide()
        self.vl_gbAerodrome.addWidget(self.pnlArp)

        self.pnlMinTemp = NumberBoxPanel(self.gbAerodrome)
        self.pnlMinTemp.CaptionUnits = define._degreeStr
        self.pnlMinTemp.Caption = "Minimum Temperature"
        self.pnlMinTemp.Value = -15
        self.vl_gbAerodrome.addWidget(self.pnlMinTemp)

        self.hl_pnlPositions.addWidget(self.gbAerodrome)

        self.gbRunway = QtGui.QGroupBox(Form)
        self.gbRunway.setObjectName("gbRunway")
        self.gbRunway.setTitle("Runway")
        self.vl_gbRunway = QtGui.QVBoxLayout(self.gbRunway)
        self.vl_gbRunway.setObjectName("vl_gbRunway")

        self.pnlThr = PositionPanel(self.gbRunway, self.thrAnnotation)
        self.pnlThr.groupBox.setTitle("Threshold Position")
        self.pnlThr.btnCalculater.hide()
        self.vl_gbRunway.addWidget(self.pnlThr)

        self.pnlThrEnd = PositionPanel(self.gbRunway, self.thrAnnotation)
        self.pnlThrEnd.groupBox.setTitle("Runway End Position")
        self.pnlThrEnd.btnCalculater.hide()
        self.vl_gbRunway.addWidget(self.pnlThrEnd)
        self.pnlThrEnd.Visible = False

        self.pnlRwyDir = TrackRadialBoxPanel(self.gbRunway)
        self.pnlRwyDir.Caption = "Direction"
        self.pnlRwyDir.LabelWidth = 70
        self.vl_gbRunway.addWidget(self.pnlRwyDir)

        self.hl_pnlPositions.addWidget(self.gbRunway)
        self.vlForm.addWidget(self.pnlPositions)

        self.gbParameters = QtGui.QGroupBox(Form)
        font = QtGui.QFont()
        font.setFamily(("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.gbParameters.setFont(font)
        self.gbParameters.setObjectName(("gbParameters"))
        self.gbParameters.setTitle("Parameters")
        self.vl_gbParameters = QtGui.QVBoxLayout(self.gbParameters)
        self.vl_gbParameters.setObjectName(("vl_gbParameters"))

        self.pnlOCAH = OCAHPanel(self.gbParameters)
        self.pnlOCAH.Caption = "Intermediate Segment"
        self.pnlOCAH.Value = Altitude(2000, AltitudeUnits.FT)
        self.pnlOCAH.LabelWidth = 200
        self.vl_gbParameters.addWidget(self.pnlOCAH)

        self.pnlMocI = AltitudeBoxPanel(self.gbParameters)
        self.pnlMocI.CaptionUnits = "m"
        self.pnlMocI.Caption = "Intermediate Segment MOC"
        self.pnlMocI.Value = Altitude(150)
        self.vl_gbParameters.addWidget(self.pnlMocI)

        self.pnlRDH = AltitudeBoxPanel(self.gbParameters)
        self.pnlRDH.CaptionUnits = "m"
        self.pnlRDH.Caption = "RDH at THR"
        self.pnlRDH.Value = Altitude(15)
        self.vl_gbParameters.addWidget(self.pnlRDH)

        self.pnlVPA = ComboBoxPanel(self.gbParameters)
        self.pnlVPA.Caption = "Vertical Path Angle [VPA]"
        # self.pnlVPA.comboBox.setToolTip()
        self.vl_gbParameters.addWidget(self.pnlVPA)

        self.lblAbove35 = QtGui.QLabel(self.gbParameters)
        self.lblAbove35.setText(
            QtCore.QString("A procedure with a promulgated VPA exceeding 3.5")
            + unicode("°", "utf-8") + QtCore.QString(
                " is a non-standard procedure.\nIt shall be subject to an aeronautical study and will require special approval \n    by the national competent authority (PANS-OPS Part III, Section 3, Chapter 4, Par. 4.2.1.3)"
            ))
        self.vl_gbParameters.addWidget(self.lblAbove35)

        self.pnlThrFafDist = DistanceBoxPanel(self.gbParameters,
                                              DistanceUnits.NM)
        self.pnlThrFafDist.Caption = "THR to FAWP Distance"
        self.pnlThrFafDist.Value = Distance(5, DistanceUnits.NM)
        self.vl_gbParameters.addWidget(self.pnlThrFafDist)

        self.pnlAcCat = ComboBoxPanel(self.gbParameters)
        self.pnlAcCat.Caption = "Aircraft Category"
        self.vl_gbParameters.addWidget(self.pnlAcCat)

        self.pnlIas = SpeedBoxPanel(self.gbParameters, SpeedUnits.KTS)
        self.pnlIas.Caption = "Max. IAS"
        self.pnlIas.Value = Speed(185)
        self.vl_gbParameters.addWidget(self.pnlIas)

        self.pnlIasAtThr = SpeedBoxPanel(self.gbParameters, SpeedUnits.KTS)
        self.pnlIasAtThr.Caption = "Max. IAS at THR"
        self.pnlIasAtThr.Value = Speed(165)
        self.vl_gbParameters.addWidget(self.pnlIasAtThr)

        self.pnlHL = AltitudeBoxPanel(self.gbParameters)
        self.pnlHL.CaptionUnits = "m"
        self.pnlHL.Caption = "Height Loss"
        self.pnlHL.Value = Altitude(49)
        self.vl_gbParameters.addWidget(self.pnlHL)

        self.pnlTC = AltitudeBoxPanel(self.gbParameters)
        self.pnlTC.CaptionUnits = "m"
        self.pnlTC.Caption = "Temperature Correction"
        self.pnlTC.Value = Altitude(0)
        self.vl_gbParameters.addWidget(self.pnlTC)

        self.tableLayoutPanel1 = QtGui.QFrame(self.gbParameters)
        self.tableLayoutPanel1.setObjectName("tableLayoutPanel1")
        self.vl_tableLayoutPanel1 = QtGui.QVBoxLayout(self.tableLayoutPanel1)
        self.vl_tableLayoutPanel1.setObjectName("vl_tableLayoutPanel1")
        self.vl_tableLayoutPanel1.setSpacing(0)
        self.vl_tableLayoutPanel1.setMargin(0)

        self.upFrame = QtGui.QFrame(self.tableLayoutPanel1)
        self.upFrame.setObjectName("upFrame")
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.upFrame.sizePolicy().hasHeightForWidth())
        self.upFrame.setSizePolicy(sizePolicy)
        self.hl_upFrame = QtGui.QHBoxLayout(self.upFrame)
        self.hl_upFrame.setObjectName("hl_upFrame")
        self.hl_upFrame.setMargin(0)

        self.cmbTermination = ComboBoxPanel(self.upFrame)
        self.cmbTermination.Caption = "APV Segment Termination"
        self.cmbTermination.comboBox.setMinimumWidth(80)
        self.hl_upFrame.addWidget(self.cmbTermination)

        self.pnlTerminationDist = DistanceBoxPanel(self.upFrame,
                                                   DistanceUnits.NM)
        self.pnlTerminationDist.Caption = "Dist."
        self.pnlTerminationDist.Value = Distance(5, DistanceUnits.NM)
        self.pnlTerminationDist.LabelWidth = 50
        self.hl_upFrame.addWidget(self.pnlTerminationDist)

        self.vl_tableLayoutPanel1.addWidget(self.upFrame)

        self.downFrame = QtGui.QFrame(self.tableLayoutPanel1)
        self.downFrame.setObjectName("downFrame")
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.downFrame.sizePolicy().hasHeightForWidth())
        self.downFrame.setSizePolicy(sizePolicy)
        self.hl_downFrame = QtGui.QHBoxLayout(self.downFrame)
        self.hl_downFrame.setObjectName("hl_downFrame")
        self.hl_downFrame.setMargin(0)

        self.cmbMAPt = ComboBoxPanel(self.downFrame)
        self.cmbMAPt.Caption = "Missed Approach Point"
        self.cmbMAPt.comboBox.setMinimumWidth(80)
        self.hl_downFrame.addWidget(self.cmbMAPt)

        self.pnlMAPtDist = DistanceBoxPanel(self.downFrame, DistanceUnits.NM)
        self.pnlMAPtDist.Caption = "Dist."
        # self.pnlMAPtDist.Value = Distance(5, DistanceUnits.NM)
        self.pnlMAPtDist.LabelWidth = 50
        self.hl_downFrame.addWidget(self.pnlMAPtDist)

        self.vl_tableLayoutPanel1.addWidget(self.downFrame)
        self.vl_gbParameters.addWidget(self.tableLayoutPanel1)

        self.pnlMACG = NumberBoxPanel(self.gbParameters)
        self.pnlMACG.CaptionUnits = "%"
        self.pnlMACG.Caption = "Missed Approach Climb Gradient"
        self.pnlMACG.Value = 2.5
        self.vl_gbParameters.addWidget(self.pnlMACG)

        self.pnlMocMA = AltitudeBoxPanel(self.gbParameters)
        self.pnlMocMA.CaptionUnits = "m"
        self.pnlMocMA.Caption = "Missed Approach MOC"
        self.pnlMocMA.Value = Altitude(30)
        self.vl_gbParameters.addWidget(self.pnlMocMA)

        self.pnlEvalMethodMA = ComboBoxPanel(self.gbParameters)
        self.pnlEvalMethodMA.Caption = "Missed Approach Evaluation"
        self.vl_gbParameters.addWidget(self.pnlEvalMethodMA)

        self.pnlConstructionType = ComboBoxPanel(self.gbParameters)
        self.pnlConstructionType.Caption = "Construction Type"
        self.vl_gbParameters.addWidget(self.pnlConstructionType)

        self.vlForm.addWidget(self.gbParameters)
        QtCore.QMetaObject.connectSlotsByName(Form)
コード例 #9
0
    def setupUi(self, form_VSS):
        form_VSS.setObjectName(_fromUtf8("form_VSS"))
        form_VSS.resize(375, 372)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        form_VSS.setFont(font)
        self.verticalLayout = QtGui.QVBoxLayout(form_VSS)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.grbRunway = QtGui.QGroupBox(form_VSS)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.grbRunway.setFont(font)
        self.grbRunway.setObjectName(_fromUtf8("grbRunway"))
        self.vLayout_grbRunway = QtGui.QVBoxLayout(self.grbRunway)
        self.vLayout_grbRunway.setObjectName(_fromUtf8("vLayout_grbRunway"))

        self.cmbAerodrome = ComboBoxPanel(self.grbRunway, True)
        self.cmbAerodrome.Caption = "Aerodrome"
        self.cmbAerodrome.LabelWidth = 120
        self.vLayout_grbRunway.addWidget(self.cmbAerodrome)

        self.cmbRwyDir = ComboBoxPanel(self.grbRunway, True)
        self.cmbRwyDir.Caption = "Runway Direction"
        self.cmbRwyDir.LabelWidth = 120
        self.cmbRwyDir.Width = 120
        self.vLayout_grbRunway.addWidget(self.cmbRwyDir)

        self.pnlTHR = PositionPanel(self.grbRunway)
        self.pnlTHR.groupBox.setTitle("Runway Thr")
        self.pnlTHR.btnCalculater.hide()
        self.pnlTHR.setObjectName("positionTHR")
        self.vLayout_grbRunway.addWidget(self.pnlTHR)

        self.pnlRwyEnd = PositionPanel(self.grbRunway)
        self.pnlRwyEnd.groupBox.setTitle("Runway End")
        self.pnlRwyEnd.hideframe_Altitude()
        self.pnlRwyEnd.btnCalculater.hide()
        self.pnlRwyEnd.setObjectName("positionRwyEnd")
        self.vLayout_grbRunway.addWidget(self.pnlRwyEnd)

        self.txtRwyDir = TrackRadialBoxPanel(self.grbRunway)
        self.txtRwyDir.Caption = "Runway In-bound Direction"
        self.txtRwyDir.LabelWidth = 160
        self.vLayout_grbRunway.addWidget(self.txtRwyDir)

        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)

        self.cmbRwyCode = ComboBoxPanel(self.grbRunway)
        self.cmbRwyCode.Caption = "Code"
        self.cmbRwyCode.LabelWidth = 160
        self.vLayout_grbRunway.addWidget(self.cmbRwyCode)

        self.txtStripWidth = DistanceBoxPanel(self.grbRunway, DistanceUnits.M)
        self.txtStripWidth.Caption = "Strip Width"
        self.txtStripWidth.Value = Distance(300)
        self.txtStripWidth.LabelWidth = 160
        self.vLayout_grbRunway.addWidget(self.txtStripWidth)

        self.verticalLayout.addWidget(self.grbRunway)

        self.grbParameters = QtGui.QGroupBox(form_VSS)
        self.grbParameters.setObjectName(_fromUtf8("grbParameters"))
        self.vLayout_grbParameters = QtGui.QVBoxLayout(self.grbParameters)
        self.vLayout_grbParameters.setObjectName(
            _fromUtf8("vLayout_grbParameters"))

        self.cmbApproachType = ComboBoxPanel(self.grbParameters)
        self.cmbApproachType.Caption = "Approach Type"
        self.cmbApproachType.LabelWidth = 160
        self.vLayout_grbParameters.addWidget(self.cmbApproachType)

        self.txtTrack = TrackRadialBoxPanel(self.grbParameters)
        self.txtTrack.Caption = "In-bound Track"
        self.txtTrack.LabelWidth = 160
        self.vLayout_grbParameters.addWidget(self.txtTrack)

        self.txtThrFaf = DistanceBoxPanel(self.grbParameters, DistanceUnits.NM)
        self.txtThrFaf.Caption = "THR to FAF Distance"
        self.txtThrFaf.Value = Distance(5, DistanceUnits.NM)
        self.txtThrFaf.LabelWidth = 160
        self.vLayout_grbParameters.addWidget(self.txtThrFaf)

        self.txtDescAngle = AngleGradientBoxPanel(self.grbParameters)
        self.txtDescAngle.CaptionUnits = AngleGradientSlopeUnits.Degrees
        self.txtDescAngle.Caption = "Descent Angle"
        self.txtDescAngle.LabelWidth = 160
        self.txtDescAngle.Value = AngleGradientSlope(
            3, AngleGradientSlopeUnits.Degrees)
        self.vLayout_grbParameters.addWidget(self.txtDescAngle)

        self.pnlOCAH = MCAHPanel(self.grbParameters)
        self.pnlOCAH.lblMCAH.setText("Minimum Altitude (ft):")
        self.pnlOCAH.lblMCAH.setMaximumWidth(160)
        self.pnlOCAH.lblMCAH.setMinimumWidth(160)
        self.pnlOCAH.setValue(Altitude(800, AltitudeUnits.FT))
        self.pnlOCAH.cmbMCAH.clear()
        self.pnlOCAH.cmbMCAH.addItems([OCAHType.OCA, OCAHType.OCH])
        self.vLayout_grbParameters.addWidget(self.pnlOCAH)

        self.cmbConstructionType = ComboBoxPanel(self.grbParameters)
        self.cmbConstructionType.Caption = "Construction Type"
        self.cmbConstructionType.LabelWidth = 160
        self.vLayout_grbParameters.addWidget(self.cmbConstructionType)

        self.chbAdCodeF = CheckBox(self.grbParameters)
        self.chbAdCodeF.Caption = "Aerodrome Code Letter"
        self.vLayout_grbParameters.addWidget(self.chbAdCodeF)

        self.verticalLayout.addWidget(self.grbParameters)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)

        self.retranslateUi(form_VSS)
        QtCore.QMetaObject.connectSlotsByName(form_VSS)
コード例 #10
0
    def setupUi(self, Dialog, catType):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(300, 300)
        Dialog.setMinimumSize(QtCore.QSize(0, 0))
        self.verticalLayout_11 = QtGui.QVBoxLayout(Dialog)
        self.verticalLayout_11.setObjectName(_fromUtf8("verticalLayout_11"))
        self.tabControls = QtGui.QTabWidget(Dialog)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.tabControls.setFont(font)
        self.tabControls.setAutoFillBackground(False)
        self.tabControls.setStyleSheet(_fromUtf8(""))
        self.tabControls.setObjectName(_fromUtf8("tabControls"))
        self.tab_General = QtGui.QWidget(Dialog)
        self.tab_General.setObjectName(_fromUtf8("tab_General"))
        self.horizontalLayout_29 = QtGui.QHBoxLayout(self.tab_General)
        self.horizontalLayout_29.setMargin(3)
        self.horizontalLayout_29.setObjectName(_fromUtf8("horizontalLayout_29"))

        self.tabCtrlGeneral = QtGui.QTabWidget(self.tab_General)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.tabCtrlGeneral.setFont(font)
        self.tabCtrlGeneral.setAutoFillBackground(False)
        self.tabCtrlGeneral.setStyleSheet(_fromUtf8(""))
        self.tabCtrlGeneral.setObjectName(_fromUtf8("tabCtrlGeneral"))
        self.horizontalLayout_29.addWidget(self.tabCtrlGeneral)

        self.tabInputData = QtGui.QWidget(self.tabCtrlGeneral)
        self.tabInputData.setObjectName(_fromUtf8("tabInputData"))

        self.vLayoutTabInputData = QtGui.QVBoxLayout(self.tabInputData)
        self.vLayoutTabInputData.setMargin(3)
        self.vLayoutTabInputData.setObjectName(_fromUtf8("vLayoutTabInputData"))
        self.tabCtrlGeneral.addTab(self.tabInputData, "Input Data")

        self.tabOasIls = QtGui.QWidget(self.tabCtrlGeneral)
        self.tabOasIls.setObjectName(_fromUtf8("tabOasIls"))
        self.vLayoutTabOasIls = QtGui.QHBoxLayout(self.tabOasIls)
        self.vLayoutTabOasIls.setMargin(3)
        self.vLayoutTabOasIls.setObjectName(_fromUtf8("vLayoutTabOasIls"))
        if catType == "ILS":
            self.tabCtrlGeneral.addTab(self.tabOasIls, "OAS ILS")
        else:
            self.tabCtrlGeneral.addTab(self.tabOasIls, "OAS SBAS")



        self.groupBox_11 = QtGui.QGroupBox(self.tabInputData)
        self.groupBox_11.setTitle(_fromUtf8(""))
        self.groupBox_11.setObjectName(_fromUtf8("groupBox_11"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox_11)
        self.verticalLayout_5.setMargin(5)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))

        self.cmbAerodrome = ComboBoxPanel(self.groupBox_11, True)
        self.cmbAerodrome.Caption = "Aerodrome"
        self.cmbAerodrome.LabelWidth = 120
        # self.cmbAerodrome.Editable = True
        self.verticalLayout_5.addWidget(self.cmbAerodrome)

        self.cmbRwyDir = ComboBoxPanel(self.groupBox_11, True)
        self.cmbRwyDir.Caption = "Runway Direction"
        self.cmbRwyDir.LabelWidth = 120
        self.cmbRwyDir.Width = 120
        self.verticalLayout_5.addWidget(self.cmbRwyDir)

        self.pnlThr = PositionPanel(self.groupBox_11)
        self.pnlThr.groupBox.setTitle("Threshold Position")
        self.pnlThr.btnCalculater.setVisible(False)
        self.verticalLayout_5.addWidget(self.pnlThr)

        self.pnlRwyEnd = PositionPanel(self.groupBox_11)
        self.pnlRwyEnd.groupBox.setTitle("Runway End Position")
        self.pnlRwyEnd.btnCalculater.setVisible(False)
        self.pnlRwyEnd.hideframe_Altitude()
        self.verticalLayout_5.addWidget(self.pnlRwyEnd)

        self.txtTrack = TrackRadialBoxPanel(self.groupBox_11)
        self.txtTrack.Caption = "In-Bound Track"
        self.txtTrack.LabelWidth = 120
        self.verticalLayout_5.addWidget(self.txtTrack)

        self.frame_37 = QtGui.QFrame(self.tabOasIls)
        self.frame_37.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_37.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_37.setObjectName(_fromUtf8("frame_37"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.frame_37)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.groupBox_20 = QtGui.QGroupBox(self.frame_37)
        self.groupBox_20.setObjectName(_fromUtf8("groupBox_20"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox_20)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))

        self.cmbSelectionMode = ComboBoxPanel(self.groupBox_20)
        self.cmbSelectionMode.Caption = "Selection Mode"
        self.verticalLayout_3.addWidget(self.cmbSelectionMode)



        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)

        self.txtOCAH = OCAHPanel(self.groupBox_20)
        self.txtOCAH.Value = Altitude(2000, AltitudeUnits.FT)
        self.verticalLayout_3.addWidget(self.txtOCAH)

        self.txtMOC = AltitudeBoxPanel(self.groupBox_20)
        self.txtMOC.Caption = "Intermediate Segment MOC"
        self.txtMOC.CaptionUnits = "m"
        self.txtMOC.Value = Altitude(150)
        self.verticalLayout_3.addWidget(self.txtMOC)

        self.cmbConstructionType = ComboBoxPanel(self.groupBox_20)
        self.cmbConstructionType.Caption = "Construction Type"
        self.verticalLayout_3.addWidget(self.cmbConstructionType)

        self.verticalLayout_2.addWidget(self.groupBox_20)
        self.groupBox_2 = QtGui.QGroupBox(self.frame_37)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.verticalLayout = QtGui.QVBoxLayout(self.groupBox_2)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.frame_5 = QtGui.QFrame(self.groupBox_2)
        self.frame_5.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_5.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_5.setObjectName(_fromUtf8("frame_5"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.frame_5)
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.frame_6 = QtGui.QFrame(self.frame_5)
        self.frame_6.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_6.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_6.setObjectName(_fromUtf8("frame_6"))
        self.verticalLayout_9 = QtGui.QVBoxLayout(self.frame_6)
        self.verticalLayout_9.setContentsMargins(-1, -1, -1, 0)
        self.verticalLayout_9.setObjectName(_fromUtf8("verticalLayout_9"))

        self.cmbOasCategory = ComboBoxPanel(self.frame_6)
        self.cmbOasCategory.Caption = "Category"
        self.cmbOasCategory.LabelWidth = 150
        self.verticalLayout_9.addWidget(self.cmbOasCategory)

        self.cmbGPA = ComboBoxPanel(self.frame_6)
        self.cmbGPA.CaptionUnits = define._degreeStr
        self.cmbGPA.Caption = "Glide Path Angle"
        self.cmbGPA.LabelWidth = 150
        self.verticalLayout_9.addWidget(self.cmbGPA)

        self.cmbMACG = ComboBoxPanel(self.frame_6)
        self.cmbMACG.CaptionUnits = "%"
        self.cmbMACG.Caption = "MA Climb Gradient"
        self.cmbMACG.LabelWidth = 150
        self.verticalLayout_9.addWidget(self.cmbMACG)

        self.txtRDH = NumberBoxPanel(self.frame_6)
        self.txtRDH.CaptionUnits = "m"
        self.txtRDH.Caption = "RDH at Threshold"
        self.txtRDH.LabelWidth = 150
        self.txtRDH.Value = 15
        self.verticalLayout_9.addWidget(self.txtRDH)

        self.horizontalLayout.addWidget(self.frame_6)

        self.frame_7 = QtGui.QFrame(self.frame_5)
        self.frame_7.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_7.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_7.setObjectName(_fromUtf8("frame_7"))
        self.verticalLayout_13 = QtGui.QVBoxLayout(self.frame_7)
        self.verticalLayout_13.setContentsMargins(9, -1, -1, 0)
        self.verticalLayout_13.setObjectName(_fromUtf8("verticalLayout_13"))

        self.txtCW = NumberBoxPanel(self.frame_7)
        self.txtCW.CaptionUnits = "m"
        self.txtCW.Caption = "LOC Course Width at THR"
        self.txtCW.LabelWidth = 175
        self.txtCW.Value = 210
        self.verticalLayout_13.addWidget(self.txtCW)

        self.txtDLT = DistanceBoxPanel(self.frame_7, DistanceUnits.M)
        self.txtDLT.Caption = "LOC to THR Distance"
        self.txtDLT.LabelWidth = 175
        self.txtDLT.Value = Distance(2000)
        self.verticalLayout_13.addWidget(self.txtDLT)

        self.txtContourHeight = NumberBoxPanel(self.frame_7)
        self.txtContourHeight.CaptionUnits = "m"
        self.txtContourHeight.Caption = "OCA Contour Height AGL"
        self.txtContourHeight.LabelWidth = 175
        self.txtContourHeight.Value = 300
        self.verticalLayout_13.addWidget(self.txtContourHeight)

        self.cmbMAMethod = ComboBoxPanel(self.frame_7)
        self.cmbMAMethod.Caption = "MA Obstacles Evaluation"
        self.cmbMAMethod.LabelWidth = 175
        self.verticalLayout_13.addWidget(self.cmbMAMethod)

        self.horizontalLayout.addWidget(self.frame_7)
        self.verticalLayout.addWidget(self.frame_5)

        self.frame_4 = QtGui.QFrame(self.groupBox_2)
        self.frame_4.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_4.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_4.setObjectName(_fromUtf8("frame_4"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame_4)
        self.horizontalLayout_2.setSpacing(0)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.groupBox_3 = QtGui.QGroupBox(self.frame_4)
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_6.setSpacing(0)
        self.horizontalLayout_6.setMargin(0)
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.frame_8 = QtGui.QFrame(self.groupBox_3)
        self.frame_8.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_8.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_8.setObjectName(_fromUtf8("frame_8"))
        self.verticalLayout_14 = QtGui.QVBoxLayout(self.frame_8)
        self.verticalLayout_14.setContentsMargins(6, 0, -1, -1)
        self.verticalLayout_14.setObjectName(_fromUtf8("verticalLayout_14"))

        self.cmbAcCategory = ComboBoxPanel(self.frame_8)
        self.cmbAcCategory.Caption = "Category"
        self.cmbAcCategory.LabelWidth = 150
        self.verticalLayout_14.addWidget(self.cmbAcCategory)

        self.txtHL = NumberBoxPanel(self.frame_8)
        self.txtHL.CaptionUnits = "m"
        self.txtHL.Caption = "Height Loss"
        self.txtHL.LabelWidth = 150
        self.txtHL.Value = 40
        self.verticalLayout_14.addWidget(self.txtHL)

        self.horizontalLayout_6.addWidget(self.frame_8)
        self.frame_9 = QtGui.QFrame(self.groupBox_3)
        self.frame_9.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_9.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_9.setObjectName(_fromUtf8("frame_9"))
        self.verticalLayout_15 = QtGui.QVBoxLayout(self.frame_9)
        self.verticalLayout_15.setContentsMargins(3, 0, -1, -1)
        self.verticalLayout_15.setObjectName(_fromUtf8("verticalLayout_15"))

        self.txtWSS = NumberBoxPanel(self.frame_9, "0.0")
        self.txtWSS.CaptionUnits = "m"
        self.txtWSS.Caption = "Wing Semi Span"
        self.txtWSS.LabelWidth = 175
        self.txtWSS.Value = 30
        self.verticalLayout_15.addWidget(self.txtWSS)

        self.txtWH = NumberBoxPanel(self.frame_9, "0")
        self.txtWH.CaptionUnits = "m"
        self.txtWH.Caption = "Wheel Height"
        self.txtWH.LabelWidth = 175
        self.txtWH.Value = 6
        self.verticalLayout_15.addWidget(self.txtWH)

        self.horizontalLayout_6.addWidget(self.frame_9)
        self.horizontalLayout_2.addWidget(self.groupBox_3)
        self.verticalLayout.addWidget(self.frame_4)
        self.lblConstants = QtGui.QLabel(self.groupBox_2)
        font = QtGui.QFont()
        font.setUnderline(True)
        self.lblConstants.setFont(font)
        self.lblConstants.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.lblConstants.setStyleSheet(_fromUtf8("color: rgb(0, 0, 255);"))
        self.lblConstants.setAlignment(QtCore.Qt.AlignCenter)
        self.lblConstants.setObjectName(_fromUtf8("lblConstants"))
        self.verticalLayout.addWidget(self.lblConstants)
        self.verticalLayout_2.addWidget(self.groupBox_2)
        self.vLayoutTabOasIls.addWidget(self.frame_37)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem)
        self.vLayoutTabInputData.addWidget(self.groupBox_11)
        self.frame_38 = QtGui.QFrame(self.tab_General)
        self.frame_38.setMaximumSize(QtCore.QSize(100, 16777215))
        self.frame_38.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_38.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_38.setObjectName(_fromUtf8("frame_38"))
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.frame_38)
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.btnOpenData = QtGui.QPushButton(self.frame_38)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.btnOpenData.setFont(font)
        self.btnOpenData.setObjectName(_fromUtf8("btnOpenData"))
        self.verticalLayout_7.addWidget(self.btnOpenData)
        self.btnSaveData = QtGui.QPushButton(self.frame_38)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.btnSaveData.setFont(font)
        self.btnSaveData.setObjectName(_fromUtf8("btnSaveData"))
        self.verticalLayout_7.addWidget(self.btnSaveData)
        self.btnConstruct = QtGui.QPushButton(self.frame_38)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.btnConstruct.setFont(font)
        self.btnConstruct.setObjectName(_fromUtf8("btnConstruct"))
        self.verticalLayout_7.addWidget(self.btnConstruct)
        self.btnEvaluate = QtGui.QPushButton(self.frame_38)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.btnEvaluate.setFont(font)
        self.btnEvaluate.setObjectName(_fromUtf8("btnEvaluate"))
        self.verticalLayout_7.addWidget(self.btnEvaluate)
        self.btnUpdateQA = QtGui.QPushButton(self.frame_38)
        self.btnUpdateQA.setEnabled(False)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.btnUpdateQA.setFont(font)
        self.btnUpdateQA.setObjectName(_fromUtf8("btnUpdateQA"))
        self.verticalLayout_7.addWidget(self.btnUpdateQA)
        self.btnClose = QtGui.QPushButton(self.frame_38)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.btnClose.setFont(font)
        self.btnClose.setObjectName(_fromUtf8("btnClose"))
        self.verticalLayout_7.addWidget(self.btnClose)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_7.addItem(spacerItem1)
        self.horizontalLayout_29.addWidget(self.frame_38)
        self.tabControls.addTab(self.tab_General, _fromUtf8(""))
        self.tab_Results = QtGui.QWidget(Dialog)
        self.tab_Results.setObjectName(_fromUtf8("tab_Results"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.tab_Results)
        self.horizontalLayout_3.setSpacing(3)
        self.horizontalLayout_3.setMargin(3)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.groupBox = QtGui.QGroupBox(self.tab_Results)
        self.groupBox.setTitle(_fromUtf8(""))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_6.setMargin(3)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.groupBox_32 = QtGui.QGroupBox(self.groupBox)
        self.groupBox_32.setObjectName(_fromUtf8("groupBox_32"))
        self.verticalLayout_16 = QtGui.QVBoxLayout(self.groupBox_32)
        self.verticalLayout_16.setContentsMargins(-1, 0, -1, 3)
        self.verticalLayout_16.setObjectName(_fromUtf8("verticalLayout_16"))
        self.frame_2 = QtGui.QFrame(self.groupBox_32)
        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName(_fromUtf8("frame_2"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.frame_2)
        self.horizontalLayout_4.setSpacing(0)
        self.horizontalLayout_4.setMargin(0)
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.frame_3 = QtGui.QFrame(self.frame_2)
        self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_3.setObjectName(_fromUtf8("frame_3"))
        self.verticalLayout_19 = QtGui.QVBoxLayout(self.frame_3)
        self.verticalLayout_19.setMargin(0)
        self.verticalLayout_19.setObjectName(_fromUtf8("verticalLayout_19"))
        self.frame_107 = QtGui.QFrame(self.frame_3)
        self.frame_107.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame_107.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_107.setObjectName(_fromUtf8("frame_107"))
        self.horizontalLayout_94 = QtGui.QHBoxLayout(self.frame_107)
        self.horizontalLayout_94.setSpacing(0)
        self.horizontalLayout_94.setMargin(0)
        self.horizontalLayout_94.setObjectName(_fromUtf8("horizontalLayout_94"))
        self.label_115 = QtGui.QLabel(self.frame_107)
        self.label_115.setMinimumSize(QtCore.QSize(200, 0))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_115.setFont(font)
        self.label_115.setObjectName(_fromUtf8("label_115"))
        self.horizontalLayout_94.addWidget(self.label_115)
        self.txtID = QtGui.QLineEdit(self.frame_107)
        self.txtID.setEnabled(False)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.txtID.setFont(font)
        self.txtID.setText(_fromUtf8(""))
        self.txtID.setObjectName(_fromUtf8("txtID"))
        self.horizontalLayout_94.addWidget(self.txtID)
        self.verticalLayout_19.addWidget(self.frame_107)
        self.frame_109 = QtGui.QFrame(self.frame_3)
        self.frame_109.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame_109.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_109.setObjectName(_fromUtf8("frame_109"))
        self.horizontalLayout_96 = QtGui.QHBoxLayout(self.frame_109)
        self.horizontalLayout_96.setSpacing(0)
        self.horizontalLayout_96.setMargin(0)
        self.horizontalLayout_96.setObjectName(_fromUtf8("horizontalLayout_96"))
        self.label_119 = QtGui.QLabel(self.frame_109)
        self.label_119.setMinimumSize(QtCore.QSize(200, 0))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_119.setFont(font)
        self.label_119.setObjectName(_fromUtf8("label_119"))
        self.horizontalLayout_96.addWidget(self.label_119)
        self.txtX = QtGui.QLineEdit(self.frame_109)
        self.txtX.setEnabled(False)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.txtX.setFont(font)
        self.txtX.setObjectName(_fromUtf8("txtX"))
        self.horizontalLayout_96.addWidget(self.txtX)
        self.verticalLayout_19.addWidget(self.frame_109)
        self.frame_110 = QtGui.QFrame(self.frame_3)
        self.frame_110.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame_110.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_110.setObjectName(_fromUtf8("frame_110"))
        self.horizontalLayout_97 = QtGui.QHBoxLayout(self.frame_110)
        self.horizontalLayout_97.setSpacing(0)
        self.horizontalLayout_97.setMargin(0)
        self.horizontalLayout_97.setObjectName(_fromUtf8("horizontalLayout_97"))
        self.label_120 = QtGui.QLabel(self.frame_110)
        self.label_120.setMinimumSize(QtCore.QSize(200, 0))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_120.setFont(font)
        self.label_120.setObjectName(_fromUtf8("label_120"))
        self.horizontalLayout_97.addWidget(self.label_120)
        self.txtY = QtGui.QLineEdit(self.frame_110)
        self.txtY.setEnabled(False)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.txtY.setFont(font)
        self.txtY.setObjectName(_fromUtf8("txtY"))
        self.horizontalLayout_97.addWidget(self.txtY)
        self.verticalLayout_19.addWidget(self.frame_110)
        self.horizontalLayout_4.addWidget(self.frame_3)
        self.toolButton = QtGui.QToolButton(self.frame_2)
        self.toolButton.setMaximumSize(QtCore.QSize(25, 250))
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/mActionZoomFullExtent.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.toolButton.setIcon(icon2)
        self.toolButton.setObjectName(_fromUtf8("toolButton"))
        self.horizontalLayout_4.addWidget(self.toolButton)
        self.verticalLayout_16.addWidget(self.frame_2)
        self.frame_108 = QtGui.QFrame(self.groupBox_32)
        self.frame_108.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame_108.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_108.setObjectName(_fromUtf8("frame_108"))
        self.horizontalLayout_95 = QtGui.QHBoxLayout(self.frame_108)
        self.horizontalLayout_95.setSpacing(0)
        self.horizontalLayout_95.setMargin(0)
        self.horizontalLayout_95.setObjectName(_fromUtf8("horizontalLayout_95"))
        self.label_116 = QtGui.QLabel(self.frame_108)
        self.label_116.setMinimumSize(QtCore.QSize(200, 0))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_116.setFont(font)
        self.label_116.setObjectName(_fromUtf8("label_116"))
        self.horizontalLayout_95.addWidget(self.label_116)
        self.txtAltitude = QtGui.QLineEdit(self.frame_108)
        self.txtAltitude.setEnabled(False)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.txtAltitude.setFont(font)
        self.txtAltitude.setObjectName(_fromUtf8("txtAltitude"))
        self.horizontalLayout_95.addWidget(self.txtAltitude)
        self.label_117 = QtGui.QLabel(self.frame_108)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_117.setFont(font)
        self.label_117.setObjectName(_fromUtf8("label_117"))
        self.horizontalLayout_95.addWidget(self.label_117)
        self.txtAltitudeM = QtGui.QLineEdit(self.frame_108)
        self.txtAltitudeM.setEnabled(False)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.txtAltitudeM.setFont(font)
        self.txtAltitudeM.setObjectName(_fromUtf8("txtAltitudeM"))
        self.horizontalLayout_95.addWidget(self.txtAltitudeM)
        self.label_118 = QtGui.QLabel(self.frame_108)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_118.setFont(font)
        self.label_118.setObjectName(_fromUtf8("label_118"))
        self.horizontalLayout_95.addWidget(self.label_118)
        self.verticalLayout_16.addWidget(self.frame_108)
        self.frame_111 = QtGui.QFrame(self.groupBox_32)
        self.frame_111.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame_111.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_111.setObjectName(_fromUtf8("frame_111"))
        self.horizontalLayout_98 = QtGui.QHBoxLayout(self.frame_111)
        self.horizontalLayout_98.setSpacing(0)
        self.horizontalLayout_98.setMargin(0)
        self.horizontalLayout_98.setObjectName(_fromUtf8("horizontalLayout_98"))
        self.label_121 = QtGui.QLabel(self.frame_111)
        self.label_121.setMinimumSize(QtCore.QSize(200, 0))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_121.setFont(font)
        self.label_121.setObjectName(_fromUtf8("label_121"))
        self.horizontalLayout_98.addWidget(self.label_121)
        self.txtSurface = QtGui.QLineEdit(self.frame_111)
        self.txtSurface.setEnabled(False)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.txtSurface.setFont(font)
        self.txtSurface.setObjectName(_fromUtf8("txtSurface"))
        self.horizontalLayout_98.addWidget(self.txtSurface)
        self.verticalLayout_16.addWidget(self.frame_111)
        self.verticalLayout_6.addWidget(self.groupBox_32)
        self.groupBox_33 = QtGui.QGroupBox(self.groupBox)
        self.groupBox_33.setObjectName(_fromUtf8("groupBox_33"))
        self.verticalLayout_17 = QtGui.QVBoxLayout(self.groupBox_33)
        self.verticalLayout_17.setSpacing(0)
        self.verticalLayout_17.setContentsMargins(-1, 0, -1, 3)
        self.verticalLayout_17.setObjectName(_fromUtf8("verticalLayout_17"))
        self.frame_112 = QtGui.QFrame(self.groupBox_33)
        self.frame_112.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame_112.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_112.setObjectName(_fromUtf8("frame_112"))
        self.horizontalLayout_99 = QtGui.QHBoxLayout(self.frame_112)
        self.horizontalLayout_99.setSpacing(0)
        self.horizontalLayout_99.setMargin(0)
        self.horizontalLayout_99.setObjectName(_fromUtf8("horizontalLayout_99"))
        self.label_122 = QtGui.QLabel(self.frame_112)
        self.label_122.setMinimumSize(QtCore.QSize(200, 0))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_122.setFont(font)
        self.label_122.setObjectName(_fromUtf8("label_122"))
        self.horizontalLayout_99.addWidget(self.label_122)
        self.cmbUnits = QtGui.QComboBox(self.frame_112)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cmbUnits.sizePolicy().hasHeightForWidth())
        self.cmbUnits.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        self.cmbUnits.setFont(font)
        self.cmbUnits.setEditable(False)
        self.cmbUnits.setObjectName(_fromUtf8("cmbUnits"))
        self.horizontalLayout_99.addWidget(self.cmbUnits)
        self.verticalLayout_17.addWidget(self.frame_112)
        self.frame_113 = QtGui.QFrame(self.groupBox_33)
        self.frame_113.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame_113.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_113.setObjectName(_fromUtf8("frame_113"))
        self.horizontalLayout_100 = QtGui.QHBoxLayout(self.frame_113)
        self.horizontalLayout_100.setSpacing(0)
        self.horizontalLayout_100.setMargin(0)
        self.horizontalLayout_100.setObjectName(_fromUtf8("horizontalLayout_100"))
        self.txtOCH = QtGui.QLineEdit(self.frame_113)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.txtOCH.setFont(font)
        self.txtOCH.setObjectName(_fromUtf8("txtOCH"))
        self.horizontalLayout_100.addWidget(self.txtOCH)
        self.txtOCHResults = QtGui.QLineEdit(self.frame_113)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.txtOCHResults.setFont(font)
        self.txtOCHResults.setObjectName(_fromUtf8("txtOCHResults"))
        self.horizontalLayout_100.addWidget(self.txtOCHResults)
        self.verticalLayout_17.addWidget(self.frame_113)
        self.frame_114 = QtGui.QFrame(self.groupBox_33)
        self.frame_114.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame_114.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_114.setObjectName(_fromUtf8("frame_114"))
        self.horizontalLayout_101 = QtGui.QHBoxLayout(self.frame_114)
        self.horizontalLayout_101.setSpacing(0)
        self.horizontalLayout_101.setMargin(0)
        self.horizontalLayout_101.setObjectName(_fromUtf8("horizontalLayout_101"))
        self.txtOCA = QtGui.QLineEdit(self.frame_114)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.txtOCA.setFont(font)
        self.txtOCA.setObjectName(_fromUtf8("txtOCA"))
        self.horizontalLayout_101.addWidget(self.txtOCA)
        self.txtOCAResults = QtGui.QLineEdit(self.frame_114)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.txtOCAResults.setFont(font)
        self.txtOCAResults.setObjectName(_fromUtf8("txtOCAResults"))
        self.horizontalLayout_101.addWidget(self.txtOCAResults)
        self.verticalLayout_17.addWidget(self.frame_114)
        self.frame_116 = QtGui.QFrame(self.groupBox_33)
        self.frame_116.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame_116.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_116.setObjectName(_fromUtf8("frame_116"))
        self.horizontalLayout_103 = QtGui.QHBoxLayout(self.frame_116)
        self.horizontalLayout_103.setSpacing(0)
        self.horizontalLayout_103.setMargin(0)
        self.horizontalLayout_103.setObjectName(_fromUtf8("horizontalLayout_103"))
        self.txtOCA_2 = QtGui.QLineEdit(self.frame_116)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.txtOCA_2.setFont(font)
        self.txtOCA_2.setObjectName(_fromUtf8("txtOCA_2"))
        self.horizontalLayout_103.addWidget(self.txtOCA_2)
        self.txtResultSocText = QtGui.QLineEdit(self.frame_116)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.txtResultSocText.setFont(font)
        self.txtResultSocText.setObjectName(_fromUtf8("txtResultSocText"))
        self.horizontalLayout_103.addWidget(self.txtResultSocText)
        self.verticalLayout_17.addWidget(self.frame_116)
        self.verticalLayout_6.addWidget(self.groupBox_33)
        self.groupBox_34 = QtGui.QGroupBox(self.groupBox)
        self.groupBox_34.setObjectName(_fromUtf8("groupBox_34"))
        self.verticalLayout_18 = QtGui.QVBoxLayout(self.groupBox_34)
        self.verticalLayout_18.setContentsMargins(-1, 0, -1, 3)
        self.verticalLayout_18.setObjectName(_fromUtf8("verticalLayout_18"))
        self.frame_115 = QtGui.QFrame(self.groupBox_34)
        self.frame_115.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame_115.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_115.setObjectName(_fromUtf8("frame_115"))
        self.horizontalLayout_102 = QtGui.QHBoxLayout(self.frame_115)
        self.horizontalLayout_102.setSpacing(0)
        self.horizontalLayout_102.setMargin(0)
        self.horizontalLayout_102.setObjectName(_fromUtf8("horizontalLayout_102"))
        self.label_123 = QtGui.QLabel(self.frame_115)
        self.label_123.setMinimumSize(QtCore.QSize(200, 0))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_123.setFont(font)
        self.label_123.setObjectName(_fromUtf8("label_123"))
        self.horizontalLayout_102.addWidget(self.label_123)
        self.cmbSurface = QtGui.QComboBox(self.frame_115)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cmbSurface.sizePolicy().hasHeightForWidth())
        self.cmbSurface.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.cmbSurface.setFont(font)
        self.cmbSurface.setObjectName(_fromUtf8("cmbSurface"))
        self.horizontalLayout_102.addWidget(self.cmbSurface)
        self.verticalLayout_18.addWidget(self.frame_115)
        self.tblObstacles = TableViewObstacle(self.groupBox_34)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        self.tblObstacles.setFont(font)
        self.tblObstacles.setObjectName(_fromUtf8("tblObstacles"))
        self.verticalLayout_18.addWidget(self.tblObstacles)
        self.verticalLayout_6.addWidget(self.groupBox_34)
        self.horizontalLayout_3.addWidget(self.groupBox)
        self.frame = QtGui.QFrame(self.tab_Results)
#         self.frame.setMinimumSize(QtCore.QSize(105, 16777215))
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName(_fromUtf8("frame"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.frame)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.btnMarkSoc = QtGui.QPushButton(self.frame)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.btnMarkSoc.setFont(font)
        self.btnMarkSoc.setObjectName(_fromUtf8("btnMarkSoc"))
        self.verticalLayout_4.addWidget(self.btnMarkSoc)
        self.btnLocate = QtGui.QPushButton(self.frame)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.btnLocate.setFont(font)
        self.btnLocate.setObjectName(_fromUtf8("btnLocate"))
        self.verticalLayout_4.addWidget(self.btnLocate)
        self.btnUpdateQA_2 = QtGui.QPushButton(self.frame)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.btnUpdateQA_2.setFont(font)
        self.btnUpdateQA_2.setObjectName(_fromUtf8("btnUpdateQA_2"))
        self.verticalLayout_4.addWidget(self.btnUpdateQA_2)
        self.btnClose_2 = QtGui.QPushButton(self.frame)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.btnClose_2.setFont(font)
        self.btnClose_2.setObjectName(_fromUtf8("btnClose_2"))
        self.verticalLayout_4.addWidget(self.btnClose_2)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem2)
        self.horizontalLayout_3.addWidget(self.frame)
        self.tabControls.addTab(self.tab_Results, _fromUtf8(""))
        self.verticalLayout_11.addWidget(self.tabControls)

        self.retranslateUi(Dialog)
        self.tabControls.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/openData.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnOpenData.setIcon(icon)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/saveData.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnSaveData.setIcon(icon)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/construct.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnConstruct.setIcon(icon)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/evaluate.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnEvaluate.setIcon(icon)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/close.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnClose.setIcon(icon)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/locate.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnLocate.setIcon(icon)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/pdtCheck.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
#         self.btnPDCheck.setIcon(icon)
        icon = QtGui.QIcon()        
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/close.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnClose_2.setIcon(icon)
        self.iconExport = QtGui.QIcon()        
        self.iconExport.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/exportResult.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
#         self.btnExportResult.setIcon(icon)
        self.iconMark = QtGui.QIcon()        
        self.iconMark.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/locate0.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnMarkSoc.setIcon(self.iconMark)
        
        self.btnClose.setToolTip(_fromUtf8("Close"))
        self.btnClose_2.setToolTip(_fromUtf8("Close"))
        self.btnConstruct.setToolTip(_fromUtf8("Construct"))
        self.btnEvaluate.setToolTip(_fromUtf8("Evaluate"))
        self.btnLocate.setToolTip(_fromUtf8("Locate"))
#         self.btnExportResult.setToolTip(_fromUtf8("Export Result"))
        self.btnOpenData.setToolTip(_fromUtf8("Open Data"))
        self.btnSaveData.setToolTip(_fromUtf8("Save Data"))
        self.btnMarkSoc.setToolTip(_fromUtf8("Mark SOC"))

        self.btnClose.setIconSize(QtCore.QSize(32,32))
        self.btnClose_2.setIconSize(QtCore.QSize(32,32))
        self.btnConstruct.setIconSize(QtCore.QSize(32,32))
        self.btnEvaluate.setIconSize(QtCore.QSize(32,32))
        self.btnLocate.setIconSize(QtCore.QSize(32,32))
        self.btnMarkSoc.setIconSize(QtCore.QSize(32,32))
        self.btnOpenData.setIconSize(QtCore.QSize(32,32))
        self.btnSaveData.setIconSize(QtCore.QSize(32,32))
コード例 #11
0
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(548, 584)
        self.verticalLayout_8 = QtGui.QVBoxLayout(Dialog)
        self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
        self.tabControls = QtGui.QTabWidget(Dialog)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setWeight(50)
        font.setBold(False)
        self.tabControls.setFont(font)
        self.tabControls.setAutoFillBackground(False)
        self.tabControls.setStyleSheet(_fromUtf8(""))
        self.tabControls.setObjectName(_fromUtf8("tabControls"))
        self.tab_General = QtGui.QWidget(Dialog)
        self.tab_General.setObjectName(_fromUtf8("tab_General"))
        self.horizontalLayout_29 = QtGui.QHBoxLayout(self.tab_General)
        self.horizontalLayout_29.setMargin(3)
        self.horizontalLayout_29.setObjectName(_fromUtf8("horizontalLayout_29"))
        self.frame_2 = QtGui.QFrame(self.tab_General)
        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName(_fromUtf8("frame_2"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.frame_2)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.groupBox_20 = QtGui.QGroupBox(self.frame_2)
        self.groupBox_20.setObjectName(_fromUtf8("groupBox_20"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox_20)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))

        self.cmbSegmentType = ComboBoxPanel(self.groupBox_20)
        self.cmbSegmentType.Caption = "Visual Segment Type"
        self.cmbSegmentType.LabelWidth = 250
        self.verticalLayout_5.addWidget(self.cmbSegmentType)

        self.cmbDepartureType = ComboBoxPanel(self.groupBox_20)
        self.cmbDepartureType.Caption = "Departure Type"
        self.cmbDepartureType.LabelWidth = 250
        self.verticalLayout_5.addWidget(self.cmbDepartureType)

        self.txtVSDG = AngleGradientBoxPanel(self.groupBox_20)
        self.txtVSDG.CaptionUnits = AngleGradientSlopeUnits.Percent
        self.txtVSDG.Caption = "Visual Segment Design Gradient [VSDG]"
        self.txtVSDG.LabelWidth = 250
        self.txtVSDG.Value = AngleGradientSlope(5, AngleGradientSlopeUnits.Percent)
        self.verticalLayout_5.addWidget(self.txtVSDG)

        self.txtTakeOffSurfaceTrack = TrackRadialBoxPanel(self.groupBox_20)
        self.txtTakeOffSurfaceTrack.Caption = "Out-bound Take-off Surface Track"
        self.txtTakeOffSurfaceTrack.LabelWidth = 250
        self.verticalLayout_5.addWidget(self.txtTakeOffSurfaceTrack)

        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)

        self.txtMOC = AltitudeBoxPanel(self.groupBox_20)
        self.txtMOC.CaptionUnits = "m"
        self.txtMOC.Caption = "MOC"
        self.txtMOC.Value = Altitude(30)
        self.txtMOC.LabelWidth = 250
        self.verticalLayout_5.addWidget(self.txtMOC)

        self.frame_Limitation = QtGui.QFrame(self.groupBox_20)
        self.frame_Limitation.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_Limitation.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_Limitation.setObjectName(_fromUtf8("frame_Limitation"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame_Limitation)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.chbLeftTurnProhibited = QtGui.QCheckBox(self.frame_Limitation)
        self.chbLeftTurnProhibited.setMinimumSize(QtCore.QSize(230, 0))
        font = QtGui.QFont()
        font.setWeight(50)
        font.setBold(False)
        self.chbLeftTurnProhibited.setFont(font)
        self.chbLeftTurnProhibited.setObjectName(_fromUtf8("chbLeftTurnProhibited"))
        self.horizontalLayout_2.addWidget(self.chbLeftTurnProhibited)
        self.chbRightTurnProhibited = QtGui.QCheckBox(self.frame_Limitation)
        font = QtGui.QFont()
        font.setWeight(50)
        font.setBold(False)
        self.chbRightTurnProhibited.setFont(font)
        self.chbRightTurnProhibited.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.chbRightTurnProhibited.setObjectName(_fromUtf8("chbRightTurnProhibited"))
        self.horizontalLayout_2.addWidget(self.chbRightTurnProhibited)
        self.verticalLayout_5.addWidget(self.frame_Limitation)
        self.grbIDF = QtGui.QGroupBox(self.groupBox_20)
        self.grbIDF.setObjectName(_fromUtf8("grbIDF"))
        self.verticalLayout_IDF = QtGui.QVBoxLayout(self.grbIDF)
        self.verticalLayout_IDF.setObjectName(_fromUtf8("verticalLayout_IDF"))

        self.txtTrackFrom = TrackRadialBoxPanel(self.grbIDF)
        self.txtTrackFrom.Caption = "Track From"
        self.verticalLayout_IDF.addWidget(self.txtTrackFrom)

        self.verticalLayout_5.addWidget(self.grbIDF)

        self.grbHRP = QtGui.QGroupBox(self.groupBox_20)
        self.grbHRP.setObjectName(_fromUtf8("grbHRP"))
        self.verticalLayout_HRP = QtGui.QVBoxLayout(self.grbHRP)
        self.verticalLayout_HRP.setObjectName(_fromUtf8("verticalLayout_HRP"))

        self.txtHSAL = DistanceBoxPanel(self.grbHRP, DistanceUnits.M)
        self.txtHSAL.Caption = "Safety Area Length"
        self.txtHSAL.Value = Distance(30)
        self.txtHSAL.LabelWidth = 240
        self.verticalLayout_HRP.addWidget(self.txtHSAL)

        self.txtHSAW = DistanceBoxPanel(self.grbHRP, DistanceUnits.M)
        self.txtHSAW.Caption = "Safety Area Width"
        self.txtHSAW.Value = Distance(30)
        self.txtHSAW.LabelWidth = 240
        self.verticalLayout_HRP.addWidget(self.txtHSAW)

        self.verticalLayout_5.addWidget(self.grbHRP)

        self.cmbConstructionType = ComboBoxPanel(self.groupBox_20)
        self.cmbConstructionType.Caption = "Construction Type"
        self.cmbConstructionType.LabelWidth = 250
        self.verticalLayout_5.addWidget(self.cmbConstructionType)

        self.verticalLayout_2.addWidget(self.groupBox_20)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.horizontalLayout_29.addWidget(self.frame_2)
        self.frame_38 = QtGui.QFrame(self.tab_General)
        self.frame_38.setMaximumSize(QtCore.QSize(100, 16777215))
        self.frame_38.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_38.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_38.setObjectName(_fromUtf8("frame_38"))
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.frame_38)
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.btnOpenData = QtGui.QPushButton(self.frame_38)
        font = QtGui.QFont()
        font.setWeight(50)
        font.setBold(False)
        self.btnOpenData.setFont(font)
        self.btnOpenData.setObjectName(_fromUtf8("btnOpenData"))
        self.verticalLayout_7.addWidget(self.btnOpenData)
        self.btnSaveData = QtGui.QPushButton(self.frame_38)
        font = QtGui.QFont()
        font.setWeight(50)
        font.setBold(False)
        self.btnSaveData.setFont(font)
        self.btnSaveData.setObjectName(_fromUtf8("btnSaveData"))
        self.verticalLayout_7.addWidget(self.btnSaveData)
        self.btnConstruct = QtGui.QPushButton(self.frame_38)
        font = QtGui.QFont()
        font.setWeight(50)
        font.setBold(False)
        self.btnConstruct.setFont(font)
        self.btnConstruct.setObjectName(_fromUtf8("btnConstruct"))
        self.verticalLayout_7.addWidget(self.btnConstruct)
        self.btnEvaluate = QtGui.QPushButton(self.frame_38)
        font = QtGui.QFont()
        font.setWeight(50)
        font.setBold(False)
        self.btnEvaluate.setFont(font)
        self.btnEvaluate.setObjectName(_fromUtf8("btnEvaluate"))
        self.verticalLayout_7.addWidget(self.btnEvaluate)
        self.btnUpdateQA = QtGui.QPushButton(self.frame_38)
        self.btnUpdateQA.setEnabled(False)
        font = QtGui.QFont()
        font.setWeight(50)
        font.setBold(False)
        self.btnUpdateQA.setFont(font)
        self.btnUpdateQA.setObjectName(_fromUtf8("btnUpdateQA"))
        self.verticalLayout_7.addWidget(self.btnUpdateQA)
        
        self.btnClose = QtGui.QPushButton(self.frame_38)
        font = QtGui.QFont()
        font.setWeight(50)
        font.setBold(False)
        self.btnClose.setFont(font)
        self.btnClose.setObjectName(_fromUtf8("btnClose"))
        self.verticalLayout_7.addWidget(self.btnClose)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_7.addItem(spacerItem1)
        self.horizontalLayout_29.addWidget(self.frame_38)
        self.tabControls.addTab(self.tab_General, _fromUtf8(""))
        self.tab_Results = QtGui.QWidget(Dialog)
        self.tab_Results.setObjectName(_fromUtf8("tab_Results"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.tab_Results)
        self.horizontalLayout_3.setSpacing(3)
        self.horizontalLayout_3.setMargin(3)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.frame_3 = QtGui.QFrame(self.tab_Results)
        self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_3.setObjectName(_fromUtf8("frame_3"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.frame_3)
        self.verticalLayout_6.setSpacing(6)
        self.verticalLayout_6.setMargin(0)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.frame_117 = QtGui.QFrame(self.frame_3)
        self.frame_117.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame_117.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_117.setObjectName(_fromUtf8("frame_117"))
        self.horizontalLayout_105 = QtGui.QHBoxLayout(self.frame_117)
        self.horizontalLayout_105.setSpacing(0)
        self.horizontalLayout_105.setMargin(0)
        self.horizontalLayout_105.setObjectName(_fromUtf8("horizontalLayout_105"))
        self.label_126 = QtGui.QLabel(self.frame_117)
        self.label_126.setMinimumSize(QtCore.QSize(290, 0))
        font = QtGui.QFont()
        font.setWeight(50)
        font.setBold(False)
        self.label_126.setFont(font)
        self.label_126.setObjectName(_fromUtf8("label_126"))
        self.horizontalLayout_105.addWidget(self.label_126)
        self.cmbSurface = QtGui.QComboBox(self.frame_117)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cmbSurface.sizePolicy().hasHeightForWidth())
        self.cmbSurface.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setWeight(50)
        font.setBold(False)
        self.cmbSurface.setFont(font)
        self.cmbSurface.setObjectName(_fromUtf8("cmbSurface"))
        self.horizontalLayout_105.addWidget(self.cmbSurface)
        self.verticalLayout_6.addWidget(self.frame_117)
        self.tblObstacles = QtGui.QTableView(self.frame_3)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        self.tblObstacles.setFont(font)
        self.tblObstacles.setObjectName(_fromUtf8("tblObstacles"))
        self.verticalLayout_6.addWidget(self.tblObstacles)
        self.horizontalLayout_3.addWidget(self.frame_3)
        self.frame = QtGui.QFrame(self.tab_Results)
#         self.frame.setMinimumSize(QtCore.QSize(105, 16777215))
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName(_fromUtf8("frame"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.frame)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.btnLocate = QtGui.QPushButton(self.frame)
        self.btnLocate.setEnabled(False)
        font = QtGui.QFont()
        font.setWeight(50)
        font.setBold(False)
        self.btnLocate.setFont(font)
        self.btnLocate.setObjectName(_fromUtf8("btnLocate"))
        self.verticalLayout_4.addWidget(self.btnLocate)
        self.btnUpdateQA_2 = QtGui.QPushButton(self.frame)
        self.btnUpdateQA_2.setEnabled(False)
        font = QtGui.QFont()
        font.setWeight(50)
        font.setBold(False)
        self.btnUpdateQA_2.setFont(font)
        self.btnUpdateQA_2.setObjectName(_fromUtf8("btnUpdateQA_2"))
        self.verticalLayout_4.addWidget(self.btnUpdateQA_2)
        self.btnExportResult = QtGui.QPushButton(self.frame)
        font = QtGui.QFont()
        font.setWeight(50)
        font.setBold(False)
        self.btnExportResult.setFont(font)
        self.btnExportResult.setObjectName(_fromUtf8("btnExportResult"))
        self.verticalLayout_4.addWidget(self.btnExportResult)
        self.btnClose_2 = QtGui.QPushButton(self.frame)
        font = QtGui.QFont()
        font.setWeight(50)
        font.setBold(False)
        self.btnClose_2.setFont(font)
        self.btnClose_2.setObjectName(_fromUtf8("btnClose_2"))
        self.verticalLayout_4.addWidget(self.btnClose_2)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem2)
        self.horizontalLayout_3.addWidget(self.frame)
        self.tabControls.addTab(self.tab_Results, _fromUtf8(""))
        self.verticalLayout_8.addWidget(self.tabControls)

        self.retranslateUi(Dialog)
        self.tabControls.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/openData.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnOpenData.setIcon(icon)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/saveData.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnSaveData.setIcon(icon)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/construct.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnConstruct.setIcon(icon)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/evaluate.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnEvaluate.setIcon(icon)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/close.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnClose.setIcon(icon)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/locate.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnLocate.setIcon(icon)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/pdtCheck.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
#         self.btnPDTCheck.setIcon(icon)
        icon = QtGui.QIcon()        
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/close.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnClose_2.setIcon(icon)
        icon = QtGui.QIcon()        
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/exportResult.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnExportResult.setIcon(icon)
        
        self.btnClose.setToolTip(_fromUtf8("Close"))
        self.btnClose_2.setToolTip(_fromUtf8("Close"))
        self.btnConstruct.setToolTip(_fromUtf8("Construct"))
        self.btnEvaluate.setToolTip(_fromUtf8("Evaluate"))
        self.btnLocate.setToolTip(_fromUtf8("Locate"))
        self.btnExportResult.setToolTip(_fromUtf8("Export Result"))
        self.btnOpenData.setToolTip(_fromUtf8("Open Data"))
        self.btnSaveData.setToolTip(_fromUtf8("Save Data"))
#         self.btnMarkSoc.setToolTip(_fromUtf8("Mark SOC"))

        self.btnClose.setIconSize(QtCore.QSize(32,32))
        self.btnClose_2.setIconSize(QtCore.QSize(32,32))
        self.btnConstruct.setIconSize(QtCore.QSize(32,32))
        self.btnEvaluate.setIconSize(QtCore.QSize(32,32))
        self.btnLocate.setIconSize(QtCore.QSize(32,32))
        self.btnExportResult.setIconSize(QtCore.QSize(32,32))
        self.btnOpenData.setIconSize(QtCore.QSize(32,32))
        self.btnSaveData.setIconSize(QtCore.QSize(32,32))
コード例 #12
0
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(515, 570)
        self.verticalLayout = QtGui.QVBoxLayout(Form)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.groupBox_20 = QtGui.QGroupBox(Form)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.groupBox_20.setFont(font)
        self.groupBox_20.setObjectName(_fromUtf8("groupBox_20"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox_20)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))

        self.cmbSegmentType = ComboBoxPanel(self.groupBox_20)
        self.cmbSegmentType.Caption = "Visual Segment Type"
        self.cmbSegmentType.LabelWidth = 250
        self.verticalLayout_5.addWidget(self.cmbSegmentType)

        self.cmbApproachType = ComboBoxPanel(self.groupBox_20)
        self.cmbApproachType.Caption = "Approach Type"
        self.cmbApproachType.LabelWidth = 250
        self.verticalLayout_5.addWidget(self.cmbApproachType)

        self.txtVSDG = AngleGradientBoxPanel(self.groupBox_20)
        self.txtVSDG.CaptionUnits = AngleGradientSlopeUnits.Degrees
        self.txtVSDG.Caption = "Visual Segment Design Gradient [VSDG]"
        self.txtVSDG.LabelWidth = 250
        self.txtVSDG.Value = AngleGradientSlope(
            8.3, AngleGradientSlopeUnits.Degrees)
        self.verticalLayout_5.addWidget(self.txtVSDG)

        self.txtApproachSurfaceTrack = TrackRadialBoxPanel(self.groupBox_20)
        self.txtApproachSurfaceTrack.Caption = "In-bound Approach Surface Track"
        self.verticalLayout_5.addWidget(self.txtApproachSurfaceTrack)

        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)

        self.txtMOC = AltitudeBoxPanel(self.groupBox_20)
        self.txtMOC.CaptionUnits = "m"
        self.txtMOC.Caption = "MOC"
        self.txtMOC.Value = Altitude(75)
        self.txtMOC.LabelWidth = 250
        self.verticalLayout_5.addWidget(self.txtMOC)

        self.frame_Limitation = QtGui.QFrame(self.groupBox_20)
        self.frame_Limitation.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_Limitation.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_Limitation.setObjectName(_fromUtf8("frame_Limitation"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame_Limitation)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))

        self.chbLeftFlyOverProhibited = CheckBox(self.frame_Limitation)
        self.chbLeftFlyOverProhibited.Caption = "Left fly-over prohibited"
        self.horizontalLayout_2.addWidget(self.chbLeftFlyOverProhibited)

        self.chbRightFlyOverProhibited = CheckBox(self.frame_Limitation)
        self.chbRightFlyOverProhibited.Caption = "Right fly-over prohibited"
        self.horizontalLayout_2.addWidget(self.chbRightFlyOverProhibited)

        self.verticalLayout_5.addWidget(self.frame_Limitation)

        self.grbIDF = QtGui.QGroupBox(self.groupBox_20)
        self.grbIDF.setObjectName(_fromUtf8("grbIDF"))
        self.verticalLayout_IDF = QtGui.QVBoxLayout(self.grbIDF)
        self.verticalLayout_IDF.setObjectName(_fromUtf8("verticalLayout_IDF"))

        self.txtTrackTo = TrackRadialBoxPanel(self.grbIDF)
        self.txtTrackTo.Caption = "Track To"
        self.txtTrackTo.LabelWidth = 100
        self.verticalLayout_IDF.addWidget(self.txtTrackTo)

        self.frame_Tolerance = QtGui.QFrame(self.grbIDF)
        self.frame_Tolerance.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_Tolerance.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_Tolerance.setObjectName(_fromUtf8("frame_Tolerance"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.frame_Tolerance)
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.frame_2 = QtGui.QFrame(self.frame_Tolerance)
        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName(_fromUtf8("frame_2"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.frame_2)
        self.verticalLayout_3.setSpacing(3)
        self.verticalLayout_3.setMargin(0)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))

        self.frame_TrackFrom_2 = QtGui.QFrame(self.frame_2)
        self.frame_TrackFrom_2.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame_TrackFrom_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_TrackFrom_2.setObjectName(_fromUtf8("frame_TrackFrom_2"))
        self.horizontalLayout_70 = QtGui.QHBoxLayout(self.frame_TrackFrom_2)
        self.horizontalLayout_70.setSpacing(0)
        self.horizontalLayout_70.setMargin(0)
        self.horizontalLayout_70.setObjectName(
            _fromUtf8("horizontalLayout_70"))
        self.label_78 = QtGui.QLabel(self.frame_TrackFrom_2)
        self.label_78.setMinimumSize(QtCore.QSize(240, 0))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_78.setFont(font)
        self.label_78.setObjectName(_fromUtf8("label_78"))
        self.horizontalLayout_70.addWidget(self.label_78)
        self.frame_APV_12 = QtGui.QFrame(self.frame_TrackFrom_2)
        self.frame_APV_12.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_APV_12.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_APV_12.setObjectName(_fromUtf8("frame_APV_12"))
        self.horizontalLayout_16 = QtGui.QHBoxLayout(self.frame_APV_12)
        self.horizontalLayout_16.setSpacing(0)
        self.horizontalLayout_16.setMargin(0)
        self.horizontalLayout_16.setObjectName(
            _fromUtf8("horizontalLayout_16"))
        self.txtAtt = QtGui.QLineEdit(self.frame_APV_12)
        self.txtAtt.setEnabled(True)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.txtAtt.setFont(font)
        self.txtAtt.setObjectName(_fromUtf8("txtAtt"))
        self.txtAtt.setMinimumWidth(50)
        self.txtAtt.setMaximumWidth(50)
        self.horizontalLayout_16.addWidget(self.txtAtt)
        self.horizontalLayout_70.addWidget(self.frame_APV_12)
        self.verticalLayout_3.addWidget(self.frame_TrackFrom_2)
        self.frame_TrackFrom_3 = QtGui.QFrame(self.frame_2)
        self.frame_TrackFrom_3.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame_TrackFrom_3.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_TrackFrom_3.setObjectName(_fromUtf8("frame_TrackFrom_3"))
        self.horizontalLayout_71 = QtGui.QHBoxLayout(self.frame_TrackFrom_3)
        self.horizontalLayout_71.setSpacing(0)
        self.horizontalLayout_71.setMargin(0)
        self.horizontalLayout_71.setObjectName(
            _fromUtf8("horizontalLayout_71"))
        self.label_79 = QtGui.QLabel(self.frame_TrackFrom_3)
        self.label_79.setMinimumSize(QtCore.QSize(240, 0))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_79.setFont(font)
        self.label_79.setObjectName(_fromUtf8("label_79"))
        self.horizontalLayout_71.addWidget(self.label_79)
        self.frame_APV_13 = QtGui.QFrame(self.frame_TrackFrom_3)
        self.frame_APV_13.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_APV_13.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_APV_13.setObjectName(_fromUtf8("frame_APV_13"))
        self.horizontalLayout_17 = QtGui.QHBoxLayout(self.frame_APV_13)
        self.horizontalLayout_17.setSpacing(0)
        self.horizontalLayout_17.setMargin(0)
        self.horizontalLayout_17.setObjectName(
            _fromUtf8("horizontalLayout_17"))
        self.txtAsw = QtGui.QLineEdit(self.frame_APV_13)
        self.txtAsw.setEnabled(True)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.txtAsw.setFont(font)
        self.txtAsw.setObjectName(_fromUtf8("txtAsw"))
        self.txtAsw.setMinimumWidth(50)
        self.txtAsw.setMaximumWidth(50)
        self.horizontalLayout_17.addWidget(self.txtAsw)
        self.horizontalLayout_71.addWidget(self.frame_APV_13)
        self.verticalLayout_3.addWidget(self.frame_TrackFrom_3)
        self.horizontalLayout.addWidget(self.frame_2)
        self.btnDropDown = QtGui.QToolButton(self.frame_Tolerance)
        self.btnDropDown.setMaximumSize(QtCore.QSize(16777215, 50))
        self.btnDropDown.setText(_fromUtf8(""))
        self.btnDropDown.setObjectName(_fromUtf8("btnDropDown"))
        self.horizontalLayout.addWidget(self.btnDropDown)
        spacerItem = QtGui.QSpacerItem(0, 10, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.verticalLayout_IDF.addWidget(self.frame_Tolerance)

        self.verticalLayout_5.addWidget(self.grbIDF)

        self.grbHRP = QtGui.QGroupBox(self.groupBox_20)
        self.grbHRP.setObjectName(_fromUtf8("grbHRP"))
        self.verticalLayout_HRP = QtGui.QVBoxLayout(self.grbHRP)
        self.verticalLayout_HRP.setObjectName(_fromUtf8("verticalLayout_HRP"))

        self.txtHCH = NumberBoxPanel(self.grbHRP)
        self.txtHCH.CaptionUnits = "m"
        self.txtHCH.Caption = "Crossing Height [HCH]"
        self.txtHCH.LabelWidth = 140
        self.txtHCH.Value = 15
        self.verticalLayout_HRP.addWidget(self.txtHCH)

        self.txtHSAL = DistanceBoxPanel(self.grbHRP, DistanceUnits.M)
        self.txtHSAL.Caption = "Safety Area Length"
        self.txtHSAL.Value = Distance(30)
        self.txtHSAL.LabelWidth = 140
        self.verticalLayout_HRP.addWidget(self.txtHSAL)

        self.txtHSAW = DistanceBoxPanel(self.grbHRP, DistanceUnits.M)
        self.txtHSAW.Caption = "Safety Area Width"
        self.txtHSAW.Value = Distance(30)
        self.txtHSAW.LabelWidth = 140
        self.verticalLayout_HRP.addWidget(self.txtHSAW)

        self.verticalLayout_5.addWidget(self.grbHRP)

        self.cmbConstructionType = ComboBoxPanel(self.groupBox_20)
        self.cmbConstructionType.Caption = "Construction Type"
        self.cmbConstructionType.LabelWidth = 150
        self.verticalLayout_5.addWidget(self.cmbConstructionType)

        self.verticalLayout.addWidget(self.groupBox_20)
        spacerItem = QtGui.QSpacerItem(0, 0, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Minimum)
        self.verticalLayout.addItem(spacerItem)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(435, 580)
        self.verticalLayout = QVBoxLayout(Form)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))

        self.gbGeneral = GroupBox(Form)
        self.gbGeneral.Caption = "General"
        self.verticalLayout.addWidget(self.gbGeneral)

        # self.cmbAerodrome = ComboBoxPanel(self.gbGeneral, True)
        # self.cmbAerodrome.Caption = "Aerodrome"
        # self.cmbAerodrome.LabelWidth = 120
        # self.gbGeneral.Add = self.cmbAerodrome
        #
        # self.cmbRwyDir = ComboBoxPanel(self.gbGeneral, True)
        # self.cmbRwyDir.Caption = "Runway Direction"
        # self.cmbRwyDir.LabelWidth = 120
        # self.cmbRwyDir.Width = 120
        # self.gbGeneral.Add = self.cmbRwyDir

        self.cmbRnavSpecification = ComboBoxPanel(self.gbGeneral)
        self.cmbRnavSpecification.Caption = "Rnav Specification"
        self.cmbRnavSpecification.LabelWidth = 150
        self.gbGeneral.Add = self.cmbRnavSpecification

        self.frameChbThree = Frame(self.gbGeneral, "HL")
        self.gbGeneral.Add = self.frameChbThree

        self.chbUseTwoWpt = CheckBox(self.frameChbThree)
        self.chbUseTwoWpt.Caption = "Use 2 Waypoints"
        self.frameChbThree.Add = self.chbUseTwoWpt

        self.chbInsertSymbol = CheckBox(self.frameChbThree)
        self.chbInsertSymbol.Caption = "Insert Symbol(s)"
        self.frameChbThree.Add = self.chbInsertSymbol

        self.chbCatH = CheckBox(self.frameChbThree)
        self.chbCatH.Caption = "Cat.H"
        self.frameChbThree.Add = self.chbCatH

        self.cmbPhaseOfFlight = ComboBoxPanel(self.gbGeneral)
        self.cmbPhaseOfFlight.Caption = "Phase Of Flight"
        self.cmbPhaseOfFlight.LabelWidth = 150
        self.gbGeneral.Add = self.cmbPhaseOfFlight

        self.pnlArp = PositionPanel(self.gbGeneral)
        self.pnlArp.Caption = "Aerodrome Reference Point(ARP)"
        self.pnlArp.btnCalculater.hide()
        self.pnlArp.hideframe_Altitude()
        self.gbGeneral.Add = self.pnlArp

        self.gbWaypoint1 = GroupBox(self.gbGeneral)
        self.gbWaypoint1.Caption = "Waypoint1"
        self.gbGeneral.Add = self.gbWaypoint1

        self.cmbType1 = ComboBoxPanel(self.gbWaypoint1)
        self.cmbType1.Caption = "Type"
        self.cmbType1.LabelWidth = 150
        self.gbWaypoint1.Add = self.cmbType1

        self.pnlTolerances = RnavTolerancesPanel(self.gbWaypoint1)
        self.pnlTolerances.set_Att(Distance(0.8, DistanceUnits.NM))
        self.pnlTolerances.set_Xtt(Distance(1, DistanceUnits.NM))
        self.pnlTolerances.set_Asw(Distance(2, DistanceUnits.NM))
        self.gbWaypoint1.Add = self.pnlTolerances

        self.pnlWaypoint1 = PositionPanel(self.gbWaypoint1)
        self.pnlWaypoint1.btnCalculater.hide()
        self.pnlWaypoint1.hideframe_Altitude()
        self.gbWaypoint1.Add = self.pnlWaypoint1

        self.gbWaypoint2 = GroupBox(self.gbGeneral)
        self.gbWaypoint2.Caption = "Waypoint2"
        self.gbGeneral.Add = self.gbWaypoint2

        self.cmbType2 = ComboBoxPanel(self.gbWaypoint2)
        self.cmbType2.Caption = "Type"
        self.cmbType2.LabelWidth = 150
        self.gbWaypoint2.Add = self.cmbType2

        self.pnlTolerances2 = RnavTolerancesPanel(self.gbWaypoint2)
        self.pnlTolerances2.set_Att(Distance(0.8, DistanceUnits.NM))
        self.pnlTolerances2.set_Xtt(Distance(1, DistanceUnits.NM))
        self.pnlTolerances2.set_Asw(Distance(2, DistanceUnits.NM))
        self.gbWaypoint2.Add = self.pnlTolerances2

        self.pnlWaypoint2 = PositionPanel(self.gbWaypoint2)
        self.pnlWaypoint2.btnCalculater.hide()
        self.pnlWaypoint2.hideframe_Altitude()
        self.gbWaypoint2.Add = self.pnlWaypoint2

        self.frmRadioBtns = Frame(self.gbGeneral, "HL")
        self.gbGeneral.Add = self.frmRadioBtns

        self.rdnTF = QRadioButton(self.frmRadioBtns)
        self.rdnTF.setObjectName("rdnTF")
        self.rdnTF.setText("TF")
        self.rdnTF.setChecked(True)
        self.frmRadioBtns.Add = self.rdnTF

        self.rdnDF = QRadioButton(self.frmRadioBtns)
        self.rdnDF.setObjectName("rdnDF")
        self.rdnDF.setText("DF")
        self.frmRadioBtns.Add = self.rdnDF

        self.rdnCF = QRadioButton(self.frmRadioBtns)
        self.rdnCF.setObjectName("rdnCF")
        self.rdnCF.setText("CF")
        self.frmRadioBtns.Add = self.rdnCF


        self.chbCircularArcs = CheckBox(self.gbGeneral)
        self.chbCircularArcs.Caption = "Use Circular Arcs Method for Turns <= 30"
        self.gbGeneral.Add = self.chbCircularArcs

        self.gbParameters = GroupBox(Form)
        self.gbParameters.Caption = "Parameters"
        self.verticalLayout.addWidget(self.gbParameters)

        self.cmbSelectionMode = ComboBoxPanel(self.gbParameters)
        self.cmbSelectionMode.Caption = "Selection Mode"
        self.cmbSelectionMode.LabelWidth = 150
        self.gbParameters.Add = self.cmbSelectionMode


        self.pnlInbound = TrackRadialBoxPanel(self.gbParameters)
        self.pnlInbound.Caption = "In-bound Track"
        self.pnlInbound.LabelWidth = 150
        self.gbParameters.Add = self.pnlInbound

        self.pnlOutbound = TrackRadialBoxPanel(self.gbParameters)
        self.pnlOutbound.Caption = "Out-bound Track"
        self.pnlOutbound.LabelWidth = 150
        self.gbParameters.Add = self.pnlOutbound


        # icon = QIcon()
        # icon.addPixmap(QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QIcon.Normal, QIcon.Off)

        self.pnlIas = SpeedBoxPanel(self.gbParameters)
        self.pnlIas.Caption = "IAS"
        self.pnlIas.LabelWidth = 150
        self.pnlIas.Value = Speed(250)
        self.gbParameters.Add = self.pnlIas

        self.pnlTas = SpeedBoxPanel(self.gbParameters)
        self.pnlTas.Caption = "TAS"
        self.pnlTas.Enabled = False
        self.pnlTas.LabelWidth = 150
        self.gbParameters.Add = self.pnlTas

        self.pnlAltitude = AltitudeBoxPanel(self.gbParameters)
        self.pnlAltitude.Caption = "Altitude"
        self.pnlAltitude.LabelWidth = 150
        self.pnlAltitude.Value = Altitude(1000)
        self.gbParameters.Add = self.pnlAltitude

        self.pnlIsa = NumberBoxPanel(self.gbParameters, "0.0")
        self.pnlIsa.CaptionUnits = define._degreeStr + "C"
        self.pnlIsa.Caption = "ISA"
        self.pnlIsa.LabelWidth = 150
        self.pnlIsa.Value = 15
        self.gbParameters.Add = self.pnlIsa

        self.pnlBankAngle = NumberBoxPanel(self.gbParameters, "0.0")
        self.pnlBankAngle.CaptionUnits = define._degreeStr
        self.pnlBankAngle.Caption = "Bank Angle"
        self.pnlBankAngle.LabelWidth = 150
        self.pnlBankAngle.Value = 25
        self.gbParameters.Add = self.pnlBankAngle

        self.pnlBankEstTime = NumberBoxPanel(self.gbParameters, "0.0")
        self.pnlBankEstTime.Caption = "Bank Establishment Time"
        self.pnlBankEstTime.Value = 1
        self.pnlBankEstTime.LabelWidth = 150
        self.pnlBankEstTime.Value = 5
        self.gbParameters.Add = self.pnlBankEstTime

        self.pnlPilotTime = NumberBoxPanel(self.gbParameters, "0.0")
        self.pnlPilotTime.Caption = "Pilot Reaction Time"
        self.pnlPilotTime.Value = 6
        self.pnlPilotTime.LabelWidth = 150
        self.gbParameters.Add = self.pnlPilotTime

        self.pnlWind = WindPanel(self.gbParameters)
        self.pnlWind.LabelWidth = 145
        self.gbParameters.Add = self.pnlWind

        self.pnlPrimaryMoc = AltitudeBoxPanel(self.gbParameters)
        self.pnlPrimaryMoc.Caption = "Primary Moc"
        self.pnlPrimaryMoc.LabelWidth = 150
        self.gbParameters.Add = self.pnlPrimaryMoc

        self.cmbConstructionType = ComboBoxPanel(self.gbParameters)
        self.cmbConstructionType.Caption = "Construction Type"
        self.cmbConstructionType.LabelWidth = 150
        self.gbParameters.Add = self.cmbConstructionType

        self.frameMOCmultipiler = Frame(self.gbParameters, "HL")
        self.gbParameters.Add = self.frameMOCmultipiler

        self.labelMOCmultipiler = QLabel(self.frameMOCmultipiler)
        self.labelMOCmultipiler.setMinimumSize(QSize(145, 0))
        self.labelMOCmultipiler.setMaximumSize(QSize(145, 16777215))
        font = QFont()
        font.setBold(False)
        font.setWeight(50)
        self.labelMOCmultipiler.setFont(font)
        self.labelMOCmultipiler.setObjectName(_fromUtf8("labelMOCmultipiler"))
        self.labelMOCmultipiler.setText("MOCmultipiler")
        self.frameMOCmultipiler.Add = self.labelMOCmultipiler

        self.mocSpinBox = QSpinBox(self.frameMOCmultipiler)
        sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mocSpinBox.sizePolicy().hasHeightForWidth())
        self.mocSpinBox.setSizePolicy(sizePolicy)
        self.mocSpinBox.setMinimumSize(QSize(70, 0))
        self.mocSpinBox.setMaximumSize(QSize(70, 16777215))
        self.mocSpinBox.setMinimum(1)
        self.mocSpinBox.setObjectName(_fromUtf8("mocSpinBox"))
        self.frameMOCmultipiler.Add = self.mocSpinBox

        spacerItem = QSpacerItem(10,10,QSizePolicy.Expanding, QSizePolicy.Minimum)
        self.frameMOCmultipiler.layoutBoxPanel.addItem(spacerItem)

        self.chbDrawTolerance = CheckBox(self.gbParameters)
        self.chbDrawTolerance.Caption = "Draw Waypoint Tolerance"
        self.gbParameters.Add = self.chbDrawTolerance
コード例 #14
0
 def set_Criteria(self, value):
     if value == None:
         return
     self.criteria = value
     self.pnlName.Value = self.criteria.Name
     if (self.criteria.Approach.Enabled):
         self.pnlAPP_InnerEdge.Value = Distance(
             self.criteria.Approach.InnerEdge)
         self.pnlAPP_DistFromTHR.Value = Distance(
             self.criteria.Approach.DistFromTHR)
         self.pnlAPP_Divergence.Value = AngleGradientSlope(
             self.criteria.Approach.Divergence,
             AngleGradientSlopeUnits.Percent)
         self.pnlAPP_Length1.Value = Distance(
             self.criteria.Approach.Length1)
         self.pnlAPP_Slope1.Value = AngleGradientSlope(
             self.criteria.Approach.Slope1, AngleGradientSlopeUnits.Percent)
         if (self.criteria.Approach.HasSection2):
             self.pnlAPP_Length2.Value = Distance(
                 self.criteria.Approach.Length2)
             self.pnlAPP_Slope2.Value = AngleGradientSlope(
                 self.criteria.Approach.Slope2,
                 AngleGradientSlopeUnits.Percent)
             self.pnlAPP_Length3.Value = Distance(
                 self.criteria.Approach.Length3)
             self.pnlAPP_TotalLength.Value = Distance(
                 self.criteria.Approach.TotalLength)
     self.cmbBL_DistFromTHR.SelectedIndex = 0
     if (self.criteria.BalkedLanding.Enabled):
         self.pnlBL_InnerEdge.Value = Distance(
             self.criteria.BalkedLanding.InnerEdge)
         if (not MathHelper.smethod_97(
                 self.criteria.BalkedLanding.DistFromTHR, 0)):
             self.txtBL_DistFromTHR.Value = Distance(
                 self.criteria.BalkedLanding.DistFromTHR)
             if (not self.criteria.BalkedLanding.DistFromTHRFixed):
                 self.cmbBL_DistFromTHR.SelectedIndex = 1
             else:
                 self.cmbBL_DistFromTHR.SelectedIndex = 2
         else:
             self.cmbBL_DistFromTHR.SelectedIndex = 0
         self.pnlBL_Divergence.Value = AngleGradientSlope(
             self.criteria.BalkedLanding.Divergence,
             AngleGradientSlopeUnits.Percent)
         self.pnlBL_Slope.Value = AngleGradientSlope(
             self.criteria.BalkedLanding.Slope,
             AngleGradientSlopeUnits.Percent)
     if (self.criteria.Conical.Enabled):
         self.pnlCON_Slope.Value = AngleGradientSlope(
             self.criteria.Conical.Slope, AngleGradientSlopeUnits.Percent)
         self.pnlCON_Height.Value = Altitude(self.criteria.Conical.Height)
     if (self.criteria.InnerApproach.Enabled):
         self.pnlIA_Width.Value = Distance(
             self.criteria.InnerApproach.Width)
         self.pnlIA_DistFromTHR.Value = Distance(
             self.criteria.InnerApproach.DistFromTHR)
         self.pnlIA_Length.Value = Distance(
             self.criteria.InnerApproach.Length)
         self.pnlIA_Slope.Value = AngleGradientSlope(
             self.criteria.InnerApproach.Slope,
             AngleGradientSlopeUnits.Percent)
     self.pnlIH_Location.SelectedItem = self.criteria.InnerHorizontal.Location
     self.pnlIH_Height.Value = Altitude(
         self.criteria.InnerHorizontal.Height)
     self.pnlIH_Radius.Value = Distance(
         self.criteria.InnerHorizontal.Radius)
     if (self.criteria.InnerTransitional.Enabled):
         self.pnlIT_Slope.Value = AngleGradientSlope(
             self.criteria.InnerTransitional.Slope,
             AngleGradientSlopeUnits.Percent)
     if (self.criteria.NavigationalAid.Enabled):
         self.pnlNA_Slope.Value = AngleGradientSlope(
             self.criteria.NavigationalAid.Slope,
             AngleGradientSlopeUnits.Percent)
     if (self.criteria.OuterHorizontal.Enabled):
         self.pnlOH_Height.Value = Altitude(
             self.criteria.OuterHorizontal.Height)
         self.pnlOH_Radius.Value = Distance(
             self.criteria.OuterHorizontal.Radius)
     self.pnlS_Width.Value = Distance(self.criteria.Strip.Width)
     self.pnlS_Length.Value = Distance(self.criteria.Strip.Length)
     if (not self.criteria.TakeOff.DistFromENDFixed):
         self.cmbTO_DistFromEND.SelectedIndex = 0
     else:
         self.cmbTO_DistFromEND.SelectedIndex = 1
     if (self.criteria.TakeOff.Enabled):
         self.pnlTO_InnerEdge.Value = Distance(
             self.criteria.TakeOff.InnerEdge)
         self.txtTO_DistFromEND.Value = Distance(
             self.criteria.TakeOff.DistFromEND)
         self.pnlTO_Divergence.Value = AngleGradientSlope(
             self.criteria.TakeOff.Divergence,
             AngleGradientSlopeUnits.Percent)
         self.pnlTO_FinalWidth.Value = Distance(
             self.criteria.TakeOff.FinalWidth)
         self.pnlTO_Length.Value = Distance(self.criteria.TakeOff.Length)
         self.pnlTO_Slope.Value = AngleGradientSlope(
             self.criteria.TakeOff.Slope, AngleGradientSlopeUnits.Percent)
     if (self.criteria.Transitional.Enabled):
         self.pnlT_Slope.Value = AngleGradientSlope(
             self.criteria.Transitional.Slope,
             AngleGradientSlopeUnits.Percent)
コード例 #15
0
    def __init__(self, parent):
        QtGui.QDialog.__init__(self, parent)
        self.setObjectName(_fromUtf8("Dialog"))
        self.resize(200, 200)

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth())
        self.setSizePolicy(sizePolicy)

        self.horizontalLayout_2 = QtGui.QVBoxLayout(self)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.frame_13 = QtGui.QFrame(self)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_13.sizePolicy().hasHeightForWidth())
        self.frame_13.setSizePolicy(sizePolicy)
        self.frame_13.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_13.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_13.setObjectName(_fromUtf8("frame_13"))
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.frame_13)
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem)
        self.frame_3 = QtGui.QFrame(self.frame_13)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_3.sizePolicy().hasHeightForWidth())
        self.frame_3.setSizePolicy(sizePolicy)
        self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_3.setObjectName(_fromUtf8("frame_3"))
        self.verticalLayout_9 = QtGui.QVBoxLayout(self.frame_3)
        self.verticalLayout_9.setObjectName(_fromUtf8("verticalLayout_9"))

        spacerItem111 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum,
                                          QtGui.QSizePolicy.Expanding)
        self.verticalLayout_9.addItem(spacerItem111)

        self.gbGradientDist = GroupBox(self.frame_3)
        self.gbGradientDist.Caption = ""
        self.verticalLayout_9.addWidget(self.gbGradientDist)

        self.pnlDescentGradient = AngleGradientBoxPanel(self.gbGradientDist)
        self.pnlDescentGradient.CaptionUnits = AngleGradientSlopeUnits.Percent
        self.pnlDescentGradient.Caption = "Descent gradient"
        self.pnlDescentGradient.Value = AngleGradientSlope(
            5.0, AngleGradientSlopeUnits.Percent)
        self.pnlDescentGradient.showPercentBox()
        self.gbGradientDist.Add = self.pnlDescentGradient

        self.pnlDX = DistanceBoxPanel(self.gbGradientDist, DistanceUnits.M)
        self.pnlDX.Caption = "dX(THR-DME)"
        self.gbGradientDist.Add = self.pnlDX

        self.pnlThrAlt = AltitudeBoxPanel(self.gbGradientDist)
        self.pnlThrAlt.Caption = "THR Altitude"
        self.pnlThrAlt.Value = Altitude(734.0, AltitudeUnits.FT)
        self.gbGradientDist.Add = self.pnlThrAlt

        self.pnlRDHAlt = AltitudeBoxPanel(self.gbGradientDist)
        self.pnlRDHAlt.Caption = "RDH Altitude"
        self.pnlRDHAlt.Value = Altitude(50.0, AltitudeUnits.FT)
        self.gbGradientDist.Add = self.pnlRDHAlt

        self.pnlDistance = DistanceBoxPanel(self.gbGradientDist,
                                            DistanceUnits.NM)
        self.pnlDistance.Caption = "Distance between FAF-MAPt"
        self.pnlDistance.Value = Distance(6, DistanceUnits.NM)
        self.gbGradientDist.Add = self.pnlDistance

        self.gbCatOfACFT = QtGui.QGroupBox(self.frame_3)
        self.gbCatOfACFT.setObjectName("gbCatOfACFT")
        self.verticalLayoutgbCatOfACFT = QtGui.QVBoxLayout(self.gbCatOfACFT)
        self.verticalLayoutgbCatOfACFT.setObjectName(
            "verticalLayoutgbCatOfACFT")
        self.cmbCatOfACFT = QtGui.QComboBox(self.gbCatOfACFT)
        self.cmbCatOfACFT.setObjectName("cmbCatOfACFT")
        self.verticalLayoutgbCatOfACFT.addWidget(self.cmbCatOfACFT)
        self.verticalLayout_9.addWidget(self.gbCatOfACFT)
        self.gbCatOfACFT.setTitle("Cat Of ACFT")
        self.cmbCatOfACFT.addItems([
            "A", "A, B", "A, B, C", "A, B, C, D", "A, B, C, D, DL",
            "A, B, C, D, DL, E", "A, B, C, D, E"
        ])

        self.gbTemplate = QtGui.QGroupBox(self.frame_3)
        self.gbTemplate.setObjectName("gbTemplate")
        self.verticalLayoutgbTemplate = QtGui.QVBoxLayout(self.gbTemplate)
        self.verticalLayoutgbTemplate.setObjectName(
            "self.verticalLayoutgbTemplate")
        self.cmbTemplate = QtGui.QComboBox(self.gbTemplate)
        self.cmbTemplate.setObjectName("cmbTemplate")

        self.verticalLayoutgbTemplate.addWidget(self.cmbTemplate)

        self.verticalLayout_9.addWidget(self.gbTemplate)
        self.gbTemplate.setTitle("Template")

        # self.cmbTemplate = ComboBoxPanel(self.gbTemplate)
        # self.cmbTemplate.LabelWidth = 0
        self.cmbTemplate.addItems([
            "ILS or LOC", "LOC", "VOR", "NDB", "TACAN",
            "RNP BAROVNAV, SBAS, LNAV", "RNP BAROVNAV, LNAV", "RNP SBAS, LNAV",
            "RNP LNAV", "RNP AR", "RNAV STAR", "RNAV SID", "CONV STAR",
            "CONV SID"
        ])
        # self.verticalLayoutgbTemplate.addWidget(self.cmbTemplate)

        self.gbStraightInApproach = QtGui.QGroupBox(self.frame_3)
        self.gbStraightInApproach.setObjectName("gbStraightInApproach")
        self.verticalLayoutgbStraightInApproach = QtGui.QVBoxLayout(
            self.gbStraightInApproach)
        self.verticalLayoutgbStraightInApproach.setObjectName(
            "verticalLayoutgbStraightInApproach")
        self.chbCat1 = CheckBox(self.gbStraightInApproach)
        self.chbCat1.Caption = "Cat I"
        self.verticalLayoutgbStraightInApproach.addWidget(self.chbCat1)
        self.chbCat2 = CheckBox(self.gbStraightInApproach)
        self.chbCat2.Caption = "Cat II"
        self.verticalLayoutgbStraightInApproach.addWidget(self.chbCat2)
        self.chbLOC = CheckBox(self.gbStraightInApproach)
        self.chbLOC.Caption = "LOC"
        self.verticalLayoutgbStraightInApproach.addWidget(self.chbLOC)
        self.verticalLayout_9.addWidget(self.gbStraightInApproach)
        self.gbStraightInApproach.setTitle("Straight-In Approach")

        self.frmState = QtGui.QFrame(self.frame_3)

        self.frmState.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frmState.setFrameShadow(QtGui.QFrame.Raised)
        self.frmState.setObjectName(_fromUtf8("frmState"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.frmState)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.lblState = QtGui.QLabel(self.frmState)
        self.lblState.setMinimumSize(QtCore.QSize(90, 0))
        self.lblState.setMaximumSize(QtCore.QSize(90, 16777215))
        self.lblState.setObjectName(_fromUtf8("lblState"))
        self.horizontalLayout_3.addWidget(self.lblState)
        self.ddlState = QtGui.QComboBox(self.frmState)
        self.ddlState.setObjectName(_fromUtf8("ddlState"))
        self.horizontalLayout_3.addWidget(self.ddlState)
        self.verticalLayout_9.addWidget(self.frmState)
        self.frmAerodrome = QtGui.QFrame(self.frame_3)
        self.frmAerodrome.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frmAerodrome.setFrameShadow(QtGui.QFrame.Raised)
        self.frmAerodrome.setObjectName(_fromUtf8("frmAerodrome"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.frmAerodrome)
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.lblAerodrome = QtGui.QLabel(self.frmAerodrome)
        self.lblAerodrome.setMinimumSize(QtCore.QSize(90, 0))
        self.lblAerodrome.setMaximumSize(QtCore.QSize(90, 16777215))
        self.lblAerodrome.setObjectName(_fromUtf8("lblAerodrome"))
        self.horizontalLayout_4.addWidget(self.lblAerodrome)
        self.ddlAerodrome = QtGui.QComboBox(self.frmAerodrome)
        self.ddlAerodrome.setObjectName(_fromUtf8("ddlAerodrome"))
        self.horizontalLayout_4.addWidget(self.ddlAerodrome)
        self.verticalLayout_9.addWidget(self.frmAerodrome)
        self.frmRunway = QtGui.QFrame(self.frame_3)
        self.frmRunway.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frmRunway.setFrameShadow(QtGui.QFrame.Raised)
        self.frmRunway.setObjectName(_fromUtf8("frmRunway"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.frmRunway)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.lblRunway = QtGui.QLabel(self.frmRunway)
        self.lblRunway.setMinimumSize(QtCore.QSize(90, 0))
        self.lblRunway.setMaximumSize(QtCore.QSize(90, 16777215))
        self.lblRunway.setObjectName(_fromUtf8("lblRunway"))
        self.horizontalLayout_5.addWidget(self.lblRunway)
        self.ddlRunway1 = QtGui.QComboBox(self.frmRunway)
        self.ddlRunway1.setObjectName(_fromUtf8("ddlRunway1"))
        self.horizontalLayout_5.addWidget(self.ddlRunway1)
        self.ddlRunway2 = QtGui.QComboBox(self.frmRunway)
        self.ddlRunway2.setObjectName(_fromUtf8("ddlRunway2"))
        self.horizontalLayout_5.addWidget(self.ddlRunway2)
        self.verticalLayout_9.addWidget(self.frmRunway)
        self.frmSlope = QtGui.QFrame(self.frame_3)
        self.frmSlope.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frmSlope.setFrameShadow(QtGui.QFrame.Raised)
        self.frmSlope.setObjectName(_fromUtf8("frmSlope"))
        self.horizontalLayout_7 = QtGui.QHBoxLayout(self.frmSlope)
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.lblSlope = QtGui.QLabel(self.frmSlope)
        self.lblSlope.setMinimumSize(QtCore.QSize(90, 0))
        self.lblSlope.setMaximumSize(QtCore.QSize(90, 16777215))
        self.lblSlope.setObjectName(_fromUtf8("lblSlope"))
        self.horizontalLayout_7.addWidget(self.lblSlope)
        self.ddlSlope = QtGui.QComboBox(self.frmSlope)
        self.ddlSlope.setObjectName(_fromUtf8("ddlSlope"))
        self.horizontalLayout_7.addWidget(self.ddlSlope)
        self.verticalLayout_9.addWidget(self.frmSlope)
        self.frmPrintScale = QtGui.QFrame(self.frame_3)
        self.frmPrintScale.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frmPrintScale.setFrameShadow(QtGui.QFrame.Raised)
        self.frmPrintScale.setObjectName(_fromUtf8("frmPrintScale"))
        self.horizontalLayout_8 = QtGui.QHBoxLayout(self.frmPrintScale)
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.lblPrintScale = QtGui.QLabel(self.frmPrintScale)
        self.lblPrintScale.setMinimumSize(QtCore.QSize(90, 0))
        self.lblPrintScale.setMaximumSize(QtCore.QSize(90, 16777215))
        self.lblPrintScale.setObjectName(_fromUtf8("lblPrintScale"))
        self.horizontalLayout_8.addWidget(self.lblPrintScale)
        self.txtPrintScale = QtGui.QLineEdit(self.frmPrintScale)
        self.txtPrintScale.setObjectName(_fromUtf8("txtPrintScale"))
        self.horizontalLayout_8.addWidget(self.txtPrintScale)
        self.verticalLayout_9.addWidget(self.frmPrintScale)
        self.frmFontSize = QtGui.QFrame(self.frame_3)
        self.frmFontSize.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frmFontSize.setFrameShadow(QtGui.QFrame.Raised)
        self.frmFontSize.setObjectName(_fromUtf8("frmFontSize"))
        self.horizontalLayout_9 = QtGui.QHBoxLayout(self.frmFontSize)
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.lblFontSize = QtGui.QLabel(self.frmFontSize)
        self.lblFontSize.setMinimumSize(QtCore.QSize(90, 0))
        self.lblFontSize.setMaximumSize(QtCore.QSize(90, 16777215))
        self.lblFontSize.setObjectName(_fromUtf8("lblFontSize"))
        self.horizontalLayout_9.addWidget(self.lblFontSize)
        self.txtFontSize = QtGui.QLineEdit(self.frmFontSize)
        self.txtFontSize.setObjectName(_fromUtf8("txtFontSize"))
        self.horizontalLayout_9.addWidget(self.txtFontSize)
        self.verticalLayout_9.addWidget(self.frmFontSize)
        self.gbSizes = QtGui.QGroupBox(self.frame_3)
        self.gbSizes.setObjectName(_fromUtf8("gbSizes"))
        self.verticalLayout_10 = QtGui.QVBoxLayout(self.gbSizes)
        self.verticalLayout_10.setObjectName(_fromUtf8("verticalLayout_10"))
        self.ddlPageSizes = QtGui.QComboBox(self.gbSizes)
        self.ddlPageSizes.setObjectName(_fromUtf8("ddlPageSizes"))
        self.verticalLayout_10.addWidget(self.ddlPageSizes)
        self.frame_11 = QtGui.QFrame(self.gbSizes)
        self.frame_11.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_11.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_11.setObjectName(_fromUtf8("frame_11"))
        self.horizontalLayout_10 = QtGui.QHBoxLayout(self.frame_11)
        self.horizontalLayout_10.setObjectName(
            _fromUtf8("horizontalLayout_10"))

        self.labelUnit = QtGui.QLabel(self.frame_11)
        self.labelUnit.setObjectName("labelUint")
        self.labelUnit.setText("Unit")
        self.horizontalLayout_10.addWidget(self.labelUnit)

        self.cmbUnit = QtGui.QComboBox(self.frame_11)
        self.cmbUnit.setObjectName("cmbUnit")
        self.cmbUnit.addItems(["mm", "inch"])
        self.horizontalLayout_10.addWidget(self.cmbUnit)

        self.verticalLayout_10.addWidget(self.frame_11)
        self.frmWidth = QtGui.QFrame(self.gbSizes)
        self.frmWidth.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frmWidth.setFrameShadow(QtGui.QFrame.Raised)
        self.frmWidth.setObjectName(_fromUtf8("frmWidth"))
        self.horizontalLayout_12 = QtGui.QHBoxLayout(self.frmWidth)
        self.horizontalLayout_12.setObjectName(
            _fromUtf8("horizontalLayout_12"))
        self.lblWidth = QtGui.QLabel(self.frmWidth)
        self.lblWidth.setMinimumSize(QtCore.QSize(81, 0))
        self.lblWidth.setMaximumSize(QtCore.QSize(81, 16777215))
        self.lblWidth.setObjectName(_fromUtf8("lblWidth"))
        self.horizontalLayout_12.addWidget(self.lblWidth)
        self.txtWidth = QtGui.QLineEdit(self.frmWidth)
        self.txtWidth.setObjectName(_fromUtf8("txtWidth"))
        self.horizontalLayout_12.addWidget(self.txtWidth)
        self.verticalLayout_10.addWidget(self.frmWidth)
        self.frmHeight = QtGui.QFrame(self.gbSizes)
        self.frmHeight.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frmHeight.setFrameShadow(QtGui.QFrame.Raised)
        self.frmHeight.setObjectName(_fromUtf8("frmHeight"))
        self.horizontalLayout_13 = QtGui.QHBoxLayout(self.frmHeight)
        self.horizontalLayout_13.setObjectName(
            _fromUtf8("horizontalLayout_13"))
        self.lblHeight = QtGui.QLabel(self.frmHeight)
        self.lblHeight.setMinimumSize(QtCore.QSize(81, 0))
        self.lblHeight.setMaximumSize(QtCore.QSize(81, 16777215))
        self.lblHeight.setObjectName(_fromUtf8("lblHeight"))
        self.horizontalLayout_13.addWidget(self.lblHeight)
        self.txtHeight = QtGui.QLineEdit(self.frmHeight)
        self.txtHeight.setObjectName(_fromUtf8("txtHeight"))
        self.horizontalLayout_13.addWidget(self.txtHeight)
        self.verticalLayout_10.addWidget(self.frmHeight)
        self.verticalLayout_9.addWidget(self.gbSizes)
        self.gbPageOrientation = QtGui.QGroupBox(self.frame_3)
        self.gbPageOrientation.setObjectName(_fromUtf8("gbPageOrientation"))
        self.horizontalLayout_14 = QtGui.QHBoxLayout(self.gbPageOrientation)
        self.horizontalLayout_14.setObjectName(
            _fromUtf8("horizontalLayout_14"))

        # self.labelPageOrientation = QtGui.QLabel(self.gbPageOrientation)
        # self.labelPageOrientation.setObjectName("labelPageOrientation")
        # self.labelPageOrientation.setText("Page Orientation")
        # self.horizontalLayout_14.addWidget(self.labelPageOrientation)

        self.cmbPageOrientation = QtGui.QComboBox(self.gbPageOrientation)
        self.cmbPageOrientation.setObjectName("cmbPageOrientation")
        self.cmbPageOrientation.addItems(["Portrait", "Landscape"])
        self.horizontalLayout_14.addWidget(self.cmbPageOrientation)

        # self.rbtLandscape = QtGui.QRadioButton(self.gbPageOrientation)
        # self.rbtLandscape.setObjectName(_fromUtf8("radioButton"))
        # self.horizontalLayout_14.addWidget(self.rbtLandscape)
        # self.rbtPortrait = QtGui.QRadioButton(self.gbPageOrientation)
        # self.rbtPortrait.setChecked(True)
        # self.rbtPortrait.setObjectName(_fromUtf8("rblLandscape"))
        # self.horizontalLayout_14.addWidget(self.rbtPortrait)
        self.verticalLayout_9.addWidget(self.gbPageOrientation)
        self.horizontalLayout_6.addWidget(self.frame_3)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem1)
        self.horizontalLayout_2.addWidget(self.frame_13)

        self.frame = QtGui.QFrame(self)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName(_fromUtf8("frame"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.frame)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        spacerItem15 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                         QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem15)
        self.btnPrevious = QtGui.QPushButton(self.frame)
        self.btnPrevious.setObjectName(_fromUtf8("btnPrevious"))
        self.horizontalLayout.addWidget(self.btnPrevious)
        self.btnNext = QtGui.QPushButton(self.frame)
        self.btnNext.setObjectName(_fromUtf8("btnNext"))
        self.horizontalLayout.addWidget(self.btnNext)
        self.btnExit = QtGui.QPushButton(self.frame)
        self.btnExit.setObjectName(_fromUtf8("btnExit"))
        self.horizontalLayout.addWidget(self.btnExit)
        spacerItem16 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                         QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem16)
        self.horizontalLayout_2.addWidget(self.frame)

        self.frmState.setVisible(False)
        self.frmAerodrome.setVisible(False)
        self.frmRunway.setVisible(False)
        self.frmSlope.setVisible(False)
        self.ddlPageSizes.setVisible(False)

        self.txtPrintScale.setText("10")
        self.txtFontSize.setText("10")
        self.txtWidth.setText("210")
        self.txtHeight.setText("290")

        # self.rbtnmm.setChecked(True)
        self.retranslateUi()
        # self.stackedWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(self)
        self.btnPrevious.setEnabled(False)
        self.btnNext.clicked.connect(self.btnNext_clicked)
        self.btnExit.setVisible(False)

        self.gbStraightInApproach.setVisible(
            self.cmbCatOfACFT.currentIndex() == 0)

        self.cmbUnit.currentIndexChanged.connect(self.paperResize)
        self.txtHeight.textChanged.connect(self.pageOrientationChange)
        self.txtWidth.textChanged.connect(self.pageOrientationChange)

        self.cmbTemplate.currentIndexChanged.connect(
            self.cmbCatOfACFT_currentIndexChanged)
        self.cmbTemplate.activated.connect(self.cmbCatOfACFT_activated)
        self.cmbCatOfACFT.currentIndexChanged.connect(
            self.cmbCatOfACFT_currentIndexChanged)

        self.connect(self.chbCat1, QtCore.SIGNAL("Event_0"),
                     self.chbCat1_clicked)
        self.connect(self.chbCat2, QtCore.SIGNAL("Event_0"),
                     self.chbCat2_clicked)
        self.connect(self.chbLOC, QtCore.SIGNAL("Event_0"),
                     self.chbLOC_clicked)

        # self.cmbPageOrientation.currentIndexChanged.connect(self.widthHeighChange)
        self.dlg = None
        self.straightCount = 3
        self.catOfAcftCount = 1
コード例 #16
0
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(435, 580)
        self.verticalLayout = QVBoxLayout(Form)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))

        self.gbParameters = GroupBox(Form)
        self.gbParameters.Caption = "General"
        self.verticalLayout.addWidget(self.gbParameters)

        self.cmbAerodrome = ComboBoxPanel(self.gbParameters, True)
        self.cmbAerodrome.Caption = "Aerodrome"
        self.cmbAerodrome.LabelWidth = 150
        self.cmbAerodrome.Width = 150
        self.gbParameters.Add = self.cmbAerodrome

        self.cmbRwyDir = ComboBoxPanel(self.gbParameters, True)
        self.cmbRwyDir.Caption = "Runway Direction"
        self.cmbRwyDir.LabelWidth = 150
        self.cmbRwyDir.Width = 150
        self.gbParameters.Add = self.cmbRwyDir

        self.annotationFAWP = QgsTextAnnotationItem(define._canvas)
        self.annotationFAWP.setDocument(QTextDocument("FAP"))
        self.annotationFAWP.hide()

        self.pnlFapPosition = PositionPanel(self.gbParameters,
                                            self.annotationFAWP)
        self.pnlFapPosition.Caption = "FAP Position"
        # self.pnlFafPosition.btnCalculater.hide()
        self.pnlFapPosition.hideframe_Altitude()
        self.gbParameters.Add = self.pnlFapPosition

        self.pnlThrPosition = PositionPanel(self.gbParameters)
        self.pnlThrPosition.Caption = "Threshold Position"
        self.pnlThrPosition.btnCalculater.hide()
        self.gbParameters.Add = self.pnlThrPosition

        self.pnlRwyEndPosition = PositionPanel(self.gbParameters)
        self.pnlRwyEndPosition.Caption = "RwyEnd Position"
        self.pnlRwyEndPosition.btnCalculater.hide()
        self.gbParameters.Add = self.pnlRwyEndPosition
        self.pnlRwyEndPosition.Visible = False

        self.pnlInboundTrack = TrackRadialBoxPanel(self.gbParameters)
        self.pnlInboundTrack.Caption = "In-bound Track"
        self.pnlInboundTrack.LabelWidth = 150
        self.gbParameters.Add = self.pnlInboundTrack

        self.pnlEstimatedAltitude = AltitudeBoxPanel(self.gbParameters)
        self.pnlEstimatedAltitude.Caption = "Estimated Altitude"
        self.pnlEstimatedAltitude.LabelWidth = 150
        self.pnlEstimatedAltitude.Value = Altitude(1000)
        self.gbParameters.Add = self.pnlEstimatedAltitude

        self.pnlAerodromeAltitude = AltitudeBoxPanel(self.gbParameters)
        self.pnlAerodromeAltitude.Caption = "Aerodrome Altitude"
        self.pnlAerodromeAltitude.LabelWidth = 150
        self.pnlAerodromeAltitude.Value = Altitude(1000)
        self.gbParameters.Add = self.pnlAerodromeAltitude

        self.pnlIsa = NumberBoxPanel(self.gbParameters, "0.0")
        self.pnlIsa.CaptionUnits = define._degreeStr + "C"
        self.pnlIsa.Caption = "ISA"
        self.pnlIsa.LabelWidth = 150
        self.pnlIsa.Value = 15
        self.gbParameters.Add = self.pnlIsa

        self.pnlRDH = AltitudeBoxPanel(self.gbParameters)
        self.pnlRDH.Caption = "RDH at THR"
        self.pnlRDH.LabelWidth = 150
        self.pnlRDH.Value = Altitude(15)
        self.gbParameters.Add = self.pnlRDH

        self.cmbVPA = ComboBoxPanel(self.gbParameters)
        self.cmbVPA.Caption = "Vertical Path Angle[VPA]"
        self.cmbVPA.LabelWidth = 150
        self.gbParameters.Add = self.cmbVPA

        self.cmbAircraftCategory = ComboBoxPanel(self.gbParameters)
        self.cmbAircraftCategory.Caption = "Aircraft Category"
        self.cmbAircraftCategory.LabelWidth = 150
        self.gbParameters.Add = self.cmbAircraftCategory

        self.pnlHeightLoss = AltitudeBoxPanel(self.gbParameters)
        self.pnlHeightLoss.Caption = "Height Loss"
        self.pnlHeightLoss.LabelWidth = 150
        self.gbParameters.Add = self.pnlHeightLoss

        self.pnlIas = SpeedBoxPanel(self.gbParameters)
        self.pnlIas.Caption = "IAS"
        self.pnlIas.LabelWidth = 150
        self.pnlIas.Value = Speed(185)
        self.gbParameters.Add = self.pnlIas

        self.pnlTas = SpeedBoxPanel(self.gbParameters)
        self.pnlTas.Caption = "TAS"
        self.pnlTas.Enabled = False
        self.pnlTas.LabelWidth = 150
        self.gbParameters.Add = self.pnlTas

        self.pnlWind = WindPanel(self.gbParameters)
        self.pnlWind.LabelWidth = 145
        self.gbParameters.Add = self.pnlWind

        self.pnlSocAltitude = AltitudeBoxPanel(self.gbParameters)
        self.pnlSocAltitude.Caption = "SOC Altitude"
        self.pnlSocAltitude.LabelWidth = 150
        self.gbParameters.Add = self.pnlSocAltitude

        self.pnlDistXz = DistanceBoxPanel(self.gbParameters, DistanceUnits.M,
                                          DistanceUnits.NM)
        self.pnlDistXz.Caption = "Xz Distance"
        self.pnlDistXz.LabelWidth = 150
        self.pnlDistXz.Button = None
        self.pnlDistXz.Value = Distance(-900)
        self.pnlDistXz.Enabled = False
        self.gbParameters.Add = self.pnlDistXz

        self.pnlDistOfFafDA = DistanceBoxPanel(self.gbParameters,
                                               DistanceUnits.M,
                                               DistanceUnits.NM)
        self.pnlDistOfFafDA.Caption = "FAP-DA Distance"
        self.pnlDistOfFafDA.LabelWidth = 150
        self.pnlDistOfFafDA.Button = None
        self.pnlDistOfFafDA.Enabled = False
        self.gbParameters.Add = self.pnlDistOfFafDA

        self.pnlDistOfDaThr = DistanceBoxPanel(self.gbParameters,
                                               DistanceUnits.M,
                                               DistanceUnits.NM)
        self.pnlDistOfDaThr.Caption = "DA-THR Distance"
        self.pnlDistOfDaThr.LabelWidth = 150
        self.pnlDistOfDaThr.Button = None
        self.pnlDistOfDaThr.Enabled = False
        self.gbParameters.Add = self.pnlDistOfDaThr

        self.pnlDistOfSocThr = DistanceBoxPanel(self.gbParameters,
                                                DistanceUnits.M,
                                                DistanceUnits.NM)
        self.pnlDistOfSocThr.Caption = "SOC-THR Distance"
        self.pnlDistOfSocThr.LabelWidth = 150
        self.pnlDistOfSocThr.Button = None
        self.pnlDistOfSocThr.Enabled = False
        self.gbParameters.Add = self.pnlDistOfSocThr