Beispiel #1
0
    def __init__(self, parent=None):
        QtGui.QWidget.__init__(self, parent)
        self.setObjectName(("Ui_AerodromeSurfacesAltitude"))
        self.resize(473, 580)
        font = QtGui.QFont()
        font.setFamily(("Arial"))
        font.setBold(False)
        font.setWeight(50)
        self.setFont(font)

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

        self.gbEvalParameters = GroupBox(self)
        self.gbEvalParameters.Caption = "Parameters"
        self.vlForm.addWidget(self.gbEvalParameters)

        self.pnlEvalMode = ComboBoxPanel(self.gbEvalParameters)
        self.pnlEvalMode.Caption = "Mode"
        self.pnlEvalMode.LabelWidth = 120
        self.gbEvalParameters.Add = self.pnlEvalMode

        self.pnlEvalPosition = PositionPanel(self.gbEvalParameters)
        self.pnlEvalPosition.Caption = "Position"
        self.pnlEvalPosition.frameID.setVisible(True)
        # self.pnlEvalPosition.hideframe_Altitude()
        self.pnlEvalPosition.btnCalculater.setVisible(False)
        self.gbEvalParameters.Add = self.pnlEvalPosition

        self.pnlInsertPointAndText = Frame(self.gbEvalParameters, "HL")
        self.pnlInsertPointAndText.layoutBoxPanel.setSpacing(50)
        self.gbEvalParameters.Add = self.pnlInsertPointAndText

        self.chbInsertPointAndText = CheckBox(self.pnlInsertPointAndText)
        self.chbInsertPointAndText.Caption = "Insert Point And Text"
        self.pnlInsertPointAndText.Add = self.chbInsertPointAndText

        self.pnlAnnotationTextHeight = NumberBoxPanel(
            self.pnlInsertPointAndText)
        self.pnlAnnotationTextHeight.Caption = "Text Height"
        self.pnlAnnotationTextHeight.LabelWidth = 80
        self.pnlAnnotationTextHeight.Value = 8
        self.pnlInsertPointAndText.Add = self.pnlAnnotationTextHeight

        self.chbOnlyPenetratingObstacles = CheckBox(self.gbEvalParameters)
        self.chbOnlyPenetratingObstacles.Caption = "Evaluate Only Penetrating Obstacles"
        self.chbOnlyPenetratingObstacles.Checked = False
        self.gbEvalParameters.Add = self.chbOnlyPenetratingObstacles
    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.chbDrawRectangle = CheckBox(self.gbParameters)
        self.chbDrawRectangle.Caption = "Draw Rectangle"
        # self.chbDrawRectangle.Visible = False
        self.gbParameters.Add = self.chbDrawRectangle

        self.pnlMinorLinesTickLength = DistanceBoxPanel(
            self.gbParameters, DistanceUnits.M)
        self.pnlMinorLinesTickLength.Caption = "Minor Lines Tick Length"
        # self.pnlMinorLinesTickLength.Visible = False
        self.gbParameters.Add = self.pnlMinorLinesTickLength

        self.pnlMinorLines = Frame(self.gbParameters, "HL")
        # self.pnlMinorLines.Visible = False
        self.gbParameters.Add = self.pnlMinorLines

        self.cmbMinorLines = ComboBoxPanel(self.pnlMinorLines)
        self.cmbMinorLines.Caption = "Minor Lines"
        self.pnlMinorLines.Add = self.cmbMinorLines

        self.txtMinorLinesEvery = NumberBoxPanel(self.pnlMinorLines, "0.0")
        self.txtMinorLinesEvery.LabelWidth = 0
        self.txtMinorLinesEvery.Value = 1
        self.pnlMinorLines.Add = self.txtMinorLinesEvery

        self.pnlIntermediateLinesTickLength = DistanceBoxPanel(
            self.gbParameters, DistanceUnits.M)
        self.pnlIntermediateLinesTickLength.Caption = "Intermediate Lines Tick Length"
        # self.pnlIntermediateLinesTickLength.Visible = False
        self.gbParameters.Add = self.pnlIntermediateLinesTickLength

        self.pnlIntermediateLines = Frame(self.gbParameters, "HL")
        # self.pnlIntermediateLines.Visible = False
        self.gbParameters.Add = self.pnlIntermediateLines

        self.cmbIntermediateLines = ComboBoxPanel(self.pnlIntermediateLines)
        self.cmbIntermediateLines.Caption = "Intermediate Lines"
        self.pnlIntermediateLines.Add = self.cmbIntermediateLines

        self.txtIntermediateLinesEvery = NumberBoxPanel(
            self.pnlIntermediateLines, "0.0")
        self.txtIntermediateLinesEvery.LabelWidth = 0
        self.txtIntermediateLinesEvery.Value = 5
        self.pnlIntermediateLines.Add = self.txtIntermediateLinesEvery

        self.pnlMajorLinesTickLength = DistanceBoxPanel(
            self.gbParameters, DistanceUnits.M)
        self.pnlMajorLinesTickLength.Caption = "Major Lines Tick Length"
        self.gbParameters.Add = self.pnlMajorLinesTickLength

        self.pnlMajorLines = Frame(self.gbParameters, "HL")
        # self.pnlMajorLines.Visible = False
        self.gbParameters.Add = self.pnlMajorLines

        self.cmbMajorLines = ComboBoxPanel(self.pnlMajorLines)
        self.cmbMajorLines.Caption = "Major Lines"
        self.pnlMajorLines.Add = self.cmbMajorLines

        self.txtMajorLinesEvery = NumberBoxPanel(self.pnlMajorLines, "0.0")
        self.txtMajorLinesEvery.LabelWidth = 0
        self.txtMajorLinesEvery.Value = 10
        self.pnlMajorLines.Add = self.txtMajorLinesEvery

        self.pnlLonFormat = ComboBoxPanel(self.gbParameters)
        self.pnlLonFormat.Caption = "Longitude Text Format"
        self.gbParameters.Add = self.pnlLonFormat

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

        self.cmbLatFormat = ComboBoxPanel(self.pnlLatFormat)
        self.cmbLatFormat.Caption = "Latitude Text Format"
        self.pnlLatFormat.Add = self.cmbLatFormat

        self.chbMultiline = CheckBox(self.pnlLatFormat)
        self.chbMultiline.Caption = "Multiline"
        self.pnlLatFormat.Add = self.chbMultiline

        self.pnlTextHeight = NumberBoxPanel(self.gbParameters, "0")
        self.pnlTextHeight.Caption = "Text Height"
        self.pnlTextHeight.Value = 6
        self.gbParameters.Add = self.pnlTextHeight

        self.pnlMapScale = MapScalePanel(self.gbParameters,
                                         MapScaleDropDownType.All)
        self.pnlMapScale.Caption = "Eventual Map Scale"
        self.gbParameters.Add = self.pnlMapScale

        self.gbArea = GroupBox(Form, "HL")
        self.gbArea.Caption = "Rectangular Grid Area"
        self.vlForm.addWidget(self.gbArea)

        self.frameAreaPosition = Frame(self.gbArea)
        self.gbArea.Add = self.frameAreaPosition

        self.pnlUR = PositionPanel(self.frameAreaPosition, None, None,
                                   "Degree")
        self.pnlUR.Caption = "Upper Right Corner"
        self.pnlUR.hideframe_Altitude()
        self.pnlUR.btnCalculater.setVisible(False)
        self.pnlUR.btnCapture.setVisible(False)
        self.pnlUR.groupBox.setEnabled(False)
        self.frameAreaPosition.Add = self.pnlUR

        self.pnlLL = PositionPanel(self.frameAreaPosition, None, None,
                                   "Degree")
        self.pnlLL.Caption = "Lower Left Corner"
        self.pnlLL.hideframe_Altitude()
        self.pnlLL.btnCalculater.setVisible(False)
        self.pnlLL.btnCapture.setVisible(False)
        self.pnlLL.groupBox.setEnabled(False)
        self.frameAreaPosition.Add = self.pnlLL

        self.btnPickArea = QtGui.QPushButton(self.gbArea)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.btnPickArea.sizePolicy().hasHeightForWidth())
        self.btnPickArea.setSizePolicy(sizePolicy)
        self.btnPickArea.setMinimumSize(QtCore.QSize(25, 0))
        self.btnPickArea.setMaximumSize(QtCore.QSize(25, 16777215))
        self.btnPickArea.setText((""))
        self.btnPickArea.setObjectName("btnCapture")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(("Resource/coordinate_capture.png")),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnPickArea.setIcon(icon)
        self.gbArea.Add = self.btnPickArea
