def initParametersPan(self):
        ui = Ui_EnrouteStraight()
        self.parametersPanel = ui

        FlightPlanBaseDlg.initParametersPan(self)

        self.parametersPanel.pnlNavAid1 = PositionPanel(
            self.parametersPanel.gbNavAid1)
        #         self.parametersPanel.pnlWaypoint.groupBox.setTitle("Waypoint Position")

        self.parametersPanel.pnlNavAid1.hideframe_Altitude()
        self.parametersPanel.pnlNavAid1.setObjectName("pnlNavAid1")
        self.parametersPanel.pnlNavAid1.btnCalculater.hide()
        self.parametersPanel.verticalLayoutNavAid1.addWidget(
            self.parametersPanel.pnlNavAid1)

        self.parametersPanel.pnlNavAid2 = PositionPanel(
            self.parametersPanel.gbNavAid12)
        self.parametersPanel.pnlNavAid2.hideframe_Altitude()
        self.parametersPanel.pnlNavAid2.setObjectName("pnlNavAid2")
        self.parametersPanel.pnlNavAid2.btnCalculater.hide()
        self.parametersPanel.verticalLayoutNavAid2.addWidget(
            self.parametersPanel.pnlNavAid2)

        #         self.parametersPanel.pnlWind = WindPanel(self.parametersPanel.grbParameters)
        #         self.parametersPanel.vLayout_grbParameters.insertWidget(5, self.parametersPanel.pnlWind)
        #         self.parametersPanel.pnlWind.setAltitude(Altitude(float(self.parametersPanel.txtAltitude.text()), AltitudeUnits.FT))

        #         self.resize(460,600)
        self.parametersPanel.cmbConstruction.addItems(["2D", "3D"])
        self.parametersPanel.cmbNavAidType1.addItems(["VOR", "NDB"])
        self.parametersPanel.cmbNavAidType2.addItems(["VOR", "NDB"])
    def initParametersPan(self):
        ui = Ui_form_VSS()
        self.parametersPanel = ui
        FlightPlanBaseDlg.initParametersPan(self)
        
        self.connect(self.parametersPanel.pnlTHR, SIGNAL("positionChanged"), self.initResultPanel)
        self.connect(self.parametersPanel.pnlTHR, SIGNAL("positionChanged"), self.calcRwyBearing)
        self.connect(self.parametersPanel.pnlRwyEnd, SIGNAL("positionChanged"), self.calcRwyBearing)
        
        ui.cmbConstructionType.Items = [ConstructionType.Construct2D, ConstructionType.Construct3D]
        ui.cmbRwyCode.Items = [VssRunwayCode.Code12, VssRunwayCode.Code34]
        ui.cmbRwyCode.SelectedIndex = 1
        ui.cmbApproachType.Items = [VssApproachType.NonPrecision, VssApproachType.RwyAlignedPrecision]
        ui.txtTrack.Enabled = True
        
        self.connect(ui.cmbRwyCode, SIGNAL("Event_0"), self.chbAdCodeF_Click)
        self.connect(ui.cmbApproachType, SIGNAL("Event_0"), self.chbAdCodeF_Click)
        # ui.btnMeasureThrFaf.clicked.connect(self.measureToolThrFaf)
        # ui.btnCaptureRwyDir.clicked.connect(self.captureRwyDir)
        # ui.btnCaptureTrack.clicked.connect(self.captureTrack)
        self.connect(ui.chbAdCodeF, SIGNAL("Event+0"), self.chbAdCodeF_Click)
        self.connect(ui.cmbConstructionType, SIGNAL("Event_0"), self.chbAdCodeF_Click)
        
        
        self.ui.chbHideDisregardableObst.stateChanged.connect(self.chbHideDisregardableObst_clicked)
    
        
#         ui.btnConstruct.clicked.connect(self.btnConstruct_Click)
#         ui.btnEvaluate.clicked.connect(self.btnEvaluate_Click)
#         ui.cmbSurface.currentIndexChanged.connect(self.cmbSurfaceChanged)
        self.method_31()
