Exemplo n.º 1
0
    def __init__(self, parent=None):
        QDialog.__init__(self, parent)

        self.resize(290, 136)
        self.setWindowTitle("New DPN DB 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 = "Existing DB Entries"
        verticalLayoutDlg.addWidget(self.groupBox)

        self.lstItems = ListBox(self.groupBox)
        self.groupBox.Add = self.lstItems

        frame = Frame(self, "HL")
        verticalLayoutDlg.addWidget(frame)

        self.btnNewDPN = QPushButton(frame)
        self.btnNewDPN.setObjectName("btnNewDPN")
        self.btnNewDPN.setText("New DPN...")
        frame.Add = self.btnNewDPN

        self.btnNewPCP = QPushButton(frame)
        self.btnNewPCP.setObjectName("btnNewPCP")
        self.btnNewPCP.setText("New PCP...")
        frame.Add = self.btnNewPCP

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

        self.btnNewDPN.clicked.connect(self.btnNewDPN_Click)
        self.btnNewPCP.clicked.connect(self.btnNewPCP_Click)

        frame.Add = self.btnBoxOkCancel

        self.newTypeSelected = None
Exemplo n.º 2
0
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(473, 580)
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setBold(False)
        font.setWeight(50)
        Form.setFont(font)
        self.vlForm = QtGui.QVBoxLayout(Form)
        self.vlForm.setObjectName(("vlForm"))

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        self.pnlTextHeight = NumberBoxPanel(pnlInput_0)
        self.pnlTextHeight.Caption = "Text Height"
        self.pnlTextHeight.LabelWidth = 100
        self.pnlTextHeight.Value = 8
        pnlInput_0.Add = self.pnlTextHeight
Exemplo n.º 3
0
    def __init__(self, parent=None):
        QDialog.__init__(self, parent)

        self.resize(290, 136)
        self.setWindowTitle("Procedure Legs (AIXM 4.5+)")
        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.gbAll = GroupBox(self, "HL")
        self.gbAll.Caption = "Legs"
        verticalLayoutDlg.addWidget(self.gbAll)

        self.trvLegs = QTreeView(self.gbAll)
        self.trvLegsStdModel = StandardItemModel()
        self.trvLegs.setModel(self.trvLegsStdModel)
        self.gbAll.Add = self.trvLegs

        self.flowLayoutPanel1 = Frame(self.gbAll)
        self.gbAll.Add = self.flowLayoutPanel1

        self.btnAdd = QPushButton(self.flowLayoutPanel1)
        icon = QIcon()
        icon.addPixmap(QPixmap("Resource/add.png"), QIcon.Normal, QIcon.Off)
        self.btnAdd.setIcon(icon)
        self.flowLayoutPanel1.Add = self.btnAdd

        self.btnRemove = QPushButton(self.flowLayoutPanel1)
        icon = QIcon()
        icon.addPixmap(QPixmap("Resource/remove.png"), QIcon.Normal, QIcon.Off)
        self.btnRemove.setIcon(icon)
        self.flowLayoutPanel1.Add = self.btnRemove

        self.btnMoveUp = QPushButton(self.flowLayoutPanel1)
        icon = QIcon()
        icon.addPixmap(QPixmap("Resource/up.png"), QIcon.Normal, QIcon.Off)
        self.btnMoveUp.setIcon(icon)
        self.flowLayoutPanel1.Add = self.btnMoveUp

        self.btnMoveDown = QPushButton(self.flowLayoutPanel1)
        icon = QIcon()
        icon.addPixmap(QPixmap("Resource/down.png"), QIcon.Normal, QIcon.Off)
        self.btnMoveDown.setIcon(icon)
        self.flowLayoutPanel1.Add = self.btnMoveDown

        self.scrollBox = Frame(self.gbAll)
        self.gbAll.Add = self.scrollBox

        self.gbPosition = GroupBox(self.scrollBox)
        self.gbPosition.Caption = "Fix"
        self.scrollBox.Add = self.gbPosition

        self.cmbPosUid = ComboBoxPanel(self.gbPosition)
        self.cmbPosUid.Caption = "Position"
        self.cmbPosUid.Button = "coordinate_capture.png"
        self.gbPosition.Add = self.cmbPosUid

        self.gbAttributes = GroupBox(self.scrollBox)
        self.gbAttributes.Caption = "Attributes"
        self.scrollBox.Add = self.gbAttributes

        self.pnlPathType = ComboBoxPanel(self.gbAttributes)
        self.pnlPathType.Caption = "Path Type"
        self.gbAttributes.Add = self.pnlPathType

        self.pnlLegType = ComboBoxPanel(self.gbAttributes)
        self.pnlLegType.Caption = "Leg Type"
        self.gbAttributes.Add = self.pnlLegType

        self.cmbCenUid = ComboBoxPanel(self.gbAttributes)
        self.cmbCenUid.Caption = "Center"
        self.cmbCenUid.Button = "coordinate_capture.png"
        self.gbAttributes.Add = self.cmbCenUid

        self.pnlFlyBy = ComboBoxPanel(self.gbAttributes)
        self.pnlFlyBy.Caption = "Fly-By"
        self.gbAttributes.Add = self.pnlFlyBy

        self.pnlMinAlt = AltitudeBoxPanel(self.gbAttributes)
        self.pnlMinAlt.CaptionUnits = "ft"
        self.pnlMinAlt.Caption = "Minimum Altitude"
        self.gbAttributes.Add = self.pnlMinAlt

        self.pnlSegLength = DistanceBoxPanel(self.gbAttributes,
                                             DistanceUnits.NM)
        self.pnlSegLength.Caption = "Segment Length"
        self.gbAttributes.Add = self.pnlSegLength

        self.pnlCourse = TrackRadialBoxPanel(self.gbAttributes)
        self.pnlCourse.Caption = "Course"
        self.gbAttributes.Add = self.pnlCourse

        self.pnlLegVOR = Frame(self.gbAttributes)
        self.gbAttributes.Add = self.pnlLegVOR

        f1 = Frame(self.pnlLegVOR, "HL")
        self.pnlLegVOR.Add = f1

        self.cmbLegVor = ComboBoxPanel(f1)
        self.cmbLegVor.Caption = "VOR / Radial (" + define._degreeStr + ")"
        f1.Add = self.cmbLegVor

        self.txtLegRadial = TrackRadialBoxPanel(f1)
        self.txtLegRadial.Caption = ""
        self.txtLegRadial.LabelWidth = 0
        f1.Add = self.txtLegRadial

        f2 = Frame(self.pnlLegVOR, "HL")
        self.pnlLegVOR.Add = f2

        self.cmbLegBackVor = ComboBoxPanel(f2)
        self.cmbLegBackVor.Caption = "Reverse VOR / Radial (" + define._degreeStr + ")"
        f2.Add = self.cmbLegBackVor

        self.txtLegBackRadial = TrackRadialBoxPanel(f2)
        self.txtLegBackRadial.Caption = ""
        self.txtLegBackRadial.LabelWidth = 0
        f2.Add = self.txtLegBackRadial

        self.pnlPointType = ComboBoxPanel(self.gbAttributes)
        self.pnlPointType.Caption = "Point Type"
        self.gbAttributes.Add = self.pnlPointType

        self.pnlRepPointType = ComboBoxPanel(self.gbAttributes)
        self.pnlRepPointType.Caption = "Reporting Point Type"
        self.gbAttributes.Add = self.pnlRepPointType

        self.pnlPointVor = Frame(self.gbAttributes)
        self.gbAttributes.Add = self.pnlPointVor

        frame1 = Frame(self.pnlPointVor, "HL")
        self.pnlPointVor.Add = frame1

        self.cmbPointVor = ComboBoxPanel(frame1)
        self.cmbPointVor.Caption = "Point VOR / Radial (" + define._degreeStr + ")"
        frame1.Add = self.cmbPointVor

        self.txtPointRadial = TrackRadialBoxPanel(frame1)
        self.txtPointRadial.Caption = ""
        self.txtPointRadial.LabelWidth = 0
        frame1.Add = self.txtPointRadial

        frame2 = Frame(self.pnlPointVor, "HL")
        self.pnlPointVor.Add = frame2

        self.cmbPointDme1 = ComboBoxPanel(frame2)
        self.cmbPointDme1.Caption = "Point 1. DME / Distance (nm)"
        frame2.Add = self.cmbPointDme1

        self.txtPointDme1 = DistanceBoxPanel(frame2, DistanceUnits.NM)
        self.txtPointDme1.Caption = ""
        self.txtPointDme1.LabelWidth = 0
        frame2.Add = self.txtPointDme1

        frame3 = Frame(self.pnlPointVor, "HL")
        self.pnlPointVor.Add = frame3

        self.cmbPointDme2 = ComboBoxPanel(frame3)
        self.cmbPointDme2.Caption = "Point 2. DME / Distance (nm)"
        frame3.Add = self.cmbPointDme2

        self.txtPointDme2 = DistanceBoxPanel(frame3, DistanceUnits.NM)
        self.txtPointDme2.Caption = ""
        self.txtPointDme2.LabelWidth = 0
        frame3.Add = self.txtPointDme2

        self.txtFlyDuration = TextBoxPanel(self.pnlPointVor, True)
        self.txtFlyDuration.Caption = "Flying Time Duration"
        self.pnlPointVor.Add = self.txtFlyDuration

        self.txtRemarks = TextBoxPanel(self.pnlPointVor, True)
        self.txtRemarks.Caption = "Remarks"
        self.pnlPointVor.Add = self.txtRemarks

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

        self.btnAdd.clicked.connect(self.btnAdd_Click)
        self.btnMoveDown.clicked.connect(self.btnMoveDown_Click)
        self.btnMoveUp.clicked.connect(self.btnMoveUp_Click)
        self.btnRemove.clicked.connect(self.btnRemove_Click)

        verticalLayoutDlg.addWidget(self.btnBoxOkCancel)

        self.trvLegs.pressed.connect(self.trvLegs_pressed)

        self.data = None
        self.legs = None
        self.aerodrome = None
        self.magnVar = 0.0

        self.trvLegs.setHeaderHidden(True)

        self.pnlPointType.Items = ["IAF", "IF", "FAF", "FAP", "MAPt", "TP"]

        for value in CodeLegTypeAixm.Items:
            self.pnlLegType.Add(value)

        for value in CodePathTypeAixm.Items:
            self.pnlPathType.Add(value)

        for value in CodeRepAtcAixm.Items:
            self.pnlRepPointType.Add(value)

        for value in CodeTypeFlyByAixm.Items:
            self.pnlFlyBy.Add(value)
        self.method_6()

        self.connect(self.txtRemarks, SIGNAL("Event_0"),
                     self.txtRemarks_Event_0)
        self.connect(self.txtPointDme2, SIGNAL("Event_0"),
                     self.txtPointDme2_Event_0)
        self.connect(self.cmbPointDme2, SIGNAL("Event_0"),
                     self.cmbPointDme2_Event_0)
        self.connect(self.txtPointDme1, SIGNAL("Event_0"),
                     self.txtPointDme1_Event_0)
        self.connect(self.cmbPointDme1, SIGNAL("Event_0"),
                     self.cmbPointDme1_Event_0)
        self.connect(self.cmbPointVor, SIGNAL("Event_0"),
                     self.cmbPointVor_Event_0)
        self.connect(self.txtPointRadial, SIGNAL("Event_0"),
                     self.txtPointRadial_Event_0)
        self.connect(self.txtFlyDuration, SIGNAL("Event_0"),
                     self.txtFlyDuration_Event_0)
        self.connect(self.pnlRepPointType, SIGNAL("Event_0"),
                     self.pnlRepPointType_Event_0)

        self.connect(self.pnlPointType, SIGNAL("Event_0"),
                     self.pnlPointType_Event_0)

        self.connect(self.txtLegBackRadial, SIGNAL("Event_0"),
                     self.txtLegBackRadial_Event_0)

        self.connect(self.cmbLegBackVor, SIGNAL("Event_0"),
                     self.cmbLegBackVor_Event_0)

        self.connect(self.cmbLegVor, SIGNAL("Event_0"), self.cmbLegVor_Event_0)

        self.connect(self.txtLegRadial, SIGNAL("Event_0"),
                     self.txtLegRadial_Event_0)

        self.connect(self.pnlCourse, SIGNAL("Event_0"), self.pnlCourse_Event_0)

        self.connect(self.pnlSegLength, SIGNAL("Event_0"),
                     self.pnlSegLength_Event_0)

        self.connect(self.pnlMinAlt, SIGNAL("Event_0"), self.pnlMinAlt_Event_0)

        self.connect(self.pnlFlyBy, SIGNAL("Event_0"), self.pnlFlyBy_Event_0)

        self.connect(self.cmbCenUid, SIGNAL("Event_0"), self.cmbCenUid_Event_0)

        self.connect(self.pnlLegType, SIGNAL("Event_0"),
                     self.pnlLegType_Event_0)

        self.connect(self.pnlPathType, SIGNAL("Event_0"),
                     self.pnlPathType_Event_0)

        self.connect(self.cmbPosUid, SIGNAL("Event_0"), self.cmbPosUid_Event_0)
        self.connect(self.cmbCenUid, SIGNAL("Event_3"), self.method_14)
        self.connect(self.cmbPosUid, SIGNAL("Event_3"), self.method_13)
    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
Exemplo n.º 5
0
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(473, 580)
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setBold(False)
        font.setWeight(50)
        Form.setFont(font)
        self.vlForm = QtGui.QVBoxLayout(Form)
        self.vlForm.setObjectName(("vlForm"))

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

        self.pnlFile = TextBoxPanel(self.gbFile)
        self.pnlFile.Caption = ""
        self.pnlFile.LabelWidth = 0
        self.pnlFile.textBox.setMaximumWidth(100000)
        self.pnlFile.hLayoutBoxPanel.removeItem(self.pnlFile.spacerItem)
        self.pnlFile.Button = "openData.png"
        self.gbFile.Add = self.pnlFile

        self.lblEffectiveDate = QtGui.QLabel(self.gbFile)
        self.lblEffectiveDate.setText("Effective Date")
        self.lblEffectiveDate.setObjectName("lblEffectiveDate")
        self.gbFile.Add = self.lblEffectiveDate

        self.gbContent = GroupBox(Form)
        self.gbContent.Title = "Procedures"
        self.vlForm.addWidget(self.gbContent)

        self.tabControl = QtGui.QTabWidget(Form)
        self.tabControl.setObjectName(("tabControl"))

        self.tabSIDs = QtGui.QWidget(Form)
        self.tabSIDs.setObjectName(("tabSIDs"))
        self.vl_tabSIDs = QtGui.QVBoxLayout(self.tabSIDs)
        self.vl_tabSIDs.setObjectName("vl_tabSIDs")
        self.tabControl.addTab(self.tabSIDs, ("SIDs"))

        self.tabSTARs = QtGui.QWidget(Form)
        self.tabSTARs.setObjectName(("tabSTARs"))
        self.vl_tabSTARs = QtGui.QVBoxLayout(self.tabSTARs)
        self.vl_tabSTARs.setObjectName("vl_tabSTARs")
        self.tabControl.addTab(self.tabSTARs, ("STARs"))

        self.tabIAPs = QtGui.QWidget(Form)
        self.tabIAPs.setObjectName(("tabIAPs"))
        self.vl_tabIAPs = QtGui.QVBoxLayout(self.tabIAPs)
        self.vl_tabIAPs.setObjectName("vl_tabIAPs")
        self.tabControl.addTab(self.tabIAPs, ("IAPs"))

        self.tabHoldings = QtGui.QWidget(Form)
        self.tabHoldings.setObjectName(("tabHoldings"))
        self.vl_tabHoldings = QtGui.QVBoxLayout(self.tabHoldings)
        self.vl_tabHoldings.setObjectName("vl_tabHoldings")
        self.tabControl.addTab(self.tabHoldings, ("Holdings"))
        self.gbContent.Add = self.tabControl

        self.splitContainer = Frame(self.tabSIDs)
        self.vl_tabSIDs.addWidget(self.splitContainer)
        p1 = Frame(self.splitContainer, "HL")
        self.splitContainer.Add = p1
        p2 = Frame(self.splitContainer, "HL")
        self.splitContainer.Add = p2

        self.pnlProcButtons = Frame(p1)
        

        self.btnProcAdd = QtGui.QPushButton(self.pnlProcButtons)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("Resource/add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnProcAdd.setIcon(icon)
        self.btnProcAdd.setToolTip("Add")
        self.pnlProcButtons.Add = self.btnProcAdd

        self.btnProcEdit = QtGui.QPushButton(self.pnlProcButtons)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("Resource/mIconEditableEdits.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnProcEdit.setIcon(icon)
        self.btnProcEdit.setToolTip("Modify")
        self.pnlProcButtons.Add = self.btnProcEdit

        self.btnProcRemove = QtGui.QPushButton(self.pnlProcButtons)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("Resource/remove.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnProcRemove.setIcon(icon)
        self.btnProcRemove.setToolTip("Remove")
        self.pnlProcButtons.Add = self.btnProcRemove

        self.gridProcedures = QtGui.QTableView(self.splitContainer)
        self.gridProcedures.setSelectionBehavior(1)
        self.gridProceduresSortModel = QtGui.QSortFilterProxyModel()
        self.gridProceduresStdModel = StandardItemModel()
        self.gridProceduresSortModel.setSourceModel(self.gridProceduresStdModel)
        self.gridProcedures.setModel(self.gridProceduresSortModel)
        p1.Add = self.gridProcedures
        p1.Add = self.pnlProcButtons

        self.gbProcLegs = GroupBox(p2)
        self.gbProcLegs.Title = "Procedure Legs"
        p2.Add = self.gbProcLegs

        self.tabControlProcLegs = QtGui.QTabWidget(self.gbProcLegs)
        self.tabControlProcLegs.setObjectName(("tabControlProcLegs"))
        self.tabProcLegs = QtGui.QWidget(Form)
        self.tabProcLegs.setObjectName(("tabProcLegs"))
        self.hlTabProcLegs = QtGui.QHBoxLayout(self.tabProcLegs)
        self.hlTabProcLegs.setObjectName("hlTabProcLegs")
        
        self.gridLegs = QtGui.QTableView(self.tabProcLegs)
        self.gridLegs.setSelectionBehavior(1)
        self.gridLegsStdModel = StandardItemModel()
        self.gridLegs.setModel(self.gridLegsStdModel)
        self.hlTabProcLegs.addWidget(self.gridLegs)
        
        self.pnlProcLegsButtons = Frame(self.tabProcLegs)

        self.btnLegsEdit = QtGui.QPushButton(self.pnlProcLegsButtons)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("Resource/mIconEditableEdits.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnLegsEdit.setIcon(icon)
        self.btnLegsEdit.setToolTip("Modify")
        self.pnlProcLegsButtons.Add = self.btnLegsEdit

        self.btnLegsPreview = QtGui.QPushButton(self.pnlProcLegsButtons)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("Resource/pre.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnLegsPreview.setIcon(icon)
        self.btnLegsPreview.setToolTip("Preview")
        self.pnlProcLegsButtons.Add = self.btnLegsPreview
        self.hlTabProcLegs.addWidget(self.pnlProcLegsButtons)

        

        self.tabControlProcLegs.addTab(self.tabProcLegs, ("AIXM 4.5"))


        self.tabProcLegsEx = QtGui.QWidget(Form)
        self.tabProcLegsEx.setObjectName(("tabProcLegsEx"))
        self.hlTabProcLegsEx = QtGui.QHBoxLayout(self.tabProcLegsEx)
        self.hlTabProcLegsEx.setObjectName("hlTabProcLegsEx")

        self.gridLegsEx = QtGui.QTableView(self.tabProcLegsEx)
        self.gridLegsEx.setSelectionBehavior(1)
        self.gridLegsExStdModel = StandardItemModel()
        self.gridLegsEx.setModel(self.gridLegsExStdModel)
        self.hlTabProcLegsEx.addWidget(self.gridLegsEx)


        self.pnlProcLegsExButtons = Frame(self.tabProcLegsEx)

        self.btnLegsExEdit = QtGui.QPushButton(self.pnlProcLegsExButtons)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("Resource/mIconEditableEdits.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnLegsExEdit.setIcon(icon)
        self.btnLegsExEdit.setToolTip("Modify")
        self.pnlProcLegsExButtons.Add = self.btnLegsExEdit

        self.btnLegsExPreview = QtGui.QPushButton(self.pnlProcLegsExButtons)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("Resource/pre.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnLegsExPreview.setIcon(icon)
        self.btnLegsExPreview.setToolTip("Preview")
        self.pnlProcLegsExButtons.Add = self.btnLegsExPreview
        self.hlTabProcLegsEx.addWidget(self.pnlProcLegsExButtons)


        self.tabControlProcLegs.addTab(self.tabProcLegsEx, ("AIXM 4.5+"))
        self.gbProcLegs.Add = self.tabControlProcLegs