Beispiel #3
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.gbFato = GroupBox(Form)
        self.gbFato.Caption = "Final Approach && Take Off area (FATO)"
        self.vlForm.addWidget(self.gbFato)

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

        self.pnlFato = ComboBoxPanel(self.pnlRunwayGroup, False, True)
        self.pnlFato.Caption = ""
        self.pnlFato.LabelWidth = 15
        self.pnlRunwayGroup.Add = self.pnlFato

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

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

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

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

        self.pnlTurningTakeOffTrack = TrackRadialBoxPanel(self.gbParameters)
        self.pnlTurningTakeOffTrack.Caption = "Turning Take-off Climb In-bound Track"
        self.pnlTurningTakeOffTrack.LabelWidth = 230
        self.gbParameters.Add = self.pnlTurningTakeOffTrack

        self.pnlTurningTakeOffCenter = PositionPanel(self.gbParameters)
        self.pnlTurningTakeOffCenter.Caption = "Turning Take-off Climb Center Position"
        self.pnlTurningTakeOffCenter.hideframe_Altitude()
        self.pnlTurningTakeOffCenter.btnCalculater.setVisible(False)
        self.gbParameters.Add = self.pnlTurningTakeOffCenter

        self.pnlTurningTakeOff = ComboBoxPanel(self.gbParameters)
        self.pnlTurningTakeOff.Caption = "Take-off Climb Surface Involving a Turn"
        self.pnlTurningTakeOff.LabelWidth = 230
        self.gbParameters.Add = self.pnlTurningTakeOff

        self.pnlTurningApproachTrack = TrackRadialBoxPanel(self.gbParameters)
        self.pnlTurningApproachTrack.Caption = "Turning Approach In-bound Track"
        self.pnlTurningApproachTrack.LabelWidth = 230
        self.gbParameters.Add = self.pnlTurningApproachTrack

        self.pnlTurningApproachCenter = PositionPanel(self.gbParameters)
        self.pnlTurningApproachCenter.Caption = "Turning Approach Center Position"
        self.pnlTurningApproachCenter.hideframe_Altitude()
        self.pnlTurningApproachCenter.btnCalculater.setVisible(False)
        self.gbParameters.Add = self.pnlTurningApproachCenter

        self.pnlTurningApproach = ComboBoxPanel(self.gbParameters)
        self.pnlTurningApproach.Caption = "Approach Surface Involving a Turn"
        self.pnlTurningApproach.LabelWidth = 230
        self.gbParameters.Add = self.pnlTurningApproach

        self.pnlSlopeCategory = ComboBoxPanel(self.gbParameters)
        self.pnlSlopeCategory.Caption = "Slope Category"
        self.pnlSlopeCategory.LabelWidth = 230
        self.gbParameters.Add = self.pnlSlopeCategory

        self.pnlUsage = ComboBoxPanel(self.gbParameters)
        self.pnlUsage.Caption = "Usage"
        self.pnlUsage.LabelWidth = 230
        self.gbParameters.Add = self.pnlUsage

        self.pnlHeightAboveFATO = ComboBoxPanel(self.gbParameters)
        self.pnlHeightAboveFATO.Caption = "Height Above FATO"
        self.pnlHeightAboveFATO.LabelWidth = 230
        self.gbParameters.Add = self.pnlHeightAboveFATO

        self.pnlApproachAngle = ComboBoxPanel(self.gbParameters)
        self.pnlApproachAngle.Caption = "Approach Angle"
        self.pnlApproachAngle.LabelWidth = 230
        self.gbParameters.Add = self.pnlApproachAngle

        self.pnlApproachType = ComboBoxPanel(self.gbParameters)
        self.pnlApproachType.Caption = "Approach Type"
        self.pnlApproachType.LabelWidth = 230
        self.gbParameters.Add = self.pnlApproachType

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

        self.pnlCriteria = ComboBoxPanel(self.pnlCriteriaGroup, False, True)
        self.pnlCriteria.Caption = "Criteria"
        self.pnlCriteria.LabelWidth = 70
        self.pnlCriteriaGroup.Add = self.pnlCriteria

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

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

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

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

        self.chbMarkAltitudes = CheckBox(self.pnlMarkAltitudes)
        self.chbMarkAltitudes.Caption = "Mark Contour Altitudes"
        self.pnlMarkAltitudes.Add = self.chbMarkAltitudes

        self.pnlAltitudesEvery = AltitudeBoxPanel(self.pnlMarkAltitudes)
        self.pnlAltitudesEvery.CaptionUnits = "m"
        self.pnlAltitudesEvery.Caption = "Every"
        self.pnlAltitudesEvery.Value = Altitude(15)
        self.pnlAltitudesEvery.LabelWidth = 62
        self.pnlMarkAltitudes.Add = self.pnlAltitudesEvery

        self.pnlConstructionType = ComboBoxPanel(self.gbConstruction)
        self.pnlConstructionType.Caption = "Construction Type"
        self.pnlConstructionType.LabelWidth = 230
        self.gbConstruction.Add = self.pnlConstructionType
    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