Beispiel #3
0
    def initParametersPan(self):
        ui = Ui_ChartingTemplates()
        self.parametersPanel = ui

        FlightPlanBaseDlg.initParametersPan(self)
        self.parametersPanel.grid.pressed.connect(self.grid_pressed)
        self.parametersPanel.btnAdd.clicked.connect(self.btnAdd_clicked)
        self.parametersPanel.btnModify.clicked.connect(self.btnModify_clicked)
        self.parametersPanel.btnRemove.clicked.connect(self.btnRemove_clicked)
    def initParametersPan(self):
        ui = Ui_NpaOnFix()
        self.parametersPanel = ui
        FlightPlanBaseDlg.initParametersPan(self)

        if self.dlgType != "NpaOnFix":
            self.parametersPanel.pnlDistFixTolerance.Visible = False

        self.parametersPanel.cmbAircraftCategory.Items = [
            "A", "B", "C", "D", "E", "H", "Custom"
        ]

        self.connect(self.parametersPanel.pnlAerodromeAltitude,
                     SIGNAL("editingFinished"), self.altitudeChanged)
        self.connect(self.parametersPanel.pnlIas, SIGNAL("Event_0"),
                     self.altitudeChanged)
        self.connect(self.parametersPanel.pnlTas, SIGNAL("Event_0"),
                     self.showMarkDaSoc)
        self.connect(self.parametersPanel.pnlIsa, SIGNAL("editingFinished"),
                     self.altitudeChanged)
        self.connect(self.parametersPanel.pnlEstimatedAltitude,
                     SIGNAL("Event_0"), self.pnlEstimatedAltitude_Event_0)
        self.connect(self.parametersPanel.pnlEstimatedAltitude,
                     SIGNAL("editingFinished"), self.showMarkDaSoc)
        self.connect(self.parametersPanel.cmbAircraftCategory,
                     SIGNAL("Event_0"), self.cmbAircraftCategory_Event_0)
        # # self.connect(self.parametersPanel.cmbPhaseOfFlight, SIGNAL("Event_0"), self.cmbPhaseOfFlightChanged)
        # # self.connect(self.parametersPanel.cmbSelectionMode, SIGNAL("Event_0"), self.manualEvent)
        # self.connect(self.parametersPanel.pnlHeightLoss, SIGNAL("Event_0"), self.pnlHeightLoss_Event_0)
        self.connect(self.parametersPanel.pnlDistFixTolerance,
                     SIGNAL("editingFinished"), self.showMarkDaSoc)
        # self.connect(self.parametersPanel.pnlRDH, SIGNAL("editingFinished"), self.pnlRDH_Event_0)
        self.connect(self.parametersPanel.pnlDistX, SIGNAL("Event_0"),
                     self.showMarkDaSoc)
        # # self.connect(self.parametersPanel.cmbType2, SIGNAL("Event_0"), self.method_31)
        #
        self.connect(self.parametersPanel.pnlFafPosition,
                     SIGNAL("positionChanged"), self.calcRwyBearing)
        self.connect(self.parametersPanel.pnlMaPtPosition,
                     SIGNAL("positionChanged"), self.calcRwyBearing)
        self.connect(self.parametersPanel.pnlThrPosition,
                     SIGNAL("positionChanged"), self.showMarkDaSoc)

        self.parametersPanel.pnlFafPosition.btnCalculater.clicked.connect(
            self.pnlFafPosition_btnCalculater_clicked)
        self.parametersPanel.pnlMaPtPosition.btnCalculater.clicked.connect(
            self.pnlMaPtPosition_btnCalculater_clicked)

        #
        self.parametersPanel.cmbAircraftCategory.SelectedIndex = 0

        # self.putAircraftSpeed()
        self.altitudeChanged()
        # self.putWithInHeightLoss()
        self.calcSocAltitude()
    def initParametersPan(self):
        ui = Ui_PaIls()
        self.parametersPanel = ui
        FlightPlanBaseDlg.initParametersPan(self)

        items = []
        for i in range(25, 71):
            num = float(i) / 10
            items.append(QString(str(num)) + define._degreeStr)
        self.parametersPanel.cmbVPA.Items = items
        self.parametersPanel.cmbVPA.SelectedIndex = 5

        self.parametersPanel.cmbAircraftCategory.Items = ["A", "B", "C", "D", "E", "H", "Custom"]


        # self.parametersPanel.pnlWind.setAltitude(self.parametersPanel.pnlAltitude.Value)
        #
        # self.parametersPanel.cmbSelectionMode.Items = ["Automatic", "Manual"]
        #
        # self.parametersPanel.cmbConstructionType.Items = ["2D", "3D"]
        # self.parametersPanel.cmbType1.Items = ["Fly-By", "Fly-Over", "RF"]
        # self.parametersPanel.cmbType2.Items = ["Fly-By", "Fly-Over", "RF"]
        #
        # self.parametersPanel.cmbRnavSpecification.Items = ["", "Rnav5", "Rnav2", "Rnav1", "Rnp4", "Rnp2", "Rnp1", "ARnp2", "ARnp1", "ARnp09", "ARnp08", "ARnp07", "ARnp06", "ARnp05", "ARnp04", "ARnp03", "RnpApch"]
        #
        #
        self.connect(self.parametersPanel.pnlAerodromeAltitude, SIGNAL("Event_0"), self.altitudeChanged)
        self.connect(self.parametersPanel.pnlIas, SIGNAL("Event_0"), self.altitudeChanged)
        self.connect(self.parametersPanel.pnlIsa, SIGNAL("Event_0"), self.altitudeChanged)
        self.connect(self.parametersPanel.pnlEstimatedAltitude, SIGNAL("Event_0"), self.pnlEstimatedAltitude_Event_0)
        self.connect(self.parametersPanel.pnlEstimatedAltitude, SIGNAL("editingFinished"), self.showMarkDaSoc)
        self.connect(self.parametersPanel.cmbVPA, SIGNAL("Event_0"), self.cmbVPA_Event_0)
        self.connect(self.parametersPanel.cmbAircraftCategory, SIGNAL("Event_0"), self.cmbAircraftCategory_Event_0)
        # self.connect(self.parametersPanel.cmbPhaseOfFlight, SIGNAL("Event_0"), self.cmbPhaseOfFlightChanged)
        # self.connect(self.parametersPanel.cmbSelectionMode, SIGNAL("Event_0"), self.manualEvent)
        self.connect(self.parametersPanel.pnlHeightLoss, SIGNAL("Event_0"), self.pnlHeightLoss_Event_0)
        self.connect(self.parametersPanel.pnlHeightLoss, SIGNAL("editingFinished"), self.showMarkDaSoc)
        self.connect(self.parametersPanel.pnlRDH, SIGNAL("editingFinished"), self.pnlRDH_Event_0)
        self.connect(self.parametersPanel.pnlDistXz, SIGNAL("Event_0"), self.showMarkDaSoc)
        # self.connect(self.parametersPanel.cmbType2, SIGNAL("Event_0"), self.method_31)
        #
        self.connect(self.parametersPanel.pnlFapPosition, SIGNAL("positionChanged"), self.calcRwyBearing)
        self.connect(self.parametersPanel.pnlThrPosition, SIGNAL("positionChanged"), self.calcRwyBearing)

        self.parametersPanel.pnlFapPosition.btnCalculater.clicked.connect(self.pnlFapPosition_btnCalculater_clicked)
        #
        self.parametersPanel.cmbAircraftCategory.SelectedIndex = 0

        self.putAircraftSpeed()
        self.altitudeChanged()
        self.putWithInHeightLoss()
        self.calcSocAltitude()
        self.putDistances()
