def __init__(self, parent=None): QDialog.__init__(self, parent) self.resize(290, 136) self.setWindowTitle("Instrument Approach Procedure (IAP)") sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth()) self.setSizePolicy(sizePolicy) verticalLayoutDlg = QVBoxLayout(self) verticalLayoutDlg.setObjectName(("verticalLayoutDlg")) self.groupBox = GroupBox(self) verticalLayoutDlg.addWidget(self.groupBox) self.pnlBasedOn = ComboBoxPanel(self.groupBox) self.pnlBasedOn.Caption = "Based On" self.pnlBasedOn.Button = "coordinate_capture.png" self.groupBox.Add = self.pnlBasedOn self.pnlType = ComboBoxPanel(self.groupBox) self.pnlType.Caption = "Type" self.groupBox.Add = self.pnlType self.txtDescription = TextBoxPanel(self.groupBox, True) self.txtDescription.Caption = "Description" self.groupBox.Add = self.txtDescription self.txtRemarks = TextBoxPanel(self.groupBox, True) self.txtRemarks.Caption = "Remarks" self.groupBox.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.connect(self.pnlBasedOn, SIGNAL("Event_3"), self.pnlBasedOn_Event_3) verticalLayoutDlg.addWidget(self.btnBoxOkCancel) self.data = None self.table = None self.selected = None self.CaptureCoordTool = CaptureCoordinateToolUpdate(define._canvas) self.connect(self.CaptureCoordTool, SIGNAL("resultPointValueList"), self.resultPointValueListMethod)
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 __init__(self, parent=None): QDialog.__init__(self, parent) self.resize(100, 70) self.setWindowTitle("Template Properties") 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.groupBox1 = GroupBox(self) self.groupBox1.Caption = "" verticalLayoutDlg.addWidget(self.groupBox1) self.pnlSpace = ComboBoxPanel(self.groupBox1) self.pnlSpace.Caption = "Target Space" self.pnlSpace.LabelWidth = 120 self.groupBox1.Add = self.pnlSpace self.pnlDwg = TextBoxPanel(self.groupBox1) self.pnlDwg.Caption = "Drawing File" self.pnlDwg.LabelWidth = 120 self.groupBox1.Add = self.pnlDwg self.pnlTitle = TextBoxPanel(self.groupBox1) self.pnlTitle.Caption = "Titlee" self.pnlTitle.LabelWidth = 120 self.groupBox1.Add = self.pnlTitle 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) self.pnlSpace.Add(DrawingSpace.ModelSpace) self.pnlSpace.Add(DrawingSpace.PaperSpace) self.pnlSpace.SelectedIndex = 1
def __init__(self, parent, title, valueList=None): QDialog.__init__(self, parent) self.resize(100, 70) self.setWindowTitle(title) sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth()) self.setSizePolicy(sizePolicy) verticalLayoutDlg = QVBoxLayout(self) verticalLayoutDlg.setObjectName(("verticalLayoutDlg")) self.frameBasic = Frame(self) verticalLayoutDlg.addWidget(self.frameBasic) self.pnlName = TextBoxPanel(self.frameBasic) self.pnlName.Caption = "Name" self.pnlName.LabelWidth = 120 self.frameBasic.Add = self.pnlName self.pnlType = ComboBoxPanel(self.frameBasic) self.pnlType.Caption = "Type" self.pnlType.LabelWidth = 120 self.frameBasic.Add = self.pnlType self.btnBoxOkCancel = QDialogButtonBox(self) self.btnBoxOkCancel.setObjectName(("btnBoxOkCancel")) self.btnBoxOkCancel.setStandardButtons(QDialogButtonBox.Cancel | QDialogButtonBox.Ok) self.connect(self.btnBoxOkCancel, SIGNAL("accepted()"), self.acceptDlg) self.connect(self.btnBoxOkCancel, SIGNAL("rejected()"), self.reject) verticalLayoutDlg.addWidget(self.btnBoxOkCancel) self.name = "" self.type = "" self.pnlType.Items = ["ST", "TW", "CS", "RW", "RB", "OTHER"] if valueList != None: self.pnlName.Value = valueList[0] self.pnlType.Value = valueList[1]
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
def __init__(self, parent=None): QDialog.__init__(self, parent) self.resize(290, 136) self.setWindowTitle("Instrument Approach Procedure (IAP)") sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth()) self.setSizePolicy(sizePolicy) verticalLayoutDlg = QVBoxLayout(self) verticalLayoutDlg.setObjectName(("verticalLayoutDlg")) self.groupBox = GroupBox(self) verticalLayoutDlg.addWidget(self.groupBox) self.pnlAerodrome = ComboBoxPanel(self.groupBox) self.pnlAerodrome.Caption = "Aerodrome" self.groupBox.Add = self.pnlAerodrome self.pnlDesignator = TextBoxPanel(self.groupBox) self.pnlDesignator.Caption = "Designator" self.groupBox.Add = self.pnlDesignator self.pnlAcCategory = ComboBoxPanel(self.groupBox) self.pnlAcCategory.Caption = "Ac. Category" self.groupBox.Add = self.pnlAcCategory self.pnlTransID = TextBoxPanel(self.groupBox) self.pnlTransID.Caption = "ransitional Identifier" self.groupBox.Add = self.pnlTransID self.pnlType = ComboBoxPanel(self.groupBox) self.pnlType.Caption = "Type" self.groupBox.Add = self.pnlType self.pnlRunway = ComboBoxPanel(self.groupBox) self.pnlRunway.Caption = "Runway Direction" self.groupBox.Add = self.pnlRunway self.pnlMSA = ComboBoxPanel(self.groupBox) self.pnlMSA.Caption = "MSA Group" self.groupBox.Add = self.pnlMSA self.pnlRNP = NumberBoxPanel(self.groupBox) self.pnlRNP.Caption = "RNP" self.groupBox.Add = self.pnlRNP self.tableLayoutPanel = Frame(self.groupBox) self.groupBox.Add = self.tableLayoutPanel self.txtDescription = TextBoxPanel(self.tableLayoutPanel, True) self.txtDescription.Caption = "Description" self.tableLayoutPanel.Add = self.txtDescription self.txtDescrComFail = TextBoxPanel(self.tableLayoutPanel, True) self.txtDescrComFail.Caption = "Communication Failure" self.tableLayoutPanel.Add = self.txtDescrComFail self.txtRemarks = TextBoxPanel(self.tableLayoutPanel, True) self.txtRemarks.Caption = "Remarks" self.tableLayoutPanel.Add = self.txtRemarks self.gbOcaOch = GroupBox(self.groupBox, "HL") self.gbOcaOch.Caption = "Minimum OCA/OCH" self.groupBox.Add = self.gbOcaOch self.gridOcah = QTableView(self.gbOcaOch) self.gridOcahModel = StandardItemModel(None, [ "Ac. Category", "Approach Type", "OCA", "OCH", "OCH Ref.", "Remarks" ]) self.gridOcah.setModel(self.gridOcahModel) self.gbOcaOch.Add = self.gridOcah self.pnlProcButtons = Frame(self.gbOcaOch) self.gbOcaOch.Add = self.pnlProcButtons self.btnAdd = QPushButton(self.pnlProcButtons) icon = QIcon() icon.addPixmap(QPixmap("Resource/add.png"), QIcon.Normal, QIcon.Off) self.btnAdd.setIcon(icon) self.pnlProcButtons.Add = self.btnAdd self.btnEdit = QPushButton(self.pnlProcButtons) icon = QIcon() icon.addPixmap(QPixmap("Resource/mIconEditableEdits.png"), QIcon.Normal, QIcon.Off) self.btnEdit.setIcon(icon) self.pnlProcButtons.Add = self.btnEdit self.btnRemove = QPushButton(self.pnlProcButtons) icon = QIcon() icon.addPixmap(QPixmap("Resource/remove.png"), QIcon.Normal, QIcon.Off) self.btnRemove.setIcon(icon) self.pnlProcButtons.Add = self.btnRemove self.btnBoxOkCancel = QDialogButtonBox(self) self.btnBoxOkCancel.setObjectName(("btnBoxOkCancel")) self.btnBoxOkCancel.setStandardButtons(QDialogButtonBox.Cancel | QDialogButtonBox.Ok) self.connect(self.btnBoxOkCancel, SIGNAL("accepted()"), self.acceptDlg) self.connect(self.btnBoxOkCancel, SIGNAL("rejected()"), self.reject) verticalLayoutDlg.addWidget(self.btnBoxOkCancel) self.btnAdd.clicked.connect(self.btnAdd_Click) self.btnEdit.clicked.connect(self.btnEdit_Click) self.btnRemove.clicked.connect(self.btnRemove_Click) self.gridOcah.pressed.connect(self.gridOcah_pressed) self.data = None self.table = None self.selected = None self.minimums = None
def __init__(self, parent=None): QDialog.__init__(self, parent) self.resize(290, 136) self.setWindowTitle("Instrument Approach Procedure (IAP)") sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth()) self.setSizePolicy(sizePolicy) verticalLayoutDlg = QVBoxLayout(self) verticalLayoutDlg.setObjectName(("verticalLayoutDlg")) self.groupBox = GroupBox(self) verticalLayoutDlg.addWidget(self.groupBox) self.pnlCodeCatAcft = ComboBoxPanel(self.groupBox) self.pnlCodeCatAcft.Caption = "Ac. Category" self.pnlCodeCatAcft.LabelWidth = 100 self.groupBox.Add = self.pnlCodeCatAcft self.pnlCodeTypeApch = ComboBoxPanel(self.groupBox) self.pnlCodeTypeApch.Caption = "Approach Type" self.pnlCodeTypeApch.LabelWidth = 100 self.groupBox.Add = self.pnlCodeTypeApch self.pnlValOca = AltitudeBoxPanel(self.groupBox) self.pnlValOca.CaptionUnits = "ft" self.pnlValOca.Caption = "OCA" self.pnlValOca.LabelWidth = 100 self.groupBox.Add = self.pnlValOca self.pnlOchBase = Frame(self.groupBox, "HL") self.groupBox.Add = self.pnlOchBase self.pnlValOch = AltitudeBoxPanel(self.pnlOchBase) self.pnlValOch.CaptionUnits = "ft" self.pnlValOch.Caption = "OCH" self.pnlValOch.LabelWidth = 100 self.pnlOchBase.Add = self.pnlValOch self.pnlCodeRefOch = ComboBoxPanel(self.pnlOchBase) self.pnlCodeRefOch.Caption = "" self.pnlCodeRefOch.LabelWidth = 0 self.pnlOchBase.Add = self.pnlCodeRefOch self.txtRemarks = TextBoxPanel(self.groupBox, True) self.txtRemarks.Caption = "Remarks" self.txtRemarks.LabelWidth = 100 self.groupBox.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) verticalLayoutDlg.addWidget(self.btnBoxOkCancel) self.pnlCodeCatAcft.Items = CodeCatAcftAixm.Items self.pnlCodeTypeApch.Items = CodeTypeApchAixm.Items self.pnlCodeRefOch.Items = CodeRefOchAixm.Items
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(435, 580) self.verticalLayout = QVBoxLayout(Form) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gbParameters = GroupBox(Form) self.gbParameters.Caption = "General" self.verticalLayout.addWidget(self.gbParameters) self.cmbAerodrome = ComboBoxPanel(self.gbParameters, True) self.cmbAerodrome.Caption = "Aerodrome" self.cmbAerodrome.LabelWidth = 150 self.cmbAerodrome.Width = 150 self.gbParameters.Add = self.cmbAerodrome self.cmbRwyDir = ComboBoxPanel(self.gbParameters, True) self.cmbRwyDir.Caption = "Runway Direction" self.cmbRwyDir.LabelWidth = 150 self.cmbRwyDir.Width = 150 self.gbParameters.Add = self.cmbRwyDir self.annotationFAWP = QgsTextAnnotationItem(define._canvas) self.annotationFAWP.setDocument(QTextDocument("FAF")) self.annotationFAWP.hide() self.pnlFafPosition = PositionPanel(self.gbParameters, self.annotationFAWP) self.pnlFafPosition.Caption = "FAF Position" self.pnlFafPosition.btnCalculater.hide() self.pnlFafPosition.hideframe_Altitude() self.gbParameters.Add = self.pnlFafPosition self.pnlThrPosition = PositionPanel(self.gbParameters) self.pnlThrPosition.Caption = "Threshold Position" self.pnlThrPosition.btnCalculater.hide() self.gbParameters.Add = self.pnlThrPosition # self.annotationMapt = QgsTextAnnotationItem(define._canvas) # self.annotationMapt.setDocument(QTextDocument("MAPt")) # self.annotationMapt.hide() self.pnlMaPtPosition = PositionPanel(self.gbParameters) self.pnlMaPtPosition.Caption = "MAPt Position" self.pnlMaPtPosition.btnCalculater.hide() self.pnlMaPtPosition.hideframe_Altitude() self.gbParameters.Add = self.pnlMaPtPosition self.pnlRwyEndPosition = PositionPanel(self.gbParameters) self.pnlRwyEndPosition.Caption = "Rwy End Position" self.pnlRwyEndPosition.btnCalculater.hide() self.pnlRwyEndPosition.hideframe_Altitude() self.gbParameters.Add = self.pnlRwyEndPosition self.pnlRwyEndPosition.Visible = False self.pnlInboundTrack = TrackRadialBoxPanel(self.gbParameters) self.pnlInboundTrack.Caption = "In-bound Track" self.pnlInboundTrack.LabelWidth = 150 self.pnlInboundTrack.Enabled = False self.gbParameters.Add = self.pnlInboundTrack self.pnlEstimatedAltitude = AltitudeBoxPanel(self.gbParameters) self.pnlEstimatedAltitude.Caption = "Estimated Altitude" self.pnlEstimatedAltitude.LabelWidth = 150 self.pnlEstimatedAltitude.Value = Altitude(1000) self.gbParameters.Add = self.pnlEstimatedAltitude self.pnlAerodromeAltitude = AltitudeBoxPanel(self.gbParameters) self.pnlAerodromeAltitude.Caption = "Aerodrome Altitude" self.pnlAerodromeAltitude.LabelWidth = 150 self.pnlAerodromeAltitude.Value = Altitude(1000) self.gbParameters.Add = self.pnlAerodromeAltitude self.pnlIsa = NumberBoxPanel(self.gbParameters, "0.0") self.pnlIsa.CaptionUnits = define._degreeStr + "C" self.pnlIsa.Caption = "ISA" self.pnlIsa.LabelWidth = 150 self.pnlIsa.Value = 15 self.gbParameters.Add = self.pnlIsa self.cmbAircraftCategory = ComboBoxPanel(self.gbParameters) self.cmbAircraftCategory.Caption = "Aircraft Category" self.cmbAircraftCategory.LabelWidth = 150 self.gbParameters.Add = self.cmbAircraftCategory # self.pnlHeightLoss = AltitudeBoxPanel(self.gbParameters) # self.pnlHeightLoss.Caption = "Height Loss" # self.pnlHeightLoss.LabelWidth = 150 # self.gbParameters.Add = self.pnlHeightLoss self.pnlIas = SpeedBoxPanel(self.gbParameters) self.pnlIas.Caption = "IAS" self.pnlIas.LabelWidth = 150 self.pnlIas.Value = Speed(100) self.pnlIas.Enabled = False self.gbParameters.Add = self.pnlIas self.pnlTas = SpeedBoxPanel(self.gbParameters) self.pnlTas.Caption = "TAS" self.pnlTas.Enabled = False self.pnlTas.LabelWidth = 150 self.gbParameters.Add = self.pnlTas self.pnlWind = WindPanel(self.gbParameters) self.pnlWind.LabelWidth = 145 self.gbParameters.Add = self.pnlWind self.pnlSocAltitude = AltitudeBoxPanel(self.gbParameters) self.pnlSocAltitude.Caption = "SOC Altitude" self.pnlSocAltitude.LabelWidth = 150 self.gbParameters.Add = self.pnlSocAltitude self.pnlDistFixTolerance = DistanceBoxPanel(self.gbParameters, DistanceUnits.M, DistanceUnits.NM) self.pnlDistFixTolerance.Caption = "FIX Tolerance" self.pnlDistFixTolerance.LabelWidth = 150 self.pnlDistFixTolerance.Button = "coordinate_capture.png" self.pnlDistFixTolerance.Value = Distance(900) # self.pnlDistFixTolerance.Enabled = False self.gbParameters.Add = self.pnlDistFixTolerance self.pnlDistD = DistanceBoxPanel(self.gbParameters, DistanceUnits.M, DistanceUnits.NM) self.pnlDistD.Caption = "d(10kts/3s)" self.pnlDistD.LabelWidth = 150 self.pnlDistD.Button = None self.pnlDistD.Value = Distance(900) self.pnlDistD.Enabled = False self.gbParameters.Add = self.pnlDistD self.pnlDistX = DistanceBoxPanel(self.gbParameters, DistanceUnits.M, DistanceUnits.NM) self.pnlDistX.Caption = "X(10kts/15s)" self.pnlDistX.LabelWidth = 150 self.pnlDistX.Button = None self.pnlDistX.Value = Distance(900) self.pnlDistX.Enabled = False self.gbParameters.Add = self.pnlDistX self.pnlDistOfFafMapt = DistanceBoxPanel(self.gbParameters, DistanceUnits.M, DistanceUnits.NM) self.pnlDistOfFafMapt.Caption = "FAP-MAPt Distance" self.pnlDistOfFafMapt.LabelWidth = 150 self.pnlDistOfFafMapt.Button = None self.pnlDistOfFafMapt.Enabled = False self.gbParameters.Add = self.pnlDistOfFafMapt self.pnlDistOfMaptThr = DistanceBoxPanel(self.gbParameters, DistanceUnits.M, DistanceUnits.NM) self.pnlDistOfMaptThr.Caption = "MAPt-THR Distance" self.pnlDistOfMaptThr.LabelWidth = 150 self.pnlDistOfMaptThr.Button = None self.pnlDistOfMaptThr.Enabled = False self.gbParameters.Add = self.pnlDistOfMaptThr self.pnlDistOfMaptSoc = DistanceBoxPanel(self.gbParameters, DistanceUnits.M, DistanceUnits.NM) self.pnlDistOfMaptSoc.Caption = "MAPt-SOC Distance" self.pnlDistOfMaptSoc.LabelWidth = 150 self.pnlDistOfMaptSoc.Button = None self.pnlDistOfMaptSoc.Enabled = False self.gbParameters.Add = self.pnlDistOfMaptSoc self.pnlDistOfSocThr = DistanceBoxPanel(self.gbParameters, DistanceUnits.M, DistanceUnits.NM) self.pnlDistOfSocThr.Caption = "THR-SOC Distance" self.pnlDistOfSocThr.LabelWidth = 150 self.pnlDistOfSocThr.Button = None self.pnlDistOfSocThr.Enabled = False self.gbParameters.Add = self.pnlDistOfSocThr
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(467, 476) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) Form.setFont(font) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.verticalLayout = QtGui.QVBoxLayout(Form) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gbNavAid = QtGui.QGroupBox(Form) self.gbNavAid.setObjectName(_fromUtf8("gbNavAid")) self.verticalLayoutNavAid = QtGui.QVBoxLayout(self.gbNavAid) self.verticalLayoutNavAid.setObjectName( _fromUtf8("verticalLayoutNavAid")) self.cmbNavAidType = ComboBoxPanel(self.gbNavAid) self.cmbNavAidType.Caption = "Type" self.cmbNavAidType.LabelWidth = 120 self.verticalLayoutNavAid.addWidget(self.cmbNavAidType) self.cmbBasedOn = ComboBoxPanel(self.gbNavAid, True) self.cmbBasedOn.Caption = "Based On" self.cmbBasedOn.LabelWidth = 120 self.cmbBasedOn.Width = 120 self.verticalLayoutNavAid.addWidget(self.cmbBasedOn) # self.frameNavAidType = QtGui.QFrame(self.gbNavAid) # self.frameNavAidType.setFrameShape(QtGui.QFrame.NoFrame) # self.frameNavAidType.setFrameShadow(QtGui.QFrame.Raised) # self.frameNavAidType.setObjectName(_fromUtf8("frameNavAidType")) # self.horizontalLayout_62 = QtGui.QHBoxLayout(self.frameNavAidType) # self.horizontalLayout_62.setSpacing(0) # self.horizontalLayout_62.setMargin(0) # self.horizontalLayout_62.setObjectName(_fromUtf8("horizontalLayout_62")) # self.label_70 = QtGui.QLabel(self.frameNavAidType) # self.label_70.setMinimumSize(QtCore.QSize(250, 0)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_70.setFont(font) # self.label_70.setObjectName(_fromUtf8("label_70")) # self.horizontalLayout_62.addWidget(self.label_70) # self.cmbNavAidType = QtGui.QComboBox(self.frameNavAidType) # sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) # sizePolicy.setHorizontalStretch(0) # sizePolicy.setVerticalStretch(0) # sizePolicy.setHeightForWidth(self.cmbNavAidType.sizePolicy().hasHeightForWidth()) # self.cmbNavAidType.setSizePolicy(sizePolicy) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.cmbNavAidType.setFont(font) # self.cmbNavAidType.setObjectName(_fromUtf8("cmbNavAidType")) # self.horizontalLayout_62.addWidget(self.cmbNavAidType) # self.verticalLayoutNavAid.addWidget(self.frameNavAidType) self.verticalLayout.addWidget(self.gbNavAid) self.gbParameters = QtGui.QGroupBox(Form) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.gbParameters.setFont(font) self.gbParameters.setObjectName(_fromUtf8("gbParameters")) self.vl_gbParameters = QtGui.QVBoxLayout(self.gbParameters) self.vl_gbParameters.setObjectName(_fromUtf8("vl_gbParameters")) self.frameInTrack = QtGui.QFrame(self.gbParameters) self.frameInTrack.setFrameShape(QtGui.QFrame.NoFrame) self.frameInTrack.setFrameShadow(QtGui.QFrame.Raised) self.frameInTrack.setObjectName(_fromUtf8("frameInTrack")) self.horizontalLayout_64 = QtGui.QHBoxLayout(self.frameInTrack) self.horizontalLayout_64.setSpacing(0) self.horizontalLayout_64.setMargin(0) self.horizontalLayout_64.setObjectName( _fromUtf8("horizontalLayout_64")) self.label_72 = QtGui.QLabel(self.frameInTrack) self.label_72.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_72.setFont(font) self.label_72.setObjectName(_fromUtf8("label_72")) self.horizontalLayout_64.addWidget(self.label_72) self.frameTrack_2 = QtGui.QFrame(self.frameInTrack) self.frameTrack_2.setFrameShape(QtGui.QFrame.StyledPanel) self.frameTrack_2.setFrameShadow(QtGui.QFrame.Raised) self.frameTrack_2.setObjectName(_fromUtf8("frameTrack_2")) self.horizontalLayout_11 = QtGui.QHBoxLayout(self.frameTrack_2) self.horizontalLayout_11.setSpacing(0) self.horizontalLayout_11.setMargin(0) self.horizontalLayout_11.setObjectName( _fromUtf8("horizontalLayout_11")) self.txtInBound = QtGui.QLineEdit(self.frameTrack_2) self.txtInBound.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtInBound.setFont(font) self.txtInBound.setObjectName(_fromUtf8("txtInBound")) self.txtInBound.setMinimumSize(QtCore.QSize(90, 0)) self.txtInBound.setMaximumSize(QtCore.QSize(90, 16777215)) self.horizontalLayout_11.addWidget(self.txtInBound) self.btnCaptureInBound = QtGui.QToolButton(self.frameTrack_2) self.btnCaptureInBound.setText(_fromUtf8("")) self.btnCaptureInBound.setIcon(icon) self.btnCaptureInBound.setObjectName(_fromUtf8("btnCaptureInBound")) self.horizontalLayout_11.addWidget(self.btnCaptureInBound) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_11.addItem(horizontalSpacer) self.horizontalLayout_64.addWidget(self.frameTrack_2) self.vl_gbParameters.addWidget(self.frameInTrack) self.frameOutTrack = QtGui.QFrame(self.gbParameters) self.frameOutTrack.setFrameShape(QtGui.QFrame.NoFrame) self.frameOutTrack.setFrameShadow(QtGui.QFrame.Raised) self.frameOutTrack.setObjectName(_fromUtf8("frameOutTrack")) self.horizontalLayout_65 = QtGui.QHBoxLayout(self.frameOutTrack) self.horizontalLayout_65.setSpacing(0) self.horizontalLayout_65.setMargin(0) self.horizontalLayout_65.setObjectName( _fromUtf8("horizontalLayout_65")) self.label_73 = QtGui.QLabel(self.frameOutTrack) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_73.sizePolicy().hasHeightForWidth()) self.label_73.setSizePolicy(sizePolicy) self.label_73.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_73.setFont(font) self.label_73.setObjectName(_fromUtf8("label_73")) self.horizontalLayout_65.addWidget(self.label_73) self.frameTrack_3 = QtGui.QFrame(self.frameOutTrack) self.frameTrack_3.setFrameShape(QtGui.QFrame.StyledPanel) self.frameTrack_3.setFrameShadow(QtGui.QFrame.Raised) self.frameTrack_3.setObjectName(_fromUtf8("frameTrack_3")) self.horizontalLayout_12 = QtGui.QHBoxLayout(self.frameTrack_3) self.horizontalLayout_12.setSpacing(0) self.horizontalLayout_12.setMargin(0) self.horizontalLayout_12.setObjectName( _fromUtf8("horizontalLayout_12")) self.txtOutBound = QtGui.QLineEdit(self.frameTrack_3) self.txtOutBound.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtOutBound.setFont(font) self.txtOutBound.setObjectName(_fromUtf8("txtOutBound")) self.txtOutBound.setMinimumSize(QtCore.QSize(90, 0)) self.txtOutBound.setMaximumSize(QtCore.QSize(90, 16777215)) self.horizontalLayout_12.addWidget(self.txtOutBound) self.btnCaptureOutBound = QtGui.QToolButton(self.frameTrack_3) self.btnCaptureOutBound.setText(_fromUtf8("")) self.btnCaptureOutBound.setIcon(icon) self.btnCaptureOutBound.setObjectName(_fromUtf8("btnCaptureOutBound")) self.horizontalLayout_12.addWidget(self.btnCaptureOutBound) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_12.addItem(horizontalSpacer) self.horizontalLayout_65.addWidget(self.frameTrack_3) self.vl_gbParameters.addWidget(self.frameOutTrack) self.frameAircraftCategory = QtGui.QFrame(self.gbParameters) self.frameAircraftCategory.setFrameShape(QtGui.QFrame.NoFrame) self.frameAircraftCategory.setFrameShadow(QtGui.QFrame.Raised) self.frameAircraftCategory.setObjectName( _fromUtf8("frameAircraftCategory")) self.horizontalLayout_61 = QtGui.QHBoxLayout( self.frameAircraftCategory) self.horizontalLayout_61.setSpacing(0) self.horizontalLayout_61.setMargin(0) self.horizontalLayout_61.setObjectName( _fromUtf8("horizontalLayout_61")) self.label_69 = QtGui.QLabel(self.frameAircraftCategory) self.label_69.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_69.setFont(font) self.label_69.setObjectName(_fromUtf8("label_69")) self.horizontalLayout_61.addWidget(self.label_69) self.cmbAircraftCategory = QtGui.QComboBox(self.frameAircraftCategory) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbAircraftCategory.sizePolicy().hasHeightForWidth()) self.cmbAircraftCategory.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbAircraftCategory.setFont(font) self.cmbAircraftCategory.setObjectName( _fromUtf8("cmbAircraftCategory")) self.cmbAircraftCategory.setMinimumSize(QtCore.QSize(60, 0)) self.cmbAircraftCategory.setMaximumSize(QtCore.QSize(60, 16777215)) self.horizontalLayout_61.addWidget(self.cmbAircraftCategory) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_61.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameAircraftCategory) self.frameIas = QtGui.QFrame(self.gbParameters) self.frameIas.setFrameShape(QtGui.QFrame.NoFrame) self.frameIas.setFrameShadow(QtGui.QFrame.Raised) self.frameIas.setObjectName(_fromUtf8("frameIas")) self.horizontalLayout_60 = QtGui.QHBoxLayout(self.frameIas) self.horizontalLayout_60.setSpacing(0) self.horizontalLayout_60.setMargin(0) self.horizontalLayout_60.setObjectName( _fromUtf8("horizontalLayout_60")) self.label_68 = QtGui.QLabel(self.frameIas) self.label_68.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_68.setFont(font) self.label_68.setObjectName(_fromUtf8("label_68")) self.horizontalLayout_60.addWidget(self.label_68) self.txtIas = QtGui.QLineEdit(self.frameIas) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtIas.setFont(font) self.txtIas.setObjectName(_fromUtf8("txtIas")) self.txtIas.setMinimumSize(QtCore.QSize(60, 0)) self.txtIas.setMaximumSize(QtCore.QSize(60, 16777215)) self.horizontalLayout_60.addWidget(self.txtIas) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_60.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameIas) self.frameTas = QtGui.QFrame(self.gbParameters) self.frameTas.setFrameShape(QtGui.QFrame.NoFrame) self.frameTas.setFrameShadow(QtGui.QFrame.Raised) self.frameTas.setObjectName(_fromUtf8("frameTas")) self.horizontalLayoutTas = QtGui.QHBoxLayout(self.frameTas) self.horizontalLayoutTas.setSpacing(0) self.horizontalLayoutTas.setMargin(0) self.horizontalLayoutTas.setObjectName( _fromUtf8("horizontalLayoutTas")) self.label_76 = QtGui.QLabel(self.frameTas) self.label_76.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_76.setFont(font) self.label_76.setObjectName(_fromUtf8("label_76")) self.horizontalLayoutTas.addWidget(self.label_76) self.txtTas = QtGui.QLineEdit(self.frameTas) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtTas.setFont(font) self.txtTas.setObjectName(_fromUtf8("txtTas")) self.txtTas.setMinimumSize(QtCore.QSize(90, 0)) self.txtTas.setMaximumSize(QtCore.QSize(90, 16777215)) self.horizontalLayoutTas.addWidget(self.txtTas) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayoutTas.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameTas) self.frameIsa = QtGui.QFrame(self.gbParameters) self.frameIsa.setFrameShape(QtGui.QFrame.NoFrame) self.frameIsa.setFrameShadow(QtGui.QFrame.Raised) self.frameIsa.setObjectName(_fromUtf8("frameIsa")) self.horizontalLayout_72 = QtGui.QHBoxLayout(self.frameIsa) self.horizontalLayout_72.setSpacing(0) self.horizontalLayout_72.setMargin(0) self.horizontalLayout_72.setObjectName( _fromUtf8("horizontalLayout_72")) self.label_80 = QtGui.QLabel(self.frameIsa) self.label_80.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_80.setFont(font) self.label_80.setObjectName(_fromUtf8("label_80")) self.horizontalLayout_72.addWidget(self.label_80) self.txtIsa = QtGui.QLineEdit(self.frameIsa) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtIsa.setFont(font) self.txtIsa.setObjectName(_fromUtf8("txtIsa")) self.txtIsa.setMinimumSize(QtCore.QSize(60, 0)) self.txtIsa.setMaximumSize(QtCore.QSize(60, 16777215)) self.horizontalLayout_72.addWidget(self.txtIsa) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_72.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameIsa) self.frameBankAngle = QtGui.QFrame(self.gbParameters) self.frameBankAngle.setFrameShape(QtGui.QFrame.NoFrame) self.frameBankAngle.setFrameShadow(QtGui.QFrame.Raised) self.frameBankAngle.setObjectName(_fromUtf8("frameBankAngle")) self.horizontalLayoutBankAngle = QtGui.QHBoxLayout(self.frameBankAngle) self.horizontalLayoutBankAngle.setSpacing(0) self.horizontalLayoutBankAngle.setMargin(0) self.horizontalLayoutBankAngle.setObjectName( _fromUtf8("horizontalLayoutBankAngle")) self.label_84 = QtGui.QLabel(self.frameBankAngle) self.label_84.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_84.setFont(font) self.label_84.setObjectName(_fromUtf8("label_84")) self.horizontalLayoutBankAngle.addWidget(self.label_84) self.txtBankAngle = QtGui.QLineEdit(self.frameBankAngle) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtBankAngle.setFont(font) self.txtBankAngle.setObjectName(_fromUtf8("txtBankAngle")) self.txtBankAngle.setMinimumSize(QtCore.QSize(60, 0)) self.txtBankAngle.setMaximumSize(QtCore.QSize(60, 16777215)) self.horizontalLayoutBankAngle.addWidget(self.txtBankAngle) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayoutBankAngle.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameBankAngle) self.framePilotTime = QtGui.QFrame(self.gbParameters) self.framePilotTime.setFrameShape(QtGui.QFrame.NoFrame) self.framePilotTime.setFrameShadow(QtGui.QFrame.Raised) self.framePilotTime.setObjectName(_fromUtf8("framePilotTime")) self.horizontalLayoutPilotTime = QtGui.QHBoxLayout(self.framePilotTime) self.horizontalLayoutPilotTime.setSpacing(0) self.horizontalLayoutPilotTime.setMargin(0) self.horizontalLayoutPilotTime.setObjectName( _fromUtf8("horizontalLayoutPilotTime")) self.label_81 = QtGui.QLabel(self.framePilotTime) self.label_81.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_81.setFont(font) self.label_81.setObjectName(_fromUtf8("label_81")) self.horizontalLayoutPilotTime.addWidget(self.label_81) self.txtPilotTime = QtGui.QLineEdit(self.framePilotTime) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtPilotTime.setFont(font) self.txtPilotTime.setObjectName(_fromUtf8("txtPilotTime")) self.txtPilotTime.setMinimumSize(QtCore.QSize(60, 0)) self.txtPilotTime.setMaximumSize(QtCore.QSize(60, 16777215)) self.horizontalLayoutPilotTime.addWidget(self.txtPilotTime) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayoutPilotTime.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.framePilotTime) self.frameBankEstTime = QtGui.QFrame(self.gbParameters) self.frameBankEstTime.setFrameShape(QtGui.QFrame.NoFrame) self.frameBankEstTime.setFrameShadow(QtGui.QFrame.Raised) self.frameBankEstTime.setObjectName(_fromUtf8("frameBankEstTime")) self.horizontalLayoutBankEstTime = QtGui.QHBoxLayout( self.frameBankEstTime) self.horizontalLayoutBankEstTime.setSpacing(0) self.horizontalLayoutBankEstTime.setMargin(0) self.horizontalLayoutBankEstTime.setObjectName( _fromUtf8("horizontalLayoutBankEstTime")) self.label_87 = QtGui.QLabel(self.frameBankEstTime) self.label_87.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_87.setFont(font) self.label_87.setObjectName(_fromUtf8("label_87")) self.horizontalLayoutBankEstTime.addWidget(self.label_87) self.txtBankEstTime = QtGui.QLineEdit(self.frameBankEstTime) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtBankEstTime.setFont(font) self.txtBankEstTime.setObjectName(_fromUtf8("txtBankEstTime")) self.txtBankEstTime.setMinimumSize(QtCore.QSize(60, 0)) self.txtBankEstTime.setMaximumSize(QtCore.QSize(60, 16777215)) self.horizontalLayoutBankEstTime.addWidget(self.txtBankEstTime) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayoutBankEstTime.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameBankEstTime) self.framePrimaryMoc = QtGui.QFrame(self.gbParameters) self.framePrimaryMoc.setFrameShape(QtGui.QFrame.NoFrame) self.framePrimaryMoc.setFrameShadow(QtGui.QFrame.Raised) self.framePrimaryMoc.setObjectName(_fromUtf8("framePrimaryMoc")) self.horizontalLayoutPrimaryMoc = QtGui.QHBoxLayout( self.framePrimaryMoc) self.horizontalLayoutPrimaryMoc.setSpacing(0) self.horizontalLayoutPrimaryMoc.setMargin(0) self.horizontalLayoutPrimaryMoc.setObjectName( _fromUtf8("horizontalLayoutPrimaryMoc")) self.label_82 = QtGui.QLabel(self.framePrimaryMoc) self.label_82.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_82.setFont(font) self.label_82.setObjectName(_fromUtf8("label_82")) self.horizontalLayoutPrimaryMoc.addWidget(self.label_82) self.txtPrimaryMoc = QtGui.QLineEdit(self.framePrimaryMoc) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtPrimaryMoc.setFont(font) self.txtPrimaryMoc.setObjectName(_fromUtf8("txtPrimaryMoc")) self.txtPrimaryMoc.setMinimumSize(QtCore.QSize(60, 0)) self.txtPrimaryMoc.setMaximumSize(QtCore.QSize(60, 16777215)) self.horizontalLayoutPrimaryMoc.addWidget(self.txtPrimaryMoc) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayoutPrimaryMoc.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.framePrimaryMoc) self.frameEnrouteAltitude = QtGui.QFrame(self.gbParameters) self.frameEnrouteAltitude.setFrameShape(QtGui.QFrame.NoFrame) self.frameEnrouteAltitude.setFrameShadow(QtGui.QFrame.Raised) self.frameEnrouteAltitude.setObjectName( _fromUtf8("frameEnrouteAltitude")) self.horizontalLayoutEnrouteAltitude = QtGui.QHBoxLayout( self.frameEnrouteAltitude) self.horizontalLayoutEnrouteAltitude.setSpacing(0) self.horizontalLayoutEnrouteAltitude.setMargin(0) self.horizontalLayoutEnrouteAltitude.setObjectName( _fromUtf8("horizontalLayoutEnrouteAltitude")) self.label_88 = QtGui.QLabel(self.frameEnrouteAltitude) self.label_88.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_88.setFont(font) self.label_88.setObjectName(_fromUtf8("label_88")) self.horizontalLayoutEnrouteAltitude.addWidget(self.label_88) self.txtEnrouteAltitude = QtGui.QLineEdit(self.frameEnrouteAltitude) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtEnrouteAltitude.setFont(font) self.txtEnrouteAltitude.setObjectName(_fromUtf8("txtEnrouteAltitude")) self.txtEnrouteAltitude.setMinimumSize(QtCore.QSize(60, 0)) self.txtEnrouteAltitude.setMaximumSize(QtCore.QSize(60, 16777215)) self.horizontalLayoutEnrouteAltitude.addWidget(self.txtEnrouteAltitude) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayoutEnrouteAltitude.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameEnrouteAltitude) self.frameConstruction = QtGui.QFrame(self.gbParameters) self.frameConstruction.setFrameShape(QtGui.QFrame.NoFrame) self.frameConstruction.setFrameShadow(QtGui.QFrame.Raised) self.frameConstruction.setObjectName(_fromUtf8("frameConstruction")) self.horizontalLayout_75 = QtGui.QHBoxLayout(self.frameConstruction) self.horizontalLayout_75.setSpacing(0) self.horizontalLayout_75.setMargin(0) self.horizontalLayout_75.setObjectName( _fromUtf8("horizontalLayout_75")) self.label_83 = QtGui.QLabel(self.frameConstruction) self.label_83.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_83.setFont(font) self.label_83.setObjectName(_fromUtf8("label_83")) self.horizontalLayout_75.addWidget(self.label_83) self.cmbConstruction = QtGui.QComboBox(self.frameConstruction) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbConstruction.sizePolicy().hasHeightForWidth()) self.cmbConstruction.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbConstruction.setFont(font) self.cmbConstruction.setObjectName(_fromUtf8("cmbConstruction")) self.cmbConstruction.setMinimumSize(QtCore.QSize(60, 0)) self.cmbConstruction.setMaximumSize(QtCore.QSize(60, 16777215)) self.horizontalLayout_75.addWidget(self.cmbConstruction) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_75.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameConstruction) self.frameMOCmultipiler = QtGui.QFrame(self.gbParameters) self.frameMOCmultipiler.setFrameShape(QtGui.QFrame.NoFrame) self.frameMOCmultipiler.setFrameShadow(QtGui.QFrame.Raised) self.frameMOCmultipiler.setObjectName(_fromUtf8("frameMOCmultipiler")) self.horizontalLayoutMOCmultipiler = QtGui.QHBoxLayout( self.frameMOCmultipiler) self.horizontalLayoutMOCmultipiler.setSpacing(0) self.horizontalLayoutMOCmultipiler.setMargin(0) self.horizontalLayoutMOCmultipiler.setObjectName( _fromUtf8("horizontalLayoutMOCmultipiler")) self.label_85 = QtGui.QLabel(self.frameMOCmultipiler) self.label_85.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_85.setFont(font) self.label_85.setObjectName(_fromUtf8("label_85")) self.horizontalLayoutMOCmultipiler.addWidget(self.label_85) self.mocSpinBox = QtGui.QSpinBox(self.frameMOCmultipiler) self.mocSpinBox.setMinimum(1) self.mocSpinBox.setProperty("value", 1) self.mocSpinBox.setObjectName(_fromUtf8("mocSpinBox")) self.mocSpinBox.setMinimumSize(QtCore.QSize(60, 0)) self.mocSpinBox.setMaximumSize(QtCore.QSize(60, 16777215)) self.horizontalLayoutMOCmultipiler.addWidget(self.mocSpinBox) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayoutMOCmultipiler.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameMOCmultipiler) self.chbOverhead = QtGui.QCheckBox(self.gbParameters) self.chbOverhead.setMinimumSize(QtCore.QSize(0, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbOverhead.setFont(font) self.chbOverhead.setObjectName(_fromUtf8("chbOverhead")) self.vl_gbParameters.addWidget(self.chbOverhead) self.verticalLayout.addWidget(self.gbParameters) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, Form): Form.setObjectName(("Form")) Form.resize(473, 580) font = QtGui.QFont() font.setFamily(("Arial")) font.setBold(False) font.setWeight(50) Form.setFont(font) self.aprAnnotation = QgsTextAnnotationItem(define._canvas) self.aprAnnotation.setDocument(QtGui.QTextDocument("ARP")) self.aprAnnotation.setFrameSize(QtCore.QSizeF(30, 20)) self.aprAnnotation.hide() self.thrAnnotation = QgsTextAnnotationItem(define._canvas) self.thrAnnotation.setDocument(QtGui.QTextDocument("THR")) self.thrAnnotation.setFrameSize(QtCore.QSizeF(30, 20)) self.thrAnnotation.hide() self.vlForm = QtGui.QVBoxLayout(Form) self.vlForm.setObjectName(("vlForm")) self.vlForm.setSpacing(0) self.vlForm.setMargin(0) self.pnlPositions = QtGui.QFrame(Form) self.pnlPositions.setObjectName(("pnlPositions")) self.hl_pnlPositions = QtGui.QVBoxLayout(self.pnlPositions) self.hl_pnlPositions.setObjectName(("hl_pnlPositions")) self.hl_pnlPositions.setMargin(0) self.cmbAerodrome = ComboBoxPanel(self.pnlPositions, True) self.cmbAerodrome.Caption = "Aerodrome" self.cmbAerodrome.LabelWidth = 120 self.hl_pnlPositions.addWidget(self.cmbAerodrome) self.cmbRwyDir = ComboBoxPanel(self.pnlPositions, True) self.cmbRwyDir.Caption = "Runway Direction" self.cmbRwyDir.LabelWidth = 120 self.cmbRwyDir.Width = 120 self.hl_pnlPositions.addWidget(self.cmbRwyDir) self.gbAerodrome = QtGui.QGroupBox(Form) self.gbAerodrome.setObjectName("gbAerodrome") self.gbAerodrome.setTitle("Aerodrome") self.vl_gbAerodrome = QtGui.QVBoxLayout(self.gbAerodrome) self.vl_gbAerodrome.setObjectName("vl_gbAerodrome") self.pnlArp = PositionPanel(self.gbAerodrome, self.aprAnnotation) self.pnlArp.groupBox.setTitle("Reference Point (ARP)") self.pnlArp.btnCalculater.hide() self.vl_gbAerodrome.addWidget(self.pnlArp) self.pnlMinTemp = NumberBoxPanel(self.gbAerodrome) self.pnlMinTemp.CaptionUnits = define._degreeStr self.pnlMinTemp.Caption = "Minimum Temperature" self.pnlMinTemp.Value = -15 self.vl_gbAerodrome.addWidget(self.pnlMinTemp) self.hl_pnlPositions.addWidget(self.gbAerodrome) self.gbRunway = QtGui.QGroupBox(Form) self.gbRunway.setObjectName("gbRunway") self.gbRunway.setTitle("Runway") self.vl_gbRunway = QtGui.QVBoxLayout(self.gbRunway) self.vl_gbRunway.setObjectName("vl_gbRunway") self.pnlThr = PositionPanel(self.gbRunway, self.thrAnnotation) self.pnlThr.groupBox.setTitle("Threshold Position") self.pnlThr.btnCalculater.hide() self.vl_gbRunway.addWidget(self.pnlThr) self.pnlThrEnd = PositionPanel(self.gbRunway, self.thrAnnotation) self.pnlThrEnd.groupBox.setTitle("Runway End Position") self.pnlThrEnd.btnCalculater.hide() self.vl_gbRunway.addWidget(self.pnlThrEnd) self.pnlThrEnd.Visible = False self.pnlRwyDir = TrackRadialBoxPanel(self.gbRunway) self.pnlRwyDir.Caption = "Direction" self.pnlRwyDir.LabelWidth = 70 self.vl_gbRunway.addWidget(self.pnlRwyDir) self.hl_pnlPositions.addWidget(self.gbRunway) self.vlForm.addWidget(self.pnlPositions) self.gbParameters = QtGui.QGroupBox(Form) font = QtGui.QFont() font.setFamily(("Arial")) font.setBold(False) font.setWeight(50) self.gbParameters.setFont(font) self.gbParameters.setObjectName(("gbParameters")) self.gbParameters.setTitle("Parameters") self.vl_gbParameters = QtGui.QVBoxLayout(self.gbParameters) self.vl_gbParameters.setObjectName(("vl_gbParameters")) self.pnlOCAH = OCAHPanel(self.gbParameters) self.pnlOCAH.Caption = "Intermediate Segment" self.pnlOCAH.Value = Altitude(2000, AltitudeUnits.FT) self.pnlOCAH.LabelWidth = 200 self.vl_gbParameters.addWidget(self.pnlOCAH) self.pnlMocI = AltitudeBoxPanel(self.gbParameters) self.pnlMocI.CaptionUnits = "m" self.pnlMocI.Caption = "Intermediate Segment MOC" self.pnlMocI.Value = Altitude(150) self.vl_gbParameters.addWidget(self.pnlMocI) self.pnlRDH = AltitudeBoxPanel(self.gbParameters) self.pnlRDH.CaptionUnits = "m" self.pnlRDH.Caption = "RDH at THR" self.pnlRDH.Value = Altitude(15) self.vl_gbParameters.addWidget(self.pnlRDH) self.pnlVPA = ComboBoxPanel(self.gbParameters) self.pnlVPA.Caption = "Vertical Path Angle [VPA]" # self.pnlVPA.comboBox.setToolTip() self.vl_gbParameters.addWidget(self.pnlVPA) self.lblAbove35 = QtGui.QLabel(self.gbParameters) self.lblAbove35.setText( QtCore.QString("A procedure with a promulgated VPA exceeding 3.5") + unicode("°", "utf-8") + QtCore.QString( " is a non-standard procedure.\nIt shall be subject to an aeronautical study and will require special approval \n by the national competent authority (PANS-OPS Part III, Section 3, Chapter 4, Par. 4.2.1.3)" )) self.vl_gbParameters.addWidget(self.lblAbove35) self.pnlThrFafDist = DistanceBoxPanel(self.gbParameters, DistanceUnits.NM) self.pnlThrFafDist.Caption = "THR to FAWP Distance" self.pnlThrFafDist.Value = Distance(5, DistanceUnits.NM) self.vl_gbParameters.addWidget(self.pnlThrFafDist) self.pnlAcCat = ComboBoxPanel(self.gbParameters) self.pnlAcCat.Caption = "Aircraft Category" self.vl_gbParameters.addWidget(self.pnlAcCat) self.pnlIas = SpeedBoxPanel(self.gbParameters, SpeedUnits.KTS) self.pnlIas.Caption = "Max. IAS" self.pnlIas.Value = Speed(185) self.vl_gbParameters.addWidget(self.pnlIas) self.pnlIasAtThr = SpeedBoxPanel(self.gbParameters, SpeedUnits.KTS) self.pnlIasAtThr.Caption = "Max. IAS at THR" self.pnlIasAtThr.Value = Speed(165) self.vl_gbParameters.addWidget(self.pnlIasAtThr) self.pnlHL = AltitudeBoxPanel(self.gbParameters) self.pnlHL.CaptionUnits = "m" self.pnlHL.Caption = "Height Loss" self.pnlHL.Value = Altitude(49) self.vl_gbParameters.addWidget(self.pnlHL) self.pnlTC = AltitudeBoxPanel(self.gbParameters) self.pnlTC.CaptionUnits = "m" self.pnlTC.Caption = "Temperature Correction" self.pnlTC.Value = Altitude(0) self.vl_gbParameters.addWidget(self.pnlTC) self.tableLayoutPanel1 = QtGui.QFrame(self.gbParameters) self.tableLayoutPanel1.setObjectName("tableLayoutPanel1") self.vl_tableLayoutPanel1 = QtGui.QVBoxLayout(self.tableLayoutPanel1) self.vl_tableLayoutPanel1.setObjectName("vl_tableLayoutPanel1") self.vl_tableLayoutPanel1.setSpacing(0) self.vl_tableLayoutPanel1.setMargin(0) self.upFrame = QtGui.QFrame(self.tableLayoutPanel1) self.upFrame.setObjectName("upFrame") sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.upFrame.sizePolicy().hasHeightForWidth()) self.upFrame.setSizePolicy(sizePolicy) self.hl_upFrame = QtGui.QHBoxLayout(self.upFrame) self.hl_upFrame.setObjectName("hl_upFrame") self.hl_upFrame.setMargin(0) self.cmbTermination = ComboBoxPanel(self.upFrame) self.cmbTermination.Caption = "APV Segment Termination" self.cmbTermination.comboBox.setMinimumWidth(80) self.hl_upFrame.addWidget(self.cmbTermination) self.pnlTerminationDist = DistanceBoxPanel(self.upFrame, DistanceUnits.NM) self.pnlTerminationDist.Caption = "Dist." self.pnlTerminationDist.Value = Distance(5, DistanceUnits.NM) self.pnlTerminationDist.LabelWidth = 50 self.hl_upFrame.addWidget(self.pnlTerminationDist) self.vl_tableLayoutPanel1.addWidget(self.upFrame) self.downFrame = QtGui.QFrame(self.tableLayoutPanel1) self.downFrame.setObjectName("downFrame") sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.downFrame.sizePolicy().hasHeightForWidth()) self.downFrame.setSizePolicy(sizePolicy) self.hl_downFrame = QtGui.QHBoxLayout(self.downFrame) self.hl_downFrame.setObjectName("hl_downFrame") self.hl_downFrame.setMargin(0) self.cmbMAPt = ComboBoxPanel(self.downFrame) self.cmbMAPt.Caption = "Missed Approach Point" self.cmbMAPt.comboBox.setMinimumWidth(80) self.hl_downFrame.addWidget(self.cmbMAPt) self.pnlMAPtDist = DistanceBoxPanel(self.downFrame, DistanceUnits.NM) self.pnlMAPtDist.Caption = "Dist." # self.pnlMAPtDist.Value = Distance(5, DistanceUnits.NM) self.pnlMAPtDist.LabelWidth = 50 self.hl_downFrame.addWidget(self.pnlMAPtDist) self.vl_tableLayoutPanel1.addWidget(self.downFrame) self.vl_gbParameters.addWidget(self.tableLayoutPanel1) self.pnlMACG = NumberBoxPanel(self.gbParameters) self.pnlMACG.CaptionUnits = "%" self.pnlMACG.Caption = "Missed Approach Climb Gradient" self.pnlMACG.Value = 2.5 self.vl_gbParameters.addWidget(self.pnlMACG) self.pnlMocMA = AltitudeBoxPanel(self.gbParameters) self.pnlMocMA.CaptionUnits = "m" self.pnlMocMA.Caption = "Missed Approach MOC" self.pnlMocMA.Value = Altitude(30) self.vl_gbParameters.addWidget(self.pnlMocMA) self.pnlEvalMethodMA = ComboBoxPanel(self.gbParameters) self.pnlEvalMethodMA.Caption = "Missed Approach Evaluation" self.vl_gbParameters.addWidget(self.pnlEvalMethodMA) self.pnlConstructionType = ComboBoxPanel(self.gbParameters) self.pnlConstructionType.Caption = "Construction Type" self.vl_gbParameters.addWidget(self.pnlConstructionType) self.vlForm.addWidget(self.gbParameters) QtCore.QMetaObject.connectSlotsByName(Form)
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.gbApproachSegmentType = GroupBox(Form) self.gbApproachSegmentType.Caption = "Approach Segment Type" self.vlForm.addWidget(self.gbApproachSegmentType) self.txtApproachSegmentType = TextBoxPanel(self.gbApproachSegmentType) self.txtApproachSegmentType.Caption = "Type" self.txtApproachSegmentType.textBox.setEnabled(False) self.txtApproachSegmentType.Button = "sort2.png" self.txtApproachSegmentType.Value = "Final Segment" self.txtApproachSegmentType.textBox.setMaximumWidth(10000000) self.txtApproachSegmentType.hLayoutBoxPanel.removeItem( self.txtApproachSegmentType.spacerItem) QtCore.QObject.connect(self.txtApproachSegmentType, QtCore.SIGNAL("Event_1"), self.txtApproachSegmentType_Event_1) self.gbApproachSegmentType.Add = self.txtApproachSegmentType self.gbPosition = GroupBox(Form) self.gbPosition.Caption = "Positions" self.gbPosition.layoutBoxPanel.setSpacing(9) self.vlForm.addWidget(self.gbPosition) self.gbNavAid = GroupBox(self.gbPosition) self.gbNavAid.Caption = "Navigational Aid" self.gbPosition.Add = self.gbNavAid self.cmbNavAidType = ComboBoxPanel(self.gbNavAid) self.cmbNavAidType.Caption = "Type" self.cmbNavAidType.Items = ["NDB", "VOR"] 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.pnlNavAidPos = PositionPanel(self.gbNavAid) self.pnlNavAidPos.btnCalculater.hide() self.pnlNavAidPos.hideframe_Altitude() self.gbNavAid.Add = self.pnlNavAidPos self.pnlFafPos = PositionPanel(self.gbPosition) self.pnlFafPos.Caption = "FAF Position" self.pnlFafPos.btnCalculater.hide() self.gbPosition.Add = self.pnlFafPos self.pnlMaptPos = PositionPanel(self.gbPosition) self.pnlMaptPos.Caption = "MAPt Position" self.pnlMaptPos.btnCalculater.hide() self.gbPosition.Add = self.pnlMaptPos self.pnlDerPos = PositionPanel(self.gbPosition) self.pnlDerPos.Caption = "Approach THR Position" self.pnlDerPos.btnCalculater.hide() self.gbPosition.Add = self.pnlDerPos self.gbParameters = GroupBox(Form) self.gbParameters.Caption = "Parameters" self.gbParameters.layoutBoxPanel.setSpacing(9) self.vlForm.addWidget(self.gbParameters) self.cmbTurnDirection = ComboBoxPanel(self.gbParameters) self.cmbTurnDirection.Caption = "Turn Direction" self.cmbTurnDirection.Items = ["Left", "Right"] self.gbParameters.Add = self.cmbTurnDirection self.cmbAircraftCatgory = ComboBoxPanel(self.gbParameters) self.cmbAircraftCatgory.Caption = "Aircraft Category" self.cmbAircraftCatgory.Items = ["A/B", "C/D/E", "H"] self.gbParameters.Add = self.cmbAircraftCatgory self.gbJoin = GroupBox(self.gbParameters, "HL") self.gbJoin.Caption = "Join the intermediate segment" self.gbParameters.Add = self.gbJoin self.radioJoinYes = QtGui.QRadioButton(self.gbJoin) self.radioJoinYes.setText("Yes") self.radioJoinYes.setChecked(True) self.gbJoin.Add = self.radioJoinYes self.radioJoinNo = QtGui.QRadioButton(self.gbJoin) self.radioJoinNo.setText("No") self.gbJoin.Add = self.radioJoinNo self.pnlDistance = DistanceBoxPanel(self.gbParameters, DistanceUnits.NM) self.pnlDistance.Caption = "Distance FAF - MAPt" self.pnlDistance.Button = None self.gbParameters.Add = self.pnlDistance self.pnlGradient = AngleGradientBoxPanel(self.gbParameters) self.pnlGradient.CaptionUnits = AngleGradientSlopeUnits.Percent self.pnlGradient.Caption = "Descent Gradient" self.gbParameters.Add = self.pnlGradient self.approachMenu = QtGui.QMenu() self.finalCmd = QgisHelper.createAction(self.approachMenu, "Final Segment", self.menuFinalClick) self.approachMenu.addAction(self.finalCmd) self.intermediateMnu = QtGui.QMenu("Intermediate Approach Segment") self.approachMenu.addMenu(self.intermediateMnu) self.interStraightCmd = QgisHelper.createAction( self.intermediateMnu, "Intermediate Segment Straight", self.menuInterStrightClick) self.intermediateMnu.addAction(self.interStraightCmd) self.interWithIFCmd = QgisHelper.createAction( self.intermediateMnu, "Intermediate Segment With IF", self.menuInterWithIFClick) self.intermediateMnu.addAction(self.interWithIFCmd) self.interWithNoIFCmd = QgisHelper.createAction( self.intermediateMnu, "Intermediate Segment With No IF", self.menuInterWithNoIFClick) self.intermediateMnu.addAction(self.interWithNoIFCmd) self.initialMnu = QtGui.QMenu("Initial Approach Segment") self.approachMenu.addMenu(self.initialMnu) self.initialStraigtCmd = QgisHelper.createAction( self.initialMnu, "Initial Segment Straight", self.menuInitialStrightClick) self.initialMnu.addAction(self.initialStraigtCmd) self.initialDMEArcCmd = QgisHelper.createAction( self.initialMnu, "Initial Segment DME ARCS", self.menuInitialDMEArcClick) self.initialMnu.addAction(self.initialDMEArcCmd)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(548, 584) self.verticalLayout_8 = QtGui.QVBoxLayout(Dialog) self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8")) self.tabControls = QtGui.QTabWidget(Dialog) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setWeight(50) font.setBold(False) self.tabControls.setFont(font) self.tabControls.setAutoFillBackground(False) self.tabControls.setStyleSheet(_fromUtf8("")) self.tabControls.setObjectName(_fromUtf8("tabControls")) self.tab_General = QtGui.QWidget(Dialog) self.tab_General.setObjectName(_fromUtf8("tab_General")) self.horizontalLayout_29 = QtGui.QHBoxLayout(self.tab_General) self.horizontalLayout_29.setMargin(3) self.horizontalLayout_29.setObjectName(_fromUtf8("horizontalLayout_29")) self.frame_2 = QtGui.QFrame(self.tab_General) self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_2.setFrameShadow(QtGui.QFrame.Raised) self.frame_2.setObjectName(_fromUtf8("frame_2")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.frame_2) self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setMargin(0) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.groupBox_20 = QtGui.QGroupBox(self.frame_2) self.groupBox_20.setObjectName(_fromUtf8("groupBox_20")) self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox_20) self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.cmbSegmentType = ComboBoxPanel(self.groupBox_20) self.cmbSegmentType.Caption = "Visual Segment Type" self.cmbSegmentType.LabelWidth = 250 self.verticalLayout_5.addWidget(self.cmbSegmentType) self.cmbDepartureType = ComboBoxPanel(self.groupBox_20) self.cmbDepartureType.Caption = "Departure Type" self.cmbDepartureType.LabelWidth = 250 self.verticalLayout_5.addWidget(self.cmbDepartureType) self.txtVSDG = AngleGradientBoxPanel(self.groupBox_20) self.txtVSDG.CaptionUnits = AngleGradientSlopeUnits.Percent self.txtVSDG.Caption = "Visual Segment Design Gradient [VSDG]" self.txtVSDG.LabelWidth = 250 self.txtVSDG.Value = AngleGradientSlope(5, AngleGradientSlopeUnits.Percent) self.verticalLayout_5.addWidget(self.txtVSDG) self.txtTakeOffSurfaceTrack = TrackRadialBoxPanel(self.groupBox_20) self.txtTakeOffSurfaceTrack.Caption = "Out-bound Take-off Surface Track" self.txtTakeOffSurfaceTrack.LabelWidth = 250 self.verticalLayout_5.addWidget(self.txtTakeOffSurfaceTrack) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.txtMOC = AltitudeBoxPanel(self.groupBox_20) self.txtMOC.CaptionUnits = "m" self.txtMOC.Caption = "MOC" self.txtMOC.Value = Altitude(30) self.txtMOC.LabelWidth = 250 self.verticalLayout_5.addWidget(self.txtMOC) self.frame_Limitation = QtGui.QFrame(self.groupBox_20) self.frame_Limitation.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_Limitation.setFrameShadow(QtGui.QFrame.Raised) self.frame_Limitation.setObjectName(_fromUtf8("frame_Limitation")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame_Limitation) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.chbLeftTurnProhibited = QtGui.QCheckBox(self.frame_Limitation) self.chbLeftTurnProhibited.setMinimumSize(QtCore.QSize(230, 0)) font = QtGui.QFont() font.setWeight(50) font.setBold(False) self.chbLeftTurnProhibited.setFont(font) self.chbLeftTurnProhibited.setObjectName(_fromUtf8("chbLeftTurnProhibited")) self.horizontalLayout_2.addWidget(self.chbLeftTurnProhibited) self.chbRightTurnProhibited = QtGui.QCheckBox(self.frame_Limitation) font = QtGui.QFont() font.setWeight(50) font.setBold(False) self.chbRightTurnProhibited.setFont(font) self.chbRightTurnProhibited.setLayoutDirection(QtCore.Qt.LeftToRight) self.chbRightTurnProhibited.setObjectName(_fromUtf8("chbRightTurnProhibited")) self.horizontalLayout_2.addWidget(self.chbRightTurnProhibited) self.verticalLayout_5.addWidget(self.frame_Limitation) self.grbIDF = QtGui.QGroupBox(self.groupBox_20) self.grbIDF.setObjectName(_fromUtf8("grbIDF")) self.verticalLayout_IDF = QtGui.QVBoxLayout(self.grbIDF) self.verticalLayout_IDF.setObjectName(_fromUtf8("verticalLayout_IDF")) self.txtTrackFrom = TrackRadialBoxPanel(self.grbIDF) self.txtTrackFrom.Caption = "Track From" self.verticalLayout_IDF.addWidget(self.txtTrackFrom) self.verticalLayout_5.addWidget(self.grbIDF) self.grbHRP = QtGui.QGroupBox(self.groupBox_20) self.grbHRP.setObjectName(_fromUtf8("grbHRP")) self.verticalLayout_HRP = QtGui.QVBoxLayout(self.grbHRP) self.verticalLayout_HRP.setObjectName(_fromUtf8("verticalLayout_HRP")) self.txtHSAL = DistanceBoxPanel(self.grbHRP, DistanceUnits.M) self.txtHSAL.Caption = "Safety Area Length" self.txtHSAL.Value = Distance(30) self.txtHSAL.LabelWidth = 240 self.verticalLayout_HRP.addWidget(self.txtHSAL) self.txtHSAW = DistanceBoxPanel(self.grbHRP, DistanceUnits.M) self.txtHSAW.Caption = "Safety Area Width" self.txtHSAW.Value = Distance(30) self.txtHSAW.LabelWidth = 240 self.verticalLayout_HRP.addWidget(self.txtHSAW) self.verticalLayout_5.addWidget(self.grbHRP) self.cmbConstructionType = ComboBoxPanel(self.groupBox_20) self.cmbConstructionType.Caption = "Construction Type" self.cmbConstructionType.LabelWidth = 250 self.verticalLayout_5.addWidget(self.cmbConstructionType) self.verticalLayout_2.addWidget(self.groupBox_20) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem) self.horizontalLayout_29.addWidget(self.frame_2) self.frame_38 = QtGui.QFrame(self.tab_General) self.frame_38.setMaximumSize(QtCore.QSize(100, 16777215)) self.frame_38.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_38.setFrameShadow(QtGui.QFrame.Raised) self.frame_38.setObjectName(_fromUtf8("frame_38")) self.verticalLayout_7 = QtGui.QVBoxLayout(self.frame_38) self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7")) self.btnOpenData = QtGui.QPushButton(self.frame_38) font = QtGui.QFont() font.setWeight(50) font.setBold(False) self.btnOpenData.setFont(font) self.btnOpenData.setObjectName(_fromUtf8("btnOpenData")) self.verticalLayout_7.addWidget(self.btnOpenData) self.btnSaveData = QtGui.QPushButton(self.frame_38) font = QtGui.QFont() font.setWeight(50) font.setBold(False) self.btnSaveData.setFont(font) self.btnSaveData.setObjectName(_fromUtf8("btnSaveData")) self.verticalLayout_7.addWidget(self.btnSaveData) self.btnConstruct = QtGui.QPushButton(self.frame_38) font = QtGui.QFont() font.setWeight(50) font.setBold(False) self.btnConstruct.setFont(font) self.btnConstruct.setObjectName(_fromUtf8("btnConstruct")) self.verticalLayout_7.addWidget(self.btnConstruct) self.btnEvaluate = QtGui.QPushButton(self.frame_38) font = QtGui.QFont() font.setWeight(50) font.setBold(False) self.btnEvaluate.setFont(font) self.btnEvaluate.setObjectName(_fromUtf8("btnEvaluate")) self.verticalLayout_7.addWidget(self.btnEvaluate) self.btnUpdateQA = QtGui.QPushButton(self.frame_38) self.btnUpdateQA.setEnabled(False) font = QtGui.QFont() font.setWeight(50) font.setBold(False) self.btnUpdateQA.setFont(font) self.btnUpdateQA.setObjectName(_fromUtf8("btnUpdateQA")) self.verticalLayout_7.addWidget(self.btnUpdateQA) self.btnClose = QtGui.QPushButton(self.frame_38) font = QtGui.QFont() font.setWeight(50) font.setBold(False) self.btnClose.setFont(font) self.btnClose.setObjectName(_fromUtf8("btnClose")) self.verticalLayout_7.addWidget(self.btnClose) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_7.addItem(spacerItem1) self.horizontalLayout_29.addWidget(self.frame_38) self.tabControls.addTab(self.tab_General, _fromUtf8("")) self.tab_Results = QtGui.QWidget(Dialog) self.tab_Results.setObjectName(_fromUtf8("tab_Results")) self.horizontalLayout_3 = QtGui.QHBoxLayout(self.tab_Results) self.horizontalLayout_3.setSpacing(3) self.horizontalLayout_3.setMargin(3) self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.frame_3 = QtGui.QFrame(self.tab_Results) self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_3.setFrameShadow(QtGui.QFrame.Raised) self.frame_3.setObjectName(_fromUtf8("frame_3")) self.verticalLayout_6 = QtGui.QVBoxLayout(self.frame_3) self.verticalLayout_6.setSpacing(6) self.verticalLayout_6.setMargin(0) self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6")) self.frame_117 = QtGui.QFrame(self.frame_3) self.frame_117.setFrameShape(QtGui.QFrame.NoFrame) self.frame_117.setFrameShadow(QtGui.QFrame.Raised) self.frame_117.setObjectName(_fromUtf8("frame_117")) self.horizontalLayout_105 = QtGui.QHBoxLayout(self.frame_117) self.horizontalLayout_105.setSpacing(0) self.horizontalLayout_105.setMargin(0) self.horizontalLayout_105.setObjectName(_fromUtf8("horizontalLayout_105")) self.label_126 = QtGui.QLabel(self.frame_117) self.label_126.setMinimumSize(QtCore.QSize(290, 0)) font = QtGui.QFont() font.setWeight(50) font.setBold(False) self.label_126.setFont(font) self.label_126.setObjectName(_fromUtf8("label_126")) self.horizontalLayout_105.addWidget(self.label_126) self.cmbSurface = QtGui.QComboBox(self.frame_117) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmbSurface.sizePolicy().hasHeightForWidth()) self.cmbSurface.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setWeight(50) font.setBold(False) self.cmbSurface.setFont(font) self.cmbSurface.setObjectName(_fromUtf8("cmbSurface")) self.horizontalLayout_105.addWidget(self.cmbSurface) self.verticalLayout_6.addWidget(self.frame_117) self.tblObstacles = QtGui.QTableView(self.frame_3) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) self.tblObstacles.setFont(font) self.tblObstacles.setObjectName(_fromUtf8("tblObstacles")) self.verticalLayout_6.addWidget(self.tblObstacles) self.horizontalLayout_3.addWidget(self.frame_3) self.frame = QtGui.QFrame(self.tab_Results) # self.frame.setMinimumSize(QtCore.QSize(105, 16777215)) self.frame.setFrameShape(QtGui.QFrame.StyledPanel) self.frame.setFrameShadow(QtGui.QFrame.Raised) self.frame.setObjectName(_fromUtf8("frame")) self.verticalLayout_4 = QtGui.QVBoxLayout(self.frame) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.btnLocate = QtGui.QPushButton(self.frame) self.btnLocate.setEnabled(False) font = QtGui.QFont() font.setWeight(50) font.setBold(False) self.btnLocate.setFont(font) self.btnLocate.setObjectName(_fromUtf8("btnLocate")) self.verticalLayout_4.addWidget(self.btnLocate) self.btnUpdateQA_2 = QtGui.QPushButton(self.frame) self.btnUpdateQA_2.setEnabled(False) font = QtGui.QFont() font.setWeight(50) font.setBold(False) self.btnUpdateQA_2.setFont(font) self.btnUpdateQA_2.setObjectName(_fromUtf8("btnUpdateQA_2")) self.verticalLayout_4.addWidget(self.btnUpdateQA_2) self.btnExportResult = QtGui.QPushButton(self.frame) font = QtGui.QFont() font.setWeight(50) font.setBold(False) self.btnExportResult.setFont(font) self.btnExportResult.setObjectName(_fromUtf8("btnExportResult")) self.verticalLayout_4.addWidget(self.btnExportResult) self.btnClose_2 = QtGui.QPushButton(self.frame) font = QtGui.QFont() font.setWeight(50) font.setBold(False) self.btnClose_2.setFont(font) self.btnClose_2.setObjectName(_fromUtf8("btnClose_2")) self.verticalLayout_4.addWidget(self.btnClose_2) spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_4.addItem(spacerItem2) self.horizontalLayout_3.addWidget(self.frame) self.tabControls.addTab(self.tab_Results, _fromUtf8("")) self.verticalLayout_8.addWidget(self.tabControls) self.retranslateUi(Dialog) self.tabControls.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(Dialog) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/openData.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnOpenData.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/saveData.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnSaveData.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/construct.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnConstruct.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/evaluate.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnEvaluate.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/close.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnClose.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/locate.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnLocate.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/pdtCheck.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) # self.btnPDTCheck.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/close.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnClose_2.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/exportResult.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnExportResult.setIcon(icon) self.btnClose.setToolTip(_fromUtf8("Close")) self.btnClose_2.setToolTip(_fromUtf8("Close")) self.btnConstruct.setToolTip(_fromUtf8("Construct")) self.btnEvaluate.setToolTip(_fromUtf8("Evaluate")) self.btnLocate.setToolTip(_fromUtf8("Locate")) self.btnExportResult.setToolTip(_fromUtf8("Export Result")) self.btnOpenData.setToolTip(_fromUtf8("Open Data")) self.btnSaveData.setToolTip(_fromUtf8("Save Data")) # self.btnMarkSoc.setToolTip(_fromUtf8("Mark SOC")) self.btnClose.setIconSize(QtCore.QSize(32,32)) self.btnClose_2.setIconSize(QtCore.QSize(32,32)) self.btnConstruct.setIconSize(QtCore.QSize(32,32)) self.btnEvaluate.setIconSize(QtCore.QSize(32,32)) self.btnLocate.setIconSize(QtCore.QSize(32,32)) self.btnExportResult.setIconSize(QtCore.QSize(32,32)) self.btnOpenData.setIconSize(QtCore.QSize(32,32)) self.btnSaveData.setIconSize(QtCore.QSize(32,32))
def __init__(self, parent, mapScaleDropDownType): QWidget.__init__(self, parent) while not isinstance(parent, QDialog): parent = parent.parent() self.setObjectName("DistanceBoxPanel" + str(len(parent.findChildren(MapScalePanel)))) self.hLayoutBoxPanel = QHBoxLayout(self) self.hLayoutBoxPanel.setSpacing(0) self.hLayoutBoxPanel.setContentsMargins(0, 0, 0, 0) self.hLayoutBoxPanel.setObjectName(("hLayoutBoxPanel")) self.frameBoxPanel = QFrame(self) sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frameBoxPanel.sizePolicy().hasHeightForWidth()) self.frameBoxPanel.setSizePolicy(sizePolicy) self.frameBoxPanel.setFrameShape(QFrame.NoFrame) self.frameBoxPanel.setFrameShadow(QFrame.Raised) self.frameBoxPanel.setObjectName(("frameBoxPanel")) self.hLayoutframeBoxPanel = QHBoxLayout(self.frameBoxPanel) self.hLayoutframeBoxPanel.setSpacing(0) self.hLayoutframeBoxPanel.setMargin(0) self.hLayoutframeBoxPanel.setObjectName(("hLayoutframeBoxPanel")) self.captionLabel = QLabel(self.frameBoxPanel) sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.captionLabel.sizePolicy().hasHeightForWidth()) self.captionLabel.setSizePolicy(sizePolicy) self.captionLabel.setMinimumSize(QSize(200, 0)) self.captionLabel.setMaximumSize(QSize(200, 16777215)) font = QFont() font.setBold(False) font.setWeight(50) self.captionLabel.setFont(font) self.captionLabel.setObjectName(("captionLabel")) self.hLayoutframeBoxPanel.addWidget(self.captionLabel) self.frameBoxPanelIn = QFrame(self.frameBoxPanel) self.frameBoxPanelIn.setFrameShape(QFrame.StyledPanel) self.frameBoxPanelIn.setFrameShadow(QFrame.Raised) self.frameBoxPanelIn.setObjectName(("frameBoxPanelIn")) self.hLayoutframeBoxPanelIn = QHBoxLayout(self.frameBoxPanelIn) self.hLayoutframeBoxPanelIn.setSpacing(0) self.hLayoutframeBoxPanelIn.setMargin(0) self.hLayoutframeBoxPanelIn.setObjectName(("hLayoutframeBoxPanelIn")) self.comboBox = ComboBoxPanel(self.frameBoxPanelIn) self.comboBox.Caption = "1" self.comboBox.LabelWidth = 20 self.hLayoutframeBoxPanelIn.addWidget(self.comboBox) # self.txtDistance = QLineEdit(self.frameBoxPanelIn) # self.txtDistance.setEnabled(True) # font = QFont() # font.setBold(False) # font.setWeight(50) # self.txtDistance.setFont(font) # self.txtDistance.setObjectName(("txtDistance")) # self.txtDistance.setText("0.0") # self.txtDistance.setMinimumWidth(70) # self.txtDistance.setMaximumWidth(70) # self.hLayoutframeBoxPanelIn.addWidget(self.txtDistance) self.imageButton = QToolButton(self.frameBoxPanelIn) self.imageButton.setText(("")) icon = QIcon() icon.addPixmap(QPixmap(("Resource/coordinate_capture.png")), QIcon.Normal, QIcon.Off) self.imageButton.setIcon(icon) self.imageButton.setObjectName(("btnDegreeBoxPanel")) self.hLayoutframeBoxPanelIn.addWidget(self.imageButton) self.hLayoutframeBoxPanel.addWidget(self.frameBoxPanelIn) self.hLayoutBoxPanel.addWidget(self.frameBoxPanel) spacerItem = QSpacerItem(10, 10, QSizePolicy.Expanding, QSizePolicy.Minimum) self.hLayoutBoxPanel.addItem(spacerItem) self.imageButton.clicked.connect(self.imageButtonClicked) define._canvas.renderComplete.connect(self.canvas_renderComplete) self.connect(self.comboBox, SIGNAL("Event_0"), self.comboBox_Event_0) self.flag = 0 self.dropDownType = mapScaleDropDownType self.method_5() self.imageButton.setVisible(False)
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(413, 224) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) Form.setFont(font) self.verticalLayout_AAC = QtGui.QVBoxLayout(Form) self.verticalLayout_AAC.setObjectName(_fromUtf8("verticalLayout_AAC")) self.cmbAerodrome = ComboBoxPanel(Form, True) self.cmbAerodrome.Caption = "Aerodrome" self.cmbAerodrome.LabelWidth = 120 self.verticalLayout_AAC.addWidget(self.cmbAerodrome) self.cmbRwyDir = ComboBoxPanel(Form, True) self.cmbRwyDir.Caption = "Runway Direction" self.cmbRwyDir.LabelWidth = 120 self.cmbRwyDir.Width = 120 self.verticalLayout_AAC.addWidget(self.cmbRwyDir) self.grbParameters = QtGui.QGroupBox(Form) self.grbParameters.setObjectName(_fromUtf8("grbParameters")) self.vLayout_grbParameters = QtGui.QVBoxLayout(self.grbParameters) self.vLayout_grbParameters.setObjectName(_fromUtf8("vLayout_grbParameters")) self.txtDirection = TrackRadialBoxPanel(self.grbParameters) self.txtDirection.Caption = "Runway In-bound Direction" self.vLayout_grbParameters.addWidget(self.txtDirection) # self.frame_ThrFaf = QtGui.QFrame(self.grbParameters) # self.frame_ThrFaf.setFrameShape(QtGui.QFrame.NoFrame) # self.frame_ThrFaf.setFrameShadow(QtGui.QFrame.Raised) # self.frame_ThrFaf.setObjectName(_fromUtf8("frame_ThrFaf")) # self.horizontalLayout_65 = QtGui.QHBoxLayout(self.frame_ThrFaf) # self.horizontalLayout_65.setSpacing(0) # self.horizontalLayout_65.setMargin(0) # self.horizontalLayout_65.setObjectName(_fromUtf8("horizontalLayout_65")) # self.label_73 = QtGui.QLabel(self.frame_ThrFaf) # sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) # sizePolicy.setHorizontalStretch(0) # sizePolicy.setVerticalStretch(0) # sizePolicy.setHeightForWidth(self.label_73.sizePolicy().hasHeightForWidth()) # self.label_73.setSizePolicy(sizePolicy) # self.label_73.setMinimumSize(QtCore.QSize(170, 0)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_73.setFont(font) # self.label_73.setObjectName(_fromUtf8("label_73")) # self.horizontalLayout_65.addWidget(self.label_73) # self.frame_APV_9 = QtGui.QFrame(self.frame_ThrFaf) # self.frame_APV_9.setFrameShape(QtGui.QFrame.StyledPanel) # self.frame_APV_9.setFrameShadow(QtGui.QFrame.Raised) # self.frame_APV_9.setObjectName(_fromUtf8("frame_APV_9")) # self.horizontalLayout_13 = QtGui.QHBoxLayout(self.frame_APV_9) # self.horizontalLayout_13.setSpacing(0) # self.horizontalLayout_13.setMargin(0) # self.horizontalLayout_13.setObjectName(_fromUtf8("horizontalLayout_13")) # self.txtDirection = QtGui.QLineEdit(self.frame_APV_9) # self.txtDirection.setEnabled(True) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtDirection.setFont(font) # self.txtDirection.setObjectName(_fromUtf8("txtDirection")) # self.horizontalLayout_13.addWidget(self.txtDirection) # self.btnCaptureDir = QtGui.QToolButton(self.frame_APV_9) # self.btnCaptureDir.setText(_fromUtf8("")) # icon = QtGui.QIcon() # icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) # self.btnCaptureDir.setIcon(icon) # self.btnCaptureDir.setObjectName(_fromUtf8("btnCaptureDir")) # self.horizontalLayout_13.addWidget(self.btnCaptureDir) # self.horizontalLayout_65.addWidget(self.frame_APV_9) # self.vLayout_grbParameters.addWidget(self.frame_ThrFaf) self.frame_60 = QtGui.QFrame(self.grbParameters) self.frame_60.setFrameShape(QtGui.QFrame.NoFrame) self.frame_60.setFrameShadow(QtGui.QFrame.Raised) self.frame_60.setObjectName(_fromUtf8("frame_60")) self.horizontalLayout_61 = QtGui.QHBoxLayout(self.frame_60) self.horizontalLayout_61.setSpacing(0) self.horizontalLayout_61.setMargin(0) self.horizontalLayout_61.setObjectName(_fromUtf8("horizontalLayout_61")) self.label_69 = QtGui.QLabel(self.frame_60) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_69.sizePolicy().hasHeightForWidth()) self.label_69.setSizePolicy(sizePolicy) self.label_69.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_69.setFont(font) self.label_69.setObjectName(_fromUtf8("label_69")) self.horizontalLayout_61.addWidget(self.label_69) self.cmbCategory = QtGui.QComboBox(self.frame_60) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmbCategory.sizePolicy().hasHeightForWidth()) self.cmbCategory.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbCategory.setFont(font) self.cmbCategory.setObjectName(_fromUtf8("cmbCategory")) self.cmbCategory.setMinimumSize(QtCore.QSize(100, 0)) self.cmbCategory.setMaximumSize(QtCore.QSize(100, 121221)) self.horizontalLayout_61.addWidget(self.cmbCategory) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_61.addItem(horizontalSpacer) self.vLayout_grbParameters.addWidget(self.frame_60) self.verticalLayout_AAC.addWidget(self.grbParameters) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def __init__(self, parent, layer): ''' Constructor ''' QDialog.__init__(self, parent) self.resize(200, 200) self.rasterLayer = layer sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth()) self.setSizePolicy(sizePolicy) verticalLayout = QVBoxLayout(self) verticalLayout.setObjectName("verticalLayout") stackedWidget = QStackedWidget(self) stackedWidget.setObjectName("stackedWidget") pageRender = QWidget(stackedWidget) pageRender.setObjectName("pageRender") sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(pageRender.sizePolicy().hasHeightForWidth()) pageRender.setSizePolicy(sizePolicy) horizontalLayout = QHBoxLayout(pageRender) horizontalLayout.setObjectName("horizontalLayout") frameRender = QFrame(pageRender) frameRender.setObjectName("frameRender") frameRender.setFrameShape(QFrame.StyledPanel) frameRender.setFrameShadow(QFrame.Raised) sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(frameRender.sizePolicy().hasHeightForWidth()) frameRender.setSizePolicy(sizePolicy) self.vLayoutFrameRender = QVBoxLayout(frameRender) self.vLayoutFrameRender.setObjectName("vLayoutFrameRender") horizontalLayout.addWidget(frameRender) self.cmbRendererType = ComboBoxPanel(frameRender) self.cmbRendererType.Caption = "Render Type" self.cmbRendererType.LabelWidth = 70 self.cmbRendererType.Items = ["Mutiband color", "Paletted", "Singleband gray", "Singleband pseudocolor"] self.connect(self.cmbRendererType, SIGNAL("Event_0"), self.cmbRendererType_currentIndexChanged) self.vLayoutFrameRender.addWidget(self.cmbRendererType) self.gbRenderer = GroupBox(frameRender) self.gbRenderer.Caption = self.cmbRendererType.SelectedItem self.vLayoutFrameRender.addWidget(self.gbRenderer) self.qgsMultiBandColorRendererWidget = QgsMultiBandColorRendererWidget(self.rasterLayer) self.qgsPalettedRendererWidget = QgsPalettedRendererWidget(self.rasterLayer) self.qgsSingleBandGrayRendererWidget = QgsSingleBandGrayRendererWidget(self.rasterLayer) self.qgsSingleBandPseudoColorRendererWidget = QgsSingleBandPseudoColorRendererWidget(self.rasterLayer) self.gbRenderer.Add = self.qgsMultiBandColorRendererWidget self.gbRenderer.Add = self.qgsPalettedRendererWidget self.gbRenderer.Add = self.qgsSingleBandGrayRendererWidget self.gbRenderer.Add = self.qgsSingleBandPseudoColorRendererWidget self.qgsPalettedRendererWidget.setVisible(False) self.qgsSingleBandGrayRendererWidget.setVisible(False) self.qgsSingleBandPseudoColorRendererWidget.setVisible(False) stackedWidget.addWidget(pageRender) # page_2 = QWidget() # page_2.setObjectName("page_2") # stackedWidget.addWidget(page_2) verticalLayout.addWidget(stackedWidget) buttonBox = QDialogButtonBox(self) buttonBox.setObjectName("buttonBox") buttonBox.setOrientation(Qt.Horizontal) buttonBox.setStandardButtons(QDialogButtonBox.Cancel | QDialogButtonBox.Ok | QDialogButtonBox.Apply) btnApply = buttonBox.button(QDialogButtonBox.Apply) btnApply.clicked.connect(self.btnApply_clicked) verticalLayout.addWidget(buttonBox) # retranslateUi(Dialog) buttonBox.accepted.connect(self.OK) buttonBox.rejected.connect(self.reject) if self.rasterLayer.renderer().bandCount() == 1: self.cmbRendererType.SelectedIndex = 2 elif self.rasterLayer.renderer().bandCount() > 1: self.cmbRendererType.SelectedIndex = 0
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(350, 166) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) Form.setFont(font) self.verticalLayout = QtGui.QVBoxLayout(Form) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gbDme1 = QtGui.QGroupBox(Form) self.gbDme1.setObjectName(_fromUtf8("gbDme1")) self.vl_Dme1 = QtGui.QVBoxLayout(self.gbDme1) self.vl_Dme1.setObjectName(_fromUtf8("vl_Dme1")) self.cmbBasedOn1 = ComboBoxPanel(self.gbDme1, True) self.cmbBasedOn1.Caption = "Based On" self.cmbBasedOn1.LabelWidth = 120 self.cmbBasedOn1.Width = 120 self.vl_Dme1.addWidget(self.cmbBasedOn1) self.frame_TakeOffSurfaceTrack_4 = QtGui.QFrame(self.gbDme1) self.frame_TakeOffSurfaceTrack_4.setFrameShape(QtGui.QFrame.NoFrame) self.frame_TakeOffSurfaceTrack_4.setFrameShadow(QtGui.QFrame.Raised) self.frame_TakeOffSurfaceTrack_4.setObjectName( _fromUtf8("frame_TakeOffSurfaceTrack_4")) self.horizontalLayout_68 = QtGui.QHBoxLayout( self.frame_TakeOffSurfaceTrack_4) self.horizontalLayout_68.setSpacing(0) self.horizontalLayout_68.setMargin(0) self.horizontalLayout_68.setObjectName( _fromUtf8("horizontalLayout_68")) self.label_76 = QtGui.QLabel(self.frame_TakeOffSurfaceTrack_4) self.label_76.setMinimumSize(QtCore.QSize(170, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_76.setFont(font) self.label_76.setObjectName(_fromUtf8("label_76")) self.horizontalLayout_68.addWidget(self.label_76) self.frame_APV_8 = QtGui.QFrame(self.frame_TakeOffSurfaceTrack_4) self.frame_APV_8.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_APV_8.setFrameShadow(QtGui.QFrame.Raised) self.frame_APV_8.setObjectName(_fromUtf8("frame_APV_8")) self.horizontalLayout_12 = QtGui.QHBoxLayout(self.frame_APV_8) self.horizontalLayout_12.setSpacing(0) self.horizontalLayout_12.setMargin(0) self.horizontalLayout_12.setObjectName( _fromUtf8("horizontalLayout_12")) self.txtDoc1 = QtGui.QLineEdit(self.frame_APV_8) self.txtDoc1.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtDoc1.setFont(font) self.txtDoc1.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) self.txtDoc1.setObjectName(_fromUtf8("txtDoc1")) self.horizontalLayout_12.addWidget(self.txtDoc1) self.btnMesureDoc1 = QtGui.QToolButton(self.frame_APV_8) self.btnMesureDoc1.setText(_fromUtf8("")) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnMesureDoc1.setIcon(icon) self.btnMesureDoc1.setObjectName(_fromUtf8("btnMesureDoc1")) self.horizontalLayout_12.addWidget(self.btnMesureDoc1) self.horizontalLayout_68.addWidget(self.frame_APV_8) self.vl_Dme1.addWidget(self.frame_TakeOffSurfaceTrack_4) self.verticalLayout.addWidget(self.gbDme1) self.gbDme2 = QtGui.QGroupBox(Form) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) self.gbDme2.setFont(font) self.gbDme2.setObjectName(_fromUtf8("gbDme2")) self.vl_Dme2 = QtGui.QVBoxLayout(self.gbDme2) self.vl_Dme2.setObjectName(_fromUtf8("vl_Dme2")) self.cmbBasedOn2 = ComboBoxPanel(self.gbDme2, True) self.cmbBasedOn2.Caption = "Based On" self.cmbBasedOn2.LabelWidth = 120 self.cmbBasedOn2.Width = 120 self.vl_Dme2.addWidget(self.cmbBasedOn2) self.frame_TakeOffSurfaceTrack = QtGui.QFrame(self.gbDme2) self.frame_TakeOffSurfaceTrack.setFrameShape(QtGui.QFrame.NoFrame) self.frame_TakeOffSurfaceTrack.setFrameShadow(QtGui.QFrame.Raised) self.frame_TakeOffSurfaceTrack.setObjectName( _fromUtf8("frame_TakeOffSurfaceTrack")) self.horizontalLayout_61 = QtGui.QHBoxLayout( self.frame_TakeOffSurfaceTrack) self.horizontalLayout_61.setSpacing(0) self.horizontalLayout_61.setMargin(0) self.horizontalLayout_61.setObjectName( _fromUtf8("horizontalLayout_61")) self.txtDmeAltitude = QtGui.QLabel(self.frame_TakeOffSurfaceTrack) self.txtDmeAltitude.setMinimumSize(QtCore.QSize(170, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtDmeAltitude.setFont(font) self.txtDmeAltitude.setObjectName(_fromUtf8("txtDmeAltitude")) self.horizontalLayout_61.addWidget(self.txtDmeAltitude) self.frame_APV_5 = QtGui.QFrame(self.frame_TakeOffSurfaceTrack) self.frame_APV_5.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_APV_5.setFrameShadow(QtGui.QFrame.Raised) self.frame_APV_5.setObjectName(_fromUtf8("frame_APV_5")) self.horizontalLayout_9 = QtGui.QHBoxLayout(self.frame_APV_5) self.horizontalLayout_9.setSpacing(0) self.horizontalLayout_9.setMargin(0) self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9")) self.txtDoc2 = QtGui.QLineEdit(self.frame_APV_5) self.txtDoc2.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtDoc2.setFont(font) self.txtDoc2.setObjectName(_fromUtf8("txtDoc2")) self.horizontalLayout_9.addWidget(self.txtDoc2) self.btnMesureDoc2 = QtGui.QToolButton(self.frame_APV_5) self.btnMesureDoc2.setText(_fromUtf8("")) self.btnMesureDoc2.setIcon(icon) self.btnMesureDoc2.setObjectName(_fromUtf8("btnMesureDoc2")) self.horizontalLayout_9.addWidget(self.btnMesureDoc2) self.horizontalLayout_61.addWidget(self.frame_APV_5) self.vl_Dme2.addWidget(self.frame_TakeOffSurfaceTrack) self.verticalLayout.addWidget(self.gbDme2) self.frame_MOC = QtGui.QFrame(Form) self.frame_MOC.setFrameShape(QtGui.QFrame.NoFrame) self.frame_MOC.setFrameShadow(QtGui.QFrame.Raised) self.frame_MOC.setObjectName(_fromUtf8("frame_MOC")) self.horizontalLayout_62 = QtGui.QHBoxLayout(self.frame_MOC) self.horizontalLayout_62.setSpacing(0) self.horizontalLayout_62.setMargin(0) self.horizontalLayout_62.setObjectName( _fromUtf8("horizontalLayout_62")) self.label_70 = QtGui.QLabel(self.frame_MOC) self.label_70.setMinimumSize(QtCore.QSize(170, 0)) self.label_70.setMaximumSize(QtCore.QSize(170, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_70.setFont(font) self.label_70.setObjectName(_fromUtf8("label_70")) self.horizontalLayout_62.addWidget(self.label_70) self.cmbConstructionType = QtGui.QComboBox(self.frame_MOC) self.cmbConstructionType.setObjectName( _fromUtf8("cmbConstructionType")) self.horizontalLayout_62.addWidget(self.cmbConstructionType) self.verticalLayout.addWidget(self.frame_MOC) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
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.gbPosition = GroupBox(Form) self.gbPosition.Caption = "Positions" self.gbPosition.layoutBoxPanel.setSpacing(9) self.vlForm.addWidget(self.gbPosition) self.gbNavAid = GroupBox(self.gbPosition) self.gbNavAid.Caption = "Navigational Aid" self.gbPosition.Add = self.gbNavAid self.cmbNavAidType = ComboBoxPanel(self.gbNavAid) self.cmbNavAidType.Caption = "Type" self.cmbNavAidType.Items = ["NDB", "NDB/DME", "VOR", "VOR/DME"] self.cmbNavAidType.LabelWidth = 140 self.gbNavAid.Add = self.cmbNavAidType self.cmbBasedOn = ComboBoxPanel(self.gbNavAid, True) self.cmbBasedOn.Caption = "Based On" self.cmbBasedOn.LabelWidth = 140 self.cmbBasedOn.Width = 121 self.gbNavAid.Add = self.cmbBasedOn self.pnlNavAidPos = PositionPanel(self.gbNavAid) self.pnlNavAidPos.btnCalculater.hide() self.pnlNavAidPos.hideframe_Altitude() self.gbNavAid.Add = self.pnlNavAidPos self.pnlDmePos = PositionPanel(self.gbPosition) self.pnlDmePos.Caption = "DME Position" self.pnlDmePos.btnCalculater.hide() self.pnlDmePos.hideframe_Altitude() self.gbPosition.Add = self.pnlDmePos self.cmbEntry = ComboBoxPanel(self.gbPosition) self.cmbEntry.Caption = "Entry" self.cmbEntry.Items = ["Omnidirectional", "On Track"] self.cmbEntry.LabelWidth = 140 self.gbPosition.Add = self.cmbEntry self.txtBearing = TrackRadialBoxPanel(self.gbPosition) self.txtBearing.Caption = "Outbound Track" self.txtBearing.LabelWidth = 140 self.gbPosition.Add = self.txtBearing self.gbParameters = GroupBox(Form) self.gbParameters.Caption = "Parameters" self.gbParameters.layoutBoxPanel.setSpacing(9) self.vlForm.addWidget(self.gbParameters) self.cmbDirection = ComboBoxPanel(self.gbParameters) self.cmbDirection.Caption = "Turn Direction" self.cmbDirection.Items = ["Right", "Left"] self.cmbDirection.LabelWidth = 140 self.cmbDirection.Width = 70 self.gbParameters.Add = self.cmbDirection self.cmbAircraftCatgory = ComboBoxPanel(self.gbParameters) self.cmbAircraftCatgory.Caption = "Aircraft Category" self.cmbAircraftCatgory.Items = ["A", "B", "C", "D", "E"] self.cmbAircraftCatgory.LabelWidth = 140 self.cmbAircraftCatgory.Width = 50 self.gbParameters.Add = self.cmbAircraftCatgory self.cmbCondition = ComboBoxPanel(self.gbParameters) self.cmbCondition.Caption = "Condition" self.cmbCondition.Items = ["Normal Condition", "Turbulence Condition"] self.cmbCondition.LabelWidth = 140 self.gbParameters.Add = self.cmbCondition self.txtNAVAlt = AltitudeBoxPanel(self.gbParameters) self.txtNAVAlt.CaptionUnits = "ft" self.txtNAVAlt.Caption = "NAV Altitude" self.txtNAVAlt.LabelWidth = 140 self.gbParameters.Add = self.txtNAVAlt self.txtInitialAlt = AltitudeBoxPanel(self.gbParameters) self.txtInitialAlt.CaptionUnits = "ft" self.txtInitialAlt.Caption = "Initial Altitude" self.txtInitialAlt.LabelWidth = 140 self.gbParameters.Add = self.txtInitialAlt self.txtTurnAlt = AltitudeBoxPanel(self.gbParameters) self.txtTurnAlt.CaptionUnits = "ft" self.txtTurnAlt.Caption = "Turn Altitude" self.txtTurnAlt.LabelWidth = 140 self.gbParameters.Add = self.txtTurnAlt self.txtFinalAlt = AltitudeBoxPanel(self.gbParameters) self.txtFinalAlt.CaptionUnits = "ft" self.txtFinalAlt.Caption = "Final Altitude" self.txtFinalAlt.LabelWidth = 140 self.gbParameters.Add = self.txtFinalAlt self.txtLimitDistance = DistanceBoxPanel(self.gbParameters, DistanceUnits.NM) self.txtLimitDistance.Caption = "Limiting Distance" self.txtLimitDistance.Button = None self.txtLimitDistance.LabelWidth = 140 self.gbParameters.Add = self.txtLimitDistance self.txtOutboundTime = NumberBoxPanel(self.gbParameters ) self.txtOutboundTime.Caption = "Outbound Time" self.txtOutboundTime.LabelWidth = 140 self.gbParameters.Add = self.txtOutboundTime self.txtOutboundLeg = DistanceBoxPanel(self.gbParameters, DistanceUnits.NM) self.txtOutboundLeg.Caption = "Outbound Leg" self.txtOutboundLeg.Button = None self.txtOutboundLeg.LabelWidth = 140 self.gbParameters.Add = self.txtOutboundLeg self.txtISA = NumberBoxPanel(self.gbParameters, "0.0") self.txtISA.CaptionUnits = define._degreeStr self.txtISA.Caption = "ISA" self.txtISA.LabelWidth = 140 self.gbParameters.Add = self.txtISA self.txtIAS = SpeedBoxPanel(self.gbParameters, SpeedUnits.KTS) self.txtIAS.Caption = "IAS" self.txtIAS.LabelWidth = 140 self.gbParameters.Add = self.txtIAS self.txtTAS = SpeedBoxPanel(self.gbParameters, SpeedUnits.KTS) self.txtTAS.Caption = "TAS" self.txtTAS.LabelWidth = 140 self.gbParameters.Add = self.txtTAS
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 __init__(self, parent = None): QDialog.__init__(self, parent) self.resize(290, 136); self.setWindowTitle("Standard Instrument Departure (SID)") sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed); sizePolicy.setHorizontalStretch(0); sizePolicy.setVerticalStretch(0); sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth()); self.setSizePolicy(sizePolicy); verticalLayoutDlg = QVBoxLayout(self) verticalLayoutDlg.setObjectName(("verticalLayoutDlg")); self.groupBox = GroupBox(self) verticalLayoutDlg.addWidget(self.groupBox) self.pnlAerodrome = ComboBoxPanel(self.groupBox) self.pnlAerodrome.Caption = "Aerodrome" self.groupBox.Add = self.pnlAerodrome self.pnlDesignator = TextBoxPanel(self.groupBox) self.pnlDesignator.Caption = "Designator" self.groupBox.Add = self.pnlDesignator self.pnlAcCategory = ComboBoxPanel(self.groupBox) self.pnlAcCategory.Caption = "Ac. Category" self.groupBox.Add = self.pnlAcCategory self.pnlTransID = TextBoxPanel(self.groupBox) self.pnlTransID.Caption = "ransitional Identifier" self.groupBox.Add = self.pnlTransID self.pnlType = ComboBoxPanel(self.groupBox) self.pnlType.Caption = "Type" self.groupBox.Add = self.pnlType self.pnlRunway = ComboBoxPanel(self.groupBox) self.pnlRunway.Caption = "Runway Direction" self.groupBox.Add = self.pnlRunway self.pnlMSA = ComboBoxPanel(self.groupBox) self.pnlMSA.Caption = "MSA Group" self.groupBox.Add = self.pnlMSA self.pnlRNP = NumberBoxPanel(self.groupBox) self.pnlRNP.Caption = "RNP" self.groupBox.Add = self.pnlRNP self.tableLayoutPanel = Frame(self.groupBox) self.groupBox.Add = self.tableLayoutPanel self.txtDescription = TextBoxPanel(self.tableLayoutPanel, True) self.txtDescription.Caption = "Description" self.tableLayoutPanel.Add = self.txtDescription self.txtDescrComFail = TextBoxPanel(self.tableLayoutPanel, True) self.txtDescrComFail.Caption = "Communication Failure" self.tableLayoutPanel.Add = self.txtDescrComFail self.txtRemarks = TextBoxPanel(self.tableLayoutPanel, True) self.txtRemarks.Caption = "Remarks" self.tableLayoutPanel.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) verticalLayoutDlg.addWidget(self.btnBoxOkCancel) self.data = None self.table = None self.selected = None;
def __init__(self, parent=None): QDialog.__init__(self, parent) self.resize(290, 136) self.setWindowTitle("Runway Setup") 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.basicFrame = Frame(self) verticalLayoutDlg.addWidget(self.basicFrame) self.groupBox = GroupBox(self.basicFrame) self.basicFrame.Add = self.groupBox self.pnlName = TextBoxPanel(self.groupBox) self.pnlName.Caption = "Name" self.pnlName.LabelWidth = 70 self.groupBox.Add = self.pnlName self.pnlDesignatorFrame = Frame(self.groupBox, "HL") self.groupBox.Add = self.pnlDesignatorFrame self.pnlDesignator = TextBoxPanel(self.groupBox) self.pnlDesignator.Caption = "Designator" self.pnlDesignator.LabelWidth = 70 self.pnlDesignator.Button = "Calculator.bmp" self.pnlDesignatorFrame.Add = self.pnlDesignator self.cmbDesignator = ComboBoxPanel(self.groupBox) self.cmbDesignator.Caption = "" self.cmbDesignator.LabelWidth = 0 self.cmbDesignator.Items = ["", "L", "C", "R"] self.pnlDesignatorFrame.Add = self.cmbDesignator self.gbPositions = GroupBox(self.groupBox) self.gbPositions.Caption = "Positions" self.groupBox.Add = self.gbPositions self.pnlPosition = PositionPanel(self.gbPositions) # self.pnlPosition.hideframe_Altitude() self.pnlPosition.btnCalculater.setVisible(False) self.gbPositions.Add = self.pnlPosition self.pnlTree = Frame(self.gbPositions) self.gbPositions.Add = self.pnlTree self.trvPositions = TreeView(self.pnlTree) self.pnlTree.Add = self.trvPositions self.pnlButtons = Frame(self.pnlTree, "HL") self.pnlTree.Add = self.pnlButtons self.btnPrevious = QPushButton(self.pnlButtons) self.btnPrevious.setObjectName("btnPrevious") self.btnPrevious.setText("") icon = QIcon() icon.addPixmap(QPixmap("Resource/btnImage/Prev_32x32.png"), QIcon.Normal, QIcon.Off) self.btnPrevious.setIcon(icon) self.pnlButtons.Add = self.btnPrevious self.btnInsert = QPushButton(self.pnlButtons) self.btnInsert.setObjectName("btnInsert") self.btnInsert.setText("") icon = QIcon() icon.addPixmap(QPixmap("Resource/add.png"), QIcon.Normal, QIcon.Off) self.btnInsert.setIcon(icon) self.pnlButtons.Add = self.btnInsert self.btnRemove = QPushButton(self.pnlButtons) self.btnRemove.setObjectName("btnRemove") self.btnRemove.setText("") icon = QIcon() icon.addPixmap(QPixmap("Resource/remove.png"), QIcon.Normal, QIcon.Off) self.btnRemove.setIcon(icon) self.pnlButtons.Add = self.btnRemove self.btnNext = QPushButton(self.pnlButtons) self.btnNext.setObjectName("btnNext") self.btnNext.setText("") icon = QIcon() icon.addPixmap(QPixmap("Resource/btnImage/Next_32x32.png"), QIcon.Normal, QIcon.Off) self.btnNext.setIcon(icon) self.pnlButtons.Add = self.btnNext self.btnBoxOkCancel = QDialogButtonBox(self) self.btnBoxOkCancel.setObjectName(("btnBoxOkCancel")) self.btnBoxOkCancel.setStandardButtons(QDialogButtonBox.Cancel | QDialogButtonBox.Ok) self.btnOK = self.btnBoxOkCancel.button(QDialogButtonBox.Ok) self.connect(self.btnBoxOkCancel, SIGNAL("accepted()"), self.acceptDlg) self.connect(self.btnBoxOkCancel, SIGNAL("rejected()"), self.reject) verticalLayoutDlg.addWidget(self.btnBoxOkCancel) self.btnOK.setText("Save") self.connect(self.pnlDesignator, SIGNAL("Event_1"), self.method_14) self.connect(self.pnlPosition, SIGNAL("captureFinished"), self.method_13) self.btnInsert.clicked.connect(self.btnInsert_Click) self.btnNext.clicked.connect(self.btnNext_Click) self.btnPrevious.clicked.connect(self.btnPrevious_Click) self.btnRemove.clicked.connect(self.btnRemove_Click) self.trvPositions.clicked.connect(self.trvPositions_clicked)
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(436, 500) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) Form.setFont(font) self.verticalLayout = QtGui.QVBoxLayout(Form) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gbCalculation = QtGui.QGroupBox(Form) self.gbCalculation.setObjectName(_fromUtf8("gbCalculation")) self.vl_gbCalculation = QtGui.QVBoxLayout(self.gbCalculation) self.vl_gbCalculation.setObjectName(_fromUtf8("vl_gbCalculation")) self.frame_66 = QtGui.QFrame(self.gbCalculation) self.frame_66.setFrameShape(QtGui.QFrame.NoFrame) self.frame_66.setFrameShadow(QtGui.QFrame.Raised) self.frame_66.setObjectName(_fromUtf8("frame_66")) self.horizontalLayout_66 = QtGui.QHBoxLayout(self.frame_66) self.horizontalLayout_66.setSpacing(0) self.horizontalLayout_66.setMargin(0) self.horizontalLayout_66.setObjectName( _fromUtf8("horizontalLayout_66")) self.label_74 = QtGui.QLabel(self.frame_66) self.label_74.setMinimumSize(QtCore.QSize(150, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_74.setFont(font) self.label_74.setObjectName(_fromUtf8("label_74")) self.horizontalLayout_66.addWidget(self.label_74) self.cmbCalculationType = QtGui.QComboBox(self.frame_66) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbCalculationType.sizePolicy().hasHeightForWidth()) self.cmbCalculationType.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbCalculationType.setFont(font) self.cmbCalculationType.setObjectName(_fromUtf8("cmbCalculationType")) self.cmbCalculationType.setMinimumSize(QtCore.QSize(70, 0)) self.cmbCalculationType.setMaximumSize(QtCore.QSize(70, 16777215)) self.horizontalLayout_66.addWidget(self.cmbCalculationType) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_66.addItem(horizontalSpacer) self.vl_gbCalculation.addWidget(self.frame_66) self.frame_TakeOffSurfaceTrack_4 = QtGui.QFrame(self.gbCalculation) self.frame_TakeOffSurfaceTrack_4.setFrameShape(QtGui.QFrame.NoFrame) self.frame_TakeOffSurfaceTrack_4.setFrameShadow(QtGui.QFrame.Raised) self.frame_TakeOffSurfaceTrack_4.setObjectName( _fromUtf8("frame_TakeOffSurfaceTrack_4")) self.horizontalLayout_68 = QtGui.QHBoxLayout( self.frame_TakeOffSurfaceTrack_4) self.horizontalLayout_68.setSpacing(0) self.horizontalLayout_68.setMargin(0) self.horizontalLayout_68.setObjectName( _fromUtf8("horizontalLayout_68")) self.label_76 = QtGui.QLabel(self.frame_TakeOffSurfaceTrack_4) self.label_76.setMinimumSize(QtCore.QSize(150, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_76.setFont(font) self.label_76.setObjectName(_fromUtf8("label_76")) self.horizontalLayout_68.addWidget(self.label_76) self.frame_APV_8 = QtGui.QFrame(self.frame_TakeOffSurfaceTrack_4) self.frame_APV_8.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_APV_8.setFrameShadow(QtGui.QFrame.Raised) self.frame_APV_8.setObjectName(_fromUtf8("frame_APV_8")) self.horizontalLayout_12 = QtGui.QHBoxLayout(self.frame_APV_8) self.horizontalLayout_12.setSpacing(0) self.horizontalLayout_12.setMargin(0) self.horizontalLayout_12.setObjectName( _fromUtf8("horizontalLayout_12")) self.txtDistance = QtGui.QLineEdit(self.frame_APV_8) self.txtDistance.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtDistance.setFont(font) self.txtDistance.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) self.txtDistance.setObjectName(_fromUtf8("txtDistance")) self.txtDistance.setMinimumSize(QtCore.QSize(70, 0)) self.txtDistance.setMaximumSize(QtCore.QSize(70, 16777215)) self.horizontalLayout_12.addWidget(self.txtDistance) self.btnMesureDist = QtGui.QToolButton(self.frame_APV_8) self.btnMesureDist.setText(_fromUtf8("")) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnMesureDist.setIcon(icon) self.btnMesureDist.setObjectName(_fromUtf8("btnMesureDist")) self.horizontalLayout_12.addWidget(self.btnMesureDist) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_12.addItem(horizontalSpacer) self.horizontalLayout_68.addWidget(self.frame_APV_8) self.vl_gbCalculation.addWidget(self.frame_TakeOffSurfaceTrack_4) self.frame_61 = QtGui.QFrame(self.gbCalculation) self.frame_61.setFrameShape(QtGui.QFrame.NoFrame) self.frame_61.setFrameShadow(QtGui.QFrame.Raised) self.frame_61.setObjectName(_fromUtf8("frame_61")) self.horizontalLayout_60 = QtGui.QHBoxLayout(self.frame_61) self.horizontalLayout_60.setSpacing(0) self.horizontalLayout_60.setMargin(0) self.horizontalLayout_60.setObjectName( _fromUtf8("horizontalLayout_60")) self.label_68 = QtGui.QLabel(self.frame_61) self.label_68.setMinimumSize(QtCore.QSize(150, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_68.setFont(font) self.label_68.setObjectName(_fromUtf8("label_68")) self.horizontalLayout_60.addWidget(self.label_68) self.txtAcAltitudeM = QtGui.QLineEdit(self.frame_61) self.txtAcAltitudeM.setObjectName(_fromUtf8("txtAcAltitudeM")) self.txtAcAltitudeM.setMinimumSize(QtCore.QSize(90, 0)) self.txtAcAltitudeM.setMaximumSize(QtCore.QSize(90, 16777215)) self.horizontalLayout_60.addWidget(self.txtAcAltitudeM) self.label_2 = QtGui.QLabel(self.frame_61) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_60.addWidget(self.label_2) self.txtAcAltitude = QtGui.QLineEdit(self.frame_61) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAcAltitude.setFont(font) self.txtAcAltitude.setObjectName(_fromUtf8("txtAcAltitude")) self.txtAcAltitude.setMinimumSize(QtCore.QSize(90, 0)) self.txtAcAltitude.setMaximumSize(QtCore.QSize(90, 16777215)) self.horizontalLayout_60.addWidget(self.txtAcAltitude) self.label = QtGui.QLabel(self.frame_61) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_60.addWidget(self.label) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_60.addItem(horizontalSpacer) self.vl_gbCalculation.addWidget(self.frame_61) self.frame_TakeOffSurfaceTrack = QtGui.QFrame(self.gbCalculation) self.frame_TakeOffSurfaceTrack.setFrameShape(QtGui.QFrame.NoFrame) self.frame_TakeOffSurfaceTrack.setFrameShadow(QtGui.QFrame.Raised) self.frame_TakeOffSurfaceTrack.setObjectName( _fromUtf8("frame_TakeOffSurfaceTrack")) self.horizontalLayout_61 = QtGui.QHBoxLayout( self.frame_TakeOffSurfaceTrack) self.horizontalLayout_61.setSpacing(0) self.horizontalLayout_61.setMargin(0) self.horizontalLayout_61.setObjectName( _fromUtf8("horizontalLayout_61")) self.lbDmeAltitude = QtGui.QLabel(self.frame_TakeOffSurfaceTrack) self.lbDmeAltitude.setMinimumSize(QtCore.QSize(150, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lbDmeAltitude.setFont(font) self.lbDmeAltitude.setObjectName(_fromUtf8("lbDmeAltitude")) self.horizontalLayout_61.addWidget(self.lbDmeAltitude) self.frame_APV_5 = QtGui.QFrame(self.frame_TakeOffSurfaceTrack) self.frame_APV_5.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_APV_5.setFrameShadow(QtGui.QFrame.Raised) self.frame_APV_5.setObjectName(_fromUtf8("frame_APV_5")) self.horizontalLayout_9 = QtGui.QHBoxLayout(self.frame_APV_5) self.horizontalLayout_9.setSpacing(0) self.horizontalLayout_9.setMargin(0) self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9")) self.txtDmeAltitude = QtGui.QLineEdit(self.frame_APV_5) self.txtDmeAltitude.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtDmeAltitude.setFont(font) self.txtDmeAltitude.setObjectName(_fromUtf8("txtDmeAltitude")) self.txtDmeAltitude.setMinimumSize(QtCore.QSize(90, 0)) self.txtDmeAltitude.setMaximumSize(QtCore.QSize(90, 16777215)) self.horizontalLayout_9.addWidget(self.txtDmeAltitude) self.label_6 = QtGui.QLabel(self.frame_APV_5) self.label_6.setObjectName(_fromUtf8("label_6")) self.horizontalLayout_9.addWidget(self.label_6) self.txtDmeAltitudeFt = QtGui.QLineEdit(self.frame_APV_5) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtDmeAltitudeFt.setFont(font) self.txtDmeAltitudeFt.setText(_fromUtf8("")) self.txtDmeAltitudeFt.setObjectName(_fromUtf8("txtDmeAltitudeFt")) self.txtDmeAltitudeFt.setMinimumSize(QtCore.QSize(90, 0)) self.txtDmeAltitudeFt.setMaximumSize(QtCore.QSize(90, 16777215)) self.horizontalLayout_9.addWidget(self.txtDmeAltitudeFt) self.labelMocFt = QtGui.QLabel(self.frame_APV_5) self.labelMocFt.setObjectName(_fromUtf8("labelMocFt")) self.horizontalLayout_9.addWidget(self.labelMocFt) self.btnMesureAltitude = QtGui.QToolButton(self.frame_APV_5) self.btnMesureAltitude.setText(_fromUtf8("")) self.btnMesureAltitude.setIcon(icon) self.btnMesureAltitude.setObjectName(_fromUtf8("btnMesureAltitude")) self.horizontalLayout_9.addWidget(self.btnMesureAltitude) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_9.addItem(horizontalSpacer) self.horizontalLayout_61.addWidget(self.frame_APV_5) self.vl_gbCalculation.addWidget(self.frame_TakeOffSurfaceTrack) self.gbResult = QtGui.QGroupBox(self.gbCalculation) self.gbResult.setObjectName(_fromUtf8("gbResult")) self.vl_gbResult = QtGui.QVBoxLayout(self.gbResult) self.vl_gbResult.setObjectName(_fromUtf8("vl_gbResult")) self.frame_62 = QtGui.QFrame(self.gbResult) self.frame_62.setFrameShape(QtGui.QFrame.NoFrame) self.frame_62.setFrameShadow(QtGui.QFrame.Raised) self.frame_62.setObjectName(_fromUtf8("frame_62")) self.horizontalLayout_63 = QtGui.QHBoxLayout(self.frame_62) self.horizontalLayout_63.setSpacing(0) self.horizontalLayout_63.setMargin(0) self.horizontalLayout_63.setObjectName( _fromUtf8("horizontalLayout_63")) self.lblResultDistance = QtGui.QLabel(self.frame_62) self.lblResultDistance.setMinimumSize(QtCore.QSize(150, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblResultDistance.setFont(font) self.lblResultDistance.setObjectName(_fromUtf8("lblResultDistance")) self.horizontalLayout_63.addWidget(self.lblResultDistance) self.txtResultDistance = QtGui.QLineEdit(self.frame_62) self.txtResultDistance.setEnabled(False) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtResultDistance.setFont(font) self.txtResultDistance.setText(_fromUtf8("")) self.txtResultDistance.setObjectName(_fromUtf8("txtResultDistance")) self.txtResultDistance.setMinimumSize(QtCore.QSize(130, 0)) self.txtResultDistance.setMaximumSize(QtCore.QSize(130, 16777215)) self.horizontalLayout_63.addWidget(self.txtResultDistance) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_63.addItem(horizontalSpacer) self.vl_gbResult.addWidget(self.frame_62) self.frame_TakeOffSurfaceTrack_2 = QtGui.QFrame(self.gbResult) self.frame_TakeOffSurfaceTrack_2.setFrameShape(QtGui.QFrame.NoFrame) self.frame_TakeOffSurfaceTrack_2.setFrameShadow(QtGui.QFrame.Raised) self.frame_TakeOffSurfaceTrack_2.setObjectName( _fromUtf8("frame_TakeOffSurfaceTrack_2")) self.horizontalLayout_64 = QtGui.QHBoxLayout( self.frame_TakeOffSurfaceTrack_2) self.horizontalLayout_64.setSpacing(0) self.horizontalLayout_64.setMargin(0) self.horizontalLayout_64.setObjectName( _fromUtf8("horizontalLayout_64")) self.label_72 = QtGui.QLabel(self.frame_TakeOffSurfaceTrack_2) self.label_72.setMinimumSize(QtCore.QSize(150, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_72.setFont(font) self.label_72.setObjectName(_fromUtf8("label_72")) self.horizontalLayout_64.addWidget(self.label_72) self.frame_APV_6 = QtGui.QFrame(self.frame_TakeOffSurfaceTrack_2) self.frame_APV_6.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_APV_6.setFrameShadow(QtGui.QFrame.Raised) self.frame_APV_6.setObjectName(_fromUtf8("frame_APV_6")) self.horizontalLayout_10 = QtGui.QHBoxLayout(self.frame_APV_6) self.horizontalLayout_10.setSpacing(0) self.horizontalLayout_10.setMargin(0) self.horizontalLayout_10.setObjectName( _fromUtf8("horizontalLayout_10")) self.txtResultDmeTol = QtGui.QLineEdit(self.frame_APV_6) self.txtResultDmeTol.setEnabled(False) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtResultDmeTol.setFont(font) self.txtResultDmeTol.setText(_fromUtf8("")) self.txtResultDmeTol.setObjectName(_fromUtf8("txtResultDmeTol")) self.txtResultDmeTol.setMinimumSize(QtCore.QSize(130, 0)) self.txtResultDmeTol.setMaximumSize(QtCore.QSize(130, 16777215)) self.horizontalLayout_10.addWidget(self.txtResultDmeTol) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_10.addItem(horizontalSpacer) self.btnMesureTolerance = QtGui.QToolButton(self.frame_APV_6) self.btnMesureTolerance.setText(_fromUtf8("")) self.btnMesureTolerance.setIcon(icon) self.btnMesureTolerance.setObjectName(_fromUtf8("btnMesureTolerance")) self.horizontalLayout_10.addWidget(self.btnMesureTolerance) self.horizontalLayout_64.addWidget(self.frame_APV_6) self.vl_gbResult.addWidget(self.frame_TakeOffSurfaceTrack_2) self.frame_TakeOffSurfaceTrack_3 = QtGui.QFrame(self.gbResult) self.frame_TakeOffSurfaceTrack_3.setFrameShape(QtGui.QFrame.NoFrame) self.frame_TakeOffSurfaceTrack_3.setFrameShadow(QtGui.QFrame.Raised) self.frame_TakeOffSurfaceTrack_3.setObjectName( _fromUtf8("frame_TakeOffSurfaceTrack_3")) self.horizontalLayout_65 = QtGui.QHBoxLayout( self.frame_TakeOffSurfaceTrack_3) self.horizontalLayout_65.setSpacing(0) self.horizontalLayout_65.setMargin(0) self.horizontalLayout_65.setObjectName( _fromUtf8("horizontalLayout_65")) self.label_73 = QtGui.QLabel(self.frame_TakeOffSurfaceTrack_3) self.label_73.setMinimumSize(QtCore.QSize(150, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_73.setFont(font) self.label_73.setObjectName(_fromUtf8("label_73")) self.horizontalLayout_65.addWidget(self.label_73) self.frame_APV_7 = QtGui.QFrame(self.frame_TakeOffSurfaceTrack_3) self.frame_APV_7.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_APV_7.setFrameShadow(QtGui.QFrame.Raised) self.frame_APV_7.setObjectName(_fromUtf8("frame_APV_7")) self.horizontalLayout_11 = QtGui.QHBoxLayout(self.frame_APV_7) self.horizontalLayout_11.setSpacing(0) self.horizontalLayout_11.setMargin(0) self.horizontalLayout_11.setObjectName( _fromUtf8("horizontalLayout_11")) self.txtResultSlantTol = QtGui.QLineEdit(self.frame_APV_7) self.txtResultSlantTol.setEnabled(False) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtResultSlantTol.setFont(font) self.txtResultSlantTol.setText(_fromUtf8("")) self.txtResultSlantTol.setObjectName(_fromUtf8("txtResultSlantTol")) self.txtResultSlantTol.setMinimumSize(QtCore.QSize(130, 0)) self.txtResultSlantTol.setMaximumSize(QtCore.QSize(130, 16777215)) self.horizontalLayout_11.addWidget(self.txtResultSlantTol) self.btnMesureSlant = QtGui.QToolButton(self.frame_APV_7) self.btnMesureSlant.setText(_fromUtf8("")) self.btnMesureSlant.setIcon(icon) self.btnMesureSlant.setObjectName(_fromUtf8("btnMesureSlant")) self.horizontalLayout_11.addWidget(self.btnMesureSlant) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_11.addItem(horizontalSpacer) self.horizontalLayout_65.addWidget(self.frame_APV_7) self.vl_gbResult.addWidget(self.frame_TakeOffSurfaceTrack_3) self.vl_gbCalculation.addWidget(self.gbResult) self.verticalLayout.addWidget(self.gbCalculation) self.gbConstruction = QtGui.QGroupBox(Form) self.gbConstruction.setObjectName(_fromUtf8("gbConstruction")) self.vl_gbConstruction = QtGui.QVBoxLayout(self.gbConstruction) self.vl_gbConstruction.setObjectName(_fromUtf8("vl_gbConstruction")) self.cmbBasedOn = ComboBoxPanel(self.gbConstruction, True) self.cmbBasedOn.Caption = "Based On" self.cmbBasedOn.LabelWidth = 150 self.cmbBasedOn.Width = 120 self.vl_gbConstruction.addWidget(self.cmbBasedOn) self.frame_67 = QtGui.QFrame(self.gbConstruction) self.frame_67.setFrameShape(QtGui.QFrame.NoFrame) self.frame_67.setFrameShadow(QtGui.QFrame.Raised) self.frame_67.setObjectName(_fromUtf8("frame_67")) self.horizontalLayout_67 = QtGui.QHBoxLayout(self.frame_67) self.horizontalLayout_67.setSpacing(0) self.horizontalLayout_67.setMargin(0) self.horizontalLayout_67.setObjectName( _fromUtf8("horizontalLayout_67")) self.label_75 = QtGui.QLabel(self.frame_67) self.label_75.setMinimumSize(QtCore.QSize(80, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_75.setFont(font) self.label_75.setObjectName(_fromUtf8("label_75")) self.horizontalLayout_67.addWidget(self.label_75) self.cmbConstructionType = QtGui.QComboBox(self.frame_67) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbConstructionType.sizePolicy().hasHeightForWidth()) self.cmbConstructionType.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbConstructionType.setFont(font) self.cmbConstructionType.setObjectName( _fromUtf8("cmbConstructionType")) self.cmbConstructionType.setMinimumSize(QtCore.QSize(100, 0)) self.cmbConstructionType.setMaximumSize(QtCore.QSize(100, 16777215)) self.horizontalLayout_67.addWidget(self.cmbConstructionType) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_67.addItem(horizontalSpacer) self.vl_gbConstruction.addWidget(self.frame_67) self.pnlRadial = TrackRadialBoxPanel(self.gbConstruction) self.pnlRadial.Caption = "Radial" self.vl_gbConstruction.addWidget(self.pnlRadial) # self.pnlRadial = QtGui.QFrame(self.gbConstruction) # self.pnlRadial.setFrameShape(QtGui.QFrame.NoFrame) # self.pnlRadial.setFrameShadow(QtGui.QFrame.Raised) # self.pnlRadial.setObjectName(_fromUtf8("pnlRadial")) # self.horizontalLayout_69 = QtGui.QHBoxLayout(self.pnlRadial) # self.horizontalLayout_69.setSpacing(0) # self.horizontalLayout_69.setMargin(0) # self.horizontalLayout_69.setObjectName(_fromUtf8("horizontalLayout_69")) # self.label_77 = QtGui.QLabel(self.pnlRadial) # self.label_77.setMinimumSize(QtCore.QSize(150, 0)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_77.setFont(font) # self.label_77.setObjectName(_fromUtf8("label_77")) # self.horizontalLayout_69.addWidget(self.label_77) # self.frame_APV_9 = QtGui.QFrame(self.pnlRadial) # self.frame_APV_9.setFrameShape(QtGui.QFrame.StyledPanel) # self.frame_APV_9.setFrameShadow(QtGui.QFrame.Raised) # self.frame_APV_9.setObjectName(_fromUtf8("frame_APV_9")) # self.horizontalLayout_13 = QtGui.QHBoxLayout(self.frame_APV_9) # self.horizontalLayout_13.setSpacing(0) # self.horizontalLayout_13.setMargin(0) # self.horizontalLayout_13.setObjectName(_fromUtf8("horizontalLayout_13")) # self.txtRadial = QtGui.QLineEdit(self.frame_APV_9) # self.txtRadial.setEnabled(True) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtRadial.setFont(font) # self.txtRadial.setText(_fromUtf8("")) # self.txtRadial.setObjectName(_fromUtf8("txtRadial")) # self.horizontalLayout_13.addWidget(self.txtRadial) # self.btnCaptureRadial = QtGui.QToolButton(self.frame_APV_9) # self.btnCaptureRadial.setText(_fromUtf8("")) # self.btnCaptureRadial.setIcon(icon) # self.btnCaptureRadial.setObjectName(_fromUtf8("btnCaptureRadial")) # self.horizontalLayout_13.addWidget(self.btnCaptureRadial) # self.horizontalLayout_69.addWidget(self.frame_APV_9) # self.vl_gbConstruction.addWidget(self.pnlRadial) self.chbDrawDmeTol = QtGui.QCheckBox(self.gbConstruction) self.chbDrawDmeTol.setChecked(True) self.chbDrawDmeTol.setObjectName(_fromUtf8("chbDrawDmeTol")) self.vl_gbConstruction.addWidget(self.chbDrawDmeTol) self.chbDrawSlantTol = QtGui.QCheckBox(self.gbConstruction) self.chbDrawSlantTol.setChecked(True) self.chbDrawSlantTol.setObjectName(_fromUtf8("chbDrawSlantTol")) self.vl_gbConstruction.addWidget(self.chbDrawSlantTol) self.chbDrawRadial = QtGui.QCheckBox(self.gbConstruction) self.chbDrawRadial.setChecked(True) self.chbDrawRadial.setObjectName(_fromUtf8("chbDrawRadial")) self.vl_gbConstruction.addWidget(self.chbDrawRadial) self.chbWriteText = QtGui.QCheckBox(self.gbConstruction) self.chbWriteText.setChecked(True) self.chbWriteText.setObjectName(_fromUtf8("chbWriteText")) self.vl_gbConstruction.addWidget(self.chbWriteText) self.chbInsertSymbol = QtGui.QCheckBox(self.gbConstruction) self.chbInsertSymbol.setChecked(True) self.chbInsertSymbol.setObjectName(_fromUtf8("chbInsertSymbol")) self.vl_gbConstruction.addWidget(self.chbInsertSymbol) self.verticalLayout.addWidget(self.gbConstruction) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def __init__(self, parent, title, valueList=None): QDialog.__init__(self, parent) self.resize(100, 70) self.setWindowTitle(title) sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth()) self.setSizePolicy(sizePolicy) verticalLayoutDlg = QVBoxLayout(self) verticalLayoutDlg.setObjectName(("verticalLayoutDlg")) self.frameBasic = Frame(self) verticalLayoutDlg.addWidget(self.frameBasic) self.pnlDetail = PositionPanel(self.frameBasic, None, None, "Degree") self.pnlDetail.btnCalculater.setVisible(False) self.pnlDetail.Caption = "Position" self.frameBasic.Add = self.pnlDetail self.pnlType = ComboBoxPanel(self.frameBasic) self.pnlType.Caption = "Type" self.pnlType.LabelWidth = 120 self.frameBasic.Add = self.pnlType self.pnlCenter = PositionPanel(self.frameBasic, None, None, "Degree") self.pnlCenter.btnCalculater.setVisible(False) self.pnlCenter.Caption = "Center Position" self.pnlCenter.hideframe_Altitude() self.frameBasic.Add = self.pnlCenter self.pnlMagVariation = TextBoxPanel(self.frameBasic) self.pnlMagVariation.Caption = "Mag. Variation" self.pnlMagVariation.LabelWidth = 120 self.frameBasic.Add = self.pnlMagVariation self.btnBoxOkCancel = QDialogButtonBox(self) self.btnBoxOkCancel.setObjectName(("btnBoxOkCancel")) self.btnBoxOkCancel.setStandardButtons(QDialogButtonBox.Cancel | QDialogButtonBox.Ok) self.connect(self.btnBoxOkCancel, SIGNAL("accepted()"), self.acceptDlg) self.connect(self.btnBoxOkCancel, SIGNAL("rejected()"), self.reject) verticalLayoutDlg.addWidget(self.btnBoxOkCancel) self.x = "" self.y = "" self.latitude = "" self.longitude = "" self.altitude = "" self.cenLatitude = "" self.cenLongitude = "" self.type = "" self.magVariation = "" self.pnlMagVariation.Visible = False self.pnlCenter.Visible = False self.pnlType.Items = [ DataBaseCoordinateType.ArcPoint, DataBaseCoordinateType.CCA, DataBaseCoordinateType.CenPoint, DataBaseCoordinateType.CWA, DataBaseCoordinateType.FNT, DataBaseCoordinateType.GRC, DataBaseCoordinateType.MidPoint, DataBaseCoordinateType.Point ] if valueList != None: self.pnlDetail.Point3d = Point3D( float(valueList[1]), float(valueList[0]), float(valueList[2]) if (valueList[2] != None and valueList[2] != "") else 0.0) self.pnlType.Value = valueList[3] if title == "Modify Detail Airspace": if valueList[5] != None and valueList[5] != "": self.pnlCenter.Point3d = Point3D(float(valueList[5]), float(valueList[4])) elif title == "Modify Detail Routes": self.pnlMagVariation.Value = valueList[4] if title == "Modify Detail Airspace" or title == "Add Detail Airspace": self.pnlCenter.Visible = True elif title == "Modify Detail Routes" or title == "Add Detail Routes": self.pnlMagVariation.Visible = True
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
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(442, 383) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) Form.setFont(font) self.verticalLayout = QtGui.QVBoxLayout(Form) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gbNavAid1 = QtGui.QGroupBox(Form) self.gbNavAid1.setObjectName(_fromUtf8("gbNavAid1")) self.verticalLayoutNavAid1 = QtGui.QVBoxLayout(self.gbNavAid1) self.verticalLayoutNavAid1.setContentsMargins(-1, 9, -1, -1) self.verticalLayoutNavAid1.setObjectName( _fromUtf8("verticalLayoutNavAid1")) self.cmbNavAidType1 = ComboBoxPanel(self.gbNavAid1) self.cmbNavAidType1.Caption = "Type" self.cmbNavAidType1.LabelWidth = 120 self.verticalLayoutNavAid1.addWidget(self.cmbNavAidType1) self.cmbBasedOn1 = ComboBoxPanel(self.gbNavAid1, True) self.cmbBasedOn1.Caption = "Based On" self.cmbBasedOn1.LabelWidth = 120 self.cmbBasedOn1.Width = 120 self.verticalLayoutNavAid1.addWidget(self.cmbBasedOn1) # self.frameNavAidType = QtGui.QFrame(self.gbNavAid1) # self.frameNavAidType.setFrameShape(QtGui.QFrame.NoFrame) # self.frameNavAidType.setFrameShadow(QtGui.QFrame.Raised) # self.frameNavAidType.setObjectName(_fromUtf8("frameNavAidType")) # self.horizontalLayout_62 = QtGui.QHBoxLayout(self.frameNavAidType) # self.horizontalLayout_62.setSpacing(0) # self.horizontalLayout_62.setMargin(0) # self.horizontalLayout_62.setObjectName(_fromUtf8("horizontalLayout_62")) # self.label_70 = QtGui.QLabel(self.frameNavAidType) # self.label_70.setMinimumSize(QtCore.QSize(250, 0)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_70.setFont(font) # self.label_70.setObjectName(_fromUtf8("label_70")) # self.horizontalLayout_62.addWidget(self.label_70) # self.cmbNavAidType1 = QtGui.QComboBox(self.frameNavAidType) # sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) # sizePolicy.setHorizontalStretch(0) # sizePolicy.setVerticalStretch(0) # sizePolicy.setHeightForWidth(self.cmbNavAidType1.sizePolicy().hasHeightForWidth()) # self.cmbNavAidType1.setSizePolicy(sizePolicy) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.cmbNavAidType1.setFont(font) # self.cmbNavAidType1.setObjectName(_fromUtf8("cmbNavAidType1")) # self.horizontalLayout_62.addWidget(self.cmbNavAidType1) # self.verticalLayoutNavAid1.addWidget(self.frameNavAidType) self.verticalLayout.addWidget(self.gbNavAid1) self.gbNavAid12 = QtGui.QGroupBox(Form) self.gbNavAid12.setObjectName(_fromUtf8("gbNavAid12")) self.verticalLayoutNavAid2 = QtGui.QVBoxLayout(self.gbNavAid12) self.verticalLayoutNavAid2.setContentsMargins(-1, 9, -1, -1) self.verticalLayoutNavAid2.setObjectName( _fromUtf8("verticalLayoutNavAid2")) self.cmbNavAidType2 = ComboBoxPanel(self.gbNavAid12) self.cmbNavAidType2.Caption = "Type" self.cmbNavAidType2.LabelWidth = 120 self.verticalLayoutNavAid2.addWidget(self.cmbNavAidType2) self.cmbBasedOn2 = ComboBoxPanel(self.gbNavAid12, True) self.cmbBasedOn2.Caption = "Based On" self.cmbBasedOn2.LabelWidth = 120 self.cmbBasedOn2.Width = 120 self.verticalLayoutNavAid2.addWidget(self.cmbBasedOn2) # self.frameNavAidType_3 = QtGui.QFrame(self.gbNavAid12) # self.frameNavAidType_3.setFrameShape(QtGui.QFrame.NoFrame) # self.frameNavAidType_3.setFrameShadow(QtGui.QFrame.Raised) # self.frameNavAidType_3.setObjectName(_fromUtf8("frameNavAidType_3")) # self.horizontalLayout_64 = QtGui.QHBoxLayout(self.frameNavAidType_3) # self.horizontalLayout_64.setSpacing(0) # self.horizontalLayout_64.setMargin(0) # self.horizontalLayout_64.setObjectName(_fromUtf8("horizontalLayout_64")) # self.label_72 = QtGui.QLabel(self.frameNavAidType_3) # self.label_72.setMinimumSize(QtCore.QSize(250, 0)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_72.setFont(font) # self.label_72.setObjectName(_fromUtf8("label_72")) # self.horizontalLayout_64.addWidget(self.label_72) # self.cmbNavAidType2 = QtGui.QComboBox(self.frameNavAidType_3) # sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) # sizePolicy.setHorizontalStretch(0) # sizePolicy.setVerticalStretch(0) # sizePolicy.setHeightForWidth(self.cmbNavAidType2.sizePolicy().hasHeightForWidth()) # self.cmbNavAidType2.setSizePolicy(sizePolicy) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.cmbNavAidType2.setFont(font) # self.cmbNavAidType2.setObjectName(_fromUtf8("cmbNavAidType2")) # self.horizontalLayout_64.addWidget(self.cmbNavAidType2) # self.verticalLayoutNavAid2.addWidget(self.frameNavAidType_3) self.verticalLayout.addWidget(self.gbNavAid12) self.gbParameters = QtGui.QGroupBox(Form) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.gbParameters.setFont(font) self.gbParameters.setObjectName(_fromUtf8("gbParameters")) self.vl_gbParameters = QtGui.QVBoxLayout(self.gbParameters) self.vl_gbParameters.setObjectName(_fromUtf8("vl_gbParameters")) self.gbCOP = QtGui.QGroupBox(self.gbParameters) self.gbCOP.setObjectName(_fromUtf8("gbCOP")) self.verticalLayoutCOP = QtGui.QVBoxLayout(self.gbCOP) self.verticalLayoutCOP.setContentsMargins(-1, 9, -1, -1) self.verticalLayoutCOP.setObjectName(_fromUtf8("verticalLayoutCOP")) self.lblNA = QtGui.QLabel(self.gbCOP) self.lblNA.setMinimumSize(QtCore.QSize(215, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblNA.setFont(font) self.lblNA.setText(_fromUtf8("")) self.lblNA.setAlignment(QtCore.Qt.AlignCenter) self.lblNA.setObjectName(_fromUtf8("lblNA")) self.verticalLayoutCOP.addWidget(self.lblNA) self.frameCOP = QtGui.QFrame(self.gbCOP) self.frameCOP.setFrameShape(QtGui.QFrame.NoFrame) self.frameCOP.setFrameShadow(QtGui.QFrame.Raised) self.frameCOP.setObjectName(_fromUtf8("frameCOP")) self.horizontalLayout_65 = QtGui.QHBoxLayout(self.frameCOP) self.horizontalLayout_65.setSpacing(0) self.horizontalLayout_65.setMargin(0) self.horizontalLayout_65.setObjectName( _fromUtf8("horizontalLayout_65")) self.lblLeft = QtGui.QLabel(self.frameCOP) self.lblLeft.setMinimumSize(QtCore.QSize(0, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblLeft.setFont(font) self.lblLeft.setAlignment(QtCore.Qt.AlignCenter) self.lblLeft.setObjectName(_fromUtf8("lblLeft")) self.horizontalLayout_65.addWidget(self.lblLeft) self.scrollBar = QtGui.QScrollBar(self.frameCOP) self.scrollBar.setOrientation(QtCore.Qt.Horizontal) self.scrollBar.setObjectName(_fromUtf8("scrollBar")) self.horizontalLayout_65.addWidget(self.scrollBar) self.lblRight = QtGui.QLabel(self.frameCOP) self.lblRight.setMinimumSize(QtCore.QSize(0, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblRight.setFont(font) self.lblRight.setAlignment(QtCore.Qt.AlignCenter) self.lblRight.setObjectName(_fromUtf8("lblRight")) self.horizontalLayout_65.addWidget(self.lblRight) self.verticalLayoutCOP.addWidget(self.frameCOP) self.vl_gbParameters.addWidget(self.gbCOP) self.txtPrimaryMoc = AltitudeBoxPanel(self.gbParameters) self.txtPrimaryMoc.Caption = "Primary Moc" self.txtPrimaryMoc.Value = Altitude(300) self.txtPrimaryMoc.LabelWidth = 120 self.vl_gbParameters.addWidget(self.txtPrimaryMoc) # self.framePrimaryMoc = QtGui.QFrame(self.gbParameters) # self.framePrimaryMoc.setFrameShape(QtGui.QFrame.NoFrame) # self.framePrimaryMoc.setFrameShadow(QtGui.QFrame.Raised) # self.framePrimaryMoc.setObjectName(_fromUtf8("framePrimaryMoc")) # self.horizontalLayoutPrimaryMoc = QtGui.QHBoxLayout(self.framePrimaryMoc) # self.horizontalLayoutPrimaryMoc.setSpacing(0) # self.horizontalLayoutPrimaryMoc.setMargin(0) # self.horizontalLayoutPrimaryMoc.setObjectName(_fromUtf8("horizontalLayoutPrimaryMoc")) # self.label_82 = QtGui.QLabel(self.framePrimaryMoc) # self.label_82.setMinimumSize(QtCore.QSize(250, 0)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_82.setFont(font) # self.label_82.setObjectName(_fromUtf8("label_82")) # self.horizontalLayoutPrimaryMoc.addWidget(self.label_82) # self.txtPrimaryMoc = QtGui.QLineEdit(self.framePrimaryMoc) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtPrimaryMoc.setFont(font) # self.txtPrimaryMoc.setObjectName(_fromUtf8("txtPrimaryMoc")) # self.horizontalLayoutPrimaryMoc.addWidget(self.txtPrimaryMoc) # self.vl_gbParameters.addWidget(self.framePrimaryMoc) self.txtEnrouteAltitude = AltitudeBoxPanel(self.gbParameters) self.txtEnrouteAltitude.Caption = "Enroute Altitude" self.txtEnrouteAltitude.Value = Altitude(9000, AltitudeUnits.FT) self.txtEnrouteAltitude.LabelWidth = 120 self.vl_gbParameters.addWidget(self.txtEnrouteAltitude) # self.frameEnrouteAltitude = QtGui.QFrame(self.gbParameters) # self.frameEnrouteAltitude.setFrameShape(QtGui.QFrame.NoFrame) # self.frameEnrouteAltitude.setFrameShadow(QtGui.QFrame.Raised) # self.frameEnrouteAltitude.setObjectName(_fromUtf8("frameEnrouteAltitude")) # self.horizontalLayoutEnrouteAltitude = QtGui.QHBoxLayout(self.frameEnrouteAltitude) # self.horizontalLayoutEnrouteAltitude.setSpacing(0) # self.horizontalLayoutEnrouteAltitude.setMargin(0) # self.horizontalLayoutEnrouteAltitude.setObjectName(_fromUtf8("horizontalLayoutEnrouteAltitude")) # self.label_88 = QtGui.QLabel(self.frameEnrouteAltitude) # self.label_88.setMinimumSize(QtCore.QSize(250, 0)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_88.setFont(font) # self.label_88.setObjectName(_fromUtf8("label_88")) # self.horizontalLayoutEnrouteAltitude.addWidget(self.label_88) # self.txtEnrouteAltitude = QtGui.QLineEdit(self.frameEnrouteAltitude) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtEnrouteAltitude.setFont(font) # self.txtEnrouteAltitude.setObjectName(_fromUtf8("txtEnrouteAltitude")) # self.horizontalLayoutEnrouteAltitude.addWidget(self.txtEnrouteAltitude) # self.vl_gbParameters.addWidget(self.frameEnrouteAltitude) self.frameConstruction = QtGui.QFrame(self.gbParameters) self.frameConstruction.setFrameShape(QtGui.QFrame.NoFrame) self.frameConstruction.setFrameShadow(QtGui.QFrame.Raised) self.frameConstruction.setObjectName(_fromUtf8("frameConstruction")) self.horizontalLayout_75 = QtGui.QHBoxLayout(self.frameConstruction) self.horizontalLayout_75.setSpacing(0) self.horizontalLayout_75.setMargin(0) self.horizontalLayout_75.setObjectName( _fromUtf8("horizontalLayout_75")) self.label_83 = QtGui.QLabel(self.frameConstruction) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_83.setFont(font) self.label_83.setObjectName(_fromUtf8("label_83")) self.label_83.setMinimumSize(QtCore.QSize(120, 0)) self.label_83.setMaximumSize(QtCore.QSize(120, 16777215)) self.horizontalLayout_75.addWidget(self.label_83) self.cmbConstruction = QtGui.QComboBox(self.frameConstruction) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbConstruction.sizePolicy().hasHeightForWidth()) self.cmbConstruction.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbConstruction.setFont(font) self.cmbConstruction.setObjectName(_fromUtf8("cmbConstruction")) self.cmbConstruction.setMinimumSize(QtCore.QSize(60, 0)) self.cmbConstruction.setMaximumSize(QtCore.QSize(60, 16777215)) self.horizontalLayout_75.addWidget(self.cmbConstruction) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_75.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameConstruction) self.frameMOCmultipiler = QtGui.QFrame(self.gbParameters) self.frameMOCmultipiler.setFrameShape(QtGui.QFrame.NoFrame) self.frameMOCmultipiler.setFrameShadow(QtGui.QFrame.Raised) self.frameMOCmultipiler.setObjectName(_fromUtf8("frameMOCmultipiler")) self.horizontalLayoutMOCmultipiler = QtGui.QHBoxLayout( self.frameMOCmultipiler) self.horizontalLayoutMOCmultipiler.setSpacing(0) self.horizontalLayoutMOCmultipiler.setMargin(0) self.horizontalLayoutMOCmultipiler.setObjectName( _fromUtf8("horizontalLayoutMOCmultipiler")) self.label_85 = QtGui.QLabel(self.frameMOCmultipiler) self.label_85.setMinimumSize(QtCore.QSize(120, 0)) self.label_85.setMaximumSize(QtCore.QSize(120, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_85.setFont(font) self.label_85.setObjectName(_fromUtf8("label_85")) self.horizontalLayoutMOCmultipiler.addWidget(self.label_85) self.mocSpinBox = QtGui.QSpinBox(self.frameMOCmultipiler) self.mocSpinBox.setMinimum(1) self.mocSpinBox.setProperty("value", 1) self.mocSpinBox.setObjectName(_fromUtf8("mocSpinBox")) self.mocSpinBox.setMinimumSize(QtCore.QSize(60, 0)) self.mocSpinBox.setMaximumSize(QtCore.QSize(60, 16777215)) self.horizontalLayoutMOCmultipiler.addWidget(self.mocSpinBox) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayoutMOCmultipiler.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameMOCmultipiler) self.chbOverhead = QtGui.QCheckBox(self.gbParameters) self.chbOverhead.setMinimumSize(QtCore.QSize(0, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbOverhead.setFont(font) self.chbOverhead.setObjectName(_fromUtf8("chbOverhead")) self.vl_gbParameters.addWidget(self.chbOverhead) self.verticalLayout.addWidget(self.gbParameters) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
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, Dialog, catType): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(300, 300) Dialog.setMinimumSize(QtCore.QSize(0, 0)) self.verticalLayout_11 = QtGui.QVBoxLayout(Dialog) self.verticalLayout_11.setObjectName(_fromUtf8("verticalLayout_11")) self.tabControls = QtGui.QTabWidget(Dialog) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.tabControls.setFont(font) self.tabControls.setAutoFillBackground(False) self.tabControls.setStyleSheet(_fromUtf8("")) self.tabControls.setObjectName(_fromUtf8("tabControls")) self.tab_General = QtGui.QWidget(Dialog) self.tab_General.setObjectName(_fromUtf8("tab_General")) self.horizontalLayout_29 = QtGui.QHBoxLayout(self.tab_General) self.horizontalLayout_29.setMargin(3) self.horizontalLayout_29.setObjectName(_fromUtf8("horizontalLayout_29")) self.tabCtrlGeneral = QtGui.QTabWidget(self.tab_General) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.tabCtrlGeneral.setFont(font) self.tabCtrlGeneral.setAutoFillBackground(False) self.tabCtrlGeneral.setStyleSheet(_fromUtf8("")) self.tabCtrlGeneral.setObjectName(_fromUtf8("tabCtrlGeneral")) self.horizontalLayout_29.addWidget(self.tabCtrlGeneral) self.tabInputData = QtGui.QWidget(self.tabCtrlGeneral) self.tabInputData.setObjectName(_fromUtf8("tabInputData")) self.vLayoutTabInputData = QtGui.QVBoxLayout(self.tabInputData) self.vLayoutTabInputData.setMargin(3) self.vLayoutTabInputData.setObjectName(_fromUtf8("vLayoutTabInputData")) self.tabCtrlGeneral.addTab(self.tabInputData, "Input Data") self.tabOasIls = QtGui.QWidget(self.tabCtrlGeneral) self.tabOasIls.setObjectName(_fromUtf8("tabOasIls")) self.vLayoutTabOasIls = QtGui.QHBoxLayout(self.tabOasIls) self.vLayoutTabOasIls.setMargin(3) self.vLayoutTabOasIls.setObjectName(_fromUtf8("vLayoutTabOasIls")) if catType == "ILS": self.tabCtrlGeneral.addTab(self.tabOasIls, "OAS ILS") else: self.tabCtrlGeneral.addTab(self.tabOasIls, "OAS SBAS") self.groupBox_11 = QtGui.QGroupBox(self.tabInputData) self.groupBox_11.setTitle(_fromUtf8("")) self.groupBox_11.setObjectName(_fromUtf8("groupBox_11")) self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox_11) self.verticalLayout_5.setMargin(5) self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.cmbAerodrome = ComboBoxPanel(self.groupBox_11, True) self.cmbAerodrome.Caption = "Aerodrome" self.cmbAerodrome.LabelWidth = 120 # self.cmbAerodrome.Editable = True self.verticalLayout_5.addWidget(self.cmbAerodrome) self.cmbRwyDir = ComboBoxPanel(self.groupBox_11, True) self.cmbRwyDir.Caption = "Runway Direction" self.cmbRwyDir.LabelWidth = 120 self.cmbRwyDir.Width = 120 self.verticalLayout_5.addWidget(self.cmbRwyDir) self.pnlThr = PositionPanel(self.groupBox_11) self.pnlThr.groupBox.setTitle("Threshold Position") self.pnlThr.btnCalculater.setVisible(False) self.verticalLayout_5.addWidget(self.pnlThr) self.pnlRwyEnd = PositionPanel(self.groupBox_11) self.pnlRwyEnd.groupBox.setTitle("Runway End Position") self.pnlRwyEnd.btnCalculater.setVisible(False) self.pnlRwyEnd.hideframe_Altitude() self.verticalLayout_5.addWidget(self.pnlRwyEnd) self.txtTrack = TrackRadialBoxPanel(self.groupBox_11) self.txtTrack.Caption = "In-Bound Track" self.txtTrack.LabelWidth = 120 self.verticalLayout_5.addWidget(self.txtTrack) self.frame_37 = QtGui.QFrame(self.tabOasIls) self.frame_37.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_37.setFrameShadow(QtGui.QFrame.Raised) self.frame_37.setObjectName(_fromUtf8("frame_37")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.frame_37) self.verticalLayout_2.setMargin(0) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.groupBox_20 = QtGui.QGroupBox(self.frame_37) self.groupBox_20.setObjectName(_fromUtf8("groupBox_20")) self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox_20) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.cmbSelectionMode = ComboBoxPanel(self.groupBox_20) self.cmbSelectionMode.Caption = "Selection Mode" self.verticalLayout_3.addWidget(self.cmbSelectionMode) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.txtOCAH = OCAHPanel(self.groupBox_20) self.txtOCAH.Value = Altitude(2000, AltitudeUnits.FT) self.verticalLayout_3.addWidget(self.txtOCAH) self.txtMOC = AltitudeBoxPanel(self.groupBox_20) self.txtMOC.Caption = "Intermediate Segment MOC" self.txtMOC.CaptionUnits = "m" self.txtMOC.Value = Altitude(150) self.verticalLayout_3.addWidget(self.txtMOC) self.cmbConstructionType = ComboBoxPanel(self.groupBox_20) self.cmbConstructionType.Caption = "Construction Type" self.verticalLayout_3.addWidget(self.cmbConstructionType) self.verticalLayout_2.addWidget(self.groupBox_20) self.groupBox_2 = QtGui.QGroupBox(self.frame_37) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.verticalLayout = QtGui.QVBoxLayout(self.groupBox_2) self.verticalLayout.setSpacing(0) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.frame_5 = QtGui.QFrame(self.groupBox_2) self.frame_5.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_5.setFrameShadow(QtGui.QFrame.Raised) self.frame_5.setObjectName(_fromUtf8("frame_5")) self.horizontalLayout = QtGui.QHBoxLayout(self.frame_5) self.horizontalLayout.setSpacing(0) self.horizontalLayout.setMargin(0) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.frame_6 = QtGui.QFrame(self.frame_5) self.frame_6.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_6.setFrameShadow(QtGui.QFrame.Raised) self.frame_6.setObjectName(_fromUtf8("frame_6")) self.verticalLayout_9 = QtGui.QVBoxLayout(self.frame_6) self.verticalLayout_9.setContentsMargins(-1, -1, -1, 0) self.verticalLayout_9.setObjectName(_fromUtf8("verticalLayout_9")) self.cmbOasCategory = ComboBoxPanel(self.frame_6) self.cmbOasCategory.Caption = "Category" self.cmbOasCategory.LabelWidth = 150 self.verticalLayout_9.addWidget(self.cmbOasCategory) self.cmbGPA = ComboBoxPanel(self.frame_6) self.cmbGPA.CaptionUnits = define._degreeStr self.cmbGPA.Caption = "Glide Path Angle" self.cmbGPA.LabelWidth = 150 self.verticalLayout_9.addWidget(self.cmbGPA) self.cmbMACG = ComboBoxPanel(self.frame_6) self.cmbMACG.CaptionUnits = "%" self.cmbMACG.Caption = "MA Climb Gradient" self.cmbMACG.LabelWidth = 150 self.verticalLayout_9.addWidget(self.cmbMACG) self.txtRDH = NumberBoxPanel(self.frame_6) self.txtRDH.CaptionUnits = "m" self.txtRDH.Caption = "RDH at Threshold" self.txtRDH.LabelWidth = 150 self.txtRDH.Value = 15 self.verticalLayout_9.addWidget(self.txtRDH) self.horizontalLayout.addWidget(self.frame_6) self.frame_7 = QtGui.QFrame(self.frame_5) self.frame_7.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_7.setFrameShadow(QtGui.QFrame.Raised) self.frame_7.setObjectName(_fromUtf8("frame_7")) self.verticalLayout_13 = QtGui.QVBoxLayout(self.frame_7) self.verticalLayout_13.setContentsMargins(9, -1, -1, 0) self.verticalLayout_13.setObjectName(_fromUtf8("verticalLayout_13")) self.txtCW = NumberBoxPanel(self.frame_7) self.txtCW.CaptionUnits = "m" self.txtCW.Caption = "LOC Course Width at THR" self.txtCW.LabelWidth = 175 self.txtCW.Value = 210 self.verticalLayout_13.addWidget(self.txtCW) self.txtDLT = DistanceBoxPanel(self.frame_7, DistanceUnits.M) self.txtDLT.Caption = "LOC to THR Distance" self.txtDLT.LabelWidth = 175 self.txtDLT.Value = Distance(2000) self.verticalLayout_13.addWidget(self.txtDLT) self.txtContourHeight = NumberBoxPanel(self.frame_7) self.txtContourHeight.CaptionUnits = "m" self.txtContourHeight.Caption = "OCA Contour Height AGL" self.txtContourHeight.LabelWidth = 175 self.txtContourHeight.Value = 300 self.verticalLayout_13.addWidget(self.txtContourHeight) self.cmbMAMethod = ComboBoxPanel(self.frame_7) self.cmbMAMethod.Caption = "MA Obstacles Evaluation" self.cmbMAMethod.LabelWidth = 175 self.verticalLayout_13.addWidget(self.cmbMAMethod) self.horizontalLayout.addWidget(self.frame_7) self.verticalLayout.addWidget(self.frame_5) self.frame_4 = QtGui.QFrame(self.groupBox_2) self.frame_4.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_4.setFrameShadow(QtGui.QFrame.Raised) self.frame_4.setObjectName(_fromUtf8("frame_4")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame_4) self.horizontalLayout_2.setSpacing(0) self.horizontalLayout_2.setMargin(0) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.groupBox_3 = QtGui.QGroupBox(self.frame_4) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.horizontalLayout_6 = QtGui.QHBoxLayout(self.groupBox_3) self.horizontalLayout_6.setSpacing(0) self.horizontalLayout_6.setMargin(0) self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) self.frame_8 = QtGui.QFrame(self.groupBox_3) self.frame_8.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_8.setFrameShadow(QtGui.QFrame.Raised) self.frame_8.setObjectName(_fromUtf8("frame_8")) self.verticalLayout_14 = QtGui.QVBoxLayout(self.frame_8) self.verticalLayout_14.setContentsMargins(6, 0, -1, -1) self.verticalLayout_14.setObjectName(_fromUtf8("verticalLayout_14")) self.cmbAcCategory = ComboBoxPanel(self.frame_8) self.cmbAcCategory.Caption = "Category" self.cmbAcCategory.LabelWidth = 150 self.verticalLayout_14.addWidget(self.cmbAcCategory) self.txtHL = NumberBoxPanel(self.frame_8) self.txtHL.CaptionUnits = "m" self.txtHL.Caption = "Height Loss" self.txtHL.LabelWidth = 150 self.txtHL.Value = 40 self.verticalLayout_14.addWidget(self.txtHL) self.horizontalLayout_6.addWidget(self.frame_8) self.frame_9 = QtGui.QFrame(self.groupBox_3) self.frame_9.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_9.setFrameShadow(QtGui.QFrame.Raised) self.frame_9.setObjectName(_fromUtf8("frame_9")) self.verticalLayout_15 = QtGui.QVBoxLayout(self.frame_9) self.verticalLayout_15.setContentsMargins(3, 0, -1, -1) self.verticalLayout_15.setObjectName(_fromUtf8("verticalLayout_15")) self.txtWSS = NumberBoxPanel(self.frame_9, "0.0") self.txtWSS.CaptionUnits = "m" self.txtWSS.Caption = "Wing Semi Span" self.txtWSS.LabelWidth = 175 self.txtWSS.Value = 30 self.verticalLayout_15.addWidget(self.txtWSS) self.txtWH = NumberBoxPanel(self.frame_9, "0") self.txtWH.CaptionUnits = "m" self.txtWH.Caption = "Wheel Height" self.txtWH.LabelWidth = 175 self.txtWH.Value = 6 self.verticalLayout_15.addWidget(self.txtWH) self.horizontalLayout_6.addWidget(self.frame_9) self.horizontalLayout_2.addWidget(self.groupBox_3) self.verticalLayout.addWidget(self.frame_4) self.lblConstants = QtGui.QLabel(self.groupBox_2) font = QtGui.QFont() font.setUnderline(True) self.lblConstants.setFont(font) self.lblConstants.setLayoutDirection(QtCore.Qt.LeftToRight) self.lblConstants.setStyleSheet(_fromUtf8("color: rgb(0, 0, 255);")) self.lblConstants.setAlignment(QtCore.Qt.AlignCenter) self.lblConstants.setObjectName(_fromUtf8("lblConstants")) self.verticalLayout.addWidget(self.lblConstants) self.verticalLayout_2.addWidget(self.groupBox_2) self.vLayoutTabOasIls.addWidget(self.frame_37) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_5.addItem(spacerItem) self.vLayoutTabInputData.addWidget(self.groupBox_11) self.frame_38 = QtGui.QFrame(self.tab_General) self.frame_38.setMaximumSize(QtCore.QSize(100, 16777215)) self.frame_38.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_38.setFrameShadow(QtGui.QFrame.Raised) self.frame_38.setObjectName(_fromUtf8("frame_38")) self.verticalLayout_7 = QtGui.QVBoxLayout(self.frame_38) self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7")) self.btnOpenData = QtGui.QPushButton(self.frame_38) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnOpenData.setFont(font) self.btnOpenData.setObjectName(_fromUtf8("btnOpenData")) self.verticalLayout_7.addWidget(self.btnOpenData) self.btnSaveData = QtGui.QPushButton(self.frame_38) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnSaveData.setFont(font) self.btnSaveData.setObjectName(_fromUtf8("btnSaveData")) self.verticalLayout_7.addWidget(self.btnSaveData) self.btnConstruct = QtGui.QPushButton(self.frame_38) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnConstruct.setFont(font) self.btnConstruct.setObjectName(_fromUtf8("btnConstruct")) self.verticalLayout_7.addWidget(self.btnConstruct) self.btnEvaluate = QtGui.QPushButton(self.frame_38) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnEvaluate.setFont(font) self.btnEvaluate.setObjectName(_fromUtf8("btnEvaluate")) self.verticalLayout_7.addWidget(self.btnEvaluate) self.btnUpdateQA = QtGui.QPushButton(self.frame_38) self.btnUpdateQA.setEnabled(False) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnUpdateQA.setFont(font) self.btnUpdateQA.setObjectName(_fromUtf8("btnUpdateQA")) self.verticalLayout_7.addWidget(self.btnUpdateQA) self.btnClose = QtGui.QPushButton(self.frame_38) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnClose.setFont(font) self.btnClose.setObjectName(_fromUtf8("btnClose")) self.verticalLayout_7.addWidget(self.btnClose) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_7.addItem(spacerItem1) self.horizontalLayout_29.addWidget(self.frame_38) self.tabControls.addTab(self.tab_General, _fromUtf8("")) self.tab_Results = QtGui.QWidget(Dialog) self.tab_Results.setObjectName(_fromUtf8("tab_Results")) self.horizontalLayout_3 = QtGui.QHBoxLayout(self.tab_Results) self.horizontalLayout_3.setSpacing(3) self.horizontalLayout_3.setMargin(3) self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.groupBox = QtGui.QGroupBox(self.tab_Results) self.groupBox.setTitle(_fromUtf8("")) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.verticalLayout_6 = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout_6.setMargin(3) self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6")) self.groupBox_32 = QtGui.QGroupBox(self.groupBox) self.groupBox_32.setObjectName(_fromUtf8("groupBox_32")) self.verticalLayout_16 = QtGui.QVBoxLayout(self.groupBox_32) self.verticalLayout_16.setContentsMargins(-1, 0, -1, 3) self.verticalLayout_16.setObjectName(_fromUtf8("verticalLayout_16")) self.frame_2 = QtGui.QFrame(self.groupBox_32) self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_2.setFrameShadow(QtGui.QFrame.Raised) self.frame_2.setObjectName(_fromUtf8("frame_2")) self.horizontalLayout_4 = QtGui.QHBoxLayout(self.frame_2) self.horizontalLayout_4.setSpacing(0) self.horizontalLayout_4.setMargin(0) self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.frame_3 = QtGui.QFrame(self.frame_2) self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_3.setFrameShadow(QtGui.QFrame.Raised) self.frame_3.setObjectName(_fromUtf8("frame_3")) self.verticalLayout_19 = QtGui.QVBoxLayout(self.frame_3) self.verticalLayout_19.setMargin(0) self.verticalLayout_19.setObjectName(_fromUtf8("verticalLayout_19")) self.frame_107 = QtGui.QFrame(self.frame_3) self.frame_107.setFrameShape(QtGui.QFrame.NoFrame) self.frame_107.setFrameShadow(QtGui.QFrame.Raised) self.frame_107.setObjectName(_fromUtf8("frame_107")) self.horizontalLayout_94 = QtGui.QHBoxLayout(self.frame_107) self.horizontalLayout_94.setSpacing(0) self.horizontalLayout_94.setMargin(0) self.horizontalLayout_94.setObjectName(_fromUtf8("horizontalLayout_94")) self.label_115 = QtGui.QLabel(self.frame_107) self.label_115.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_115.setFont(font) self.label_115.setObjectName(_fromUtf8("label_115")) self.horizontalLayout_94.addWidget(self.label_115) self.txtID = QtGui.QLineEdit(self.frame_107) self.txtID.setEnabled(False) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtID.setFont(font) self.txtID.setText(_fromUtf8("")) self.txtID.setObjectName(_fromUtf8("txtID")) self.horizontalLayout_94.addWidget(self.txtID) self.verticalLayout_19.addWidget(self.frame_107) self.frame_109 = QtGui.QFrame(self.frame_3) self.frame_109.setFrameShape(QtGui.QFrame.NoFrame) self.frame_109.setFrameShadow(QtGui.QFrame.Raised) self.frame_109.setObjectName(_fromUtf8("frame_109")) self.horizontalLayout_96 = QtGui.QHBoxLayout(self.frame_109) self.horizontalLayout_96.setSpacing(0) self.horizontalLayout_96.setMargin(0) self.horizontalLayout_96.setObjectName(_fromUtf8("horizontalLayout_96")) self.label_119 = QtGui.QLabel(self.frame_109) self.label_119.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_119.setFont(font) self.label_119.setObjectName(_fromUtf8("label_119")) self.horizontalLayout_96.addWidget(self.label_119) self.txtX = QtGui.QLineEdit(self.frame_109) self.txtX.setEnabled(False) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtX.setFont(font) self.txtX.setObjectName(_fromUtf8("txtX")) self.horizontalLayout_96.addWidget(self.txtX) self.verticalLayout_19.addWidget(self.frame_109) self.frame_110 = QtGui.QFrame(self.frame_3) self.frame_110.setFrameShape(QtGui.QFrame.NoFrame) self.frame_110.setFrameShadow(QtGui.QFrame.Raised) self.frame_110.setObjectName(_fromUtf8("frame_110")) self.horizontalLayout_97 = QtGui.QHBoxLayout(self.frame_110) self.horizontalLayout_97.setSpacing(0) self.horizontalLayout_97.setMargin(0) self.horizontalLayout_97.setObjectName(_fromUtf8("horizontalLayout_97")) self.label_120 = QtGui.QLabel(self.frame_110) self.label_120.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_120.setFont(font) self.label_120.setObjectName(_fromUtf8("label_120")) self.horizontalLayout_97.addWidget(self.label_120) self.txtY = QtGui.QLineEdit(self.frame_110) self.txtY.setEnabled(False) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtY.setFont(font) self.txtY.setObjectName(_fromUtf8("txtY")) self.horizontalLayout_97.addWidget(self.txtY) self.verticalLayout_19.addWidget(self.frame_110) self.horizontalLayout_4.addWidget(self.frame_3) self.toolButton = QtGui.QToolButton(self.frame_2) self.toolButton.setMaximumSize(QtCore.QSize(25, 250)) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/mActionZoomFullExtent.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.toolButton.setIcon(icon2) self.toolButton.setObjectName(_fromUtf8("toolButton")) self.horizontalLayout_4.addWidget(self.toolButton) self.verticalLayout_16.addWidget(self.frame_2) self.frame_108 = QtGui.QFrame(self.groupBox_32) self.frame_108.setFrameShape(QtGui.QFrame.NoFrame) self.frame_108.setFrameShadow(QtGui.QFrame.Raised) self.frame_108.setObjectName(_fromUtf8("frame_108")) self.horizontalLayout_95 = QtGui.QHBoxLayout(self.frame_108) self.horizontalLayout_95.setSpacing(0) self.horizontalLayout_95.setMargin(0) self.horizontalLayout_95.setObjectName(_fromUtf8("horizontalLayout_95")) self.label_116 = QtGui.QLabel(self.frame_108) self.label_116.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_116.setFont(font) self.label_116.setObjectName(_fromUtf8("label_116")) self.horizontalLayout_95.addWidget(self.label_116) self.txtAltitude = QtGui.QLineEdit(self.frame_108) self.txtAltitude.setEnabled(False) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtAltitude.setFont(font) self.txtAltitude.setObjectName(_fromUtf8("txtAltitude")) self.horizontalLayout_95.addWidget(self.txtAltitude) self.label_117 = QtGui.QLabel(self.frame_108) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_117.setFont(font) self.label_117.setObjectName(_fromUtf8("label_117")) self.horizontalLayout_95.addWidget(self.label_117) self.txtAltitudeM = QtGui.QLineEdit(self.frame_108) self.txtAltitudeM.setEnabled(False) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtAltitudeM.setFont(font) self.txtAltitudeM.setObjectName(_fromUtf8("txtAltitudeM")) self.horizontalLayout_95.addWidget(self.txtAltitudeM) self.label_118 = QtGui.QLabel(self.frame_108) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_118.setFont(font) self.label_118.setObjectName(_fromUtf8("label_118")) self.horizontalLayout_95.addWidget(self.label_118) self.verticalLayout_16.addWidget(self.frame_108) self.frame_111 = QtGui.QFrame(self.groupBox_32) self.frame_111.setFrameShape(QtGui.QFrame.NoFrame) self.frame_111.setFrameShadow(QtGui.QFrame.Raised) self.frame_111.setObjectName(_fromUtf8("frame_111")) self.horizontalLayout_98 = QtGui.QHBoxLayout(self.frame_111) self.horizontalLayout_98.setSpacing(0) self.horizontalLayout_98.setMargin(0) self.horizontalLayout_98.setObjectName(_fromUtf8("horizontalLayout_98")) self.label_121 = QtGui.QLabel(self.frame_111) self.label_121.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_121.setFont(font) self.label_121.setObjectName(_fromUtf8("label_121")) self.horizontalLayout_98.addWidget(self.label_121) self.txtSurface = QtGui.QLineEdit(self.frame_111) self.txtSurface.setEnabled(False) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtSurface.setFont(font) self.txtSurface.setObjectName(_fromUtf8("txtSurface")) self.horizontalLayout_98.addWidget(self.txtSurface) self.verticalLayout_16.addWidget(self.frame_111) self.verticalLayout_6.addWidget(self.groupBox_32) self.groupBox_33 = QtGui.QGroupBox(self.groupBox) self.groupBox_33.setObjectName(_fromUtf8("groupBox_33")) self.verticalLayout_17 = QtGui.QVBoxLayout(self.groupBox_33) self.verticalLayout_17.setSpacing(0) self.verticalLayout_17.setContentsMargins(-1, 0, -1, 3) self.verticalLayout_17.setObjectName(_fromUtf8("verticalLayout_17")) self.frame_112 = QtGui.QFrame(self.groupBox_33) self.frame_112.setFrameShape(QtGui.QFrame.NoFrame) self.frame_112.setFrameShadow(QtGui.QFrame.Raised) self.frame_112.setObjectName(_fromUtf8("frame_112")) self.horizontalLayout_99 = QtGui.QHBoxLayout(self.frame_112) self.horizontalLayout_99.setSpacing(0) self.horizontalLayout_99.setMargin(0) self.horizontalLayout_99.setObjectName(_fromUtf8("horizontalLayout_99")) self.label_122 = QtGui.QLabel(self.frame_112) self.label_122.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_122.setFont(font) self.label_122.setObjectName(_fromUtf8("label_122")) self.horizontalLayout_99.addWidget(self.label_122) self.cmbUnits = QtGui.QComboBox(self.frame_112) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmbUnits.sizePolicy().hasHeightForWidth()) self.cmbUnits.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) self.cmbUnits.setFont(font) self.cmbUnits.setEditable(False) self.cmbUnits.setObjectName(_fromUtf8("cmbUnits")) self.horizontalLayout_99.addWidget(self.cmbUnits) self.verticalLayout_17.addWidget(self.frame_112) self.frame_113 = QtGui.QFrame(self.groupBox_33) self.frame_113.setFrameShape(QtGui.QFrame.NoFrame) self.frame_113.setFrameShadow(QtGui.QFrame.Raised) self.frame_113.setObjectName(_fromUtf8("frame_113")) self.horizontalLayout_100 = QtGui.QHBoxLayout(self.frame_113) self.horizontalLayout_100.setSpacing(0) self.horizontalLayout_100.setMargin(0) self.horizontalLayout_100.setObjectName(_fromUtf8("horizontalLayout_100")) self.txtOCH = QtGui.QLineEdit(self.frame_113) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtOCH.setFont(font) self.txtOCH.setObjectName(_fromUtf8("txtOCH")) self.horizontalLayout_100.addWidget(self.txtOCH) self.txtOCHResults = QtGui.QLineEdit(self.frame_113) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtOCHResults.setFont(font) self.txtOCHResults.setObjectName(_fromUtf8("txtOCHResults")) self.horizontalLayout_100.addWidget(self.txtOCHResults) self.verticalLayout_17.addWidget(self.frame_113) self.frame_114 = QtGui.QFrame(self.groupBox_33) self.frame_114.setFrameShape(QtGui.QFrame.NoFrame) self.frame_114.setFrameShadow(QtGui.QFrame.Raised) self.frame_114.setObjectName(_fromUtf8("frame_114")) self.horizontalLayout_101 = QtGui.QHBoxLayout(self.frame_114) self.horizontalLayout_101.setSpacing(0) self.horizontalLayout_101.setMargin(0) self.horizontalLayout_101.setObjectName(_fromUtf8("horizontalLayout_101")) self.txtOCA = QtGui.QLineEdit(self.frame_114) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtOCA.setFont(font) self.txtOCA.setObjectName(_fromUtf8("txtOCA")) self.horizontalLayout_101.addWidget(self.txtOCA) self.txtOCAResults = QtGui.QLineEdit(self.frame_114) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtOCAResults.setFont(font) self.txtOCAResults.setObjectName(_fromUtf8("txtOCAResults")) self.horizontalLayout_101.addWidget(self.txtOCAResults) self.verticalLayout_17.addWidget(self.frame_114) self.frame_116 = QtGui.QFrame(self.groupBox_33) self.frame_116.setFrameShape(QtGui.QFrame.NoFrame) self.frame_116.setFrameShadow(QtGui.QFrame.Raised) self.frame_116.setObjectName(_fromUtf8("frame_116")) self.horizontalLayout_103 = QtGui.QHBoxLayout(self.frame_116) self.horizontalLayout_103.setSpacing(0) self.horizontalLayout_103.setMargin(0) self.horizontalLayout_103.setObjectName(_fromUtf8("horizontalLayout_103")) self.txtOCA_2 = QtGui.QLineEdit(self.frame_116) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtOCA_2.setFont(font) self.txtOCA_2.setObjectName(_fromUtf8("txtOCA_2")) self.horizontalLayout_103.addWidget(self.txtOCA_2) self.txtResultSocText = QtGui.QLineEdit(self.frame_116) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtResultSocText.setFont(font) self.txtResultSocText.setObjectName(_fromUtf8("txtResultSocText")) self.horizontalLayout_103.addWidget(self.txtResultSocText) self.verticalLayout_17.addWidget(self.frame_116) self.verticalLayout_6.addWidget(self.groupBox_33) self.groupBox_34 = QtGui.QGroupBox(self.groupBox) self.groupBox_34.setObjectName(_fromUtf8("groupBox_34")) self.verticalLayout_18 = QtGui.QVBoxLayout(self.groupBox_34) self.verticalLayout_18.setContentsMargins(-1, 0, -1, 3) self.verticalLayout_18.setObjectName(_fromUtf8("verticalLayout_18")) self.frame_115 = QtGui.QFrame(self.groupBox_34) self.frame_115.setFrameShape(QtGui.QFrame.NoFrame) self.frame_115.setFrameShadow(QtGui.QFrame.Raised) self.frame_115.setObjectName(_fromUtf8("frame_115")) self.horizontalLayout_102 = QtGui.QHBoxLayout(self.frame_115) self.horizontalLayout_102.setSpacing(0) self.horizontalLayout_102.setMargin(0) self.horizontalLayout_102.setObjectName(_fromUtf8("horizontalLayout_102")) self.label_123 = QtGui.QLabel(self.frame_115) self.label_123.setMinimumSize(QtCore.QSize(200, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_123.setFont(font) self.label_123.setObjectName(_fromUtf8("label_123")) self.horizontalLayout_102.addWidget(self.label_123) self.cmbSurface = QtGui.QComboBox(self.frame_115) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmbSurface.sizePolicy().hasHeightForWidth()) self.cmbSurface.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.cmbSurface.setFont(font) self.cmbSurface.setObjectName(_fromUtf8("cmbSurface")) self.horizontalLayout_102.addWidget(self.cmbSurface) self.verticalLayout_18.addWidget(self.frame_115) self.tblObstacles = TableViewObstacle(self.groupBox_34) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) self.tblObstacles.setFont(font) self.tblObstacles.setObjectName(_fromUtf8("tblObstacles")) self.verticalLayout_18.addWidget(self.tblObstacles) self.verticalLayout_6.addWidget(self.groupBox_34) self.horizontalLayout_3.addWidget(self.groupBox) self.frame = QtGui.QFrame(self.tab_Results) # self.frame.setMinimumSize(QtCore.QSize(105, 16777215)) self.frame.setFrameShape(QtGui.QFrame.StyledPanel) self.frame.setFrameShadow(QtGui.QFrame.Raised) self.frame.setObjectName(_fromUtf8("frame")) self.verticalLayout_4 = QtGui.QVBoxLayout(self.frame) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.btnMarkSoc = QtGui.QPushButton(self.frame) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnMarkSoc.setFont(font) self.btnMarkSoc.setObjectName(_fromUtf8("btnMarkSoc")) self.verticalLayout_4.addWidget(self.btnMarkSoc) self.btnLocate = QtGui.QPushButton(self.frame) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnLocate.setFont(font) self.btnLocate.setObjectName(_fromUtf8("btnLocate")) self.verticalLayout_4.addWidget(self.btnLocate) self.btnUpdateQA_2 = QtGui.QPushButton(self.frame) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnUpdateQA_2.setFont(font) self.btnUpdateQA_2.setObjectName(_fromUtf8("btnUpdateQA_2")) self.verticalLayout_4.addWidget(self.btnUpdateQA_2) self.btnClose_2 = QtGui.QPushButton(self.frame) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnClose_2.setFont(font) self.btnClose_2.setObjectName(_fromUtf8("btnClose_2")) self.verticalLayout_4.addWidget(self.btnClose_2) spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_4.addItem(spacerItem2) self.horizontalLayout_3.addWidget(self.frame) self.tabControls.addTab(self.tab_Results, _fromUtf8("")) self.verticalLayout_11.addWidget(self.tabControls) self.retranslateUi(Dialog) self.tabControls.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(Dialog) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/openData.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnOpenData.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/saveData.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnSaveData.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/construct.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnConstruct.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/evaluate.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnEvaluate.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/close.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnClose.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/locate.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnLocate.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/pdtCheck.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) # self.btnPDCheck.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/close.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnClose_2.setIcon(icon) self.iconExport = QtGui.QIcon() self.iconExport.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/exportResult.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) # self.btnExportResult.setIcon(icon) self.iconMark = QtGui.QIcon() self.iconMark.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/btnImage/locate0.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnMarkSoc.setIcon(self.iconMark) self.btnClose.setToolTip(_fromUtf8("Close")) self.btnClose_2.setToolTip(_fromUtf8("Close")) self.btnConstruct.setToolTip(_fromUtf8("Construct")) self.btnEvaluate.setToolTip(_fromUtf8("Evaluate")) self.btnLocate.setToolTip(_fromUtf8("Locate")) # self.btnExportResult.setToolTip(_fromUtf8("Export Result")) self.btnOpenData.setToolTip(_fromUtf8("Open Data")) self.btnSaveData.setToolTip(_fromUtf8("Save Data")) self.btnMarkSoc.setToolTip(_fromUtf8("Mark SOC")) self.btnClose.setIconSize(QtCore.QSize(32,32)) self.btnClose_2.setIconSize(QtCore.QSize(32,32)) self.btnConstruct.setIconSize(QtCore.QSize(32,32)) self.btnEvaluate.setIconSize(QtCore.QSize(32,32)) self.btnLocate.setIconSize(QtCore.QSize(32,32)) self.btnMarkSoc.setIconSize(QtCore.QSize(32,32)) self.btnOpenData.setIconSize(QtCore.QSize(32,32)) self.btnSaveData.setIconSize(QtCore.QSize(32,32))
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
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) self.vlForm = QtGui.QVBoxLayout(Form) self.vlForm.setObjectName(("vlForm")) ######### ------- InPut Group -------------########## self.gbInput = GroupBox(Form) self.gbInput.Title = "Input Data" self.vlForm.addWidget(self.gbInput) self.pnlOperationType = ComboBoxPanel(self.gbInput) self.pnlOperationType.Caption = "Operation Type" self.gbInput.Add = self.pnlOperationType self.pnlSbasProvider = ComboBoxPanel(self.gbInput) self.pnlSbasProvider.Caption = "SBAS Provider" self.gbInput.Add = self.pnlSbasProvider self.pnlAirportId = TextBoxPanel(self.gbInput) self.pnlAirportId.Caption = "Airport Identifier" self.pnlAirportId.Value = "ESSP" self.gbInput.Add = self.pnlAirportId self.pnlRunway = Frame(self.gbInput, "HL") self.pnlRunway.Margin = 0 self.gbInput.Add = self.pnlRunway self.txtRunwayDesignator = NumberBoxPanel(self.pnlRunway, "0") self.txtRunwayDesignator.Caption = "Runway" self.txtRunwayDesignator.Value = 19 self.pnlRunway.Add = self.txtRunwayDesignator self.cmbRunwayLetter = ComboBoxPanel(self.pnlRunway) self.cmbRunwayLetter.Caption = "" self.pnlRunway.Add = self.cmbRunwayLetter self.pnlApproachPerformanceDesignator = ComboBoxPanel(self.gbInput) self.pnlApproachPerformanceDesignator.Caption = "Approach Performance Designator" self.gbInput.Add = self.pnlApproachPerformanceDesignator self.pnlRouteIndicator = ComboBoxPanel(self.gbInput) self.pnlRouteIndicator.Caption = "Route Indicator" self.gbInput.Add = self.pnlRouteIndicator self.pnlReferencePathDataSelector = NumberBoxPanel(self.gbInput, "0") self.pnlReferencePathDataSelector.Caption = "Reference Path Data Selector" self.pnlReferencePathDataSelector.Value = 1 self.gbInput.Add = self.pnlReferencePathDataSelector self.pnlReferencePathId = TextBoxPanel(self.pnlRunway) self.pnlReferencePathId.Caption = "Reference Path Identifier" self.pnlReferencePathId.Value = "4klk" self.gbInput.Add = self.pnlReferencePathId self.gbLtpFtp = GroupBox(self.gbInput) self.gbLtpFtp.Caption = "LTP/FTP Position" self.gbInput.Add = self.gbLtpFtp self.pnlLtpFtp = PositionPanel(self.gbLtpFtp, None, None, "Degree") self.pnlLtpFtp.btnCalculater.hide() self.pnlLtpFtp.hideframe_Altitude() self.pnlLtpFtp.degreeFormat = "ddmmss.ssssH" self.gbLtpFtp.Add = self.pnlLtpFtp self.pnlLtpFtpEllipsoidalHeight = NumberBoxPanel(self.gbLtpFtp, "0.0") self.pnlLtpFtpEllipsoidalHeight.CaptionUnits = "m" self.pnlLtpFtpEllipsoidalHeight.Caption = "LTP/FTP Ellipsoidal Height" self.pnlLtpFtpEllipsoidalHeight.Value = 343 self.gbLtpFtp.Add = self.pnlLtpFtpEllipsoidalHeight self.gbFpap = GroupBox(self.gbInput) self.gbFpap.Caption = "FPAP Position" self.gbInput.Add = self.gbFpap self.pnlFpap = PositionPanel(self.gbFpap, None, None, "Degree") self.pnlFpap.btnCalculater.hide() self.pnlFpap.hideframe_Altitude() self.pnlFpap.degreeFormat = "ddmmss.ssssH" self.gbFpap.Add = self.pnlFpap self.pnlApproachTCH = Frame(self.gbFpap, "HL") self.pnlApproachTCH.Margin = 0 self.gbFpap.Add = self.pnlApproachTCH self.txtApproachTCH = NumberBoxPanel(self.pnlApproachTCH, "0.0") self.txtApproachTCH.Caption = "Threshold Crossing Height" self.txtApproachTCH.Value = 50 self.pnlApproachTCH.Add = self.txtApproachTCH self.cmbApproachTCHunits = ComboBoxPanel(self.pnlApproachTCH) self.cmbApproachTCHunits.Width = 40 self.cmbApproachTCHunits.Caption = "" self.pnlApproachTCH.Add = self.cmbApproachTCHunits self.pnlGPA = NumberBoxPanel(self.gbInput, "0.00") self.pnlGPA.CaptionUnits = "degree" self.pnlGPA.Caption = "GlidePath Angle" self.pnlGPA.Value = 3 self.gbInput.Add = self.pnlGPA self.pnlCourseWidth = NumberBoxPanel(self.gbInput, "0.00") self.pnlCourseWidth.CaptionUnits = "m" self.pnlCourseWidth.Caption = "Course Width" self.pnlCourseWidth.Value = 80 self.gbInput.Add = self.pnlCourseWidth self.pnlLengthOffset = NumberBoxPanel(self.gbInput, "0") self.pnlLengthOffset.CaptionUnits = "m" self.pnlLengthOffset.Caption = "Length Offset" self.pnlLengthOffset.Value = 0 self.gbInput.Add = self.pnlLengthOffset self.pnlHAL = NumberBoxPanel(self.gbInput, "0.0") self.pnlHAL.CaptionUnits = "m" self.pnlHAL.Caption = "HAL" self.pnlHAL.Value = 40 self.gbInput.Add = self.pnlHAL self.pnlVAL = NumberBoxPanel(self.gbInput, "0.0") self.pnlVAL.CaptionUnits = "m" self.pnlVAL.Caption = "VAL" self.pnlVAL.Value = 40 self.gbInput.Add = self.pnlVAL ######### ------- OutPut Group -------------########## self.gbOutput = GroupBox(Form) self.gbOutput.Caption = "Output Data" self.vlForm.addWidget(self.gbOutput) self.txtDataBlock = TextBoxPanel(self.gbOutput, True) self.txtDataBlock.Caption = "Data Block" self.txtDataBlock.Enabled = False self.gbOutput.Add = self.txtDataBlock self.pnlCRC = TextBoxPanel(self.gbOutput) self.pnlCRC.Caption = "CRC Value" self.pnlCRC.Enabled = False self.gbOutput.Add = self.pnlCRC ######### ------- Additional Data Group -------------########## self.gbAdditionalData = GroupBox(Form) self.gbAdditionalData.Caption = "Required Additional Data" self.vlForm.addWidget(self.gbAdditionalData) self.pnlIcaoCode = TextBoxPanel(self.gbAdditionalData) self.pnlIcaoCode.Caption = "ICAO Code" self.gbAdditionalData.Add = self.pnlIcaoCode self.pnlLtpFtpOrthoHeight = NumberBoxPanel(self.gbAdditionalData, "0.0") self.pnlLtpFtpOrthoHeight.CaptionUnits = "m" self.pnlLtpFtpOrthoHeight.Caption = "LTP/FTP Orthometic Height" self.gbAdditionalData.Add = self.pnlLtpFtpOrthoHeight self.pnlFpapOrthoHeight = NumberBoxPanel(self.gbAdditionalData, "0.0") self.pnlFpapOrthoHeight.CaptionUnits = "m" self.pnlFpapOrthoHeight.Caption = "FPAP Orthometic Height" self.gbAdditionalData.Add = self.pnlFpapOrthoHeight
def __init__(self, parent): QDialog.__init__(self, parent) self.resize(100, 70) self.setWindowTitle("Navigational Aid") 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) self.gbAll.Caption = "Properties" verticalLayoutDlg.addWidget(self.gbAll) self.pnlType = ComboBoxPanel(self.gbAll) self.pnlType.Caption = "Type" self.pnlType.LabelWidth = 140 self.gbAll.Add = self.pnlType self.pnlName = TextBoxPanel(self.gbAll) self.pnlName.Caption = "Name" self.pnlName.LabelWidth = 140 self.pnlType.Items = NavigationalAidType.Items self.gbAll.Add = self.pnlName self.pnlSlope = AngleGradientBoxPanel(self.gbAll) self.pnlSlope.CaptionUnits = AngleGradientSlopeUnits.Degrees self.pnlSlope.Caption = "Slope" self.pnlSlope.LabelWidth = 140 self.gbAll.Add = self.pnlSlope self.pnlStartingHeight = AltitudeBoxPanel(self.gbAll) self.pnlStartingHeight.Caption = "Starting Height" self.pnlStartingHeight.CaptionUnits = "m" self.pnlStartingHeight.LabelWidth = 140 self.gbAll.Add = self.pnlStartingHeight self.pnlFinishingDistance = DistanceBoxPanel(self.gbAll, DistanceUnits.M) self.pnlFinishingDistance.Caption = "Finishing Distance" self.pnlFinishingDistance.LabelWidth = 140 self.gbAll.Add = self.pnlFinishingDistance self.pnlAlfa = AngleGradientBoxPanel(self.gbAll) self.pnlAlfa.CaptionUnits = AngleGradientSlopeUnits.Degrees self.pnlAlfa.Caption = "Alpha [" + unicode("α", "utf-8") + " - Cone]" self.pnlAlfa.LabelWidth = 140 self.gbAll.Add = self.pnlAlfa self.pnlRadiusCone = DistanceBoxPanel(self.gbAll, DistanceUnits.M) self.pnlRadiusCone.Caption = "Radius [R - Cone]" self.pnlRadiusCone.LabelWidth = 140 self.gbAll.Add = self.pnlRadiusCone self.pnlRadiusCylinder = DistanceBoxPanel(self.gbAll, DistanceUnits.M) self.pnlRadiusCylinder.Caption = "Radius [r - Cylinder]" self.pnlRadiusCylinder.LabelWidth = 140 self.gbAll.Add = self.pnlRadiusCylinder self.pnla = DistanceBoxPanel(self.gbAll, DistanceUnits.M) self.pnla.Caption = "a" self.pnla.LabelWidth = 140 self.gbAll.Add = self.pnla self.pnlb = DistanceBoxPanel(self.gbAll, DistanceUnits.M) self.pnlb.Caption = "b" self.pnlb.LabelWidth = 140 self.gbAll.Add = self.pnlb self.pnlh = AltitudeBoxPanel(self.gbAll) self.pnlh.Caption = "h" self.pnlh.CaptionUnits = "m" self.pnlh.LabelWidth = 140 self.gbAll.Add = self.pnlh self.pnlr = DistanceBoxPanel(self.gbAll, DistanceUnits.M) self.pnlr.Caption = "r" self.pnlr.LabelWidth = 140 self.gbAll.Add = self.pnlr self.pnlD = DistanceBoxPanel(self.gbAll, DistanceUnits.M) self.pnlD.Caption = "D" self.pnlD.LabelWidth = 140 self.gbAll.Add = self.pnlD self.pnlHbig = AltitudeBoxPanel(self.gbAll) self.pnlHbig.Caption = "H" self.pnlHbig.CaptionUnits = "m" self.pnlHbig.LabelWidth = 140 self.gbAll.Add = self.pnlHbig self.pnlL = DistanceBoxPanel(self.gbAll, DistanceUnits.M) self.pnlL.Caption = "L" self.pnlL.LabelWidth = 140 self.gbAll.Add = self.pnlL self.pnlphi = AngleGradientBoxPanel(self.gbAll) self.pnlphi.CaptionUnits = AngleGradientSlopeUnits.Degrees self.pnlphi.Caption = unicode("ɸ", "utf-8") self.pnlphi.LabelWidth = 140 self.gbAll.Add = self.pnlphi self.btnBoxOkCancel = QDialogButtonBox(self) self.btnBoxOkCancel.setObjectName(("btnBoxOkCancel")) self.btnBoxOkCancel.setStandardButtons(QDialogButtonBox.Cancel | QDialogButtonBox.Ok) self.connect(self.btnBoxOkCancel, SIGNAL("accepted()"), self.acceptDlg) self.connect(self.btnBoxOkCancel, SIGNAL("rejected()"), self.reject) verticalLayoutDlg.addWidget(self.btnBoxOkCancel) self.connect(self.pnlType, SIGNAL("Event_0"), self.method_5) self.shownOnce = False self.method_5()