Beispiel #5
0
    def __init__(self, parent=None, bool_0=None):
        QDialog.__init__(self, parent)

        self.resize(100, 70)
        self.setWindowTitle("QA Entry")
        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)
        self.groupBox.Caption = ""
        verticalLayoutDlg.addWidget(self.groupBox)

        # self.lblHeading = TextBoxPanel(self.groupBox)
        # self.lblHeading.Enabled = False
        # self.lblHeading.Caption = "Title"
        # self.lblHeading.LabelWidth = 120
        # self.groupBox.Add = self.lblHeading

        self.txtHeading = TextBoxPanel(self.groupBox)
        self.txtHeading.Caption = "Title"
        self.txtHeading.LabelWidth = 120
        self.txtHeading.Width = 200
        self.groupBox.Add = self.txtHeading

        self.chbLimit = CheckBox(self.groupBox)
        self.chbLimit.Caption = "Limit # of table entries to"
        self.groupBox.Add = self.chbLimit

        self.gbColumns = GroupBox(self.groupBox)
        self.groupBox.Add = self.gbColumns

        self.lstColumns = CheckedListBox(self.gbColumns)
        self.gbColumns.Add = self.lstColumns

        self.txtLimit = TextBoxPanel(self.groupBox)
        self.txtLimit.Caption = ""
        self.txtLimit.LabelWidth = 0
        self.txtLimit.Width = 200
        # self.txtLimit.LabelWidth = 120
        self.chbLimit.hLayout.addWidget(self.txtLimit)

        self.chbIgnoreNA = CheckBox(self.groupBox)
        self.chbIgnoreNA.Caption = "Ignore columns containing \"N/A\" values"
        self.groupBox.Add = self.chbIgnoreNA

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

        verticalLayoutDlg.addWidget(self.btnBoxOkCancel)

        if bool_0 != None:
            if (bool_0):
                # int width = base.ClientSize.Width
                # System.Drawing.Size clientSize = base.ClientSize
                # base.ClientSize = new System.Drawing.Size(width, clientSize.Height - (this.gbColumns.Bottom - this.txtHeading.Bottom))
                self.chbLimit.Visible = False
                self.txtLimit.Visible = False
                self.chbIgnoreNA.Visible = False
                self.gbColumns.Visible = False
            self.connect(self.chbLimit, SIGNAL("Event_0"),
                         self.chbLimit_Event_0)
        else:
            DlgQaHeading.rowLimit = 10
            DlgQaHeading.ignoreNAcolumns = True