Beispiel #6
0
    def initParametersPan(self):
        ui = Ui_HoldingRace_P()
        self.parametersPanel = ui
        FlightPlanBaseDlg.initParametersPan(self)

        self.parametersPanel.txtTas.setEnabled(False)
        self.parametersPanel.pnlInsPos = PositionPanel(
            self.parametersPanel.gbVorDmePosition)
        #         self.parametersPanel.pnlInsPos.groupBox.setTitle("FAWP")
        self.parametersPanel.pnlInsPos.btnCalculater.hide()
        self.parametersPanel.pnlInsPos.hideframe_Altitude()
        self.parametersPanel.pnlInsPos.setObjectName("pnlInsPos")
        ui.vl_VorDmePosition.addWidget(self.parametersPanel.pnlInsPos)

        self.parametersPanel.pnlWind = WindPanel(
            self.parametersPanel.gbParameters)
        self.parametersPanel.pnlWind.lblIA.setMinimumSize(250, 0)
        self.parametersPanel.vl_gbParameters.insertWidget(
            6, self.parametersPanel.pnlWind)
        self.parametersPanel.pnlWind.setAltitude(
            Altitude(float(self.parametersPanel.txtAltitude.text()),
                     AltitudeUnits.FT))

        self.parametersPanel.cmbAircraftCategory.addItems(
            ["A", "B", "C", "D", "E", "H", "Custom"])
        #         self.parametersPanel.cmbOutboundLimit.addItems(["Time", "Distance From Waypoint"])
        #         self.parametersPanel.cmbConstruction.addItems(["2D", "3D"])
        self.parametersPanel.cmbOrientation.addItems(["Right", "Left"])

        self.parametersPanel.cmbAircraftCategory.setCurrentIndex(3)
        self.parametersPanel.frameAircraftCategory.hide()
        self.parametersPanel.frameMoc.hide()

        #         self.parametersPanel.cmbHoldingFunctionality.currentIndexChanged.connect(self.cmbHoldingFunctionalityCurrentIndexChanged)
        #         self.parametersPanel.cmbOutboundLimit.currentIndexChanged.connect(self.cmbOutboundLimitCurrentIndexChanged)
        #         self.parametersPanel.btnCaptureTrack.clicked.connect(self.captureBearing)
        #         self.parametersPanel.btnCaptureDistance.clicked.connect(self.measureDistance)
        #         self.parametersPanel.btnCaptureLength.clicked.connect(self.measureLength)
        self.parametersPanel.txtAltitude.textChanged.connect(
            self.altitudeChanged)
        #         self.parametersPanel.cmbAircraftCategory.currentIndexChanged.connect(self.changeCategory)
        #         self.parametersPanel.btnIasHelp.clicked.connect(self.iasHelpShow)
        self.parametersPanel.txtIas.textChanged.connect(self.iasChanged)
        self.parametersPanel.txtIsa.textChanged.connect(self.isaChanged)

        self.parametersPanel.txtTas.setText(
            str(
                Speed.smethod_0(
                    Speed(float(self.parametersPanel.txtIas.text())),
                    float(self.parametersPanel.txtIsa.text()),
                    Altitude(float(self.parametersPanel.txtAltitude.text()),
                             AltitudeUnits.FT)).Knots))
    def initParametersPan(self):
        ui = Ui_Radial()
        self.parametersPanel = ui
        FlightPlanBaseDlg.initParametersPan(self)
        
        self.parametersPanel.pnlNavAid = PositionPanel(self.parametersPanel.gbNavAid)
#         self.parametersPanel.pnlNavAid.groupBox.setTitle("Aerodrome Reference Point(ARP)")
        self.parametersPanel.pnlNavAid.btnCalculater.hide()
        self.parametersPanel.pnlNavAid.hideframe_Altitude()
        self.parametersPanel.pnlNavAid.setObjectName("pnlNavAid")
        ui.vl_gbNavAid.addWidget(self.parametersPanel.pnlNavAid)
        
        self.parametersPanel.cmbNavAidType.Items = ["VOR", "NDB"]
        self.parametersPanel.cmbSelectionMode.addItems(["Automatic", "Manual"])
#         self.parametersPanel.cmbSensorType.currentIndexChanged.connect(self.cmbSensorTypeChanged)
        self.parametersPanel.cmbToleranceType.addItems(["Intersecting", "Tracking", "Area Splay"])
        self.parametersPanel.cmbConstructionType.addItems(["2D", "3D"])
        
        
                
        self.parametersPanel.cmbConstructionType.currentIndexChanged.connect(self.method_28)
        self.connect(self.parametersPanel.cmbNavAidType, SIGNAL("Event_0"), self.method_28)
        # self.parametersPanel.btnCaptureTrackRadial.clicked.connect(self.captureTrackRadial)
#         self.parametersPanel.chbHideCloseInObst.stateChanged.connect(self.chbHideCloseInObstStateChanged)
        self.parametersPanel.btnCaptureDistFinish.clicked.connect(self.measureDistFinish)
        self.parametersPanel.btnCaptureDistStart.clicked.connect(self.measureDistStart)        
#         self.parametersPanel.txtAltitude.textChanged.connect(self.altitudeChanged)
        self.parametersPanel.cmbToleranceType.currentIndexChanged.connect(self.method_28)
#         self.parametersPanel.btnIasHelp.clicked.connect(self.iasHelpShow)
#         self.parametersPanel.txtIas.textChanged.connect(self.iasChanged)
#         self.parametersPanel.txtIsa.textChanged.connect(self.isaChanged)
#
        self.parametersPanel.txtPrimaryMOC.textChanged.connect(self.txtMocMChanged)
        self.parametersPanel.txtPrimaryMOCFt.textChanged.connect(self.txtMocFtChanged)
        self.flag1 = 0
        if self.flag1==0:
            self.flag1=1;
        if self.flag1==2:
            self.flag1=0;
        if self.flag1==1:
            try:
                self.parametersPanel.txtPrimaryMOCFt.setText(str(round(round(Unit.ConvertMeterToFeet(float(self.parametersPanel.txtPrimaryMOC.text())), 4), 4)))
            except:
                self.parametersPanel.txtPrimaryMOCFt.setText("0.0")


        self.method_28()