Beispiel #6
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)
    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)
        # sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        # sizePolicy.setHorizontalStretch(0)
        # sizePolicy.setVerticalStretch(0)
        # sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth())
        # Form.setSizePolicy(sizePolicy)
        self.vlForm = QtGui.QVBoxLayout(Form)
        self.vlForm.setObjectName(("vlForm"))

        # listWidget = ListBox(Form)
        # listWidget.Items = ["asfdas", "sdafasfd", "3545"]
        # self.vlForm.addWidget(listWidget)

        self.gbFile = GroupBox(Form)
        self.gbFile.Title = "Database File"
        self.vlForm.addWidget(self.gbFile)

        self.pnlFile = TextBoxPanel(self.gbFile)
        self.pnlFile.Caption = ""
        self.pnlFile.Button = "openData.png"
        self.pnlFile.ReadOnly = True
        self.pnlFile.textBox.setMaximumWidth(1000000)
        self.pnlFile.hLayoutBoxPanel.removeItem(self.pnlFile.spacerItem)
        self.gbFile.Add = self.pnlFile


        self.pnlDelimiter = Frame(self.gbFile, "HL")
        self.gbFile.Add = self.pnlDelimiter

        self.cmbDelimiter = ComboBoxPanel(self.pnlDelimiter)
        self.cmbDelimiter.Caption = "Delimiter"
        self.pnlDelimiter.Add = self.cmbDelimiter

        self.txtDelimiter = TextBoxPanel(self.pnlDelimiter)
        self.txtDelimiter.Caption = ""
        self.txtDelimiter.LabelWidth = 0
        self.pnlDelimiter.Add = self.txtDelimiter

        self.chbUnicode = CheckBox(self.gbFile)
        self.chbUnicode.Caption = "Unicode"
        self.gbFile.Add = self.chbUnicode

        self.gbSettings = GroupBox(Form)
        self.gbSettings.Title = "Settings"
        self.vlForm.addWidget(self.gbSettings)

        self.pnlObjectType = Frame(self.gbSettings, "HL")
        self.gbSettings.Add = self.pnlObjectType

        self.cmbObjectType = ComboBoxPanel(self.pnlObjectType)
        self.cmbObjectType.Caption = "Object Type"
        self.pnlObjectType.Add = self.cmbObjectType

        self.cmbPolyType = ComboBoxPanel(self.pnlObjectType)
        self.cmbPolyType.Caption = ""
        self.cmbPolyType.LabelWidth = 0
        self.pnlObjectType.Add = self.cmbPolyType

        self.pnlSelectionMethod = ComboBoxPanel(self.gbSettings)
        self.pnlSelectionMethod.Caption = "Selection Method"
        self.gbSettings.Add = self.pnlSelectionMethod

        self.chbExcludeObjectsAtZero = CheckBox(self.gbSettings)
        self.chbExcludeObjectsAtZero.Caption = "Exclude Objects at Zero Altitude"
        self.gbSettings.Add = self.chbExcludeObjectsAtZero

        self.gbFields = GroupBox(self.gbSettings)
        self.gbFields.Caption = "Fields"
        self.gbSettings.Add = self.gbFields

        self.pnlFields = Frame(self.gbFields)
        self.gbFields.Add = self.pnlFields

        f0 = Frame(self.pnlFields, "HL")
        self.pnlFields.Add = f0

        self.chbName = CheckBox(f0)
        self.chbName.Caption = "Name"
        f0.Add = self.chbName

        self.pnlTolerance = NumberBoxPanel(f0)
        self.pnlTolerance.Button = "coordinate_capture.png"
        self.pnlTolerance.Caption = "Tolerance"
        self.pnlTolerance.LabelWidth = 70
        self.pnlTolerance.Value = 50
        f0.Add = self.pnlTolerance

        self.chbXY = CheckBox(self.pnlFields)
        self.chbXY.Caption = "Cartesian X / Y"
        self.pnlFields.Add = self.chbXY

        self.chbLatLon = CheckBox(self.pnlFields)
        self.chbLatLon.Caption = "Latitude / Longitude"
        self.chbLatLon.LabelWidth = 185
        self.pnlFields.Add = self.chbLatLon

        self.chbAltitude = CheckBox(self.pnlFields)
        self.chbAltitude.Caption = "Altitude (Z value)"
        self.pnlFields.Add = self.chbAltitude

        self.chbRadius = CheckBox(self.pnlFields)
        self.chbRadius.Caption = "Radius"
        self.pnlFields.Add = self.chbRadius



        self.pnlLatLonFormat = ComboBoxPanel(self.chbLatLon)
        self.pnlLatLonFormat.Caption = ""
        self.pnlLatLonFormat.LabelWidth = 0
        self.chbLatLon.hLayout.addWidget(self.pnlLatLonFormat)

        self.pnlNumberPrecision = ComboBoxPanel(self.gbFields)
        self.pnlNumberPrecision.Caption = "Number Precision"
        self.gbFields.Add = self.pnlNumberPrecision

        self.pnlLatLonPrecision = ComboBoxPanel(self.gbFields)
        self.pnlLatLonPrecision.Caption = "Latitude / Longitude Precision"
        self.gbFields.Add = self.pnlLatLonPrecision

        self.chbCRC = CheckBox(self.gbFields)
        self.chbCRC.Caption = "CRC Checksum (CRC32Q)"
        self.gbFields.Add = self.chbCRC
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(467, 464)
        self.verticalLayout = QtGui.QVBoxLayout(Form)
        self.verticalLayout.setObjectName("verticalLayout")

        self.gbNavAid = GroupBox(Form)
        self.gbNavAid.Caption = "Navigational Aid"
        self.verticalLayout.addWidget(self.gbNavAid)

        self.cmbNavAidType = ComboBoxPanel(self.gbNavAid)
        self.cmbNavAidType.Caption = "Type"
        self.cmbNavAidType.LabelWidth = 120
        self.gbNavAid.Add = self.cmbNavAidType

        self.cmbBasedOn = ComboBoxPanel(self.gbNavAid, True)
        self.cmbBasedOn.Caption = "Based On"
        self.cmbBasedOn.LabelWidth = 120
        self.cmbBasedOn.Width = 120
        self.gbNavAid.Add = self.cmbBasedOn

        self.pnlNavAid = PositionPanel(self.gbNavAid)
        self.pnlNavAid.btnCalculater.hide()
        self.pnlNavAid.setObjectName("pnlNavAid")
        self.gbNavAid.Add = self.pnlNavAid

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

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

        self.txtIas = SpeedBoxPanel(self.gbParameters, SpeedUnits.KTS)
        self.txtIas.Caption = "IAS"
        self.txtIas.Value = Speed(250)
        self.txtIas.LabelWidth = 120
        self.gbParameters.Add = self.txtIas

        self.txtTas = SpeedBoxPanel(self.gbParameters, SpeedUnits.KTS)
        self.txtTas.Caption = "TAS"
        self.txtTas.LabelWidth = 120
        self.txtTas.Enabled = False
        self.gbParameters.Add = self.txtTas

        self.txtAltitude = AltitudeBoxPanel(self.gbParameters)
        self.txtAltitude.CaptionUnits = "ft"
        self.txtAltitude.Caption = "Altitude"
        self.txtAltitude.Value = Altitude(10000, AltitudeUnits.FT)
        self.txtAltitude.LabelWidth = 120
        self.gbParameters.Add = self.txtAltitude

        self.txtIsa = NumberBoxPanel(self.gbParameters, "0.0")
        self.txtIsa.CaptionUnits = define._degreeStr
        self.txtIsa.Caption = "ISA"
        self.txtIsa.Value = 15
        self.txtIsa.LabelWidth = 120
        self.gbParameters.Add = self.txtIsa

        self.pnlWind = WindPanel(self.gbParameters)
        self.pnlWind.lblIA.setMinimumSize(113, 0)
        self.gbParameters.Add = self.pnlWind

        self.txtTime = NumberBoxPanel(self.gbParameters, "0.0")
        self.txtTime.CaptionUnits = "min"
        self.txtTime.Caption = "Time"
        self.txtTime.Value = 1
        self.txtTime.LabelWidth = 120
        self.gbParameters.Add = self.txtTime

        self.txtMoc = AltitudeBoxPanel(self.gbParameters)
        self.txtMoc.CaptionUnits = "m"
        self.txtMoc.Caption = "Moc"
        self.txtMoc.Value = Altitude(300)
        self.txtMoc.LabelWidth = 120
        self.gbParameters.Add = self.txtMoc

        self.chbCatH = CheckBox(self.gbParameters)
        self.chbCatH.Caption = "Cat. H ( linear MOC reduction up to 2NM )"
        self.gbParameters.Add = self.chbCatH

        self.gbEntryAreas = GroupBox(self.gbParameters, "HL")
        self.gbEntryAreas.Caption = "Entry Areas"
        self.gbParameters.Add = self.gbEntryAreas

        self.chbIntercept = CheckBox(self.gbEntryAreas)
        self.chbIntercept.Caption = "Intercept"
        self.gbEntryAreas.Add = self.chbIntercept

        self.chbSector1 = CheckBox(self.gbEntryAreas)
        self.chbSector1.Caption = "Sector 1"
        self.gbEntryAreas.Add = self.chbSector1

        self.chbSector2 = CheckBox(self.gbEntryAreas)
        self.chbSector2.Caption = "Sector 2"
        self.gbEntryAreas.Add = self.chbSector2

        self.chbSectors12 = CheckBox(self.gbEntryAreas)
        self.chbSectors12.Caption = "Sectors 1 & 2"
        self.gbEntryAreas.Add = self.chbSectors12

        self.chbSector3 = CheckBox(self.gbEntryAreas)
        self.chbSector3.Caption = "Sectors 3"
        self.gbEntryAreas.Add = self.chbSector3

        self.cmbConstruction = ComboBoxPanel(self.gbParameters)
        self.cmbConstruction.Caption = "Construction Type"
        self.cmbConstruction.LabelWidth = 120
        self.cmbConstruction.Width = 50
        self.gbParameters.Add = self.cmbConstruction

        self.mocSpinBox = NumberBoxPanel(self.gbParameters, None)
        self.mocSpinBox.Caption = "MOCmultiplier"
        self.mocSpinBox.LabelWidth = 120
        self.mocSpinBox.Value = 1
        self.mocSpinBox.Width = 50
        self.gbParameters.Add = self.mocSpinBox

        self.gbOrientation = GroupBox(Form)
        self.gbOrientation.Caption = "Orientation"
        self.verticalLayout.addWidget(self.gbOrientation)

        self.txtTrack = TrackRadialBoxPanel(self.gbOrientation)
        self.txtTrack.Caption = "In-bound Track"
        self.txtTrack.LabelWidth = 120
        self.gbOrientation.Add = self.txtTrack

        self.cmbOrientation = ComboBoxPanel(self.gbOrientation)
        self.cmbOrientation.Caption = "Turns"
        self.cmbOrientation.LabelWidth = 120
        self.gbOrientation.Add = self.cmbOrientation

        QtCore.QMetaObject.connectSlotsByName(Form)
    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