Beispiel #8
0
    def initParametersPan(self):
        ui = Ui_FixConstruction()
        self.parametersPanel = ui
        FlightPlanBaseDlg.initParametersPan(self)

        self.parametersPanel.frameMOCMultipiler.setVisible(False)

        self.parametersPanel.pnlTrackingPosition = PositionPanel(
            self.parametersPanel.gbTrackingAid)
        self.parametersPanel.pnlTrackingPosition.btnCalculater.hide()
        self.parametersPanel.pnlTrackingPosition.hideframe_Altitude()
        self.parametersPanel.pnlTrackingPosition.setObjectName(
            "pnlTrackingPosition")
        ui.vl_gbTrackingAid.insertWidget(
            1, self.parametersPanel.pnlTrackingPosition)
        # self.connect(self.parametersPanel.pnlNavAid, SIGNAL("positionChanged"), self.initResultPanel)

        self.parametersPanel.pnlIntersectingPosition = PositionPanel(
            self.parametersPanel.gbIntersectingAid)
        self.parametersPanel.pnlIntersectingPosition.btnCalculater.hide()
        self.parametersPanel.pnlIntersectingPosition.hideframe_Altitude()
        self.parametersPanel.pnlIntersectingPosition.setObjectName(
            "pnlIntersectingPosition")
        ui.vl_gbIntersectingAid.insertWidget(
            1, self.parametersPanel.pnlIntersectingPosition)
        # self.connect(self.parametersPanel.pnlNavAid, SIGNAL("positionChanged"), self.initResultPanel)

        self.parametersPanel.cmbTrackingType.addItems(
            [Captions.VOR, Captions.NDB, Captions.LOC])
        self.parametersPanel.cmbIntersectingType.addItems(
            [Captions.VOR, Captions.NDB, Captions.DME])

        self.parametersPanel.cmbTrackingType.currentIndexChanged.connect(
            self.method_30)
        self.parametersPanel.cmbIntersectingType.currentIndexChanged.connect(
            self.method_30)
        self.parametersPanel.btnCaptureTrackingRadialTrack.clicked.connect(
            self.captureTrackingRadialTrack)
        self.parametersPanel.btnCaptureIntersectingRadialTrack.clicked.connect(
            self.captureIntersectingRadialTrack)
        self.parametersPanel.btnMeasureDmeOffset.clicked.connect(
            self.measureDmeOffset)
        self.parametersPanel.btnMeasureIntersectingDistance.clicked.connect(
            self.measureIntersectingDistance)

        self.method_30()
    def initParametersPan(self):
        ui = Ui_ProcedureExport()
        self.parametersPanel = ui
        FlightPlanBaseDlg.initParametersPan(self)

        self.parametersPanel.tabControl.currentChanged.connect(self.tabControl_CurrentChanged)
        self.parametersPanel.gridProcedures.pressed.connect(self.gridProcedures_pressed)
        self.parametersPanel.btnProcEdit.clicked.connect(self.btnProcEdit_Click)
        self.parametersPanel.btnProcRemove.clicked.connect(self.btnProcRemove_Click)
        self.parametersPanel.btnProcAdd.clicked.connect(self.btnProcAdd_Click)
        self.parametersPanel.btnLegsEdit.clicked.connect(self.btnLegsEdit_Click)
        self.parametersPanel.btnLegsExEdit.clicked.connect(self.btnLegsExEdit_Click)
        #
        self.connect(self.parametersPanel.pnlFile, SIGNAL("Event_1"), self.method_41)

        self.parametersPanel.btnLegsPreview.setVisible(True)
        self.parametersPanel.btnLegsExPreview.setVisible(True)
    def initParametersPan(self):
        ui = Ui_TurnArea()
        self.parametersPanel = ui
        FlightPlanBaseDlg.initParametersPan(self)
        
        self.parametersPanel.txtTas.setEnabled(False)
        self.CaptureCoordTool = CaptureCoordinateToolUpdate(define._canvas)
        self.connect(self.CaptureCoordTool, SIGNAL("resultPointValueList"), self.resultPointValueListMethod)
        self.parametersPanel.pnlWind = WindPanel(self.parametersPanel.gbParameters)
        self.parametersPanel.pnlWind.lblIA.setMinimumSize(100, 0)
        self.parametersPanel.pnlWind.lblIA.setMaximumSize(100, 10000)
        self.parametersPanel.vl_gbParameters.insertWidget(6, self.parametersPanel.pnlWind)
        self.parametersPanel.pnlWind.setAltitude(Altitude(float(self.parametersPanel.txtAltitudeFt.text()), AltitudeUnits.FT))

        self.parametersPanel.cmbOrientation.addItems(["Right", "Left"])
                
#         self.parametersPanel.cmbHoldingFunctionality.currentIndexChanged.connect(self.cmbHoldingFunctionalityCurrentIndexChanged)
#         self.parametersPanel.cmbOutboundLimit.currentIndexChanged.connect(self.cmbOutboundLimitCurrentIndexChanged)
#         self.parametersPanel.btnCaptureTrack.clicked.connect(self.captureBearing)
#         self.parametersPanel.btnCaptureDistance.clicked.connect(self.measureDistance)
#         self.parametersPanel.btnCaptureLength.clicked.connect(self.measureLength)        
        self.parametersPanel.txtAltitudeFt.textChanged.connect(self.altitudeFtChanged)
        self.parametersPanel.txtAltitudeM.textChanged.connect(self.altitudeMChanged)
#         self.parametersPanel.cmbAircraftCategory.currentIndexChanged.connect(self.changeCategory)
#         self.parametersPanel.btnIasHelp.clicked.connect(self.iasHelpShow)
        self.parametersPanel.txtIas.textChanged.connect(self.iasChanged)
        self.parametersPanel.txtIsa.textChanged.connect(self.isaChanged)
        
        self.parametersPanel.txtTas.setText(str(round(Speed.smethod_0(Speed(float(self.parametersPanel.txtIas.text())), float(self.parametersPanel.txtIsa.text()), Altitude(float(self.parametersPanel.txtAltitudeFt.text()), AltitudeUnits.FT)).Knots, 4)))

        self.flag = 0
        if self.flag==0:
            self.flag=2;
        if self.flag==1:
            self.flag=0;
        if self.flag==2:
            try:
                self.parametersPanel.txtAltitudeM.setText(str(round(Unit.ConvertFeetToMeter(float(self.parametersPanel.txtAltitudeFt.text())), 4)))
            except:
                self.parametersPanel.txtAltitudeM.setText("0.0")
Beispiel #11
0
    def initParametersPan(self):
        ui = Ui_HoldingOverHead()
        self.parametersPanel = ui
        FlightPlanBaseDlg.initParametersPan(self)

        self.connect(self.parametersPanel.pnlNavAid, SIGNAL("positionChanged"),
                     self.initResultPanel)
        self.connect(self.parametersPanel.pnlNavAid, SIGNAL("positionChanged"),
                     self.iasChanged)

        self.parametersPanel.pnlWind.setAltitude(
            self.parametersPanel.txtAltitude.Value)
        #
        self.parametersPanel.cmbNavAidType.Items = ["VOR", "NDB"]
        self.parametersPanel.cmbUsedFor.Items = ["Holding", "Racetrack"]
        self.parametersPanel.cmbUsedFor.SelectedIndex = 1
        self.parametersPanel.cmbConstruction.Items = ["2D", "3D"]
        self.parametersPanel.cmbOrientation.Items = ["Right", "Left"]

        self.parametersPanel.chbSector1.Visible = False
        self.parametersPanel.chbSector2.Visible = False
        self.parametersPanel.chbSector3.Visible = False
        self.parametersPanel.chbCatH.Visible = False

        self.connect(self.parametersPanel.cmbNavAidType, SIGNAL("Event_0"),
                     self.initBasedOnCmb)
        self.connect(self.parametersPanel.cmbUsedFor, SIGNAL("Event_0"),
                     self.cmbUsedForCurrentIndexChanged)
        self.connect(self.parametersPanel.txtAltitude, SIGNAL("Event_0"),
                     self.altitudeChanged)
        self.connect(self.parametersPanel.txtIas, SIGNAL("Event_0"),
                     self.iasChanged)
        self.connect(self.parametersPanel.txtIsa, SIGNAL("Event_0"),
                     self.iasChanged)

        self.parametersPanel.txtTas.Value = Speed.smethod_0(
            self.parametersPanel.txtIas.Value,
            self.parametersPanel.txtIsa.Value,
            self.parametersPanel.txtAltitude.Value -
            self.parametersPanel.pnlNavAid.Altitude())