Beispiel #11
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.gbRunway = GroupBox(Form)
        self.gbRunway.Caption = "Runway"
        self.vlForm.addWidget(self.gbRunway)

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

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

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

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

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

        self.pnlRwyCode = ComboBoxPanel(self.gbRunway)
        self.pnlRwyCode.Caption = "Code"
        self.pnlRwyCode.LabelWidth = 120
        self.gbRunway.Add = self.pnlRwyCode

        self.gbAerodrome = GroupBox(Form)
        self.gbAerodrome.Caption = "Aerodrome"
        self.vlForm.addWidget(self.gbAerodrome)

        self.pnlDatumElevation = ComboBoxPanel(self.gbAerodrome)
        self.pnlDatumElevation.Caption = "Datum Elevation"
        self.pnlDatumElevation.LabelWidth = 120
        self.gbAerodrome.Add = self.pnlDatumElevation

        self.pnlARP = PositionPanel(self.gbAerodrome)
        self.pnlARP.Caption = "Aerodrome Reference Point (ARP)"
        self.pnlARP.btnCalculater.setVisible(False)
        self.gbAerodrome.Add = self.pnlARP

        self.chbLetterF = CheckBox(self.gbAerodrome)
        self.chbLetterF.Caption = "Code Letter 'F'"
        self.gbAerodrome.Add = self.chbLetterF

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

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

        self.pnlCriteria = ComboBoxPanel(self.pnlCriteriaGroup, False, True)
        self.pnlCriteria.Caption = "Criteria"
        self.pnlCriteria.LabelWidth = 120
        self.pnlCriteriaGroup.Add = self.pnlCriteria

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

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

        self.pnlApproachType = ComboBoxPanel(self.gbParameters)
        self.pnlApproachType.Caption = "Approach Type"
        self.pnlApproachType.LabelWidth = 120
        self.gbParameters.Add = self.pnlApproachType

        self.pnlApproachObstacleAltitude = AltitudeBoxPanel(self.gbParameters)
        self.pnlApproachObstacleAltitude.CaptionUnits = "m"
        self.pnlApproachObstacleAltitude.Caption = "Approach Obstacle Altitude"
        self.pnlApproachObstacleAltitude.Value = Altitude(15)
        self.pnlApproachObstacleAltitude.LabelWidth = 180
        self.gbParameters.Add = self.pnlApproachObstacleAltitude

        self.chbDepTrackMoreThan15 = CheckBox(self.gbParameters)
        self.chbDepTrackMoreThan15.Caption = "Departure Track Heading Change > 15°"
        self.gbParameters.Add = self.chbDepTrackMoreThan15

        self.chbSecondSlope = CheckBox(self.gbParameters)
        self.chbSecondSlope.Caption = "1.6% Take Off Climb Surface"
        self.gbParameters.Add = self.chbSecondSlope

        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 = 120
        self.gbConstruction.Add = self.pnlConstructionType

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

        self.chbMarkAltitudes = CheckBox(self.pnlMarkAltitudes)
        self.chbMarkAltitudes.Caption = "Mark Contour Altitudes"
        self.pnlMarkAltitudes.Add = self.chbMarkAltitudes

        self.pnlAltitudesEvery = AltitudeBoxPanel(self.pnlMarkAltitudes)
        self.pnlAltitudesEvery.CaptionUnits = "m"
        self.pnlAltitudesEvery.Caption = "Every"
        self.pnlAltitudesEvery.Value = Altitude(5)
        self.pnlAltitudesEvery.LabelWidth = 70
        self.pnlMarkAltitudes.Add = self.pnlAltitudesEvery
    def setupUi(self, GeoDetermine):
        GeoDetermine.setObjectName(_fromUtf8("GeoDetermine"))
        GeoDetermine.resize(483, 428)
        self.horizontalLayout_GeoDetermine = QtGui.QHBoxLayout(GeoDetermine)
        self.horizontalLayout_GeoDetermine.setObjectName(
            _fromUtf8("horizontalLayout_GeoDetermine"))
        self.tabGeneral = QtGui.QTabWidget(GeoDetermine)
        self.tabGeneral.setObjectName(_fromUtf8("tabGeneral"))
        self.tabGeoDeterminePosition = QtGui.QWidget(GeoDetermine)
        self.tabGeoDeterminePosition.setObjectName(
            _fromUtf8("tabGeoDeterminePosition"))
        self.verticalLayout = QtGui.QVBoxLayout(self.tabGeoDeterminePosition)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))

        self.gbStartPosP = QtGui.QGroupBox(self.tabGeoDeterminePosition)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.gbStartPosP.sizePolicy().hasHeightForWidth())
        self.gbStartPosP.setSizePolicy(sizePolicy)
        self.gbStartPosP.setObjectName(_fromUtf8("gbStartPosP"))
        self.verticalLayout_gbStartPosP = QtGui.QVBoxLayout(self.gbStartPosP)
        self.verticalLayout_gbStartPosP.setObjectName(
            _fromUtf8("verticalLayout_gbStartPosP"))

        self.verticalLayout.addWidget(self.gbStartPosP)
        self.grbParametersP = QtGui.QGroupBox(self.tabGeoDeterminePosition)
        self.grbParametersP.setObjectName(_fromUtf8("grbParametersP"))
        self.vLayout_grbParametersP = QtGui.QVBoxLayout(self.grbParametersP)
        self.vLayout_grbParametersP.setObjectName(
            _fromUtf8("vLayout_grbParametersP"))

        self.chbAutoFinishMagVar = CheckBox(self.grbParametersP)
        self.chbAutoFinishMagVar.Caption = "Automatically Calculate Magnetic Variation"
        self.chbAutoFinishMagVar.Checked = True
        self.vLayout_grbParametersP.addWidget(self.chbAutoFinishMagVar)

        self.txtForwardTP = TrackRadialBoxPanel(self.grbParametersP, "Geo")
        self.txtForwardTP.Caption = "Forward True Bearing"
        self.vLayout_grbParametersP.addWidget(self.txtForwardTP)

        self.txtForwardMP = TrackRadialBoxPanel(self.grbParametersP, "Geo")
        self.txtForwardMP.Caption = "Forward Magnetic Bearing"
        self.txtForwardMP.Button = None
        self.vLayout_grbParametersP.addWidget(self.txtForwardMP)

        self.txtDistanceP = DistanceBoxPanel(self.grbParametersP,
                                             DistanceUnits.NM)
        self.txtDistanceP.Caption = "Distance Between Positions"
        self.vLayout_grbParametersP.addWidget(self.txtDistanceP)

        self.cmbCalculationTypeP = ComboBoxPanel(self.grbParametersP)
        self.cmbCalculationTypeP.Caption = "Calculation Type"
        self.cmbCalculationTypeP.Items = ["GreatCircle", "Ellipsoid"]
        self.cmbCalculationTypeP.SelectedIndex = 1
        self.vLayout_grbParametersP.addWidget(self.cmbCalculationTypeP)

        self.frameP = QtGui.QFrame(self.grbParametersP)
        self.frameP.setMinimumSize(QtCore.QSize(0, 0))
        self.frameP.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.frameP.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frameP.setFrameShadow(QtGui.QFrame.Raised)
        self.frameP.setObjectName(_fromUtf8("frameP"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frameP)
        self.horizontalLayout_2.setSpacing(0)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.chbMarkPointsP = QtGui.QCheckBox(self.frameP)
        self.chbMarkPointsP.setMinimumSize(QtCore.QSize(200, 0))
        self.chbMarkPointsP.setMaximumSize(QtCore.QSize(200, 16777215))
        self.chbMarkPointsP.setObjectName(_fromUtf8("chbMarkPointsP"))
        self.horizontalLayout_2.addWidget(self.chbMarkPointsP)
        self.chbDrawLineP = QtGui.QCheckBox(self.frameP)
        self.chbDrawLineP.setObjectName(_fromUtf8("chbDrawLineP"))
        self.horizontalLayout_2.addWidget(self.chbDrawLineP)
        self.vLayout_grbParametersP.addWidget(self.frameP)

        self.gbResultP = QtGui.QGroupBox(self.grbParametersP)
        self.gbResultP.setObjectName(_fromUtf8("gbResultP"))
        self.horizontalLayout_gbResultP = QtGui.QHBoxLayout(self.gbResultP)
        self.horizontalLayout_gbResultP.setObjectName(
            _fromUtf8("horizontalLayout_gbResultP"))
        self.tblResultP = QtGui.QTableView(self.gbResultP)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tblResultP.sizePolicy().hasHeightForWidth())
        self.tblResultP.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        self.tblResultP.setFont(font)
        self.tblResultP.setObjectName(_fromUtf8("tblResultP"))
        self.horizontalLayout_gbResultP.addWidget(self.tblResultP)
        self.btnResultP = QtGui.QPushButton(self.gbResultP)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.btnResultP.sizePolicy().hasHeightForWidth())
        self.btnResultP.setSizePolicy(sizePolicy)
        self.btnResultP.setMinimumSize(QtCore.QSize(23, 0))
        self.btnResultP.setMaximumSize(QtCore.QSize(23, 16777215))
        self.btnResultP.setText(_fromUtf8(""))
        self.btnResultP.setObjectName(_fromUtf8("btnResultP"))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/clear.png")),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnResultP.setIcon(icon)
        self.horizontalLayout_gbResultP.addWidget(self.btnResultP)
        self.vLayout_grbParametersP.addWidget(self.gbResultP)

        self.verticalLayout.addWidget(self.grbParametersP)
        self.tabGeneral.addTab(self.tabGeoDeterminePosition, _fromUtf8(""))
        self.tabGeoDetermineBD = QtGui.QWidget(GeoDetermine)
        self.tabGeoDetermineBD.setObjectName(_fromUtf8("tabGeoDetermineBD"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.tabGeoDetermineBD)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.gbStartPosBD = QtGui.QGroupBox(self.tabGeoDetermineBD)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.gbStartPosBD.sizePolicy().hasHeightForWidth())
        self.gbStartPosBD.setSizePolicy(sizePolicy)
        self.gbStartPosBD.setObjectName(_fromUtf8("gbStartPosBD"))
        self.verticalLayout_gbStartPosBD = QtGui.QVBoxLayout(self.gbStartPosBD)
        self.verticalLayout_gbStartPosBD.setObjectName(
            _fromUtf8("verticalLayout_gbStartPosBD"))

        self.verticalLayout_2.addWidget(self.gbStartPosBD)
        self.gbFinishPosBD = QtGui.QGroupBox(self.tabGeoDetermineBD)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.gbFinishPosBD.sizePolicy().hasHeightForWidth())
        self.gbFinishPosBD.setSizePolicy(sizePolicy)
        self.gbFinishPosBD.setObjectName(_fromUtf8("gbFinishPosBD"))
        self.verticalLayout_gbFinishPosBD = QtGui.QVBoxLayout(
            self.gbFinishPosBD)
        self.verticalLayout_gbFinishPosBD.setObjectName(
            _fromUtf8("verticalLayout_gbFinishPosBD"))

        self.verticalLayout_2.addWidget(self.gbFinishPosBD)
        self.grbParametersBD = QtGui.QGroupBox(self.tabGeoDetermineBD)
        self.grbParametersBD.setObjectName(_fromUtf8("grbParametersBD"))
        self.vLayout_grbParametersBD = QtGui.QVBoxLayout(self.grbParametersBD)
        self.vLayout_grbParametersBD.setObjectName(
            _fromUtf8("vLayout_grbParametersBD"))

        self.cmbCalculationTypeBD = ComboBoxPanel(self.grbParametersBD)
        self.cmbCalculationTypeBD.Caption = "Calculation Type"
        self.cmbCalculationTypeBD.Items = ["GreatCircle", "Ellipsoid"]
        self.cmbCalculationTypeBD.SelectedIndex = 1
        self.vLayout_grbParametersBD.addWidget(self.cmbCalculationTypeBD)

        self.chbAutoVarBD = QtGui.QCheckBox(self.grbParametersBD)
        self.chbAutoVarBD.setObjectName(_fromUtf8("chbAutoVarBD"))
        self.vLayout_grbParametersBD.addWidget(self.chbAutoVarBD)
        self.frameBD = QtGui.QFrame(self.grbParametersBD)
        self.frameBD.setMinimumSize(QtCore.QSize(0, 0))
        self.frameBD.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.frameBD.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frameBD.setFrameShadow(QtGui.QFrame.Raised)
        self.frameBD.setObjectName(_fromUtf8("frameBD"))
        self.horizontalLayout_BD = QtGui.QHBoxLayout(self.frameBD)
        self.horizontalLayout_BD.setSpacing(0)
        self.horizontalLayout_BD.setMargin(0)
        self.horizontalLayout_BD.setObjectName(
            _fromUtf8("horizontalLayout_BD"))

        self.chbMarkPointsBD = QtGui.QCheckBox(self.frameBD)
        self.chbMarkPointsBD.setMinimumSize(QtCore.QSize(200, 0))
        self.chbMarkPointsBD.setMaximumSize(QtCore.QSize(200, 16777215))
        self.chbMarkPointsBD.setObjectName(_fromUtf8("chbMarkPointsBD"))
        self.horizontalLayout_BD.addWidget(self.chbMarkPointsBD)

        self.chbDrawLineBD = QtGui.QCheckBox(self.frameBD)
        self.chbDrawLineBD.setObjectName(_fromUtf8("chbDrawLineBD"))
        self.horizontalLayout_BD.addWidget(self.chbDrawLineBD)

        self.vLayout_grbParametersBD.addWidget(self.frameBD)
        self.gbResultBD = QtGui.QGroupBox(self.grbParametersBD)
        self.gbResultBD.setObjectName(_fromUtf8("gbResultBD"))
        self.horizontalLayout_gbResultBD = QtGui.QHBoxLayout(self.gbResultBD)
        self.horizontalLayout_gbResultBD.setObjectName(
            _fromUtf8("horizontalLayout_gbResultBD"))
        self.tblResultBD = QtGui.QTableView(self.gbResultBD)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial"))
        self.tblResultBD.setFont(font)
        self.tblResultBD.setObjectName(_fromUtf8("tblResultBD"))
        self.horizontalLayout_gbResultBD.addWidget(self.tblResultBD)
        self.btnResultBD = QtGui.QPushButton(self.gbResultBD)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.btnResultBD.sizePolicy().hasHeightForWidth())
        self.btnResultBD.setSizePolicy(sizePolicy)
        self.btnResultBD.setMinimumSize(QtCore.QSize(23, 0))
        self.btnResultBD.setMaximumSize(QtCore.QSize(23, 16777215))
        self.btnResultBD.setText(_fromUtf8(""))
        self.btnResultBD.setObjectName(_fromUtf8("btnResultBD"))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/clear.png")),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnResultBD.setIcon(icon)
        self.horizontalLayout_gbResultBD.addWidget(self.btnResultBD)
        self.vLayout_grbParametersBD.addWidget(self.gbResultBD)
        self.verticalLayout_2.addWidget(self.grbParametersBD)
        self.tabGeneral.addTab(self.tabGeoDetermineBD, _fromUtf8(""))

        self.tabGeoDetermineMV = QtGui.QWidget(GeoDetermine)
        self.tabGeoDetermineMV.setObjectName(_fromUtf8("tabGeoDetermineMV"))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabGeoDetermineMV.sizePolicy().hasHeightForWidth())
        self.tabGeoDetermineMV.setSizePolicy(sizePolicy)
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.tabGeoDetermineMV)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.grbParametersMVD = QtGui.QGroupBox(self.tabGeoDetermineMV)
        self.grbParametersMVD.setObjectName(_fromUtf8("grbParametersMVD"))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.grbParametersMVD.sizePolicy().hasHeightForWidth())
        self.grbParametersMVD.setSizePolicy(sizePolicy)
        self.vLayout_grbParametersMVD = QtGui.QVBoxLayout(
            self.grbParametersMVD)
        self.vLayout_grbParametersMVD.setObjectName(
            _fromUtf8("vLayout_grbParametersMVD"))

        self.frame_dtpDate = QtGui.QFrame(self.grbParametersMVD)
        self.frame_dtpDate.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame_dtpDate.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_dtpDate.setObjectName(_fromUtf8("frame_dtpDate"))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_dtpDate.sizePolicy().hasHeightForWidth())
        self.frame_dtpDate.setSizePolicy(sizePolicy)
        self.horizontalLayout_dtpDate = QtGui.QHBoxLayout(self.frame_dtpDate)
        self.horizontalLayout_dtpDate.setSpacing(0)
        self.horizontalLayout_dtpDate.setMargin(0)
        self.horizontalLayout_dtpDate.setObjectName(
            _fromUtf8("horizontalLayout_dtpDate"))
        self.label_80 = QtGui.QLabel(self.frame_dtpDate)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_80.sizePolicy().hasHeightForWidth())
        self.label_80.setSizePolicy(sizePolicy)
        self.label_80.setMinimumSize(QtCore.QSize(200, 0))
        self.label_80.setMaximumSize(QtCore.QSize(200, 16777215))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_80.setFont(font)
        self.label_80.setObjectName(_fromUtf8("label_80"))
        self.horizontalLayout_dtpDate.addWidget(self.label_80)

        self.frame_ForwardTInP_2 = QtGui.QFrame(self.frame_dtpDate)
        self.frame_ForwardTInP_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_ForwardTInP_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_ForwardTInP_2.setObjectName(
            _fromUtf8("frame_ForwardTInP_2"))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_ForwardTInP_2.sizePolicy().hasHeightForWidth())
        self.frame_ForwardTInP_2.setSizePolicy(sizePolicy)
        self.horizontalLayout_ForwardTInP_2 = QtGui.QHBoxLayout(
            self.frame_ForwardTInP_2)
        self.horizontalLayout_ForwardTInP_2.setSpacing(0)
        self.horizontalLayout_ForwardTInP_2.setMargin(0)
        self.horizontalLayout_ForwardTInP_2.setObjectName(
            _fromUtf8("horizontalLayout_ForwardTInP_2"))
        self.dtpDate = QtGui.QDateEdit(self.frame_ForwardTInP_2)
        self.dtpDate.setObjectName(_fromUtf8("dtpDate"))
        self.dtpDate.setMaximumWidth(80)
        self.dtpDate.setMinimumWidth(80)
        self.horizontalLayout_ForwardTInP_2.addWidget(self.dtpDate)
        self.btnDtpDate = QtGui.QToolButton(self.frame_ForwardTInP_2)
        self.btnDtpDate.setText(_fromUtf8(""))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/calender.png")),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnDtpDate.setIcon(icon)
        self.btnDtpDate.setObjectName(_fromUtf8("btnDtpDate"))
        self.horizontalLayout_ForwardTInP_2.addWidget(self.btnDtpDate)
        self.horizontalLayout_dtpDate.addWidget(self.frame_ForwardTInP_2)
        self.vLayout_grbParametersMVD.addWidget(self.frame_dtpDate)

        self.cmbModel = ComboBoxPanel(self.grbParametersMVD)
        self.cmbModel.Caption = "Model"
        self.cmbModel.Items = [
            "WMM2015", "WMM2010", "WMM2005", "WMM2000", "WMM95", "WMM90",
            "WMM85", "IGRF2000", "IGRF95", "IGRF90"
        ]
        # self.cmbModel.SelectedIndex = 1
        self.vLayout_grbParametersMVD.addWidget(self.cmbModel)

        self.gbResultMVD = QtGui.QGroupBox(self.grbParametersMVD)
        self.gbResultMVD.setObjectName(_fromUtf8("gbResultMVD"))
        self.horizontalLayout_gbResultMVD = QtGui.QHBoxLayout(self.gbResultMVD)
        self.horizontalLayout_gbResultMVD.setObjectName(
            _fromUtf8("horizontalLayout_gbResultMVD"))

        self.txtResult = TextBoxPanel(self.gbResultMVD)
        self.txtResult.Caption = "Magnetic Variation"
        self.horizontalLayout_gbResultMVD.addWidget(self.txtResult)

        self.vLayout_grbParametersMVD.addWidget(self.gbResultMVD)
        self.verticalLayout_3.addWidget(self.grbParametersMVD)

        spacerItem = QtGui.QSpacerItem(10, 10, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem)

        self.tabGeneral.addTab(self.tabGeoDetermineMV, _fromUtf8(""))
        self.horizontalLayout_GeoDetermine.addWidget(self.tabGeneral)

        self.retranslateUi(GeoDetermine)
        self.tabGeneral.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(GeoDetermine)
Beispiel #13
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