Beispiel #12
0
    def initParametersPan(self):
        ui = Ui_FasDataBlock()
        self.parametersPanel = ui
        FlightPlanBaseDlg.initParametersPan(self)

        self.parametersPanel.pnlOperationType.Items = [
            "StraightInOffset", "spare1", "spare2", "spare3", "spare4",
            "spare5", "spare6", "spare7", "spare8", "spare9", "spare10",
            "spare11", "spare12", "spare13", "spare14", "spare15"
        ]

        self.parametersPanel.pnlSbasProvider.Items = [
            "WAAS", "EGNOS", "MSAS", "GAGAN", "SDCM", "spare5", "spare6",
            "spare7", "spare8", "spare9", "spare10", "spare11", "spare12",
            "spare13", "GBASonly", "AnySBASprovider"
        ]

        self.parametersPanel.cmbRunwayLetter.Items = ["None", "R", "C", "L"]
        self.parametersPanel.pnlApproachPerformanceDesignator.Items = [
            "APV", "Cat1", "Cat2", "Cat3", "spare4", "spare5", "spare6",
            "spare7"
        ]
        self.parametersPanel.pnlRouteIndicator.Items = [
            "", "A", "B", "C", "D", "E", "F", "G", "H", "J", "K", "L", "M",
            "N", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"
        ]
        self.parametersPanel.cmbApproachTCHunits.Items = ["ft", "m"]

        # self.parametersPanel.pnlSbasProvider.SelectedIndex = 1
        # self.parametersPanel.pnlRouteIndicator.SelectedIndex = 4
        # self.parametersPanel.cmbRunwayLetter.SelectedIndex = 2
        # self.parametersPanel.pnlLtpFtp.Point3d = Point3D(10.511416667, 1.169722222222222e-4)
        # self.parametersPanel.pnlFpap.Point3d = Point3D(16.136785166667, 58.58778436111111)
        # a = 'a'
        # b = 1

        self.ui.btnUpdateQA.clicked.connect(self.btnUpdateQA_clicked)
        # self.parametersPanel.btnRemove.clicked.connect(self.btnRemove_clicked)
        # self.parametersPanel.btnDown.clicked.connect(self.btnDown_clicked)
        # self.parametersPanel.btnUp.clicked.connect(self.btnUp_clicked)
        # self.parametersPanel.pnlWpt.txtID.textChanged.connect(self.pnlWpt_positionChanged)
        #
        self.connect(self.parametersPanel.pnlVAL, SIGNAL("Event_0"),
                     self.method_34)
        self.connect(self.parametersPanel.pnlHAL, SIGNAL("Event_0"),
                     self.method_34)
        self.connect(self.parametersPanel.pnlLengthOffset, SIGNAL("Event_0"),
                     self.method_34)
        self.connect(self.parametersPanel.pnlCourseWidth, SIGNAL("Event_0"),
                     self.method_34)
        self.connect(self.parametersPanel.pnlLtpFtp, SIGNAL("positionChanged"),
                     self.method_34)
        self.connect(self.parametersPanel.pnlFpap, SIGNAL("positionChanged"),
                     self.method_34)
        self.connect(self.parametersPanel.pnlGPA, SIGNAL("Event_0"),
                     self.method_34)
        self.connect(self.parametersPanel.txtApproachTCH, SIGNAL("Event_0"),
                     self.method_34)
        self.connect(self.parametersPanel.cmbApproachTCHunits,
                     SIGNAL("Event_0"), self.method_34)
        self.connect(self.parametersPanel.pnlLtpFtpEllipsoidalHeight,
                     SIGNAL("Event_0"), self.method_34)
        self.connect(self.parametersPanel.pnlReferencePathId,
                     SIGNAL("Event_0"), self.method_34)
        self.connect(self.parametersPanel.pnlReferencePathDataSelector,
                     SIGNAL("Event_0"), self.method_34)
        self.connect(self.parametersPanel.pnlRouteIndicator, SIGNAL("Event_0"),
                     self.method_34)
        self.connect(self.parametersPanel.pnlApproachPerformanceDesignator,
                     SIGNAL("Event_0"), self.method_34)
        self.connect(self.parametersPanel.txtRunwayDesignator,
                     SIGNAL("Event_0"), self.method_34)
        self.connect(self.parametersPanel.cmbRunwayLetter, SIGNAL("Event_0"),
                     self.method_34)
        self.connect(self.parametersPanel.pnlAirportId, SIGNAL("Event_0"),
                     self.method_34)
        self.connect(self.parametersPanel.pnlSbasProvider, SIGNAL("Event_0"),
                     self.method_34)
        self.connect(self.parametersPanel.pnlOperationType, SIGNAL("Event_0"),
                     self.method_34)
        self.btnEvaluate_Click()
    def initParametersPan(self):
        ui = Ui_HoldingRnpGeneral()
        self.parametersPanel = ui

        FlightPlanBaseDlg.initParametersPan(self)
        self.parametersPanel.txtTas.setEnabled(False)
        self.parametersPanel.pnlWaypoint = PositionPanel(
            self.parametersPanel.holding)
        self.parametersPanel.pnlWaypoint.groupBox.setTitle("Waypoint Position")

        self.parametersPanel.pnlWaypoint.hideframe_Altitude()
        self.parametersPanel.pnlWaypoint.setObjectName("positionWaypoint")
        self.parametersPanel.pnlWaypoint.btnCalculater.hide()
        self.parametersPanel.verticalLayout.insertWidget(
            0, self.parametersPanel.pnlWaypoint)

        self.parametersPanel.pnlWind = WindPanel(
            self.parametersPanel.grbParameters)
        self.parametersPanel.vLayout_grbParameters.insertWidget(
            5, self.parametersPanel.pnlWind)
        self.parametersPanel.pnlWind.setAltitude(
            Altitude(float(self.parametersPanel.txtAltitude.text()),
                     AltitudeUnits.FT))

        #         self.resize(460,600)
        self.parametersPanel.cmbConstruction.addItems(["2D", "3D"])
        self.parametersPanel.cmbAircraftCategory_2.addItems(
            ["A", "B", "C", "D", "E", "H", "Custom"])
        self.parametersPanel.cmbOrientation.addItems(
            [OrientationType.Left, OrientationType.Right])
        #         self.parametersPanel.cmbOrientation.setCurrentIndex(1)
        #
        #         '''Event Handlers Connect'''
        #
        self.parametersPanel.txtAltitude.textChanged.connect(self.method_31)
        #         self.parametersPanel.cmbTurnLimitation.currentIndexChanged.connect(self.method_28)
        #         self.parametersPanel.btnCaptureTrack.clicked.connect(self.captureBearing)
        self.parametersPanel.cmbAircraftCategory_2.currentIndexChanged.connect(
            self.changeCategory)
        self.parametersPanel.cmbAircraftCategory_2.setCurrentIndex(3)

        self.frame_8_1 = QFrame(self)
        sizePolicy = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        #         sizePolicy.setHeightForWidth(self.frame_8.sizePolicy().hasHeightForWidth())
        self.frame_8_1.setSizePolicy(sizePolicy)
        self.frame_8_1.setFrameShape(QFrame.StyledPanel)
        self.frame_8_1.setFrameShadow(QFrame.Raised)
        self.frame_8_1.setObjectName("frame_8")
        self.horizontalLayout_10_1 = QHBoxLayout(self.frame_8_1)
        self.horizontalLayout_10_1.setAlignment(Qt.AlignHCenter)
        self.horizontalLayout_10_1.setSpacing(0)
        self.horizontalLayout_10_1.setMargin(0)
        self.horizontalLayout_10_1.setObjectName("horizontalLayout_10")
        self.label_2_1 = QLabel(self.frame_8_1)
        self.label_2_1.setMinimumSize(QSize(140, 16777215))
        #         self.label_2_1.setFixedWidth(100)
        self.label_2_1.setText("MOCmultiplier")

        font = QFont()
        font.setFamily("Arial")
        font.setBold(False)
        font.setWeight(50)
        self.label_2_1.setFont(font)
        self.label_2_1.setObjectName("label_2_1")
        self.horizontalLayout_10_1.addWidget(self.label_2_1)

        self.parametersPanel.mocSpinBox = QSpinBox(self.frame_8_1)
        self.parametersPanel.mocSpinBox.setFont(font)
        self.parametersPanel.mocSpinBox.setObjectName("mocSpinBox")
        sizePolicy = QSizePolicy(QSizePolicy.MinimumExpanding,
                                 QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.parametersPanel.mocSpinBox.sizePolicy().hasHeightForWidth())
        self.parametersPanel.mocSpinBox.setSizePolicy(sizePolicy)
        self.parametersPanel.mocSpinBox.setMinimum(1)
        self.parametersPanel.mocSpinBox.setMinimumSize(QSize(140, 16777215))

        #         self.parametersPanel.mocSpinBox.setFixedWidth(100)
        self.horizontalLayout_10_1.addWidget(self.parametersPanel.mocSpinBox)
        #         self.verticalLayout_9.addWidget(self.frame_8_1)

        self.parametersPanel.vLayout_grbParameters.addWidget(self.frame_8_1)
        self.parametersPanel.btnIasHelp.clicked.connect(self.iasHelpShow)
        self.parametersPanel.frame_ConstructionType_2.hide()

        self.parametersPanel.txtIas.textChanged.connect(self.iasChanged)
        self.parametersPanel.txtIsa.textChanged.connect(self.isaChanged)
        #         self.parametersPanel.txtIsa.textChanged.connect(self.isaChanged)
        self.parametersPanel.txtAltitudeM.textChanged.connect(
            self.txtAltitudeMChanged)
        self.parametersPanel.txtAltitude.textChanged.connect(
            self.txtAltitudeFtChanged)

        self.flag = 0
        if self.flag == 0:
            self.flag = 2
        if self.flag == 1:
            self.flag = 0
        if self.flag == 2:
            try:
                self.parametersPanel.txtAltitudeM.setText(
                    str(
                        round(
                            Unit.ConvertFeetToMeter(
                                float(
                                    self.parametersPanel.txtAltitude.text())),
                            4)))
            except:
                self.parametersPanel.txtAltitudeM.setText("0.0")
        self.parametersPanel.txtMoc.textChanged.connect(self.txtMocMChanged)
        self.parametersPanel.txtMocFt.textChanged.connect(self.txtMocFtChanged)

        self.flag1 = 0
        if self.flag1 == 0:
            self.flag1 = 1
        if self.flag1 == 2:
            self.flag1 = 0
        if self.flag1 == 1:
            try:
                self.parametersPanel.txtMocFt.setText(
                    str(
                        round(
                            Unit.ConvertMeterToFeet(
                                float(self.parametersPanel.txtMoc.text())),
                            4)))
            except:
                self.parametersPanel.txtMocFt.setText("0.0")

        self.parametersPanel.txtTas.setText(
            str(
                round(
                    Speed.smethod_0(
                        Speed(float(self.parametersPanel.txtIas.text())),
                        float(self.parametersPanel.txtIsa.text()),
                        Altitude(
                            float(self.parametersPanel.txtAltitude.text()),
                            AltitudeUnits.FT)).Knots, 4)))
    def initParametersPan(self):
        ui = Ui_GeoDetermine()
        self.parametersPanel = ui
        FlightPlanBaseDlg.initParametersPan(self)

        self.parametersPanel.pnlStartPosP = PositionPanel(
            self.parametersPanel.gbStartPosP, None, None, "Degree")
        # self.parametersPanel.pnlStartPosP.degreeFormat = "ddmmss.ssssH"
        self.parametersPanel.pnlStartPosP.alwwaysShowString = "Degree"
        #         self.parametersPanel.pnlWaypoint.groupBox.setTitle("FAWP")
        self.parametersPanel.pnlStartPosP.btnCalculater.hide()
        self.parametersPanel.pnlStartPosP.hideframe_Altitude()
        # self.parametersPanel.pnlStartPosP.showframe_ID()
        self.parametersPanel.pnlStartPosP.setObjectName("pnlStartPosP")
        self.connect(self.parametersPanel.pnlStartPosP,
                     SIGNAL("positionChanged"), self.autoCalcFinishMagVar)

        ui.verticalLayout_gbStartPosP.addWidget(
            self.parametersPanel.pnlStartPosP)

        self.parametersPanel.pnlVarStartP = DegreesBoxPanel(self)
        self.parametersPanel.pnlVarStartP.CaptionLabel = "Magnetic Variation"
        self.connect(self.parametersPanel.pnlVarStartP,
                     SIGNAL("btnDegreeBoxPanel_clicked"), self.method_32_P)
        self.connect(self.parametersPanel.pnlVarStartP,
                     SIGNAL("txtDegreeBox_textChanged"),
                     self.txtDegreeBox_textChangedP)
        ui.verticalLayout_gbStartPosP.addWidget(
            self.parametersPanel.pnlVarStartP)

        self.parametersPanel.pnlVarFinishP = DegreesBoxPanel(self)
        self.parametersPanel.pnlVarFinishP.ButtonVisible = False
        self.parametersPanel.pnlVarFinishP.Enabled = False
        self.parametersPanel.pnlVarFinishP.CaptionLabel = "Magnetic Variation at Finish"
        ui.vLayout_grbParametersP.insertWidget(
            1, self.parametersPanel.pnlVarFinishP)
        # self.connect(self.parametersPanel.pnlVarStartP, SIGNAL("btnDegreeBoxPanel_clicked"), self.method_32_P)

        self.parametersPanel.pnlStartPosBD = PositionPanel(
            self.parametersPanel.gbFinishPosBD, None, None, "Degree")
        #         self.parametersPanel.pnlStartPosBD.groupBox.setTitle("FAWP")
        #         self.parametersPanel.pnlStartPosBD.degreeFormat = "ddmmss.ssssH"
        self.parametersPanel.pnlStartPosBD.alwwaysShowString = "Degree"
        self.parametersPanel.pnlStartPosBD.btnCalculater.hide()
        self.parametersPanel.pnlStartPosBD.hideframe_Altitude()
        self.parametersPanel.pnlStartPosBD.showframe_ID()
        self.parametersPanel.pnlStartPosBD.setObjectName("pnlStartPosBD")
        ui.verticalLayout_gbStartPosBD.insertWidget(
            0, self.parametersPanel.pnlStartPosBD)
        self.connect(self.parametersPanel.pnlStartPosBD,
                     SIGNAL("positionChanged"), self.positionChangedStartBD)

        self.parametersPanel.pnlVarStartBD = DegreesBoxPanel(self)
        self.parametersPanel.pnlVarStartBD.CaptionLabel = "Magnetic Variation"
        # self.parametersPanel.pnlVarStartBD.Enabled = False
        self.connect(self.parametersPanel.pnlVarStartBD,
                     SIGNAL("btnDegreeBoxPanel_clicked"), self.method_34_BD)
        # self.connect(self.parametersPanel.pnlVarStartBD, SIGNAL("txtDegreeBox_textChanged"), self.txtDegreeBox_textChangedP)
        ui.verticalLayout_gbStartPosBD.addWidget(
            self.parametersPanel.pnlVarStartBD)

        self.parametersPanel.pnlFinishPosBD = PositionPanel(
            self.parametersPanel.gbFinishPosBD, None, None, "Degree")
        #         self.parametersPanel.pnlStartPosBD.groupBox.setTitle("FAWP")
        #         self.parametersPanel.pnlFinishPosBD.degreeFormat = "ddmmss.ssssH"
        self.parametersPanel.pnlFinishPosBD.alwwaysShowString = "Degree"
        self.parametersPanel.pnlFinishPosBD.btnCalculater.hide()
        self.parametersPanel.pnlFinishPosBD.hideframe_Altitude()
        self.parametersPanel.pnlFinishPosBD.showframe_ID()
        self.parametersPanel.pnlFinishPosBD.setObjectName("pnlFinishPosBD")
        ui.verticalLayout_gbFinishPosBD.insertWidget(
            0, self.parametersPanel.pnlFinishPosBD)
        self.connect(self.parametersPanel.pnlFinishPosBD,
                     SIGNAL("positionChanged"), self.positionChangedFinishBD)

        self.parametersPanel.pnlVarFinishBD = DegreesBoxPanel(self)
        self.parametersPanel.pnlVarFinishBD.CaptionLabel = "Magnetic Variation"
        # self.parametersPanel.pnlVarFinishBD.Enabled = False
        self.connect(self.parametersPanel.pnlVarFinishBD,
                     SIGNAL("btnDegreeBoxPanel_clicked"), self.method_36_BD)
        # self.connect(self.parametersPanel.pnlVarFinishBD, SIGNAL("txtDegreeBox_textChanged"), self.txtDegreeBox_textChangedP)
        ui.verticalLayout_gbFinishPosBD.addWidget(
            self.parametersPanel.pnlVarFinishBD)

        self.parametersPanel.pnlPositionMVD = PositionPanel(
            self.parametersPanel.tabGeoDetermineMV, None, None, "Degree")
        self.parametersPanel.pnlPositionMVD.groupBox.setTitle("Position")
        self.parametersPanel.pnlPositionMVD.alwwaysShowString = "Degree"
        self.parametersPanel.pnlPositionMVD.btnCalculater.hide()
        self.parametersPanel.pnlPositionMVD.setObjectName("pnlPositionMVD")
        ui.verticalLayout_3.insertWidget(0,
                                         self.parametersPanel.pnlPositionMVD)
        self.connect(self.parametersPanel.pnlPositionMVD,
                     SIGNAL("positionChanged"), self.method_28_MVD)

        self.connect(self.parametersPanel.txtForwardTP, SIGNAL("Event_0"),
                     self.txtForwardTP_textChanged)
        self.connect(self.parametersPanel.chbAutoFinishMagVar,
                     SIGNAL("Event_0"), self.chbAutoFinishMagVar_clicked)
        self.connect(self.parametersPanel.txtDistanceP, SIGNAL("Event_0"),
                     self.autoCalcFinishMagVar)

        self.connect(self.parametersPanel.txtForwardMP, SIGNAL("Event_0"),
                     self.txtForwardMP_textChanged)
        self.parametersPanel.btnResultP.clicked.connect(
            self.btnResultP_clicked)
        self.parametersPanel.tabGeneral.currentChanged.connect(
            self.tabGeneral_CurrentChanged)
        self.parametersPanel.chbAutoVarBD.clicked.connect(
            self.chbAutoVarBD_clicked)
        self.parametersPanel.dtpDate.dateChanged.connect(self.method_28_MVD)
        self.connect(self.parametersPanel.cmbModel, SIGNAL("Event_0"),
                     self.method_28_MVD)
        self.parametersPanel.btnDtpDate.clicked.connect(
            self.btnDtpDate_clicked)

        self.resultModelP = QStandardItemModel()
        self.parametersPanel.tblResultP.setModel(self.resultModelP)

        self.resultModelBD = QStandardItemModel()
        self.parametersPanel.tblResultBD.setModel(self.resultModelBD)

        self.ttt = 0
        self.txtForwardTP_textChanged()

        self.setHistoryData()

        self.autoVarSet = False
        self.dateBD = QDate.currentDate()
        self.modelBD = MagneticModel.WMM2010
        self.parametersPanel.btnResultBD.setVisible(False)

        self.parametersPanel.dtpDate.setDate(QDate.currentDate())

        self.calendar = QCalendarWidget()
        self.calendar.clicked.connect(self.calendar_clicked)

        self.menu = QMenu()
        layout = QVBoxLayout(self.menu)
        layout.addWidget(self.calendar)
    def initParametersPan(self):
        ui = Ui_DepartureOmnidirectional()
        self.parametersPanel = ui
        FlightPlanBaseDlg.initParametersPan(self)

        self.parametersPanel.chbHideCloseInObst = QCheckBox(self.ui.grbResult)
        font = QFont()
        font.setBold(False)
        font.setWeight(50)
        self.parametersPanel.chbHideCloseInObst.setFont(font)
        self.parametersPanel.chbHideCloseInObst.setObjectName(
            "chbHideCloseInObst")
        self.ui.vlResultGroup.addWidget(
            self.parametersPanel.chbHideCloseInObst)
        self.parametersPanel.chbHideCloseInObst.setText(
            "Hide close-in obstacles")
        self.parametersPanel.txtRadiusFt.setEnabled(False)
        self.parametersPanel.txtRadius.setEnabled(False)

        self.parametersPanel.frameMinTurnHeight_CATH.setVisible(False)

        self.parametersPanel.pnlDer = PositionPanel(
            self.parametersPanel.gbRunway)
        self.parametersPanel.pnlDer.groupBox.setTitle("DER Position")
        self.parametersPanel.pnlDer.btnCalculater.hide()
        #         self.parametersPanel.pnlRwyDir.hideframe_Altitude()
        self.parametersPanel.pnlDer.setObjectName("pnlDer")
        ui.vl_gbRunway.addWidget(self.parametersPanel.pnlDer)
        #         self.connect(self.parametersPanel.pnlRwyDir, SIGNAL("positionChanged"), self.initResultPanel)

        self.parametersPanel.pnlRwyStart = PositionPanel(
            self.parametersPanel.gbRunway)
        self.parametersPanel.pnlRwyStart.groupBox.setTitle(
            "Start of RWY/FATO Position")
        self.parametersPanel.pnlRwyStart.btnCalculater.hide()
        self.parametersPanel.pnlRwyStart.hideframe_Altitude()
        self.parametersPanel.pnlRwyStart.setObjectName("pnlRwyStart")
        ui.vl_gbRunway.insertWidget(1, self.parametersPanel.pnlRwyStart)
        self.calcRadiusArea3()
        self.parametersPanel.cmbSelectionMode.addItems(["Automatic", "Manual"])
        self.parametersPanel.cmbSelectionMode.currentIndexChanged.connect(
            self.manualEvent)
        #         self.parametersPanel.cmbHoldingFunctionality.currentIndexChanged.connect(self.cmbHoldingFunctionalityCurrentIndexChanged)
        #         self.parametersPanel.cmbOutboundLimit.currentIndexChanged.connect(self.cmbOutboundLimitCurrentIndexChanged)
        #         self.parametersPanel.btnCaptureDer.clicked.connect(self.captureBearing)
        self.parametersPanel.chbHideCloseInObst.stateChanged.connect(
            self.chbHideCloseInObstStateChanged)
        self.parametersPanel.chbCatH.stateChanged.connect(
            self.chbCATHStateChanged)
        self.parametersPanel.txtPdg.textChanged.connect(self.calcRadiusArea3)
        self.parametersPanel.pnlDer.txtPointX.textChanged.connect(
            self.calcRadiusArea3)
        self.parametersPanel.pnlDer.txtAltitudeM.textChanged.connect(
            self.calcRadiusArea3)
        self.parametersPanel.txtNextSegmentAltitude.textChanged.connect(
            self.txtNextSegmentAltitudeChanged)
        self.parametersPanel.txtTurningAltitude.textChanged.connect(
            self.txtTurningAltitudeChanged)
        self.parametersPanel.txtNextSegmentAltitudeM.textChanged.connect(
            self.txtNextSegmentAltitudeMChanged)
        self.parametersPanel.txtTurningAltitudeM.textChanged.connect(
            self.txtTurningAltitudeMChanged)

        self.parametersPanel.txtMinTurnHeight.textChanged.connect(
            self.txtMinTurnHeightChanged)
        self.parametersPanel.txtMinTurnHeightFt.textChanged.connect(
            self.txtMinTurnHeightFtChanged)
        self.parametersPanel.txtMinTurnHeight_CATH.textChanged.connect(
            self.txtMinTurnHeight_CATHChanged)
        self.parametersPanel.txtMinTurnHeight_CATH_2.textChanged.connect(
            self.txtMinTurnHeight_CATH_2Changed)
        #         self.parametersPanel.btnCaptureDistance.clicked.connect(self.measureDistance)
        #         self.parametersPanel.btnCaptureLength.clicked.connect(self.measureLength)
        #         self.parametersPanel.txtAltitude.textChanged.connect(self.altitudeChanged)
        #         self.parametersPanel.cmbAircraftCategory.currentIndexChanged.connect(self.changeCategory)
        #         self.parametersPanel.btnIasHelp.clicked.connect(self.iasHelpShow)
        #         self.parametersPanel.txtIas.textChanged.connect(self.iasChanged)
        #         self.parametersPanel.txtIsa.textChanged.connect(self.isaChanged)
        #
        self.txtTFlag = True
        self.txtNFlag = True
        self.txtTMFlag = False
        self.txtNMFlag = False

        self.flag = 0
        self.flag1 = 0
        self.flag2 = 0
        self.flag3 = 0
        try:
            self.parametersPanel.txtNextSegmentAltitudeM.setText(
                str(
                    round(
                        Unit.ConvertFeetToMeter(
                            float(self.parametersPanel.txtNextSegmentAltitude.
                                  text())), 4)))
        except:
            self.parametersPanel.txtNextSegmentAltitudeM.setText("0.0")
        try:
            self.parametersPanel.txtTurningAltitudeM.setText(
                str(
                    round(
                        Unit.ConvertFeetToMeter(
                            float(self.parametersPanel.txtTurningAltitude.text(
                            ))), 4)))
        except:
            self.parametersPanel.txtTurningAltitudeM.setText("0.0")

        try:
            self.parametersPanel.txtMinTurnHeightFt.setText(
                str(
                    round(
                        Unit.ConvertMeterToFeet(
                            float(
                                self.parametersPanel.txtMinTurnHeight.text())),
                        4)))
        except:
            self.parametersPanel.txtMinTurnHeightFt.setText("0.0")
        try:
            self.parametersPanel.txtMinTurnHeight_CATH_2.setText(
                str(
                    round(
                        Unit.ConvertMeterToFeet(
                            float(self.parametersPanel.txtMinTurnHeight_CATH.
                                  text())), 4)))
        except:
            self.parametersPanel.txtMinTurnHeight_CATH_2.setText("0.0")