def __init__(self, parent, thrPos, rwyPos=None, track=None): QDialog.__init__(self, parent) self.baseTrack = track self.resize(290, 136) self.setWindowTitle("Calculate FAP") sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth()) self.setSizePolicy(sizePolicy) verticalLayoutDlg = QVBoxLayout(self) verticalLayoutDlg.setObjectName(("verticalLayoutDlg")) self.groupBox = GroupBox(self) verticalLayoutDlg.addWidget(self.groupBox) self.pnlThrPosition = PositionPanel(self.groupBox) self.pnlThrPosition.Point3d = thrPos self.groupBox.Add = self.pnlThrPosition self.pnlThrPosition.Visible = False self.pnlRwyEndPosition = PositionPanel(self.groupBox) self.pnlRwyEndPosition.Point3d = rwyPos self.groupBox.Add = self.pnlRwyEndPosition self.pnlRwyEndPosition.Visible = False self.pnlTrack = TrackRadialBoxPanel(self.groupBox) self.pnlTrack.Caption = "Track" if rwyPos == None: self.pnlTrack.Value = track else: self.pnlTrack.Value = MathHelper.getBearing(thrPos, rwyPos) self.pnlTrack.LabelWidth = 100 self.groupBox.Add = self.pnlTrack self.pnlDist = DistanceBoxPanel(self.groupBox, DistanceUnits.M, DistanceUnits.NM) self.pnlDist.Caption = "Distance" self.pnlDist.Value = Distance(5, DistanceUnits.NM) self.pnlDist.LabelWidth = 100 self.groupBox.Add = self.pnlDist self.btnBoxOkCancel = QDialogButtonBox(self) self.btnBoxOkCancel.setObjectName(("btnBoxOkCancel")) self.btnBoxOkCancel.setStandardButtons(QDialogButtonBox.Cancel | QDialogButtonBox.Ok) self.connect(self.btnBoxOkCancel, SIGNAL("accepted()"), self.acceptDlg) self.connect(self.btnBoxOkCancel, SIGNAL("rejected()"), self.reject) verticalLayoutDlg.addWidget(self.btnBoxOkCancel)
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(484, 556) 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.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.frame_58 = QtGui.QFrame(self.gbParameters) self.frame_58.setFrameShape(QtGui.QFrame.NoFrame) self.frame_58.setFrameShadow(QtGui.QFrame.Raised) self.frame_58.setObjectName(_fromUtf8("frame_58")) self.horizontalLayout_58 = QtGui.QHBoxLayout(self.frame_58) self.horizontalLayout_58.setSpacing(0) self.horizontalLayout_58.setMargin(0) self.horizontalLayout_58.setObjectName( _fromUtf8("horizontalLayout_58")) self.label_66 = QtGui.QLabel(self.frame_58) self.label_66.setMinimumSize(QtCore.QSize(260, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_66.setFont(font) self.label_66.setObjectName(_fromUtf8("label_66")) self.horizontalLayout_58.addWidget(self.label_66) self.cmbRnavSpecification = QtGui.QComboBox(self.frame_58) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbRnavSpecification.sizePolicy().hasHeightForWidth()) self.cmbRnavSpecification.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbRnavSpecification.setFont(font) self.cmbRnavSpecification.setObjectName( _fromUtf8("cmbRnavSpecification")) self.horizontalLayout_58.addWidget(self.cmbRnavSpecification) self.vl_gbParameters.addWidget(self.frame_58) self.chbUse2Waypoints = QtGui.QCheckBox(self.gbParameters) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbUse2Waypoints.setFont(font) self.chbUse2Waypoints.setObjectName(_fromUtf8("chbUse2Waypoints")) self.vl_gbParameters.addWidget(self.chbUse2Waypoints) self.gbVorDmePosition = QtGui.QGroupBox(self.gbParameters) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.gbVorDmePosition.setFont(font) self.gbVorDmePosition.setObjectName(_fromUtf8("gbVorDmePosition")) self.verticalLayoutVoeDmePosition = QtGui.QVBoxLayout( self.gbVorDmePosition) self.verticalLayoutVoeDmePosition.setObjectName( _fromUtf8("verticalLayoutVoeDmePosition")) self.vl_gbParameters.addWidget(self.gbVorDmePosition) self.cmbBasedOn = ComboBoxPanel(self.gbVorDmePosition, True) self.cmbBasedOn.Caption = "Based On" self.cmbBasedOn.LabelWidth = 120 self.cmbBasedOn.Width = 120 self.verticalLayoutVoeDmePosition.addWidget(self.cmbBasedOn) self.gbWaypoint1 = QtGui.QGroupBox(self.gbParameters) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.gbWaypoint1.setFont(font) self.gbWaypoint1.setObjectName(_fromUtf8("gbWaypoint1")) self.verticalLayoutWaypoint1 = QtGui.QVBoxLayout(self.gbWaypoint1) self.verticalLayoutWaypoint1.setObjectName( _fromUtf8("verticalLayoutWaypoint1")) self.frame_60 = QtGui.QFrame(self.gbWaypoint1) self.frame_60.setFrameShape(QtGui.QFrame.NoFrame) self.frame_60.setFrameShadow(QtGui.QFrame.Raised) self.frame_60.setObjectName(_fromUtf8("frame_60")) self.horizontalLayout_62 = QtGui.QHBoxLayout(self.frame_60) self.horizontalLayout_62.setSpacing(0) self.horizontalLayout_62.setMargin(0) self.horizontalLayout_62.setObjectName( _fromUtf8("horizontalLayout_62")) self.label_70 = QtGui.QLabel(self.frame_60) 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.cmbFlightPhase1 = QtGui.QComboBox(self.frame_60) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbFlightPhase1.sizePolicy().hasHeightForWidth()) self.cmbFlightPhase1.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbFlightPhase1.setFont(font) self.cmbFlightPhase1.setObjectName(_fromUtf8("cmbFlightPhase1")) self.horizontalLayout_62.addWidget(self.cmbFlightPhase1) self.verticalLayoutWaypoint1.addWidget(self.frame_60) self.vl_gbParameters.addWidget(self.gbWaypoint1) self.gbWaypoint2 = QtGui.QGroupBox(self.gbParameters) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.gbWaypoint2.setFont(font) self.gbWaypoint2.setObjectName(_fromUtf8("gbWaypoint2")) self.verticalLayoutWaypoint2 = QtGui.QVBoxLayout(self.gbWaypoint2) self.verticalLayoutWaypoint2.setObjectName( _fromUtf8("verticalLayoutWaypoint2")) self.frame_61 = QtGui.QFrame(self.gbWaypoint2) self.frame_61.setFrameShape(QtGui.QFrame.NoFrame) self.frame_61.setFrameShadow(QtGui.QFrame.Raised) self.frame_61.setObjectName(_fromUtf8("frame_61")) self.horizontalLayout_64 = QtGui.QHBoxLayout(self.frame_61) self.horizontalLayout_64.setSpacing(0) self.horizontalLayout_64.setMargin(0) self.horizontalLayout_64.setObjectName( _fromUtf8("horizontalLayout_64")) self.label_72 = QtGui.QLabel(self.frame_61) 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.cmbFlightPhase2 = QtGui.QComboBox(self.frame_61) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbFlightPhase2.sizePolicy().hasHeightForWidth()) self.cmbFlightPhase2.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbFlightPhase2.setFont(font) self.cmbFlightPhase2.setObjectName(_fromUtf8("cmbFlightPhase2")) self.horizontalLayout_64.addWidget(self.cmbFlightPhase2) self.verticalLayoutWaypoint2.addWidget(self.frame_61) self.vl_gbParameters.addWidget(self.gbWaypoint2) self.txtTrack = TrackRadialBoxPanel(self.gbParameters) self.txtTrack.Caption = "Nominal Track" self.vl_gbParameters.addWidget(self.txtTrack) # self.frame_TrackFrom = QtGui.QFrame(self.gbParameters) # self.frame_TrackFrom.setFrameShape(QtGui.QFrame.NoFrame) # self.frame_TrackFrom.setFrameShadow(QtGui.QFrame.Raised) # self.frame_TrackFrom.setObjectName(_fromUtf8("frame_TrackFrom")) # self.horizontalLayout_63 = QtGui.QHBoxLayout(self.frame_TrackFrom) # self.horizontalLayout_63.setSpacing(0) # self.horizontalLayout_63.setMargin(0) # self.horizontalLayout_63.setObjectName(_fromUtf8("horizontalLayout_63")) # self.label_71 = QtGui.QLabel(self.frame_TrackFrom) # self.label_71.setMinimumSize(QtCore.QSize(180, 0)) # self.label_71.setMaximumSize(QtCore.QSize(180, 16777215)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_71.setFont(font) # self.label_71.setObjectName(_fromUtf8("label_71")) # self.label_71.setText(_fromUtf8("Nominal Track ():")) # self.horizontalLayout_63.addWidget(self.label_71) # self.frame_APV_6 = QtGui.QFrame(self.frame_TrackFrom) # 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.txtTrack = QtGui.QLineEdit(self.frame_APV_6) # self.txtTrack.setEnabled(True) # self.txtTrack.setText(_fromUtf8("0")) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtTrack.setFont(font) # self.txtTrack.setObjectName(_fromUtf8("txtTrack")) # self.horizontalLayout_10.addWidget(self.txtTrack) # self.btnCaptureTrack = QtGui.QToolButton(self.frame_APV_6) # self.btnCaptureTrack.setText(_fromUtf8("")) # self.btnCaptureTrack.setCheckable(True) # icon = QtGui.QIcon() # icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) # self.btnCaptureTrack.setIcon(icon) # self.btnCaptureTrack.setObjectName(_fromUtf8("btnCaptureTrack")) # self.horizontalLayout_10.addWidget(self.btnCaptureTrack) # self.horizontalLayout_63.addWidget(self.frame_APV_6) # self.vl_gbParameters.addWidget(self.frame_TrackFrom) self.frameSelectionMode = QtGui.QFrame(self.gbParameters) self.frameSelectionMode.setFrameShape(QtGui.QFrame.NoFrame) self.frameSelectionMode.setFrameShadow(QtGui.QFrame.Raised) self.frameSelectionMode.setObjectName(_fromUtf8("frameSelectionMode")) self.hLayoutSelectionMode = QtGui.QHBoxLayout(self.frameSelectionMode) self.hLayoutSelectionMode.setSpacing(0) self.hLayoutSelectionMode.setMargin(0) self.hLayoutSelectionMode.setObjectName( _fromUtf8("hLayoutSelectionMode")) self.label_67 = QtGui.QLabel(self.frameSelectionMode) self.label_67.setMinimumSize(QtCore.QSize(180, 0)) self.label_67.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_67.setFont(font) self.label_67.setObjectName(_fromUtf8("label_67")) self.hLayoutSelectionMode.addWidget(self.label_67) self.cmbSelectionMode = QtGui.QComboBox(self.frameSelectionMode) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbSelectionMode.sizePolicy().hasHeightForWidth()) self.cmbSelectionMode.setSizePolicy(sizePolicy) self.cmbSelectionMode.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbSelectionMode.setFont(font) self.cmbSelectionMode.setObjectName(_fromUtf8("cmbSelectionMode")) self.hLayoutSelectionMode.addWidget(self.cmbSelectionMode) self.vl_gbParameters.addWidget(self.frameSelectionMode) self.frameAltitude = QtGui.QFrame(self.gbParameters) self.frameAltitude.setFrameShape(QtGui.QFrame.NoFrame) self.frameAltitude.setFrameShadow(QtGui.QFrame.Raised) self.frameAltitude.setObjectName(_fromUtf8("frameAltitude")) self.hLayoutAltitude = QtGui.QHBoxLayout(self.frameAltitude) self.hLayoutAltitude.setSpacing(0) self.hLayoutAltitude.setMargin(0) self.hLayoutAltitude.setObjectName(_fromUtf8("hLayoutAltitude")) self.label_77 = QtGui.QLabel(self.frameAltitude) self.label_77.setMinimumSize(QtCore.QSize(180, 0)) self.label_77.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_77.setFont(font) self.label_77.setObjectName(_fromUtf8("label_77")) self.hLayoutAltitude.addWidget(self.label_77) self.txtAltitudeM = QtGui.QLineEdit(self.frameAltitude) self.txtAltitudeM.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAltitudeM.setFont(font) self.txtAltitudeM.setObjectName(_fromUtf8("txtAltitudeM")) self.hLayoutAltitude.addWidget(self.txtAltitudeM) self.label = QtGui.QLabel(self.frameAltitude) self.label.setObjectName(_fromUtf8("label")) self.hLayoutAltitude.addWidget(self.label) self.txtAltitude = QtGui.QLineEdit(self.frameAltitude) self.txtAltitude.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAltitude.setFont(font) self.txtAltitude.setObjectName(_fromUtf8("txtAltitude")) self.hLayoutAltitude.addWidget(self.txtAltitude) self.label_2 = QtGui.QLabel(self.frameAltitude) self.label_2.setObjectName(_fromUtf8("label_2")) self.hLayoutAltitude.addWidget(self.label_2) self.vl_gbParameters.addWidget(self.frameAltitude) self.framePrimaryMoc = QtGui.QFrame(self.gbParameters) self.framePrimaryMoc.setFrameShape(QtGui.QFrame.NoFrame) self.framePrimaryMoc.setFrameShadow(QtGui.QFrame.Raised) self.framePrimaryMoc.setObjectName(_fromUtf8("framePrimaryMoc")) self.hLayoutPrimaryMoc = QtGui.QHBoxLayout(self.framePrimaryMoc) self.hLayoutPrimaryMoc.setSpacing(0) self.hLayoutPrimaryMoc.setMargin(0) self.hLayoutPrimaryMoc.setObjectName(_fromUtf8("hLayoutPrimaryMoc")) self.label_68 = QtGui.QLabel(self.framePrimaryMoc) self.label_68.setMinimumSize(QtCore.QSize(180, 0)) self.label_68.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_68.setFont(font) self.label_68.setObjectName(_fromUtf8("label_68")) self.hLayoutPrimaryMoc.addWidget(self.label_68) self.txtPrimaryMoc = QtGui.QLineEdit(self.framePrimaryMoc) self.txtPrimaryMoc.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtPrimaryMoc.setFont(font) self.txtPrimaryMoc.setObjectName(_fromUtf8("txtPrimaryMoc")) self.hLayoutPrimaryMoc.addWidget(self.txtPrimaryMoc) self.label_6 = QtGui.QLabel(self.framePrimaryMoc) self.label_6.setObjectName(_fromUtf8("label_6")) self.hLayoutPrimaryMoc.addWidget(self.label_6) self.txtPrimaryMocFt = QtGui.QLineEdit(self.framePrimaryMoc) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtPrimaryMocFt.setFont(font) self.txtPrimaryMocFt.setText(_fromUtf8("")) self.txtPrimaryMocFt.setObjectName(_fromUtf8("txtPrimaryMocFt")) self.hLayoutPrimaryMoc.addWidget(self.txtPrimaryMocFt) self.labelMocFt = QtGui.QLabel(self.framePrimaryMoc) self.labelMocFt.setObjectName(_fromUtf8("labelMocFt")) self.hLayoutPrimaryMoc.addWidget(self.labelMocFt) self.vl_gbParameters.addWidget(self.framePrimaryMoc) self.frameConstruct = QtGui.QFrame(self.gbParameters) self.frameConstruct.setFrameShape(QtGui.QFrame.NoFrame) self.frameConstruct.setFrameShadow(QtGui.QFrame.Raised) self.frameConstruct.setObjectName(_fromUtf8("frameConstruct")) self.hLayoutConstruct = QtGui.QHBoxLayout(self.frameConstruct) self.hLayoutConstruct.setSpacing(0) self.hLayoutConstruct.setMargin(0) self.hLayoutConstruct.setObjectName(_fromUtf8("hLayoutConstruct")) self.label_89 = QtGui.QLabel(self.frameConstruct) self.label_89.setMinimumSize(QtCore.QSize(180, 0)) self.label_89.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_89.setFont(font) self.label_89.setObjectName(_fromUtf8("label_89")) self.hLayoutConstruct.addWidget(self.label_89) self.cmbConstruct = QtGui.QComboBox(self.frameConstruct) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbConstruct.sizePolicy().hasHeightForWidth()) self.cmbConstruct.setSizePolicy(sizePolicy) self.cmbConstruct.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbConstruct.setFont(font) self.cmbConstruct.setObjectName(_fromUtf8("cmbConstruct")) self.hLayoutConstruct.addWidget(self.cmbConstruct) self.vl_gbParameters.addWidget(self.frameConstruct) self.frameMOCmultipiler = QtGui.QFrame(self.gbParameters) self.frameMOCmultipiler.setFrameShape(QtGui.QFrame.NoFrame) self.frameMOCmultipiler.setFrameShadow(QtGui.QFrame.Raised) self.frameMOCmultipiler.setObjectName(_fromUtf8("frameMOCmultipiler")) self.hLayoutMOCmultipiler = QtGui.QHBoxLayout(self.frameMOCmultipiler) self.hLayoutMOCmultipiler.setSpacing(0) self.hLayoutMOCmultipiler.setMargin(0) self.hLayoutMOCmultipiler.setObjectName( _fromUtf8("hLayoutMOCmultipiler")) self.label_90 = QtGui.QLabel(self.frameMOCmultipiler) self.label_90.setMinimumSize(QtCore.QSize(180, 0)) self.label_90.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_90.setFont(font) self.label_90.setObjectName(_fromUtf8("label_90")) self.hLayoutMOCmultipiler.addWidget(self.label_90) self.mocSpinBox = QtGui.QSpinBox(self.frameMOCmultipiler) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mocSpinBox.sizePolicy().hasHeightForWidth()) self.mocSpinBox.setSizePolicy(sizePolicy) self.mocSpinBox.setMinimumSize(QtCore.QSize(72, 0)) self.mocSpinBox.setMinimum(1) self.mocSpinBox.setObjectName(_fromUtf8("mocSpinBox")) self.hLayoutMOCmultipiler.addWidget(self.mocSpinBox) self.vl_gbParameters.addWidget(self.frameMOCmultipiler) self.chbDrawTolerance = QtGui.QCheckBox(self.gbParameters) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbDrawTolerance.setFont(font) self.chbDrawTolerance.setObjectName(_fromUtf8("chbDrawTolerance")) self.vl_gbParameters.addWidget(self.chbDrawTolerance) self.verticalLayout.addWidget(self.gbParameters) self.gbResults = QtGui.QGroupBox(Form) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.gbResults.sizePolicy().hasHeightForWidth()) self.gbResults.setSizePolicy(sizePolicy) self.gbResults.setObjectName(_fromUtf8("gbResults")) self.horizontalLayout = QtGui.QHBoxLayout(self.gbResults) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.gbResultsWaypoint1 = QtGui.QGroupBox(self.gbResults) self.gbResultsWaypoint1.setObjectName(_fromUtf8("gbResultsWaypoint1")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.gbResultsWaypoint1) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.frame_70 = QtGui.QFrame(self.gbResultsWaypoint1) self.frame_70.setFrameShape(QtGui.QFrame.NoFrame) self.frame_70.setFrameShadow(QtGui.QFrame.Raised) self.frame_70.setObjectName(_fromUtf8("frame_70")) self.horizontalLayout_75 = QtGui.QHBoxLayout(self.frame_70) self.horizontalLayout_75.setSpacing(0) self.horizontalLayout_75.setMargin(0) self.horizontalLayout_75.setObjectName( _fromUtf8("horizontalLayout_75")) self.label_83 = QtGui.QLabel(self.frame_70) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_83.sizePolicy().hasHeightForWidth()) self.label_83.setSizePolicy(sizePolicy) self.label_83.setMinimumSize(QtCore.QSize(50, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_83.setFont(font) self.label_83.setFrameShadow(QtGui.QFrame.Plain) self.label_83.setObjectName(_fromUtf8("label_83")) self.horizontalLayout_75.addWidget(self.label_83) self.txtXtt1 = QtGui.QLineEdit(self.frame_70) self.txtXtt1.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtXtt1.sizePolicy().hasHeightForWidth()) self.txtXtt1.setSizePolicy(sizePolicy) self.txtXtt1.setMinimumSize(QtCore.QSize(0, 0)) self.txtXtt1.setMaximumSize(QtCore.QSize(100, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtXtt1.setFont(font) self.txtXtt1.setObjectName(_fromUtf8("txtXtt1")) self.horizontalLayout_75.addWidget(self.txtXtt1) self.verticalLayout_2.addWidget(self.frame_70) self.frame_71 = QtGui.QFrame(self.gbResultsWaypoint1) self.frame_71.setFrameShape(QtGui.QFrame.NoFrame) self.frame_71.setFrameShadow(QtGui.QFrame.Raised) self.frame_71.setObjectName(_fromUtf8("frame_71")) self.horizontalLayout_76 = QtGui.QHBoxLayout(self.frame_71) self.horizontalLayout_76.setSpacing(0) self.horizontalLayout_76.setMargin(0) self.horizontalLayout_76.setObjectName( _fromUtf8("horizontalLayout_76")) self.label_84 = QtGui.QLabel(self.frame_71) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_84.sizePolicy().hasHeightForWidth()) self.label_84.setSizePolicy(sizePolicy) self.label_84.setMinimumSize(QtCore.QSize(50, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_84.setFont(font) self.label_84.setFrameShadow(QtGui.QFrame.Plain) self.label_84.setObjectName(_fromUtf8("label_84")) self.horizontalLayout_76.addWidget(self.label_84) self.txtAtt1 = QtGui.QLineEdit(self.frame_71) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtAtt1.sizePolicy().hasHeightForWidth()) self.txtAtt1.setSizePolicy(sizePolicy) self.txtAtt1.setMaximumSize(QtCore.QSize(100, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAtt1.setFont(font) self.txtAtt1.setObjectName(_fromUtf8("txtAtt1")) self.horizontalLayout_76.addWidget(self.txtAtt1) self.verticalLayout_2.addWidget(self.frame_71) self.frame_72 = QtGui.QFrame(self.gbResultsWaypoint1) self.frame_72.setFrameShape(QtGui.QFrame.NoFrame) self.frame_72.setFrameShadow(QtGui.QFrame.Raised) self.frame_72.setObjectName(_fromUtf8("frame_72")) self.horizontalLayout_77 = QtGui.QHBoxLayout(self.frame_72) self.horizontalLayout_77.setSpacing(0) self.horizontalLayout_77.setMargin(0) self.horizontalLayout_77.setObjectName( _fromUtf8("horizontalLayout_77")) self.label_85 = QtGui.QLabel(self.frame_72) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_85.sizePolicy().hasHeightForWidth()) self.label_85.setSizePolicy(sizePolicy) self.label_85.setMinimumSize(QtCore.QSize(50, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_85.setFont(font) self.label_85.setFrameShadow(QtGui.QFrame.Plain) self.label_85.setObjectName(_fromUtf8("label_85")) self.horizontalLayout_77.addWidget(self.label_85) self.txtAsw1 = QtGui.QLineEdit(self.frame_72) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtAsw1.sizePolicy().hasHeightForWidth()) self.txtAsw1.setSizePolicy(sizePolicy) self.txtAsw1.setMaximumSize(QtCore.QSize(100, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAsw1.setFont(font) self.txtAsw1.setObjectName(_fromUtf8("txtAsw1")) self.horizontalLayout_77.addWidget(self.txtAsw1) self.verticalLayout_2.addWidget(self.frame_72) self.horizontalLayout.addWidget(self.gbResultsWaypoint1) self.gbResultsWaypoint2 = QtGui.QGroupBox(self.gbResults) self.gbResultsWaypoint2.setObjectName(_fromUtf8("gbResultsWaypoint2")) self.verticalLayout_3 = QtGui.QVBoxLayout(self.gbResultsWaypoint2) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.frame_73 = QtGui.QFrame(self.gbResultsWaypoint2) self.frame_73.setFrameShape(QtGui.QFrame.NoFrame) self.frame_73.setFrameShadow(QtGui.QFrame.Sunken) self.frame_73.setObjectName(_fromUtf8("frame_73")) self.horizontalLayout_78 = QtGui.QHBoxLayout(self.frame_73) self.horizontalLayout_78.setSpacing(0) self.horizontalLayout_78.setMargin(0) self.horizontalLayout_78.setObjectName( _fromUtf8("horizontalLayout_78")) self.label_86 = QtGui.QLabel(self.frame_73) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_86.sizePolicy().hasHeightForWidth()) self.label_86.setSizePolicy(sizePolicy) self.label_86.setMinimumSize(QtCore.QSize(50, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_86.setFont(font) self.label_86.setFrameShape(QtGui.QFrame.NoFrame) self.label_86.setFrameShadow(QtGui.QFrame.Plain) self.label_86.setObjectName(_fromUtf8("label_86")) self.horizontalLayout_78.addWidget(self.label_86) self.txtXtt2 = QtGui.QLineEdit(self.frame_73) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtXtt2.sizePolicy().hasHeightForWidth()) self.txtXtt2.setSizePolicy(sizePolicy) self.txtXtt2.setMaximumSize(QtCore.QSize(100, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtXtt2.setFont(font) self.txtXtt2.setObjectName(_fromUtf8("txtXtt2")) self.horizontalLayout_78.addWidget(self.txtXtt2) self.verticalLayout_3.addWidget(self.frame_73) self.frame_74 = QtGui.QFrame(self.gbResultsWaypoint2) self.frame_74.setFrameShape(QtGui.QFrame.NoFrame) self.frame_74.setFrameShadow(QtGui.QFrame.Raised) self.frame_74.setObjectName(_fromUtf8("frame_74")) self.horizontalLayout_79 = QtGui.QHBoxLayout(self.frame_74) self.horizontalLayout_79.setSpacing(0) self.horizontalLayout_79.setMargin(0) self.horizontalLayout_79.setObjectName( _fromUtf8("horizontalLayout_79")) self.label_87 = QtGui.QLabel(self.frame_74) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_87.sizePolicy().hasHeightForWidth()) self.label_87.setSizePolicy(sizePolicy) self.label_87.setMinimumSize(QtCore.QSize(50, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_87.setFont(font) self.label_87.setFrameShadow(QtGui.QFrame.Plain) self.label_87.setObjectName(_fromUtf8("label_87")) self.horizontalLayout_79.addWidget(self.label_87) self.txtAtt2 = QtGui.QLineEdit(self.frame_74) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtAtt2.sizePolicy().hasHeightForWidth()) self.txtAtt2.setSizePolicy(sizePolicy) self.txtAtt2.setMaximumSize(QtCore.QSize(100, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAtt2.setFont(font) self.txtAtt2.setObjectName(_fromUtf8("txtAtt2")) self.horizontalLayout_79.addWidget(self.txtAtt2) self.verticalLayout_3.addWidget(self.frame_74) self.frame_75 = QtGui.QFrame(self.gbResultsWaypoint2) self.frame_75.setFrameShape(QtGui.QFrame.NoFrame) self.frame_75.setFrameShadow(QtGui.QFrame.Raised) self.frame_75.setObjectName(_fromUtf8("frame_75")) self.horizontalLayout_80 = QtGui.QHBoxLayout(self.frame_75) self.horizontalLayout_80.setSpacing(0) self.horizontalLayout_80.setMargin(0) self.horizontalLayout_80.setObjectName( _fromUtf8("horizontalLayout_80")) self.label_88 = QtGui.QLabel(self.frame_75) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_88.sizePolicy().hasHeightForWidth()) self.label_88.setSizePolicy(sizePolicy) self.label_88.setMinimumSize(QtCore.QSize(50, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_88.setFont(font) self.label_88.setFrameShadow(QtGui.QFrame.Plain) self.label_88.setObjectName(_fromUtf8("label_88")) self.horizontalLayout_80.addWidget(self.label_88) self.txtAsw2 = QtGui.QLineEdit(self.frame_75) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtAsw2.sizePolicy().hasHeightForWidth()) self.txtAsw2.setSizePolicy(sizePolicy) self.txtAsw2.setMaximumSize(QtCore.QSize(100, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAsw2.setFont(font) self.txtAsw2.setObjectName(_fromUtf8("txtAsw2")) self.horizontalLayout_80.addWidget(self.txtAsw2) self.verticalLayout_3.addWidget(self.frame_75) self.horizontalLayout.addWidget(self.gbResultsWaypoint2) self.verticalLayout.addWidget(self.gbResults) 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, 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(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 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_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 __init__(self, parent=None): QDialog.__init__(self, parent) self.resize(290, 136) self.setWindowTitle("Procedure Legs (AIXM 4.5+)") sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth()) self.setSizePolicy(sizePolicy) verticalLayoutDlg = QVBoxLayout(self) verticalLayoutDlg.setObjectName(("verticalLayoutDlg")) self.gbAll = GroupBox(self, "HL") self.gbAll.Caption = "Legs" verticalLayoutDlg.addWidget(self.gbAll) self.trvLegs = QTreeView(self.gbAll) self.trvLegsStdModel = StandardItemModel() self.trvLegs.setModel(self.trvLegsStdModel) self.gbAll.Add = self.trvLegs self.flowLayoutPanel1 = Frame(self.gbAll) self.gbAll.Add = self.flowLayoutPanel1 self.btnAdd = QPushButton(self.flowLayoutPanel1) icon = QIcon() icon.addPixmap(QPixmap("Resource/add.png"), QIcon.Normal, QIcon.Off) self.btnAdd.setIcon(icon) self.flowLayoutPanel1.Add = self.btnAdd self.btnRemove = QPushButton(self.flowLayoutPanel1) icon = QIcon() icon.addPixmap(QPixmap("Resource/remove.png"), QIcon.Normal, QIcon.Off) self.btnRemove.setIcon(icon) self.flowLayoutPanel1.Add = self.btnRemove self.btnMoveUp = QPushButton(self.flowLayoutPanel1) icon = QIcon() icon.addPixmap(QPixmap("Resource/up.png"), QIcon.Normal, QIcon.Off) self.btnMoveUp.setIcon(icon) self.flowLayoutPanel1.Add = self.btnMoveUp self.btnMoveDown = QPushButton(self.flowLayoutPanel1) icon = QIcon() icon.addPixmap(QPixmap("Resource/down.png"), QIcon.Normal, QIcon.Off) self.btnMoveDown.setIcon(icon) self.flowLayoutPanel1.Add = self.btnMoveDown self.scrollBox = Frame(self.gbAll) self.gbAll.Add = self.scrollBox self.gbPosition = GroupBox(self.scrollBox) self.gbPosition.Caption = "Fix" self.scrollBox.Add = self.gbPosition self.cmbPosUid = ComboBoxPanel(self.gbPosition) self.cmbPosUid.Caption = "Position" self.cmbPosUid.Button = "coordinate_capture.png" self.gbPosition.Add = self.cmbPosUid self.gbAttributes = GroupBox(self.scrollBox) self.gbAttributes.Caption = "Attributes" self.scrollBox.Add = self.gbAttributes self.pnlPathType = ComboBoxPanel(self.gbAttributes) self.pnlPathType.Caption = "Path Type" self.gbAttributes.Add = self.pnlPathType self.pnlLegType = ComboBoxPanel(self.gbAttributes) self.pnlLegType.Caption = "Leg Type" self.gbAttributes.Add = self.pnlLegType self.cmbCenUid = ComboBoxPanel(self.gbAttributes) self.cmbCenUid.Caption = "Center" self.cmbCenUid.Button = "coordinate_capture.png" self.gbAttributes.Add = self.cmbCenUid self.pnlFlyBy = ComboBoxPanel(self.gbAttributes) self.pnlFlyBy.Caption = "Fly-By" self.gbAttributes.Add = self.pnlFlyBy self.pnlMinAlt = AltitudeBoxPanel(self.gbAttributes) self.pnlMinAlt.CaptionUnits = "ft" self.pnlMinAlt.Caption = "Minimum Altitude" self.gbAttributes.Add = self.pnlMinAlt self.pnlSegLength = DistanceBoxPanel(self.gbAttributes, DistanceUnits.NM) self.pnlSegLength.Caption = "Segment Length" self.gbAttributes.Add = self.pnlSegLength self.pnlCourse = TrackRadialBoxPanel(self.gbAttributes) self.pnlCourse.Caption = "Course" self.gbAttributes.Add = self.pnlCourse self.pnlLegVOR = Frame(self.gbAttributes) self.gbAttributes.Add = self.pnlLegVOR f1 = Frame(self.pnlLegVOR, "HL") self.pnlLegVOR.Add = f1 self.cmbLegVor = ComboBoxPanel(f1) self.cmbLegVor.Caption = "VOR / Radial (" + define._degreeStr + ")" f1.Add = self.cmbLegVor self.txtLegRadial = TrackRadialBoxPanel(f1) self.txtLegRadial.Caption = "" self.txtLegRadial.LabelWidth = 0 f1.Add = self.txtLegRadial f2 = Frame(self.pnlLegVOR, "HL") self.pnlLegVOR.Add = f2 self.cmbLegBackVor = ComboBoxPanel(f2) self.cmbLegBackVor.Caption = "Reverse VOR / Radial (" + define._degreeStr + ")" f2.Add = self.cmbLegBackVor self.txtLegBackRadial = TrackRadialBoxPanel(f2) self.txtLegBackRadial.Caption = "" self.txtLegBackRadial.LabelWidth = 0 f2.Add = self.txtLegBackRadial self.pnlPointType = ComboBoxPanel(self.gbAttributes) self.pnlPointType.Caption = "Point Type" self.gbAttributes.Add = self.pnlPointType self.pnlRepPointType = ComboBoxPanel(self.gbAttributes) self.pnlRepPointType.Caption = "Reporting Point Type" self.gbAttributes.Add = self.pnlRepPointType self.pnlPointVor = Frame(self.gbAttributes) self.gbAttributes.Add = self.pnlPointVor frame1 = Frame(self.pnlPointVor, "HL") self.pnlPointVor.Add = frame1 self.cmbPointVor = ComboBoxPanel(frame1) self.cmbPointVor.Caption = "Point VOR / Radial (" + define._degreeStr + ")" frame1.Add = self.cmbPointVor self.txtPointRadial = TrackRadialBoxPanel(frame1) self.txtPointRadial.Caption = "" self.txtPointRadial.LabelWidth = 0 frame1.Add = self.txtPointRadial frame2 = Frame(self.pnlPointVor, "HL") self.pnlPointVor.Add = frame2 self.cmbPointDme1 = ComboBoxPanel(frame2) self.cmbPointDme1.Caption = "Point 1. DME / Distance (nm)" frame2.Add = self.cmbPointDme1 self.txtPointDme1 = DistanceBoxPanel(frame2, DistanceUnits.NM) self.txtPointDme1.Caption = "" self.txtPointDme1.LabelWidth = 0 frame2.Add = self.txtPointDme1 frame3 = Frame(self.pnlPointVor, "HL") self.pnlPointVor.Add = frame3 self.cmbPointDme2 = ComboBoxPanel(frame3) self.cmbPointDme2.Caption = "Point 2. DME / Distance (nm)" frame3.Add = self.cmbPointDme2 self.txtPointDme2 = DistanceBoxPanel(frame3, DistanceUnits.NM) self.txtPointDme2.Caption = "" self.txtPointDme2.LabelWidth = 0 frame3.Add = self.txtPointDme2 self.txtFlyDuration = TextBoxPanel(self.pnlPointVor, True) self.txtFlyDuration.Caption = "Flying Time Duration" self.pnlPointVor.Add = self.txtFlyDuration self.txtRemarks = TextBoxPanel(self.pnlPointVor, True) self.txtRemarks.Caption = "Remarks" self.pnlPointVor.Add = self.txtRemarks self.btnBoxOkCancel = QDialogButtonBox(self) self.btnBoxOkCancel.setObjectName(("btnBoxOkCancel")) self.btnBoxOkCancel.setStandardButtons(QDialogButtonBox.Cancel | QDialogButtonBox.Ok) self.connect(self.btnBoxOkCancel, SIGNAL("accepted()"), self.acceptDlg) self.connect(self.btnBoxOkCancel, SIGNAL("rejected()"), self.reject) self.btnAdd.clicked.connect(self.btnAdd_Click) self.btnMoveDown.clicked.connect(self.btnMoveDown_Click) self.btnMoveUp.clicked.connect(self.btnMoveUp_Click) self.btnRemove.clicked.connect(self.btnRemove_Click) verticalLayoutDlg.addWidget(self.btnBoxOkCancel) self.trvLegs.pressed.connect(self.trvLegs_pressed) self.data = None self.legs = None self.aerodrome = None self.magnVar = 0.0 self.trvLegs.setHeaderHidden(True) self.pnlPointType.Items = ["IAF", "IF", "FAF", "FAP", "MAPt", "TP"] for value in CodeLegTypeAixm.Items: self.pnlLegType.Add(value) for value in CodePathTypeAixm.Items: self.pnlPathType.Add(value) for value in CodeRepAtcAixm.Items: self.pnlRepPointType.Add(value) for value in CodeTypeFlyByAixm.Items: self.pnlFlyBy.Add(value) self.method_6() self.connect(self.txtRemarks, SIGNAL("Event_0"), self.txtRemarks_Event_0) self.connect(self.txtPointDme2, SIGNAL("Event_0"), self.txtPointDme2_Event_0) self.connect(self.cmbPointDme2, SIGNAL("Event_0"), self.cmbPointDme2_Event_0) self.connect(self.txtPointDme1, SIGNAL("Event_0"), self.txtPointDme1_Event_0) self.connect(self.cmbPointDme1, SIGNAL("Event_0"), self.cmbPointDme1_Event_0) self.connect(self.cmbPointVor, SIGNAL("Event_0"), self.cmbPointVor_Event_0) self.connect(self.txtPointRadial, SIGNAL("Event_0"), self.txtPointRadial_Event_0) self.connect(self.txtFlyDuration, SIGNAL("Event_0"), self.txtFlyDuration_Event_0) self.connect(self.pnlRepPointType, SIGNAL("Event_0"), self.pnlRepPointType_Event_0) self.connect(self.pnlPointType, SIGNAL("Event_0"), self.pnlPointType_Event_0) self.connect(self.txtLegBackRadial, SIGNAL("Event_0"), self.txtLegBackRadial_Event_0) self.connect(self.cmbLegBackVor, SIGNAL("Event_0"), self.cmbLegBackVor_Event_0) self.connect(self.cmbLegVor, SIGNAL("Event_0"), self.cmbLegVor_Event_0) self.connect(self.txtLegRadial, SIGNAL("Event_0"), self.txtLegRadial_Event_0) self.connect(self.pnlCourse, SIGNAL("Event_0"), self.pnlCourse_Event_0) self.connect(self.pnlSegLength, SIGNAL("Event_0"), self.pnlSegLength_Event_0) self.connect(self.pnlMinAlt, SIGNAL("Event_0"), self.pnlMinAlt_Event_0) self.connect(self.pnlFlyBy, SIGNAL("Event_0"), self.pnlFlyBy_Event_0) self.connect(self.cmbCenUid, SIGNAL("Event_0"), self.cmbCenUid_Event_0) self.connect(self.pnlLegType, SIGNAL("Event_0"), self.pnlLegType_Event_0) self.connect(self.pnlPathType, SIGNAL("Event_0"), self.pnlPathType_Event_0) self.connect(self.cmbPosUid, SIGNAL("Event_0"), self.cmbPosUid_Event_0) self.connect(self.cmbCenUid, SIGNAL("Event_3"), self.method_14) self.connect(self.cmbPosUid, SIGNAL("Event_3"), self.method_13)
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(515, 570) self.verticalLayout = QtGui.QVBoxLayout(Form) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.groupBox_20 = QtGui.QGroupBox(Form) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.groupBox_20.setFont(font) self.groupBox_20.setObjectName(_fromUtf8("groupBox_20")) self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox_20) self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.cmbSegmentType = ComboBoxPanel(self.groupBox_20) self.cmbSegmentType.Caption = "Visual Segment Type" self.cmbSegmentType.LabelWidth = 250 self.verticalLayout_5.addWidget(self.cmbSegmentType) self.cmbApproachType = ComboBoxPanel(self.groupBox_20) self.cmbApproachType.Caption = "Approach Type" self.cmbApproachType.LabelWidth = 250 self.verticalLayout_5.addWidget(self.cmbApproachType) self.txtVSDG = AngleGradientBoxPanel(self.groupBox_20) self.txtVSDG.CaptionUnits = AngleGradientSlopeUnits.Degrees self.txtVSDG.Caption = "Visual Segment Design Gradient [VSDG]" self.txtVSDG.LabelWidth = 250 self.txtVSDG.Value = AngleGradientSlope( 8.3, AngleGradientSlopeUnits.Degrees) self.verticalLayout_5.addWidget(self.txtVSDG) self.txtApproachSurfaceTrack = TrackRadialBoxPanel(self.groupBox_20) self.txtApproachSurfaceTrack.Caption = "In-bound Approach Surface Track" self.verticalLayout_5.addWidget(self.txtApproachSurfaceTrack) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.txtMOC = AltitudeBoxPanel(self.groupBox_20) self.txtMOC.CaptionUnits = "m" self.txtMOC.Caption = "MOC" self.txtMOC.Value = Altitude(75) self.txtMOC.LabelWidth = 250 self.verticalLayout_5.addWidget(self.txtMOC) self.frame_Limitation = QtGui.QFrame(self.groupBox_20) self.frame_Limitation.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_Limitation.setFrameShadow(QtGui.QFrame.Raised) self.frame_Limitation.setObjectName(_fromUtf8("frame_Limitation")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame_Limitation) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.chbLeftFlyOverProhibited = CheckBox(self.frame_Limitation) self.chbLeftFlyOverProhibited.Caption = "Left fly-over prohibited" self.horizontalLayout_2.addWidget(self.chbLeftFlyOverProhibited) self.chbRightFlyOverProhibited = CheckBox(self.frame_Limitation) self.chbRightFlyOverProhibited.Caption = "Right fly-over prohibited" self.horizontalLayout_2.addWidget(self.chbRightFlyOverProhibited) self.verticalLayout_5.addWidget(self.frame_Limitation) self.grbIDF = QtGui.QGroupBox(self.groupBox_20) self.grbIDF.setObjectName(_fromUtf8("grbIDF")) self.verticalLayout_IDF = QtGui.QVBoxLayout(self.grbIDF) self.verticalLayout_IDF.setObjectName(_fromUtf8("verticalLayout_IDF")) self.txtTrackTo = TrackRadialBoxPanel(self.grbIDF) self.txtTrackTo.Caption = "Track To" self.txtTrackTo.LabelWidth = 100 self.verticalLayout_IDF.addWidget(self.txtTrackTo) self.frame_Tolerance = QtGui.QFrame(self.grbIDF) self.frame_Tolerance.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_Tolerance.setFrameShadow(QtGui.QFrame.Raised) self.frame_Tolerance.setObjectName(_fromUtf8("frame_Tolerance")) self.horizontalLayout = QtGui.QHBoxLayout(self.frame_Tolerance) self.horizontalLayout.setSpacing(0) self.horizontalLayout.setMargin(0) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.frame_2 = QtGui.QFrame(self.frame_Tolerance) self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_2.setFrameShadow(QtGui.QFrame.Raised) self.frame_2.setObjectName(_fromUtf8("frame_2")) self.verticalLayout_3 = QtGui.QVBoxLayout(self.frame_2) self.verticalLayout_3.setSpacing(3) self.verticalLayout_3.setMargin(0) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.frame_TrackFrom_2 = QtGui.QFrame(self.frame_2) self.frame_TrackFrom_2.setFrameShape(QtGui.QFrame.NoFrame) self.frame_TrackFrom_2.setFrameShadow(QtGui.QFrame.Raised) self.frame_TrackFrom_2.setObjectName(_fromUtf8("frame_TrackFrom_2")) self.horizontalLayout_70 = QtGui.QHBoxLayout(self.frame_TrackFrom_2) self.horizontalLayout_70.setSpacing(0) self.horizontalLayout_70.setMargin(0) self.horizontalLayout_70.setObjectName( _fromUtf8("horizontalLayout_70")) self.label_78 = QtGui.QLabel(self.frame_TrackFrom_2) self.label_78.setMinimumSize(QtCore.QSize(240, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_78.setFont(font) self.label_78.setObjectName(_fromUtf8("label_78")) self.horizontalLayout_70.addWidget(self.label_78) self.frame_APV_12 = QtGui.QFrame(self.frame_TrackFrom_2) self.frame_APV_12.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_APV_12.setFrameShadow(QtGui.QFrame.Raised) self.frame_APV_12.setObjectName(_fromUtf8("frame_APV_12")) self.horizontalLayout_16 = QtGui.QHBoxLayout(self.frame_APV_12) self.horizontalLayout_16.setSpacing(0) self.horizontalLayout_16.setMargin(0) self.horizontalLayout_16.setObjectName( _fromUtf8("horizontalLayout_16")) self.txtAtt = QtGui.QLineEdit(self.frame_APV_12) self.txtAtt.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAtt.setFont(font) self.txtAtt.setObjectName(_fromUtf8("txtAtt")) self.txtAtt.setMinimumWidth(50) self.txtAtt.setMaximumWidth(50) self.horizontalLayout_16.addWidget(self.txtAtt) self.horizontalLayout_70.addWidget(self.frame_APV_12) self.verticalLayout_3.addWidget(self.frame_TrackFrom_2) self.frame_TrackFrom_3 = QtGui.QFrame(self.frame_2) self.frame_TrackFrom_3.setFrameShape(QtGui.QFrame.NoFrame) self.frame_TrackFrom_3.setFrameShadow(QtGui.QFrame.Raised) self.frame_TrackFrom_3.setObjectName(_fromUtf8("frame_TrackFrom_3")) self.horizontalLayout_71 = QtGui.QHBoxLayout(self.frame_TrackFrom_3) self.horizontalLayout_71.setSpacing(0) self.horizontalLayout_71.setMargin(0) self.horizontalLayout_71.setObjectName( _fromUtf8("horizontalLayout_71")) self.label_79 = QtGui.QLabel(self.frame_TrackFrom_3) self.label_79.setMinimumSize(QtCore.QSize(240, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_79.setFont(font) self.label_79.setObjectName(_fromUtf8("label_79")) self.horizontalLayout_71.addWidget(self.label_79) self.frame_APV_13 = QtGui.QFrame(self.frame_TrackFrom_3) self.frame_APV_13.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_APV_13.setFrameShadow(QtGui.QFrame.Raised) self.frame_APV_13.setObjectName(_fromUtf8("frame_APV_13")) self.horizontalLayout_17 = QtGui.QHBoxLayout(self.frame_APV_13) self.horizontalLayout_17.setSpacing(0) self.horizontalLayout_17.setMargin(0) self.horizontalLayout_17.setObjectName( _fromUtf8("horizontalLayout_17")) self.txtAsw = QtGui.QLineEdit(self.frame_APV_13) self.txtAsw.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAsw.setFont(font) self.txtAsw.setObjectName(_fromUtf8("txtAsw")) self.txtAsw.setMinimumWidth(50) self.txtAsw.setMaximumWidth(50) self.horizontalLayout_17.addWidget(self.txtAsw) self.horizontalLayout_71.addWidget(self.frame_APV_13) self.verticalLayout_3.addWidget(self.frame_TrackFrom_3) self.horizontalLayout.addWidget(self.frame_2) self.btnDropDown = QtGui.QToolButton(self.frame_Tolerance) self.btnDropDown.setMaximumSize(QtCore.QSize(16777215, 50)) self.btnDropDown.setText(_fromUtf8("")) self.btnDropDown.setObjectName(_fromUtf8("btnDropDown")) self.horizontalLayout.addWidget(self.btnDropDown) spacerItem = QtGui.QSpacerItem(0, 10, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.verticalLayout_IDF.addWidget(self.frame_Tolerance) self.verticalLayout_5.addWidget(self.grbIDF) self.grbHRP = QtGui.QGroupBox(self.groupBox_20) self.grbHRP.setObjectName(_fromUtf8("grbHRP")) self.verticalLayout_HRP = QtGui.QVBoxLayout(self.grbHRP) self.verticalLayout_HRP.setObjectName(_fromUtf8("verticalLayout_HRP")) self.txtHCH = NumberBoxPanel(self.grbHRP) self.txtHCH.CaptionUnits = "m" self.txtHCH.Caption = "Crossing Height [HCH]" self.txtHCH.LabelWidth = 140 self.txtHCH.Value = 15 self.verticalLayout_HRP.addWidget(self.txtHCH) self.txtHSAL = DistanceBoxPanel(self.grbHRP, DistanceUnits.M) self.txtHSAL.Caption = "Safety Area Length" self.txtHSAL.Value = Distance(30) self.txtHSAL.LabelWidth = 140 self.verticalLayout_HRP.addWidget(self.txtHSAL) self.txtHSAW = DistanceBoxPanel(self.grbHRP, DistanceUnits.M) self.txtHSAW.Caption = "Safety Area Width" self.txtHSAW.Value = Distance(30) self.txtHSAW.LabelWidth = 140 self.verticalLayout_HRP.addWidget(self.txtHSAW) self.verticalLayout_5.addWidget(self.grbHRP) self.cmbConstructionType = ComboBoxPanel(self.groupBox_20) self.cmbConstructionType.Caption = "Construction Type" self.cmbConstructionType.LabelWidth = 150 self.verticalLayout_5.addWidget(self.cmbConstructionType) self.verticalLayout.addWidget(self.groupBox_20) spacerItem = QtGui.QSpacerItem(0, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) self.verticalLayout.addItem(spacerItem) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(435, 580) self.verticalLayout = QVBoxLayout(Form) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gbGeneral = GroupBox(Form) self.gbGeneral.Caption = "General" self.verticalLayout.addWidget(self.gbGeneral) # self.cmbAerodrome = ComboBoxPanel(self.gbGeneral, True) # self.cmbAerodrome.Caption = "Aerodrome" # self.cmbAerodrome.LabelWidth = 120 # self.gbGeneral.Add = self.cmbAerodrome # # self.cmbRwyDir = ComboBoxPanel(self.gbGeneral, True) # self.cmbRwyDir.Caption = "Runway Direction" # self.cmbRwyDir.LabelWidth = 120 # self.cmbRwyDir.Width = 120 # self.gbGeneral.Add = self.cmbRwyDir self.cmbRnavSpecification = ComboBoxPanel(self.gbGeneral) self.cmbRnavSpecification.Caption = "Rnav Specification" self.cmbRnavSpecification.LabelWidth = 150 self.gbGeneral.Add = self.cmbRnavSpecification self.frameChbThree = Frame(self.gbGeneral, "HL") self.gbGeneral.Add = self.frameChbThree self.chbUseTwoWpt = CheckBox(self.frameChbThree) self.chbUseTwoWpt.Caption = "Use 2 Waypoints" self.frameChbThree.Add = self.chbUseTwoWpt self.chbInsertSymbol = CheckBox(self.frameChbThree) self.chbInsertSymbol.Caption = "Insert Symbol(s)" self.frameChbThree.Add = self.chbInsertSymbol self.chbCatH = CheckBox(self.frameChbThree) self.chbCatH.Caption = "Cat.H" self.frameChbThree.Add = self.chbCatH self.cmbPhaseOfFlight = ComboBoxPanel(self.gbGeneral) self.cmbPhaseOfFlight.Caption = "Phase Of Flight" self.cmbPhaseOfFlight.LabelWidth = 150 self.gbGeneral.Add = self.cmbPhaseOfFlight self.pnlArp = PositionPanel(self.gbGeneral) self.pnlArp.Caption = "Aerodrome Reference Point(ARP)" self.pnlArp.btnCalculater.hide() self.pnlArp.hideframe_Altitude() self.gbGeneral.Add = self.pnlArp self.gbWaypoint1 = GroupBox(self.gbGeneral) self.gbWaypoint1.Caption = "Waypoint1" self.gbGeneral.Add = self.gbWaypoint1 self.cmbType1 = ComboBoxPanel(self.gbWaypoint1) self.cmbType1.Caption = "Type" self.cmbType1.LabelWidth = 150 self.gbWaypoint1.Add = self.cmbType1 self.pnlTolerances = RnavTolerancesPanel(self.gbWaypoint1) self.pnlTolerances.set_Att(Distance(0.8, DistanceUnits.NM)) self.pnlTolerances.set_Xtt(Distance(1, DistanceUnits.NM)) self.pnlTolerances.set_Asw(Distance(2, DistanceUnits.NM)) self.gbWaypoint1.Add = self.pnlTolerances self.pnlWaypoint1 = PositionPanel(self.gbWaypoint1) self.pnlWaypoint1.btnCalculater.hide() self.pnlWaypoint1.hideframe_Altitude() self.gbWaypoint1.Add = self.pnlWaypoint1 self.gbWaypoint2 = GroupBox(self.gbGeneral) self.gbWaypoint2.Caption = "Waypoint2" self.gbGeneral.Add = self.gbWaypoint2 self.cmbType2 = ComboBoxPanel(self.gbWaypoint2) self.cmbType2.Caption = "Type" self.cmbType2.LabelWidth = 150 self.gbWaypoint2.Add = self.cmbType2 self.pnlTolerances2 = RnavTolerancesPanel(self.gbWaypoint2) self.pnlTolerances2.set_Att(Distance(0.8, DistanceUnits.NM)) self.pnlTolerances2.set_Xtt(Distance(1, DistanceUnits.NM)) self.pnlTolerances2.set_Asw(Distance(2, DistanceUnits.NM)) self.gbWaypoint2.Add = self.pnlTolerances2 self.pnlWaypoint2 = PositionPanel(self.gbWaypoint2) self.pnlWaypoint2.btnCalculater.hide() self.pnlWaypoint2.hideframe_Altitude() self.gbWaypoint2.Add = self.pnlWaypoint2 self.frmRadioBtns = Frame(self.gbGeneral, "HL") self.gbGeneral.Add = self.frmRadioBtns self.rdnTF = QRadioButton(self.frmRadioBtns) self.rdnTF.setObjectName("rdnTF") self.rdnTF.setText("TF") self.rdnTF.setChecked(True) self.frmRadioBtns.Add = self.rdnTF self.rdnDF = QRadioButton(self.frmRadioBtns) self.rdnDF.setObjectName("rdnDF") self.rdnDF.setText("DF") self.frmRadioBtns.Add = self.rdnDF self.rdnCF = QRadioButton(self.frmRadioBtns) self.rdnCF.setObjectName("rdnCF") self.rdnCF.setText("CF") self.frmRadioBtns.Add = self.rdnCF self.chbCircularArcs = CheckBox(self.gbGeneral) self.chbCircularArcs.Caption = "Use Circular Arcs Method for Turns <= 30" self.gbGeneral.Add = self.chbCircularArcs self.gbParameters = GroupBox(Form) self.gbParameters.Caption = "Parameters" self.verticalLayout.addWidget(self.gbParameters) self.cmbSelectionMode = ComboBoxPanel(self.gbParameters) self.cmbSelectionMode.Caption = "Selection Mode" self.cmbSelectionMode.LabelWidth = 150 self.gbParameters.Add = self.cmbSelectionMode self.pnlInbound = TrackRadialBoxPanel(self.gbParameters) self.pnlInbound.Caption = "In-bound Track" self.pnlInbound.LabelWidth = 150 self.gbParameters.Add = self.pnlInbound self.pnlOutbound = TrackRadialBoxPanel(self.gbParameters) self.pnlOutbound.Caption = "Out-bound Track" self.pnlOutbound.LabelWidth = 150 self.gbParameters.Add = self.pnlOutbound # icon = QIcon() # icon.addPixmap(QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QIcon.Normal, QIcon.Off) self.pnlIas = SpeedBoxPanel(self.gbParameters) self.pnlIas.Caption = "IAS" self.pnlIas.LabelWidth = 150 self.pnlIas.Value = Speed(250) self.gbParameters.Add = self.pnlIas self.pnlTas = SpeedBoxPanel(self.gbParameters) self.pnlTas.Caption = "TAS" self.pnlTas.Enabled = False self.pnlTas.LabelWidth = 150 self.gbParameters.Add = self.pnlTas self.pnlAltitude = AltitudeBoxPanel(self.gbParameters) self.pnlAltitude.Caption = "Altitude" self.pnlAltitude.LabelWidth = 150 self.pnlAltitude.Value = Altitude(1000) self.gbParameters.Add = self.pnlAltitude self.pnlIsa = NumberBoxPanel(self.gbParameters, "0.0") self.pnlIsa.CaptionUnits = define._degreeStr + "C" self.pnlIsa.Caption = "ISA" self.pnlIsa.LabelWidth = 150 self.pnlIsa.Value = 15 self.gbParameters.Add = self.pnlIsa self.pnlBankAngle = NumberBoxPanel(self.gbParameters, "0.0") self.pnlBankAngle.CaptionUnits = define._degreeStr self.pnlBankAngle.Caption = "Bank Angle" self.pnlBankAngle.LabelWidth = 150 self.pnlBankAngle.Value = 25 self.gbParameters.Add = self.pnlBankAngle self.pnlBankEstTime = NumberBoxPanel(self.gbParameters, "0.0") self.pnlBankEstTime.Caption = "Bank Establishment Time" self.pnlBankEstTime.Value = 1 self.pnlBankEstTime.LabelWidth = 150 self.pnlBankEstTime.Value = 5 self.gbParameters.Add = self.pnlBankEstTime self.pnlPilotTime = NumberBoxPanel(self.gbParameters, "0.0") self.pnlPilotTime.Caption = "Pilot Reaction Time" self.pnlPilotTime.Value = 6 self.pnlPilotTime.LabelWidth = 150 self.gbParameters.Add = self.pnlPilotTime self.pnlWind = WindPanel(self.gbParameters) self.pnlWind.LabelWidth = 145 self.gbParameters.Add = self.pnlWind self.pnlPrimaryMoc = AltitudeBoxPanel(self.gbParameters) self.pnlPrimaryMoc.Caption = "Primary Moc" self.pnlPrimaryMoc.LabelWidth = 150 self.gbParameters.Add = self.pnlPrimaryMoc self.cmbConstructionType = ComboBoxPanel(self.gbParameters) self.cmbConstructionType.Caption = "Construction Type" self.cmbConstructionType.LabelWidth = 150 self.gbParameters.Add = self.cmbConstructionType self.frameMOCmultipiler = Frame(self.gbParameters, "HL") self.gbParameters.Add = self.frameMOCmultipiler self.labelMOCmultipiler = QLabel(self.frameMOCmultipiler) self.labelMOCmultipiler.setMinimumSize(QSize(145, 0)) self.labelMOCmultipiler.setMaximumSize(QSize(145, 16777215)) font = QFont() font.setBold(False) font.setWeight(50) self.labelMOCmultipiler.setFont(font) self.labelMOCmultipiler.setObjectName(_fromUtf8("labelMOCmultipiler")) self.labelMOCmultipiler.setText("MOCmultipiler") self.frameMOCmultipiler.Add = self.labelMOCmultipiler self.mocSpinBox = QSpinBox(self.frameMOCmultipiler) sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.mocSpinBox.sizePolicy().hasHeightForWidth()) self.mocSpinBox.setSizePolicy(sizePolicy) self.mocSpinBox.setMinimumSize(QSize(70, 0)) self.mocSpinBox.setMaximumSize(QSize(70, 16777215)) self.mocSpinBox.setMinimum(1) self.mocSpinBox.setObjectName(_fromUtf8("mocSpinBox")) self.frameMOCmultipiler.Add = self.mocSpinBox spacerItem = QSpacerItem(10,10,QSizePolicy.Expanding, QSizePolicy.Minimum) self.frameMOCmultipiler.layoutBoxPanel.addItem(spacerItem) self.chbDrawTolerance = CheckBox(self.gbParameters) self.chbDrawTolerance.Caption = "Draw Waypoint Tolerance" self.gbParameters.Add = self.chbDrawTolerance
def setupUi(self, HoldingRnp): HoldingRnp.setObjectName(_fromUtf8("HoldingRnp")) HoldingRnp.resize(462, 358) self.holding = HoldingRnp self.verticalLayout = QtGui.QVBoxLayout(HoldingRnp) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.grbParameters = QtGui.QGroupBox(HoldingRnp) self.grbParameters.setObjectName(_fromUtf8("grbParameters")) self.vLayout_grbParameters = QtGui.QVBoxLayout(self.grbParameters) self.vLayout_grbParameters.setObjectName( _fromUtf8("vLayout_grbParameters")) self.frame_RnpValue = QtGui.QFrame(self.grbParameters) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_RnpValue.sizePolicy().hasHeightForWidth()) self.frame_RnpValue.setSizePolicy(sizePolicy) self.frame_RnpValue.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_RnpValue.setFrameShadow(QtGui.QFrame.Raised) self.frame_RnpValue.setObjectName(_fromUtf8("frame_RnpValue")) self.horizontalLayout_19 = QtGui.QHBoxLayout(self.frame_RnpValue) self.horizontalLayout_19.setSpacing(0) self.horizontalLayout_19.setMargin(0) self.horizontalLayout_19.setObjectName( _fromUtf8("horizontalLayout_19")) self.label_9 = QtGui.QLabel(self.frame_RnpValue) self.label_9.setMinimumSize(QtCore.QSize(140, 0)) self.label_9.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_9.setFont(font) self.label_9.setObjectName(_fromUtf8("label_9")) self.horizontalLayout_19.addWidget(self.label_9) self.txtRnpValue = QtGui.QLineEdit(self.frame_RnpValue) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtRnpValue.sizePolicy().hasHeightForWidth()) self.txtRnpValue.setSizePolicy(sizePolicy) self.txtRnpValue.setMinimumSize(QtCore.QSize(105, 0)) self.txtRnpValue.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtRnpValue.setFont(font) self.txtRnpValue.setObjectName(_fromUtf8("txtRnpValue")) self.horizontalLayout_19.addWidget(self.txtRnpValue) self.vLayout_grbParameters.addWidget(self.frame_RnpValue) self.frame_ConstructionType_2 = QtGui.QFrame(self.grbParameters) self.frame_ConstructionType_2.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_ConstructionType_2.sizePolicy().hasHeightForWidth()) self.frame_ConstructionType_2.setSizePolicy(sizePolicy) self.frame_ConstructionType_2.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_ConstructionType_2.setFrameShadow(QtGui.QFrame.Raised) self.frame_ConstructionType_2.setObjectName( _fromUtf8("frame_ConstructionType_2")) self.horizontalLayout_18 = QtGui.QHBoxLayout( self.frame_ConstructionType_2) self.horizontalLayout_18.setSpacing(0) self.horizontalLayout_18.setMargin(0) self.horizontalLayout_18.setObjectName( _fromUtf8("horizontalLayout_18")) self.label_10 = QtGui.QLabel(self.frame_ConstructionType_2) self.label_10.setMinimumSize(QtCore.QSize(140, 0)) self.label_10.setMaximumSize(QtCore.QSize(140, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_10.setFont(font) self.label_10.setObjectName(_fromUtf8("label_10")) self.horizontalLayout_18.addWidget(self.label_10) self.cmbAircraftCategory_2 = QtGui.QComboBox( self.frame_ConstructionType_2) self.cmbAircraftCategory_2.setMaximumSize( QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.cmbAircraftCategory_2.setFont(font) self.cmbAircraftCategory_2.setFrame(True) self.cmbAircraftCategory_2.setObjectName( _fromUtf8("cmbAircraftCategory_2")) self.horizontalLayout_18.addWidget(self.cmbAircraftCategory_2) self.vLayout_grbParameters.addWidget(self.frame_ConstructionType_2) self.frame_Ias = QtGui.QFrame(self.grbParameters) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_Ias.sizePolicy().hasHeightForWidth()) self.frame_Ias.setSizePolicy(sizePolicy) self.frame_Ias.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_Ias.setFrameShadow(QtGui.QFrame.Raised) self.frame_Ias.setObjectName(_fromUtf8("frame_Ias")) self.horizontalLayout_16 = QtGui.QHBoxLayout(self.frame_Ias) self.horizontalLayout_16.setSpacing(0) self.horizontalLayout_16.setMargin(0) self.horizontalLayout_16.setObjectName( _fromUtf8("horizontalLayout_16")) self.label_7 = QtGui.QLabel(self.frame_Ias) self.label_7.setMinimumSize(QtCore.QSize(140, 0)) self.label_7.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_7.setFont(font) self.label_7.setObjectName(_fromUtf8("label_7")) self.horizontalLayout_16.addWidget(self.label_7) self.txtIas = QtGui.QLineEdit(self.frame_Ias) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtIas.sizePolicy().hasHeightForWidth()) self.txtIas.setSizePolicy(sizePolicy) self.txtIas.setMinimumSize(QtCore.QSize(105, 0)) self.txtIas.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtIas.setFont(font) self.txtIas.setObjectName(_fromUtf8("txtIas")) self.horizontalLayout_16.addWidget(self.txtIas) self.btnIasHelp = QtGui.QPushButton(self.frame_Ias) self.btnIasHelp.setText(_fromUtf8("?")) self.btnIasHelp.setObjectName(_fromUtf8("btnIasHelp")) self.btnIasHelp.setFixedWidth(23) self.horizontalLayout_16.addWidget(self.btnIasHelp) self.vLayout_grbParameters.addWidget(self.frame_Ias) self.frame_Tas = QtGui.QFrame(self.grbParameters) self.frame_Tas.setFrameShape(QtGui.QFrame.NoFrame) self.frame_Tas.setFrameShadow(QtGui.QFrame.Raised) self.frame_Tas.setObjectName(_fromUtf8("frame_Tas")) self.horizontalLayout_Tas = QtGui.QHBoxLayout(self.frame_Tas) self.horizontalLayout_Tas.setSpacing(0) self.horizontalLayout_Tas.setMargin(0) self.horizontalLayout_Tas.setObjectName( _fromUtf8("horizontalLayout_Tas")) self.label_Tas = QtGui.QLabel(self.frame_Tas) self.label_Tas.setMinimumSize(QtCore.QSize(140, 0)) self.label_Tas.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_Tas.setFont(font) self.label_Tas.setObjectName(_fromUtf8("label_Tas")) self.horizontalLayout_Tas.addWidget(self.label_Tas) self.txtTas = QtGui.QLineEdit(self.frame_Tas) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtIas.sizePolicy().hasHeightForWidth()) self.txtTas.setSizePolicy(sizePolicy) self.txtTas.setMinimumSize(QtCore.QSize(105, 0)) self.txtTas.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtTas.setFont(font) self.txtTas.setObjectName(_fromUtf8("txtTas")) self.horizontalLayout_Tas.addWidget(self.txtTas) self.vLayout_grbParameters.addWidget(self.frame_Tas) self.vLayout_grbParameters.addWidget(self.frame_Ias) self.frame_Altitude = QtGui.QFrame(self.grbParameters) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_Altitude.sizePolicy().hasHeightForWidth()) self.frame_Altitude.setSizePolicy(sizePolicy) self.frame_Altitude.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_Altitude.setFrameShadow(QtGui.QFrame.Raised) self.frame_Altitude.setObjectName(_fromUtf8("frame_Altitude")) self.horizontalLayout_27 = QtGui.QHBoxLayout(self.frame_Altitude) self.horizontalLayout_27.setSpacing(0) self.horizontalLayout_27.setMargin(0) self.horizontalLayout_27.setObjectName( _fromUtf8("horizontalLayout_27")) self.label_17 = QtGui.QLabel(self.frame_Altitude) self.label_17.setMinimumSize(QtCore.QSize(140, 0)) self.label_17.setMaximumSize(QtCore.QSize(100, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_17.setFont(font) self.label_17.setObjectName(_fromUtf8("label_17")) self.horizontalLayout_27.addWidget(self.label_17) self.txtAltitudeM = QtGui.QLineEdit(self.frame_Altitude) self.txtAltitudeM.setObjectName(_fromUtf8("txtAltitudeM")) self.horizontalLayout_27.addWidget(self.txtAltitudeM) self.label_2 = QtGui.QLabel(self.frame_Altitude) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_27.addWidget(self.label_2) self.txtAltitude = QtGui.QLineEdit(self.frame_Altitude) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtAltitude.sizePolicy().hasHeightForWidth()) self.txtAltitude.setSizePolicy(sizePolicy) self.txtAltitude.setMinimumSize(QtCore.QSize(105, 0)) self.txtAltitude.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtAltitude.setFont(font) self.txtAltitude.setObjectName(_fromUtf8("txtAltitude")) self.horizontalLayout_27.addWidget(self.txtAltitude) self.label = QtGui.QLabel(self.frame_Altitude) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_27.addWidget(self.label) self.vLayout_grbParameters.addWidget(self.frame_Altitude) self.frame_IasMA = QtGui.QFrame(self.grbParameters) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_IasMA.sizePolicy().hasHeightForWidth()) self.frame_IasMA.setSizePolicy(sizePolicy) self.frame_IasMA.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_IasMA.setFrameShadow(QtGui.QFrame.Raised) self.frame_IasMA.setObjectName(_fromUtf8("frame_IasMA")) self.horizontalLayout_11 = QtGui.QHBoxLayout(self.frame_IasMA) self.horizontalLayout_11.setSpacing(0) self.horizontalLayout_11.setMargin(0) self.horizontalLayout_11.setObjectName( _fromUtf8("horizontalLayout_11")) self.label_3 = QtGui.QLabel(self.frame_IasMA) self.label_3.setMinimumSize(QtCore.QSize(140, 0)) self.label_3.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_3.setFont(font) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout_11.addWidget(self.label_3) self.txtIsa = QtGui.QLineEdit(self.frame_IasMA) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtIsa.sizePolicy().hasHeightForWidth()) self.txtIsa.setSizePolicy(sizePolicy) self.txtIsa.setMinimumSize(QtCore.QSize(105, 0)) self.txtIsa.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtIsa.setFont(font) self.txtIsa.setObjectName(_fromUtf8("txtIsa")) self.horizontalLayout_11.addWidget(self.txtIsa) self.vLayout_grbParameters.addWidget(self.frame_IasMA) self.frame_Time = QtGui.QFrame(self.grbParameters) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_Time.sizePolicy().hasHeightForWidth()) self.frame_Time.setSizePolicy(sizePolicy) self.frame_Time.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_Time.setFrameShadow(QtGui.QFrame.Raised) self.frame_Time.setObjectName(_fromUtf8("frame_Time")) self.horizontalLayout_14 = QtGui.QHBoxLayout(self.frame_Time) self.horizontalLayout_14.setSpacing(0) self.horizontalLayout_14.setMargin(0) self.horizontalLayout_14.setObjectName( _fromUtf8("horizontalLayout_14")) self.label_5 = QtGui.QLabel(self.frame_Time) self.label_5.setMinimumSize(QtCore.QSize(140, 0)) self.label_5.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_5.setFont(font) self.label_5.setObjectName(_fromUtf8("label_5")) self.horizontalLayout_14.addWidget(self.label_5) self.txtTime = QtGui.QLineEdit(self.frame_Time) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtTime.sizePolicy().hasHeightForWidth()) self.txtTime.setSizePolicy(sizePolicy) self.txtTime.setMinimumSize(QtCore.QSize(105, 0)) self.txtTime.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtTime.setFont(font) self.txtTime.setObjectName(_fromUtf8("txtTime")) self.horizontalLayout_14.addWidget(self.txtTime) self.vLayout_grbParameters.addWidget(self.frame_Time) self.frame_Moc = QtGui.QFrame(self.grbParameters) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_Moc.sizePolicy().hasHeightForWidth()) self.frame_Moc.setSizePolicy(sizePolicy) self.frame_Moc.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_Moc.setFrameShadow(QtGui.QFrame.Raised) self.frame_Moc.setObjectName(_fromUtf8("frame_Moc")) self.horizontalLayout_12 = QtGui.QHBoxLayout(self.frame_Moc) self.horizontalLayout_12.setSpacing(0) self.horizontalLayout_12.setMargin(0) self.horizontalLayout_12.setObjectName( _fromUtf8("horizontalLayout_12")) self.label_4 = QtGui.QLabel(self.frame_Moc) self.label_4.setMinimumSize(QtCore.QSize(140, 0)) self.label_4.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_4.setFont(font) self.label_4.setObjectName(_fromUtf8("label_4")) self.horizontalLayout_12.addWidget(self.label_4) self.txtMoc = QtGui.QLineEdit(self.frame_Moc) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtMoc.sizePolicy().hasHeightForWidth()) self.txtMoc.setSizePolicy(sizePolicy) self.txtMoc.setMinimumSize(QtCore.QSize(105, 0)) self.txtMoc.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtMoc.setFont(font) self.txtMoc.setObjectName(_fromUtf8("txtMoc")) self.horizontalLayout_12.addWidget(self.txtMoc) self.label_6 = QtGui.QLabel(self.frame_Moc) self.label_6.setObjectName(_fromUtf8("label_6")) self.horizontalLayout_12.addWidget(self.label_6) self.txtMocFt = QtGui.QLineEdit(self.frame_Moc) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtMocFt.setFont(font) self.txtMocFt.setText(_fromUtf8("")) self.txtMocFt.setObjectName(_fromUtf8("txtMocFt")) self.horizontalLayout_12.addWidget(self.txtMocFt) self.labelMocFt = QtGui.QLabel(self.frame_Moc) self.labelMocFt.setObjectName(_fromUtf8("labelMocFt")) self.horizontalLayout_12.addWidget(self.labelMocFt) self.vLayout_grbParameters.addWidget(self.frame_Moc) self.frame_ConstructionType = QtGui.QFrame(self.grbParameters) self.frame_ConstructionType.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_ConstructionType.sizePolicy().hasHeightForWidth()) self.frame_ConstructionType.setSizePolicy(sizePolicy) self.frame_ConstructionType.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_ConstructionType.setFrameShadow(QtGui.QFrame.Raised) self.frame_ConstructionType.setObjectName( _fromUtf8("frame_ConstructionType")) self.horizontalLayout_17 = QtGui.QHBoxLayout( self.frame_ConstructionType) self.horizontalLayout_17.setSpacing(0) self.horizontalLayout_17.setMargin(0) self.horizontalLayout_17.setObjectName( _fromUtf8("horizontalLayout_17")) self.label_8 = QtGui.QLabel(self.frame_ConstructionType) self.label_8.setMinimumSize(QtCore.QSize(140, 0)) self.label_8.setMaximumSize(QtCore.QSize(140, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_8.setFont(font) self.label_8.setObjectName(_fromUtf8("label_8")) self.horizontalLayout_17.addWidget(self.label_8) self.cmbConstruction = QtGui.QComboBox(self.frame_ConstructionType) self.cmbConstruction.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.cmbConstruction.setFont(font) self.cmbConstruction.setFrame(True) self.cmbConstruction.setObjectName(_fromUtf8("cmbConstruction")) self.horizontalLayout_17.addWidget(self.cmbConstruction) self.vLayout_grbParameters.addWidget(self.frame_ConstructionType) self.verticalLayout.addWidget(self.grbParameters) self.groupBox_2 = QtGui.QGroupBox(HoldingRnp) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox_2) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.txtTrack = TrackRadialBoxPanel(self.groupBox_2) self.txtTrack.Caption = "In-bound Track" self.verticalLayout_2.addWidget(self.txtTrack) # self.frame_ThrFaf = QtGui.QFrame(self.groupBox_2) # 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(140, 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.txtTrack = QtGui.QLineEdit(self.frame_APV_9) # self.txtTrack.setEnabled(True) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtTrack.setFont(font) # self.txtTrack.setObjectName(_fromUtf8("txtTrack")) # self.horizontalLayout_13.addWidget(self.txtTrack) # self.btnCaptureTrack = QtGui.QToolButton(self.frame_APV_9) # self.btnCaptureTrack.setText(_fromUtf8("")) # icon = QtGui.QIcon() # icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) # self.btnCaptureTrack.setIcon(icon) # self.btnCaptureTrack.setObjectName(_fromUtf8("btnCaptureTrack")) # self.horizontalLayout_13.addWidget(self.btnCaptureTrack) # self.horizontalLayout_65.addWidget(self.frame_APV_9) # self.verticalLayout_2.addWidget(self.frame_ThrFaf) self.frame_60 = QtGui.QFrame(self.groupBox_2) 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(140, 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.cmbOrientation = QtGui.QComboBox(self.frame_60) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbOrientation.sizePolicy().hasHeightForWidth()) self.cmbOrientation.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbOrientation.setFont(font) self.cmbOrientation.setObjectName(_fromUtf8("cmbOrientation")) self.horizontalLayout_61.addWidget(self.cmbOrientation) self.verticalLayout_2.addWidget(self.frame_60) self.verticalLayout.addWidget(self.groupBox_2) self.retranslateUi(HoldingRnp) QtCore.QMetaObject.connectSlotsByName(HoldingRnp)
def setupUi(self, FixToleranceArea): FixToleranceArea.setObjectName(_fromUtf8("FixToleranceArea")) FixToleranceArea.resize(464, 314) self.horizontalLayout = QtGui.QHBoxLayout(FixToleranceArea) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.tabCtrlGeneral = QtGui.QTabWidget(FixToleranceArea) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(True) font.setWeight(75) self.tabCtrlGeneral.setFont(font) self.tabCtrlGeneral.setAutoFillBackground(False) self.tabCtrlGeneral.setStyleSheet(_fromUtf8("")) self.tabCtrlGeneral.setObjectName(_fromUtf8("tabCtrlGeneral")) self.tab_Results = QtGui.QWidget(FixToleranceArea) self.tab_Results.setObjectName(_fromUtf8("tab_Results")) self.hlResults = QtGui.QHBoxLayout(self.tab_Results) self.hlResults.setSpacing(3) self.hlResults.setMargin(3) self.hlResults.setObjectName(_fromUtf8("hlResults")) self.grbResult = QtGui.QGroupBox(self.tab_Results) self.grbResult.setTitle(_fromUtf8("")) self.grbResult.setObjectName(_fromUtf8("grbResult")) self.vlResultGroup = QtGui.QVBoxLayout(self.grbResult) self.vlResultGroup.setMargin(3) self.vlResultGroup.setObjectName(_fromUtf8("vlResultGroup")) self.gbTrackingAid = QtGui.QGroupBox(self.grbResult) self.gbTrackingAid.setObjectName(_fromUtf8("gbTrackingAid")) self.vl_gbTrackingAid = QtGui.QVBoxLayout(self.gbTrackingAid) self.vl_gbTrackingAid.setObjectName(_fromUtf8("vl_gbTrackingAid")) self.frameTrackingType = QtGui.QFrame(self.gbTrackingAid) self.frameTrackingType.setFrameShape(QtGui.QFrame.NoFrame) self.frameTrackingType.setFrameShadow(QtGui.QFrame.Raised) self.frameTrackingType.setObjectName(_fromUtf8("frameTrackingType")) self.horizontalLayout_59 = QtGui.QHBoxLayout(self.frameTrackingType) self.horizontalLayout_59.setSpacing(0) self.horizontalLayout_59.setMargin(0) self.horizontalLayout_59.setObjectName( _fromUtf8("horizontalLayout_59")) self.label_67 = QtGui.QLabel(self.frameTrackingType) self.label_67.setMinimumSize(QtCore.QSize(150, 0)) self.label_67.setMaximumSize(QtCore.QSize(150, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_67.setFont(font) self.label_67.setObjectName(_fromUtf8("label_67")) self.horizontalLayout_59.addWidget(self.label_67) self.cmbTrackingType = QtGui.QComboBox(self.frameTrackingType) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbTrackingType.sizePolicy().hasHeightForWidth()) self.cmbTrackingType.setSizePolicy(sizePolicy) self.cmbTrackingType.setMinimumSize(QtCore.QSize(79, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbTrackingType.setFont(font) self.cmbTrackingType.setObjectName(_fromUtf8("cmbTrackingType")) self.horizontalLayout_59.addWidget(self.cmbTrackingType) self.vl_gbTrackingAid.addWidget(self.frameTrackingType) self.txtTrackingRadialTrack = TrackRadialBoxPanel(self.gbTrackingAid) self.txtTrackingRadialTrack.Caption = "Radial" self.vl_gbTrackingAid.addWidget(self.txtTrackingRadialTrack) # self.frameTrackingRadialTrack = QtGui.QFrame(self.gbTrackingAid) # self.frameTrackingRadialTrack.setFrameShape(QtGui.QFrame.NoFrame) # self.frameTrackingRadialTrack.setFrameShadow(QtGui.QFrame.Raised) # self.frameTrackingRadialTrack.setObjectName(_fromUtf8("frameTrackingRadialTrack")) # self.horizontalLayout_Radial1 = QtGui.QHBoxLayout(self.frameTrackingRadialTrack) # self.horizontalLayout_Radial1.setSpacing(0) # self.horizontalLayout_Radial1.setMargin(0) # self.horizontalLayout_Radial1.setObjectName(_fromUtf8("horizontalLayout_Radial1")) # self.label_TrackingRadial = QtGui.QLabel(self.frameTrackingRadialTrack) # self.label_TrackingRadial.setMinimumSize(QtCore.QSize(150, 0)) # self.label_TrackingRadial.setMaximumSize(QtCore.QSize(150, 16777215)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_TrackingRadial.setFont(font) # self.label_TrackingRadial.setObjectName(_fromUtf8("label_TrackingRadial")) # self.horizontalLayout_Radial1.addWidget(self.label_TrackingRadial) # self.frameTrack_2 = QtGui.QFrame(self.frameTrackingRadialTrack) # 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.txtTrackingRadialTrack = QtGui.QLineEdit(self.frameTrack_2) # self.txtTrackingRadialTrack.setEnabled(True) # sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) # sizePolicy.setHorizontalStretch(0) # sizePolicy.setVerticalStretch(0) # sizePolicy.setHeightForWidth(self.txtTrackingRadialTrack.sizePolicy().hasHeightForWidth()) # self.txtTrackingRadialTrack.setSizePolicy(sizePolicy) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtTrackingRadialTrack.setFont(font) # self.txtTrackingRadialTrack.setObjectName(_fromUtf8("txtTrackingRadialTrack")) # self.horizontalLayout_11.addWidget(self.txtTrackingRadialTrack) # self.btnCaptureTrackingRadialTrack = QtGui.QToolButton(self.frameTrack_2) # self.btnCaptureTrackingRadialTrack.setText(_fromUtf8("")) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) # self.btnCaptureTrackingRadialTrack.setIcon(icon) # self.btnCaptureTrackingRadialTrack.setObjectName(_fromUtf8("btnCaptureTrackingRadialTrack")) # self.horizontalLayout_11.addWidget(self.btnCaptureTrackingRadialTrack) # self.horizontalLayout_Radial1.addWidget(self.frameTrack_2) # self.vl_gbTrackingAid.addWidget(self.frameTrackingRadialTrack) self.vlResultGroup.addWidget(self.gbTrackingAid) self.gbIntersectingAid = QtGui.QGroupBox(self.grbResult) self.gbIntersectingAid.setObjectName(_fromUtf8("gbIntersectingAid")) self.vl_gbIntersectingAid = QtGui.QVBoxLayout(self.gbIntersectingAid) self.vl_gbIntersectingAid.setObjectName( _fromUtf8("vl_gbIntersectingAid")) self.frameIntersectingType = QtGui.QFrame(self.gbIntersectingAid) self.frameIntersectingType.setFrameShape(QtGui.QFrame.NoFrame) self.frameIntersectingType.setFrameShadow(QtGui.QFrame.Raised) self.frameIntersectingType.setObjectName( _fromUtf8("frameIntersectingType")) self.horizontalLayout_60 = QtGui.QHBoxLayout( self.frameIntersectingType) self.horizontalLayout_60.setSpacing(0) self.horizontalLayout_60.setMargin(0) self.horizontalLayout_60.setObjectName( _fromUtf8("horizontalLayout_60")) self.label_68 = QtGui.QLabel(self.frameIntersectingType) self.label_68.setMinimumSize(QtCore.QSize(150, 0)) self.label_68.setMaximumSize(QtCore.QSize(150, 16777215)) 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.cmbIntersectingType = QtGui.QComboBox(self.frameIntersectingType) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbIntersectingType.sizePolicy().hasHeightForWidth()) self.cmbIntersectingType.setSizePolicy(sizePolicy) self.cmbIntersectingType.setMinimumSize(QtCore.QSize(79, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbIntersectingType.setFont(font) self.cmbIntersectingType.setObjectName( _fromUtf8("cmbIntersectingType")) self.horizontalLayout_60.addWidget(self.cmbIntersectingType) self.vl_gbIntersectingAid.addWidget(self.frameIntersectingType) self.txtIntersectingRadialTrack = TrackRadialBoxPanel( self.gbIntersectingAid) self.txtIntersectingRadialTrack.Caption = "Radial" self.vl_gbIntersectingAid.addWidget(self.txtIntersectingRadialTrack) # self.frameTrackRoot_2 = QtGui.QFrame(self.gbIntersectingAid) # self.frameTrackRoot_2.setFrameShape(QtGui.QFrame.NoFrame) # self.frameTrackRoot_2.setFrameShadow(QtGui.QFrame.Raised) # self.frameTrackRoot_2.setObjectName(_fromUtf8("frameTrackRoot_2")) # self.horizontalLayout_64 = QtGui.QHBoxLayout(self.frameTrackRoot_2) # self.horizontalLayout_64.setSpacing(0) # self.horizontalLayout_64.setMargin(0) # self.horizontalLayout_64.setObjectName(_fromUtf8("horizontalLayout_64")) # self.label_IntersectingRadial = QtGui.QLabel(self.frameTrackRoot_2) # self.label_IntersectingRadial.setMinimumSize(QtCore.QSize(150, 0)) # self.label_IntersectingRadial.setMaximumSize(QtCore.QSize(150, 16777215)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_IntersectingRadial.setFont(font) # self.label_IntersectingRadial.setObjectName(_fromUtf8("label_IntersectingRadial")) # self.horizontalLayout_64.addWidget(self.label_IntersectingRadial) # self.frameIntersectingRadialTrack = QtGui.QFrame(self.frameTrackRoot_2) # self.frameIntersectingRadialTrack.setFrameShape(QtGui.QFrame.StyledPanel) # self.frameIntersectingRadialTrack.setFrameShadow(QtGui.QFrame.Raised) # self.frameIntersectingRadialTrack.setObjectName(_fromUtf8("frameIntersectingRadialTrack")) # self.horizontalLayout_12 = QtGui.QHBoxLayout(self.frameIntersectingRadialTrack) # self.horizontalLayout_12.setSpacing(0) # self.horizontalLayout_12.setMargin(0) # self.horizontalLayout_12.setObjectName(_fromUtf8("horizontalLayout_12")) # self.txtIntersectingRadialTrack = QtGui.QLineEdit(self.frameIntersectingRadialTrack) # self.txtIntersectingRadialTrack.setEnabled(True) # sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) # sizePolicy.setHorizontalStretch(0) # sizePolicy.setVerticalStretch(0) # sizePolicy.setHeightForWidth(self.txtIntersectingRadialTrack.sizePolicy().hasHeightForWidth()) # self.txtIntersectingRadialTrack.setSizePolicy(sizePolicy) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtIntersectingRadialTrack.setFont(font) # self.txtIntersectingRadialTrack.setObjectName(_fromUtf8("txtIntersectingRadialTrack")) # self.horizontalLayout_12.addWidget(self.txtIntersectingRadialTrack) # self.btnCaptureIntersectingRadialTrack = QtGui.QToolButton(self.frameIntersectingRadialTrack) # self.btnCaptureIntersectingRadialTrack.setText(_fromUtf8("")) # self.btnCaptureIntersectingRadialTrack.setIcon(icon) # self.btnCaptureIntersectingRadialTrack.setObjectName(_fromUtf8("btnCaptureIntersectingRadialTrack")) # self.horizontalLayout_12.addWidget(self.btnCaptureIntersectingRadialTrack) # self.horizontalLayout_64.addWidget(self.frameIntersectingRadialTrack) # self.vl_gbIntersectingAid.addWidget(self.frameTrackRoot_2) self.frame_IntersectingDistance = QtGui.QFrame(self.gbIntersectingAid) self.frame_IntersectingDistance.setFrameShape(QtGui.QFrame.NoFrame) self.frame_IntersectingDistance.setFrameShadow(QtGui.QFrame.Raised) self.frame_IntersectingDistance.setObjectName( _fromUtf8("frame_IntersectingDistance")) self.horizontalLayout_65 = QtGui.QHBoxLayout( self.frame_IntersectingDistance) self.horizontalLayout_65.setSpacing(0) self.horizontalLayout_65.setMargin(0) self.horizontalLayout_65.setObjectName( _fromUtf8("horizontalLayout_65")) self.label_74 = QtGui.QLabel(self.frame_IntersectingDistance) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_74.sizePolicy().hasHeightForWidth()) self.label_74.setSizePolicy(sizePolicy) 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_65.addWidget(self.label_74) self.frame_APV_9 = QtGui.QFrame(self.frame_IntersectingDistance) 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.txtIntersectingDistance = QtGui.QLineEdit(self.frame_APV_9) self.txtIntersectingDistance.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtIntersectingDistance.setFont(font) self.txtIntersectingDistance.setObjectName( _fromUtf8("txtIntersectingDistance")) self.horizontalLayout_13.addWidget(self.txtIntersectingDistance) self.btnMeasureIntersectingDistance = QtGui.QToolButton( self.frame_APV_9) self.btnMeasureIntersectingDistance.setText(_fromUtf8("")) self.btnMeasureIntersectingDistance.setIcon(icon) self.btnMeasureIntersectingDistance.setObjectName( _fromUtf8("btnMeasureIntersectingDistance")) self.horizontalLayout_13.addWidget(self.btnMeasureIntersectingDistance) self.horizontalLayout_65.addWidget(self.frame_APV_9) self.vl_gbIntersectingAid.addWidget(self.frame_IntersectingDistance) self.pnl0dmeAtThr = QtGui.QFrame(self.gbIntersectingAid) self.pnl0dmeAtThr.setFrameShape(QtGui.QFrame.StyledPanel) self.pnl0dmeAtThr.setFrameShadow(QtGui.QFrame.Raised) self.pnl0dmeAtThr.setObjectName(_fromUtf8("pnl0dmeAtThr")) self.vl_pnl0dmeAtThr = QtGui.QVBoxLayout(self.pnl0dmeAtThr) self.vl_pnl0dmeAtThr.setSpacing(0) self.vl_pnl0dmeAtThr.setMargin(0) self.vl_pnl0dmeAtThr.setObjectName(_fromUtf8("vl_pnl0dmeAtThr")) self.chb0dmeAtThr = QtGui.QCheckBox(self.pnl0dmeAtThr) self.chb0dmeAtThr.setObjectName(_fromUtf8("chb0dmeAtThr")) self.vl_pnl0dmeAtThr.addWidget(self.chb0dmeAtThr) self.frame_DmeOffset = QtGui.QFrame(self.pnl0dmeAtThr) self.frame_DmeOffset.setFrameShape(QtGui.QFrame.NoFrame) self.frame_DmeOffset.setFrameShadow(QtGui.QFrame.Raised) self.frame_DmeOffset.setObjectName(_fromUtf8("frame_DmeOffset")) self.horizontalLayout_66 = QtGui.QHBoxLayout(self.frame_DmeOffset) self.horizontalLayout_66.setSpacing(0) self.horizontalLayout_66.setMargin(0) self.horizontalLayout_66.setObjectName( _fromUtf8("horizontalLayout_66")) self.label_73 = QtGui.QLabel(self.frame_DmeOffset) 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(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_66.addWidget(self.label_73) self.frame_APV_8 = QtGui.QFrame(self.frame_DmeOffset) 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_14 = QtGui.QHBoxLayout(self.frame_APV_8) self.horizontalLayout_14.setSpacing(0) self.horizontalLayout_14.setMargin(0) self.horizontalLayout_14.setObjectName( _fromUtf8("horizontalLayout_14")) self.txtDmeOffset = QtGui.QLineEdit(self.frame_APV_8) self.txtDmeOffset.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtDmeOffset.setFont(font) self.txtDmeOffset.setObjectName(_fromUtf8("txtDmeOffset")) self.horizontalLayout_14.addWidget(self.txtDmeOffset) self.btnMeasureDmeOffset = QtGui.QToolButton(self.frame_APV_8) self.btnMeasureDmeOffset.setText(_fromUtf8("")) self.btnMeasureDmeOffset.setIcon(icon) self.btnMeasureDmeOffset.setObjectName( _fromUtf8("btnMeasureDmeOffset")) self.horizontalLayout_14.addWidget(self.btnMeasureDmeOffset) self.horizontalLayout_66.addWidget(self.frame_APV_8) self.vl_pnl0dmeAtThr.addWidget(self.frame_DmeOffset) self.vl_gbIntersectingAid.addWidget(self.pnl0dmeAtThr) self.vlResultGroup.addWidget(self.gbIntersectingAid) self.hlResults.addWidget(self.grbResult) self.frmGeneralButtons_2 = QtGui.QFrame(self.tab_Results) self.frmGeneralButtons_2.setMaximumSize(QtCore.QSize(100, 16777215)) self.frmGeneralButtons_2.setFrameShape(QtGui.QFrame.StyledPanel) self.frmGeneralButtons_2.setFrameShadow(QtGui.QFrame.Raised) self.frmGeneralButtons_2.setObjectName( _fromUtf8("frmGeneralButtons_2")) self.vlGeneralBtns_2 = QtGui.QVBoxLayout(self.frmGeneralButtons_2) self.vlGeneralBtns_2.setObjectName(_fromUtf8("vlGeneralBtns_2")) self.btnOpenData_2 = QtGui.QPushButton(self.frmGeneralButtons_2) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnOpenData_2.setFont(font) self.btnOpenData_2.setObjectName(_fromUtf8("btnOpenData_2")) self.vlGeneralBtns_2.addWidget(self.btnOpenData_2) self.btnSaveData_2 = QtGui.QPushButton(self.frmGeneralButtons_2) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnSaveData_2.setFont(font) self.btnSaveData_2.setObjectName(_fromUtf8("btnSaveData_2")) self.vlGeneralBtns_2.addWidget(self.btnSaveData_2) self.btnConstruct_2 = QtGui.QPushButton(self.frmGeneralButtons_2) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnConstruct_2.setFont(font) self.btnConstruct_2.setObjectName(_fromUtf8("btnConstruct_2")) self.vlGeneralBtns_2.addWidget(self.btnConstruct_2) self.btnEvaluate_2 = QtGui.QPushButton(self.frmGeneralButtons_2) self.btnEvaluate_2.setEnabled(False) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnEvaluate_2.setFont(font) self.btnEvaluate_2.setObjectName(_fromUtf8("btnEvaluate_2")) self.vlGeneralBtns_2.addWidget(self.btnEvaluate_2) self.btnExportResult_2 = QtGui.QPushButton(self.frmGeneralButtons_2) self.btnExportResult_2.setEnabled(False) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnExportResult_2.setFont(font) self.btnExportResult_2.setObjectName(_fromUtf8("btnExportResult_2")) self.vlGeneralBtns_2.addWidget(self.btnExportResult_2) self.btnClose_2 = QtGui.QPushButton(self.frmGeneralButtons_2) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnClose_2.setFont(font) self.btnClose_2.setObjectName(_fromUtf8("btnClose_2")) self.vlGeneralBtns_2.addWidget(self.btnClose_2) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vlGeneralBtns_2.addItem(spacerItem) self.hlResults.addWidget(self.frmGeneralButtons_2) self.tabCtrlGeneral.addTab(self.tab_Results, _fromUtf8("")) self.tab_General = QtGui.QWidget(FixToleranceArea) 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.grbGeneral = QtGui.QGroupBox(self.tab_General) self.grbGeneral.setTitle(_fromUtf8("")) self.grbGeneral.setObjectName(_fromUtf8("grbGeneral")) self.vlGeneral = QtGui.QVBoxLayout(self.grbGeneral) self.vlGeneral.setMargin(5) self.vlGeneral.setObjectName(_fromUtf8("vlGeneral")) self.gbNavAid = QtGui.QGroupBox(self.grbGeneral) self.gbNavAid.setObjectName(_fromUtf8("gbNavAid")) self.vl_NavAid = QtGui.QVBoxLayout(self.gbNavAid) self.vl_NavAid.setObjectName(_fromUtf8("vl_NavAid")) 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_61 = QtGui.QHBoxLayout(self.frameNavAidType) self.horizontalLayout_61.setSpacing(0) self.horizontalLayout_61.setMargin(0) self.horizontalLayout_61.setObjectName( _fromUtf8("horizontalLayout_61")) self.label_69 = QtGui.QLabel(self.frameNavAidType) self.label_69.setMinimumSize(QtCore.QSize(100, 0)) self.label_69.setMaximumSize(QtCore.QSize(100, 16777215)) 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.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_61.addWidget(self.cmbNavAidType) self.vl_NavAid.addWidget(self.frameNavAidType) self.vlGeneral.addWidget(self.gbNavAid) self.gbParameters = QtGui.QGroupBox(self.grbGeneral) 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.txtTrackRadial = TrackRadialBoxPanel(self.gbParameters) self.txtTrackRadial.Caption = "In-bound Track" self.vl_gbParameters.addWidget(self.txtTrackRadial) # self.frameTrackRoot = QtGui.QFrame(self.gbParameters) # self.frameTrackRoot.setFrameShape(QtGui.QFrame.NoFrame) # self.frameTrackRoot.setFrameShadow(QtGui.QFrame.Raised) # self.frameTrackRoot.setObjectName(_fromUtf8("frameTrackRoot")) # self.horizontalLayout_63 = QtGui.QHBoxLayout(self.frameTrackRoot) # self.horizontalLayout_63.setSpacing(0) # self.horizontalLayout_63.setMargin(0) # self.horizontalLayout_63.setObjectName(_fromUtf8("horizontalLayout_63")) # self.label_71 = QtGui.QLabel(self.frameTrackRoot) # self.label_71.setMinimumSize(QtCore.QSize(100, 0)) # self.label_71.setMaximumSize(QtCore.QSize(100, 16777215)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_71.setFont(font) # self.label_71.setObjectName(_fromUtf8("label_71")) # self.horizontalLayout_63.addWidget(self.label_71) # self.frameTrack = QtGui.QFrame(self.frameTrackRoot) # self.frameTrack.setFrameShape(QtGui.QFrame.StyledPanel) # self.frameTrack.setFrameShadow(QtGui.QFrame.Raised) # self.frameTrack.setObjectName(_fromUtf8("frameTrack")) # self.horizontalLayout_10 = QtGui.QHBoxLayout(self.frameTrack) # self.horizontalLayout_10.setSpacing(0) # self.horizontalLayout_10.setMargin(0) # self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10")) # self.txtTrackRadial = QtGui.QLineEdit(self.frameTrack) # self.txtTrackRadial.setEnabled(True) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtTrackRadial.setFont(font) # self.txtTrackRadial.setObjectName(_fromUtf8("txtTrackRadial")) # self.horizontalLayout_10.addWidget(self.txtTrackRadial) # self.btnCaptureTrack = QtGui.QToolButton(self.frameTrack) # self.btnCaptureTrack.setText(_fromUtf8("")) # self.btnCaptureTrack.setIcon(icon) # self.btnCaptureTrack.setObjectName(_fromUtf8("btnCaptureTrack")) # self.horizontalLayout_10.addWidget(self.btnCaptureTrack) # self.horizontalLayout_63.addWidget(self.frameTrack) # self.vl_gbParameters.addWidget(self.frameTrackRoot) self.frameAltitude_2 = QtGui.QFrame(self.gbParameters) self.frameAltitude_2.setFrameShape(QtGui.QFrame.NoFrame) self.frameAltitude_2.setFrameShadow(QtGui.QFrame.Raised) self.frameAltitude_2.setObjectName(_fromUtf8("frameAltitude_2")) self.horizontalLayout_70 = QtGui.QHBoxLayout(self.frameAltitude_2) self.horizontalLayout_70.setSpacing(0) self.horizontalLayout_70.setMargin(0) self.horizontalLayout_70.setObjectName( _fromUtf8("horizontalLayout_70")) self.label_78 = QtGui.QLabel(self.frameAltitude_2) self.label_78.setMinimumSize(QtCore.QSize(100, 0)) self.label_78.setMaximumSize(QtCore.QSize(100, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_78.setFont(font) self.label_78.setObjectName(_fromUtf8("label_78")) self.horizontalLayout_70.addWidget(self.label_78) self.txtAltitudeM = QtGui.QLineEdit(self.frameAltitude_2) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAltitudeM.setFont(font) self.txtAltitudeM.setText(_fromUtf8("")) self.txtAltitudeM.setObjectName(_fromUtf8("txtAltitudeM")) self.horizontalLayout_70.addWidget(self.txtAltitudeM) self.label_2 = QtGui.QLabel(self.frameAltitude_2) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_70.addWidget(self.label_2) self.txtAltitude = QtGui.QLineEdit(self.frameAltitude_2) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAltitude.setFont(font) self.txtAltitude.setObjectName(_fromUtf8("txtAltitude")) self.horizontalLayout_70.addWidget(self.txtAltitude) self.label = QtGui.QLabel(self.frameAltitude_2) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_70.addWidget(self.label) self.vl_gbParameters.addWidget(self.frameAltitude_2) self.frameMoc = QtGui.QFrame(self.gbParameters) self.frameMoc.setFrameShape(QtGui.QFrame.NoFrame) self.frameMoc.setFrameShadow(QtGui.QFrame.Raised) self.frameMoc.setObjectName(_fromUtf8("frameMoc")) self.horizontalLayout_74 = QtGui.QHBoxLayout(self.frameMoc) self.horizontalLayout_74.setSpacing(0) self.horizontalLayout_74.setMargin(0) self.horizontalLayout_74.setObjectName( _fromUtf8("horizontalLayout_74")) self.label_82 = QtGui.QLabel(self.frameMoc) self.label_82.setMinimumSize(QtCore.QSize(100, 0)) self.label_82.setMaximumSize(QtCore.QSize(100, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_82.setFont(font) self.label_82.setObjectName(_fromUtf8("label_82")) self.horizontalLayout_74.addWidget(self.label_82) self.txtMoc = QtGui.QLineEdit(self.frameMoc) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtMoc.setFont(font) self.txtMoc.setObjectName(_fromUtf8("txtMoc")) self.horizontalLayout_74.addWidget(self.txtMoc) self.vl_gbParameters.addWidget(self.frameMoc) self.frameMOCMultipiler = QtGui.QFrame(self.gbParameters) self.frameMOCMultipiler.setFrameShape(QtGui.QFrame.NoFrame) self.frameMOCMultipiler.setFrameShadow(QtGui.QFrame.Raised) self.frameMOCMultipiler.setObjectName(_fromUtf8("frameMOCMultipiler")) self.horizontalLayout_62 = QtGui.QHBoxLayout(self.frameMOCMultipiler) self.horizontalLayout_62.setSpacing(0) self.horizontalLayout_62.setMargin(0) self.horizontalLayout_62.setObjectName( _fromUtf8("horizontalLayout_62")) self.label_70 = QtGui.QLabel(self.frameMOCMultipiler) self.label_70.setMinimumSize(QtCore.QSize(100, 0)) self.label_70.setMaximumSize(QtCore.QSize(100, 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.spinBoxMocmulipiler = QtGui.QSpinBox(self.frameMOCMultipiler) self.spinBoxMocmulipiler.setProperty("value", 1) self.spinBoxMocmulipiler.setObjectName( _fromUtf8("spinBoxMocmulipiler")) self.horizontalLayout_62.addWidget(self.spinBoxMocmulipiler) self.vl_gbParameters.addWidget(self.frameMOCMultipiler) self.vlGeneral.addWidget(self.gbParameters) self.horizontalLayout_29.addWidget(self.grbGeneral) self.frmGeneralButtons = QtGui.QFrame(self.tab_General) self.frmGeneralButtons.setMaximumSize(QtCore.QSize(100, 16777215)) self.frmGeneralButtons.setFrameShape(QtGui.QFrame.StyledPanel) self.frmGeneralButtons.setFrameShadow(QtGui.QFrame.Raised) self.frmGeneralButtons.setObjectName(_fromUtf8("frmGeneralButtons")) self.vlGeneralBtns = QtGui.QVBoxLayout(self.frmGeneralButtons) self.vlGeneralBtns.setObjectName(_fromUtf8("vlGeneralBtns")) self.btnOpenData = QtGui.QPushButton(self.frmGeneralButtons) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnOpenData.setFont(font) self.btnOpenData.setObjectName(_fromUtf8("btnOpenData")) self.vlGeneralBtns.addWidget(self.btnOpenData) self.btnSaveData = QtGui.QPushButton(self.frmGeneralButtons) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnSaveData.setFont(font) self.btnSaveData.setObjectName(_fromUtf8("btnSaveData")) self.vlGeneralBtns.addWidget(self.btnSaveData) self.btnConstruct = QtGui.QPushButton(self.frmGeneralButtons) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnConstruct.setFont(font) self.btnConstruct.setObjectName(_fromUtf8("btnConstruct")) self.vlGeneralBtns.addWidget(self.btnConstruct) self.btnPDTCheck = QtGui.QPushButton(self.frmGeneralButtons) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnPDTCheck.setFont(font) self.btnPDTCheck.setObjectName(_fromUtf8("btnPDTCheck")) self.vlGeneralBtns.addWidget(self.btnPDTCheck) self.btnEvaluate = QtGui.QPushButton(self.frmGeneralButtons) self.btnEvaluate.setEnabled(False) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnEvaluate.setFont(font) self.btnEvaluate.setObjectName(_fromUtf8("btnEvaluate")) self.vlGeneralBtns.addWidget(self.btnEvaluate) self.btnExportResult = QtGui.QPushButton(self.frmGeneralButtons) self.btnExportResult.setEnabled(False) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnExportResult.setFont(font) self.btnExportResult.setObjectName(_fromUtf8("btnExportResult")) self.vlGeneralBtns.addWidget(self.btnExportResult) self.btnClose = QtGui.QPushButton(self.frmGeneralButtons) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.btnClose.setFont(font) self.btnClose.setObjectName(_fromUtf8("btnClose")) self.vlGeneralBtns.addWidget(self.btnClose) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vlGeneralBtns.addItem(spacerItem1) self.horizontalLayout_29.addWidget(self.frmGeneralButtons) self.tabCtrlGeneral.addTab(self.tab_General, _fromUtf8("")) self.horizontalLayout.addWidget(self.tabCtrlGeneral) self.retranslateUi(FixToleranceArea) self.tabCtrlGeneral.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(FixToleranceArea) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(_fromUtf8("Resource/btnImage/openData.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnOpenData.setIcon(icon) self.btnOpenData_2.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(_fromUtf8("Resource/btnImage/saveData.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnSaveData.setIcon(icon) self.btnSaveData_2.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(_fromUtf8("Resource/btnImage/construct.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnConstruct.setIcon(icon) self.btnConstruct_2.setIcon(icon) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(_fromUtf8("Resource/btnImage/evaluate.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnEvaluate.setIcon(icon) # 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) self.btnClose_2.setIcon(icon) self.btnClose.setToolTip(_fromUtf8("Close")) self.btnClose_2.setToolTip(_fromUtf8("Close")) self.btnConstruct.setToolTip(_fromUtf8("Construct")) self.btnConstruct_2.setToolTip(_fromUtf8("Construct")) self.btnEvaluate.setToolTip(_fromUtf8("Evaluate")) self.btnOpenData.setToolTip(_fromUtf8("Open Data")) self.btnOpenData_2.setToolTip(_fromUtf8("Open Data")) self.btnSaveData.setToolTip(_fromUtf8("Save Data")) self.btnSaveData_2.setToolTip(_fromUtf8("Save Data"))
def setupUi(self, ui_TurnArea): ui_TurnArea.setObjectName(_fromUtf8("ui_TurnArea")) # ui_TurnArea.resize(269, 293) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Ignored) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(ui_TurnArea.sizePolicy().hasHeightForWidth()) ui_TurnArea.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) ui_TurnArea.setFont(font) self.verticalLayout = QtGui.QVBoxLayout(ui_TurnArea) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gbParameters = QtGui.QGroupBox(ui_TurnArea) 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.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(100, 0)) self.label_68.setMaximumSize(QtCore.QSize(100, 16777215)) 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.horizontalLayout_60.addWidget(self.txtIas) 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.horizontalLayout_68 = QtGui.QHBoxLayout(self.frameTas) self.horizontalLayout_68.setSpacing(0) self.horizontalLayout_68.setMargin(0) self.horizontalLayout_68.setObjectName(_fromUtf8("horizontalLayout_68")) self.label_76 = QtGui.QLabel(self.frameTas) self.label_76.setMinimumSize(QtCore.QSize(100, 0)) self.label_76.setMaximumSize(QtCore.QSize(100, 16777215)) 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.txtTas = QtGui.QLineEdit(self.frameTas) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtTas.setFont(font) self.txtTas.setText(_fromUtf8("")) self.txtTas.setObjectName(_fromUtf8("txtTas")) self.horizontalLayout_68.addWidget(self.txtTas) self.vl_gbParameters.addWidget(self.frameTas) self.frameAltitude = QtGui.QFrame(self.gbParameters) self.frameAltitude.setFrameShape(QtGui.QFrame.NoFrame) self.frameAltitude.setFrameShadow(QtGui.QFrame.Raised) self.frameAltitude.setObjectName(_fromUtf8("frameAltitude")) self.horizontalLayout_69 = QtGui.QHBoxLayout(self.frameAltitude) self.horizontalLayout_69.setSpacing(0) self.horizontalLayout_69.setMargin(0) self.horizontalLayout_69.setObjectName(_fromUtf8("horizontalLayout_69")) self.label_77 = QtGui.QLabel(self.frameAltitude) self.label_77.setMinimumSize(QtCore.QSize(100, 0)) self.label_77.setMaximumSize(QtCore.QSize(100, 16777215)) 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.txtAltitudeM = QtGui.QLineEdit(self.frameAltitude) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAltitudeM.setFont(font) self.txtAltitudeM.setText(_fromUtf8("")) self.txtAltitudeM.setObjectName(_fromUtf8("txtAltitudeM")) self.horizontalLayout_69.addWidget(self.txtAltitudeM) self.label_2 = QtGui.QLabel(self.frameAltitude) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_69.addWidget(self.label_2) self.txtAltitudeFt = QtGui.QLineEdit(self.frameAltitude) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAltitudeFt.setFont(font) self.txtAltitudeFt.setObjectName(_fromUtf8("txtAltitudeFt")) self.horizontalLayout_69.addWidget(self.txtAltitudeFt) self.label = QtGui.QLabel(self.frameAltitude) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_69.addWidget(self.label) self.vl_gbParameters.addWidget(self.frameAltitude) 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(100, 0)) self.label_80.setMaximumSize(QtCore.QSize(100, 16777215)) 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.horizontalLayout_72.addWidget(self.txtIsa) 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.horizontalLayout_74 = QtGui.QHBoxLayout(self.frameBankAngle) self.horizontalLayout_74.setSpacing(0) self.horizontalLayout_74.setMargin(0) self.horizontalLayout_74.setObjectName(_fromUtf8("horizontalLayout_74")) self.label_82 = QtGui.QLabel(self.frameBankAngle) self.label_82.setMinimumSize(QtCore.QSize(100, 0)) self.label_82.setMaximumSize(QtCore.QSize(100, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_82.setFont(font) self.label_82.setObjectName(_fromUtf8("label_82")) self.horizontalLayout_74.addWidget(self.label_82) 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.horizontalLayout_74.addWidget(self.txtBankAngle) self.vl_gbParameters.addWidget(self.frameBankAngle) self.chbDeparture = QtGui.QCheckBox(self.gbParameters) self.chbDeparture.setObjectName(_fromUtf8("chbDeparture")) self.vl_gbParameters.addWidget(self.chbDeparture) self.verticalLayout.addWidget(self.gbParameters) self.gbOrientation = QtGui.QGroupBox(ui_TurnArea) self.gbOrientation.setObjectName(_fromUtf8("gbOrientation")) self.vl_gbOrientation = QtGui.QVBoxLayout(self.gbOrientation) self.vl_gbOrientation.setObjectName(_fromUtf8("vl_gbOrientation")) self.txtTrackRadial = TrackRadialBoxPanel(self.gbOrientation) self.txtTrackRadial.Caption = "Track / Radial" self.vl_gbOrientation.addWidget(self.txtTrackRadial) # self.frameTrackRoot = QtGui.QFrame(self.gbOrientation) # self.frameTrackRoot.setFrameShape(QtGui.QFrame.NoFrame) # self.frameTrackRoot.setFrameShadow(QtGui.QFrame.Raised) # self.frameTrackRoot.setObjectName(_fromUtf8("frameTrackRoot")) # self.horizontalLayout_63 = QtGui.QHBoxLayout(self.frameTrackRoot) # self.horizontalLayout_63.setSpacing(0) # self.horizontalLayout_63.setMargin(0) # self.horizontalLayout_63.setObjectName(_fromUtf8("horizontalLayout_63")) # self.label_71 = QtGui.QLabel(self.frameTrackRoot) # self.label_71.setMinimumSize(QtCore.QSize(100, 0)) # self.label_71.setMaximumSize(QtCore.QSize(100, 16777215)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_71.setFont(font) # self.label_71.setObjectName(_fromUtf8("label_71")) # self.horizontalLayout_63.addWidget(self.label_71) # self.frameTrack = QtGui.QFrame(self.frameTrackRoot) # self.frameTrack.setFrameShape(QtGui.QFrame.StyledPanel) # self.frameTrack.setFrameShadow(QtGui.QFrame.Raised) # self.frameTrack.setObjectName(_fromUtf8("frameTrack")) # self.horizontalLayout_10 = QtGui.QHBoxLayout(self.frameTrack) # self.horizontalLayout_10.setSpacing(0) # self.horizontalLayout_10.setMargin(0) # self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10")) # self.txtTrackRadial = QtGui.QLineEdit(self.frameTrack) # self.txtTrackRadial.setEnabled(True) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtTrackRadial.setFont(font) # self.txtTrackRadial.setObjectName(_fromUtf8("txtTrackRadial")) # self.horizontalLayout_10.addWidget(self.txtTrackRadial) # self.btnCaptureTrack = QtGui.QToolButton(self.frameTrack) # self.btnCaptureTrack.setText(_fromUtf8("")) # icon = QtGui.QIcon() # icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) # self.btnCaptureTrack.setIcon(icon) # self.btnCaptureTrack.setObjectName(_fromUtf8("btnCaptureTrack")) # self.horizontalLayout_10.addWidget(self.btnCaptureTrack) # self.horizontalLayout_63.addWidget(self.frameTrack) # self.vl_gbOrientation.addWidget(self.frameTrackRoot) self.frameOrientation = QtGui.QFrame(self.gbOrientation) self.frameOrientation.setFrameShape(QtGui.QFrame.NoFrame) self.frameOrientation.setFrameShadow(QtGui.QFrame.Raised) self.frameOrientation.setObjectName(_fromUtf8("frameOrientation")) self.horizontalLayout_67 = QtGui.QHBoxLayout(self.frameOrientation) self.horizontalLayout_67.setSpacing(0) self.horizontalLayout_67.setMargin(0) self.horizontalLayout_67.setObjectName(_fromUtf8("horizontalLayout_67")) self.label_75 = QtGui.QLabel(self.frameOrientation) self.label_75.setMinimumSize(QtCore.QSize(100, 0)) self.label_75.setMaximumSize(QtCore.QSize(100, 16777215)) 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.cmbOrientation = QtGui.QComboBox(self.frameOrientation) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmbOrientation.sizePolicy().hasHeightForWidth()) self.cmbOrientation.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbOrientation.setFont(font) self.cmbOrientation.setContextMenuPolicy(QtCore.Qt.NoContextMenu) self.cmbOrientation.setObjectName(_fromUtf8("cmbOrientation")) self.horizontalLayout_67.addWidget(self.cmbOrientation) self.vl_gbOrientation.addWidget(self.frameOrientation) self.verticalLayout.addWidget(self.gbOrientation) self.retranslateUi(ui_TurnArea) QtCore.QMetaObject.connectSlotsByName(ui_TurnArea)
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.gbFix = GroupBox(self.scrollBox) self.gbFix.Caption = "Fix" self.scrollBox.Add = self.gbFix self.cmbFixPos = ComboBoxPanel(self.gbFix) self.cmbFixPos.Caption = "Position" self.cmbFixPos.Button = "coordinate_capture.png" self.gbFix.Add = self.cmbFixPos self.pnlCodeRoleFix = ComboBoxPanel(self.gbFix) self.pnlCodeRoleFix.Caption = "Type" self.gbFix.Add = self.pnlCodeRoleFix self.gbAttributes = GroupBox(self.scrollBox) self.gbAttributes.Caption = "Attributes" self.scrollBox.Add = self.gbAttributes self.cmbRecommendedEnt = ComboBoxPanel(self.gbAttributes) self.cmbRecommendedEnt.Caption = "Recommended Navigational Aid" self.gbAttributes.Add = self.cmbRecommendedEnt self.pnlCodePhase = ComboBoxPanel(self.gbAttributes) self.pnlCodePhase.Caption = "Fligh Phase" self.gbAttributes.Add = self.pnlCodePhase self.pnlCodeType = ComboBoxPanel(self.gbAttributes) self.pnlCodeType.Caption = "Leg Type" self.gbAttributes.Add = self.pnlCodeType self.pnlLegVOR = Frame(self.gbAttributes, "HL") self.gbAttributes.Add = self.pnlLegVOR self.cmbCodeTypeCourse = ComboBoxPanel(self.pnlLegVOR) self.cmbCodeTypeCourse.Caption = "Course Angle (" + define._degreeStr + ")" self.pnlLegVOR.Add = self.cmbCodeTypeCourse self.txtValCourse = TrackRadialBoxPanel(self.pnlLegVOR) self.txtValCourse.LabelWidth = 0 self.pnlLegVOR.Add = self.txtValCourse self.pnlCodeDirTurn = ComboBoxPanel(self.gbAttributes) self.pnlCodeDirTurn.Caption = "Turn Direction" self.gbAttributes.Add = self.pnlCodeDirTurn self.pnlTurnValid = ComboBoxPanel(self.gbAttributes) self.pnlTurnValid.Caption = "Fly-By" self.gbAttributes.Add = self.pnlTurnValid self.cmbCenter = ComboBoxPanel(self.gbAttributes) self.cmbCenter.Caption = "Center" self.cmbCenter.Button = "coordinate_capture.png" self.gbAttributes.Add = self.cmbCenter self.pnlValBankAngle = NumberBoxPanel(self.gbAttributes) self.pnlValBankAngle.Caption = "Bank Angle (" + define._degreeStr + ")" self.gbAttributes.Add = self.pnlValBankAngle self.pnlCodeDescrDistVer = ComboBoxPanel(self.gbAttributes) self.pnlCodeDescrDistVer.Caption = "Altitude Interpretation" self.gbAttributes.Add = self.pnlCodeDescrDistVer self.pnlVerDistLower = Frame(self.gbAttributes, "HL") self.gbAttributes.Add = self.pnlVerDistLower self.cmbDistVerLower = ComboBoxPanel(self.pnlVerDistLower) self.cmbDistVerLower.CaptionUnits = "ft" self.cmbDistVerLower.Caption = "Lower Altitude Limit" self.pnlVerDistLower.Add = self.cmbDistVerLower self.txtDistVerLower = AltitudeBoxPanel(self.pnlVerDistLower) self.txtDistVerLower.CaptionUnits = "ft" self.txtDistVerLower.LabelWidth = 0 self.pnlVerDistLower.Add = self.txtDistVerLower self.pnlDistVerUpper = Frame(self.gbAttributes, "HL") self.gbAttributes.Add = self.pnlDistVerUpper self.cmbDistVerUpper = ComboBoxPanel(self.pnlDistVerUpper) self.cmbDistVerUpper.CaptionUnits = "ft" self.cmbDistVerUpper.Caption = "Upper Altitude Limit" self.pnlDistVerUpper.Add = self.cmbDistVerUpper self.txtDistVerUpper = AltitudeBoxPanel(self.pnlDistVerUpper) self.txtDistVerUpper.CaptionUnits = "ft" self.txtDistVerUpper.LabelWidth = 0 self.pnlDistVerUpper.Add = self.txtDistVerUpper self.pnlValVerAngle = NumberBoxPanel(self.gbAttributes) self.pnlValVerAngle.Caption = "Climb / Descent Angle [+/-] (" + define._degreeStr + ")" self.gbAttributes.Add = self.pnlValVerAngle self.tableLayoutPanel2 = Frame(self.gbAttributes, "HL") self.gbAttributes.Add = self.tableLayoutPanel2 self.cmbCodeSpeedRef = ComboBoxPanel(self.tableLayoutPanel2) self.cmbCodeSpeedRef.CaptionUnits = "kts" self.cmbCodeSpeedRef.Caption = "Speed Restriction" self.tableLayoutPanel2.Add = self.cmbCodeSpeedRef self.txtValSpeed = SpeedBoxPanel(self.tableLayoutPanel2) self.txtValSpeed.LabelWidth = 0 self.tableLayoutPanel2.Add = self.txtValSpeed self.pnlValDist = DistanceBoxPanel(self.gbAttributes, DistanceUnits.NM) self.pnlValDist.Caption = "Segment Length" self.pnlValDist.Button = None self.gbAttributes.Add = self.pnlValDist self.pnlValDur = NumberBoxPanel(self.gbAttributes) self.pnlValDur.CaptionUnits = "min" self.pnlValDur.Caption = "Duration" self.gbAttributes.Add = self.pnlValDur self.pnlCodeRepAtc = ComboBoxPanel(self.gbAttributes) self.pnlCodeRepAtc.Caption = "ATC Reporting" self.gbAttributes.Add = self.pnlCodeRepAtc self.pnlValTheta = TrackRadialBoxPanel(self.gbAttributes) self.pnlValTheta.Caption = "Magnetic Bearing / Radial from Recommended Nav. Aid" self.pnlValTheta.LabelWidth = 350 self.gbAttributes.Add = self.pnlValTheta self.pnlValRho = DistanceBoxPanel(self.gbAttributes, DistanceUnits.NM) self.pnlValRho.Caption = "Distance from Recommended Nav. Aid" self.pnlValRho.LabelWidth = 350 self.gbAttributes.Add = self.pnlValRho self.txtRemarks = TextBoxPanel(self.gbAttributes, True) self.txtRemarks.Caption = "Remarks" self.gbAttributes.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.trvLegs.pressed.connect(self.trvLegs_pressed) self.data = None self.legs = None self.aerodrome = None; self.magnVar = 0.0 for value in CodeIapFixAixm.Items: self.pnlCodeRoleFix.Add(value); for codeTypeProcPathAixm in CodeTypeProcPathAixm.Items: self.pnlCodeType.Add(codeTypeProcPathAixm); for codePhaseProcAixm in CodePhaseProcAixm.Items: self.pnlCodePhase.Add(codePhaseProcAixm); for codeTypeCourseAixm in CodeTypeCourseAixm.Items: self.cmbCodeTypeCourse.Add(codeTypeCourseAixm); for codeDirTurnAixm in CodeDirTurnAixm.Items: self.pnlCodeDirTurn.Add(codeDirTurnAixm); for codeDescrDistVerAixm in CodeDescrDistVerAixm.Items: self.pnlCodeDescrDistVer.Add(codeDescrDistVerAixm); for codeDistVerAixm in CodeDistVerAixm.Items: self.cmbDistVerLower.Add(codeDistVerAixm); for value1 in CodeDistVerAixm.Items: self.cmbDistVerUpper.Add(value1); for codeSpeedRefAixm in CodeSpeedRefAixm.Items: self.cmbCodeSpeedRef.Add(codeSpeedRefAixm); for codeTypeFlyByAixm in CodeTypeFlyByAixm.Items: self.pnlTurnValid.Add(codeTypeFlyByAixm); for codeRepAtcAixm in CodeRepAtcAixm.Items: self.pnlCodeRepAtc.Add(codeRepAtcAixm); self.method_6() self.connect(self.pnlValRho, SIGNAL("Event_0"), self.pnlValRho_Event_0) self.connect(self.pnlValTheta, SIGNAL("Event_0"), self.pnlValTheta_Event_0) self.connect(self.pnlCodeRepAtc, SIGNAL("Event_0"), self.pnlCodeRepAtc_Event_0) self.connect(self.pnlValDur, SIGNAL("Event_0"), self.pnlValDur_Event_0) self.connect(self.pnlValDist, SIGNAL("Event_0"), self.pnlValDist_Event_0) self.connect(self.cmbCodeSpeedRef, SIGNAL("Event_0"), self.cmbCodeSpeedRef_Event_0) self.connect(self.txtValSpeed, SIGNAL("Event_0"), self.txtValSpeed_Event_0) self.connect(self.txtDistVerUpper, SIGNAL("Event_0"), self.txtDistVerUpper_Event_0) self.connect(self.cmbDistVerUpper, SIGNAL("Event_0"), self.cmbDistVerUpper_Event_0) self.connect(self.txtDistVerLower, SIGNAL("Event_0"), self.txtDistVerLower_Event_0) self.connect(self.cmbDistVerLower, SIGNAL("Event_0"), self.cmbDistVerLower_Event_0) self.connect(self.pnlValBankAngle, SIGNAL("Event_0"), self.pnlValBankAngle_Event_0) self.connect(self.cmbCenter, SIGNAL("Event_0"), self.cmbCenter_Event_0) self.connect(self.pnlTurnValid, SIGNAL("Event_0"), self.pnlTurnValid_Event_0) self.connect(self.pnlCodeDirTurn, SIGNAL("Event_0"), self.pnlCodeDirTurn_Event_0) self.connect(self.cmbCodeTypeCourse, SIGNAL("Event_0"), self.cmbCodeTypeCourse_Event_0) self.connect(self.txtValCourse, SIGNAL("Event_0"), self.txtValCourse_Event_0) self.connect(self.pnlCodeType, SIGNAL("Event_0"), self.pnlCodeType_Event_0) self.connect(self.pnlCodePhase, SIGNAL("Event_0"), self.pnlCodePhase_Event_0) self.connect(self.pnlCodeRoleFix, SIGNAL("Event_0"), self.pnlCodeRoleFix_Event_0) self.connect(self.txtRemarks, SIGNAL("Event_0"), self.txtRemarks_Event_0) self.connect(self.cmbRecommendedEnt, SIGNAL("Event_0"), self.cmbRecommendedEnt_Event_0) self.connect(self.cmbFixPos, SIGNAL("Event_0"), self.cmbFixPos_Event_0) self.connect(self.cmbCenter, SIGNAL("Event_3"), self.method_14) self.connect(self.cmbFixPos, SIGNAL("Event_3"), self.method_13) 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) self.trvLegs.setHeaderHidden(True) if self.trvLegsStdModel.rowCount() > 0: self.trvLegs.setCurrentIndex(self.trvLegsStdModel.index(0,0)) self.method_8()
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.gbMASegmentType = GroupBox(Form) self.gbMASegmentType.Caption = "Missed Approach Segment Type" self.vlForm.addWidget(self.gbMASegmentType) self.txtMASegmentType = TextBoxPanel(self.gbMASegmentType) self.txtMASegmentType.Caption = "Type" self.txtMASegmentType.textBox.setEnabled(False) self.txtMASegmentType.Button = "sort2.png" self.txtMASegmentType.Value = "Straight" self.txtMASegmentType.textBox.setMaximumWidth(10000000) self.txtMASegmentType.hLayoutBoxPanel.removeItem( self.txtMASegmentType.spacerItem) QtCore.QObject.connect(self.txtMASegmentType, QtCore.SIGNAL("Event_1"), self.txtMASegmentType_Event_1) self.gbMASegmentType.Add = self.txtMASegmentType self.gbPosition = GroupBox(Form) self.gbPosition.Caption = "Positions" self.gbPosition.layoutBoxPanel.setSpacing(9) self.vlForm.addWidget(self.gbPosition) self.pnlFafPos = PositionPanel(self.gbPosition) self.pnlFafPos.Caption = "FAF Position" self.pnlFafPos.hideframe_Altitude() self.pnlFafPos.btnCalculater.hide() self.gbPosition.Add = self.pnlFafPos self.pnlMaptPos = PositionPanel(self.gbPosition) self.pnlMaptPos.Caption = "MAPt Position" self.pnlMaptPos.hideframe_Altitude() self.pnlMaptPos.btnCalculater.hide() self.gbPosition.Add = self.pnlMaptPos self.pnlMaTpPos = PositionPanel(self.gbPosition) self.pnlMaTpPos.Caption = "MA TP Position" self.pnlMaTpPos.hideframe_Altitude() self.pnlMaTpPos.btnCalculater.hide() self.gbPosition.Add = self.pnlMaTpPos self.pnlMaTpPos.Visible = False self.gbMaEndPos = GroupBox(self.gbPosition) self.gbMaEndPos.Caption = "MA End Position" self.gbPosition.Add = self.gbMaEndPos self.cmbMaEndType = ComboBoxPanel(self.gbMaEndPos) self.cmbMaEndType.Caption = "Type" self.cmbMaEndType.Items = ["NDB", "VOR"] self.gbMaEndPos.Add = self.cmbMaEndType self.cmbMaEndType.Visible = False self.pnlMaEndPos = PositionPanel(self.gbMaEndPos) self.pnlMaEndPos.hideframe_Altitude() self.pnlMaEndPos.btnCalculater.hide() self.gbMaEndPos.Add = self.pnlMaEndPos self.gbNavAid = GroupBox(self.gbPosition) self.gbNavAid.Caption = "Navigational Aid Position" self.gbPosition.Add = self.gbNavAid self.cmbNavAidType = ComboBoxPanel(self.gbNavAid) self.cmbNavAidType.Caption = "Type" self.cmbNavAidType.Items = ["NDB", "VOR"] self.gbNavAid.Add = self.cmbNavAidType self.pnlNavAidPos = PositionPanel(self.gbNavAid) self.pnlNavAidPos.btnCalculater.hide() self.pnlNavAidPos.hideframe_Altitude() self.gbNavAid.Add = self.pnlNavAidPos self.gbAddNavAid = GroupBox(self.gbPosition) self.gbAddNavAid.Caption = "Additional Navigational Aid Position" self.gbPosition.Add = self.gbAddNavAid self.cmbAddNavAidType = ComboBoxPanel(self.gbAddNavAid) self.cmbAddNavAidType.Caption = "Type" self.cmbAddNavAidType.Items = ["NDB", "VOR"] self.gbAddNavAid.Add = self.cmbAddNavAidType self.pnlAddNavAidPos = PositionPanel(self.gbAddNavAid) self.pnlAddNavAidPos.btnCalculater.hide() self.pnlAddNavAidPos.hideframe_Altitude() self.gbAddNavAid.Add = self.pnlAddNavAidPos self.gbParameters = GroupBox(Form) self.gbParameters.Caption = "Parameters" self.gbParameters.layoutBoxPanel.setSpacing(9) self.vlForm.addWidget(self.gbParameters) self.cmbTypeMapt = ComboBoxPanel(self.gbParameters) self.cmbTypeMapt.Caption = "MAPt Type" self.cmbTypeMapt.Items = ["Navigation facility", "FIX", "Timing"] self.gbParameters.Add = self.cmbTypeMapt self.cmbTypeTP = ComboBoxPanel(self.gbParameters) self.cmbTypeTP.Caption = "TP Type" self.cmbTypeTP.Items = [ "Turn at FIX or Facility", "Turn at Altitude", "Turn at MAPt" ] self.gbParameters.Add = self.cmbTypeTP self.cmbTypeTP.Visible = False 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.cmbDirection = ComboBoxPanel(self.gbParameters) self.cmbDirection.Caption = "Direction" self.cmbDirection.Items = ["Left", "Right"] self.gbParameters.Add = self.cmbDirection self.cmbDirection.Visible = False self.pnlAerodromeAlt = AltitudeBoxPanel(self.gbParameters) self.pnlAerodromeAlt.CaptionUnits = "ft" self.pnlAerodromeAlt.Caption = "Aerodrome Altitude" self.gbParameters.Add = self.pnlAerodromeAlt self.pnlPrimaryMoc = AltitudeBoxPanel(self.gbParameters) self.pnlPrimaryMoc.CaptionUnits = "m" self.pnlPrimaryMoc.Caption = "Primary Moc" self.pnlPrimaryMoc.Value = Altitude(75) self.gbParameters.Add = self.pnlPrimaryMoc self.pnlOCA = AltitudeBoxPanel(self.gbParameters) self.pnlOCA.CaptionUnits = "ft" self.pnlOCA.Caption = "OCA" self.gbParameters.Add = self.pnlOCA self.pnlTpAlt = AltitudeBoxPanel(self.gbParameters) self.pnlTpAlt.CaptionUnits = "ft" self.pnlTpAlt.Caption = "TP Altitude" self.gbParameters.Add = self.pnlTpAlt self.pnlTpAlt.Visible = False self.pnlEndTurnAlt = AltitudeBoxPanel(self.gbParameters) self.pnlEndTurnAlt.CaptionUnits = "ft" self.pnlEndTurnAlt.Caption = "End Turn Altitude" self.gbParameters.Add = self.pnlEndTurnAlt self.pnlEndTurnAlt.Visible = False self.pnlEndAlt = AltitudeBoxPanel(self.gbParameters) self.pnlEndAlt.CaptionUnits = "ft" self.pnlEndAlt.Caption = "End Altitude" self.gbParameters.Add = self.pnlEndAlt self.pnlEndAlt.Visible = False self.pnlTurnGradient = AngleGradientBoxPanel(self.gbParameters) self.pnlTurnGradient.CaptionUnits = AngleGradientSlopeUnits.Percent self.pnlTurnGradient.Caption = "Turn Gradient" # self.pnlTurnGradient.Value = AngleGradientSlope(2.5, AngleGradientSlopeUnits.Percent) self.gbParameters.Add = self.pnlTurnGradient self.pnlTurnGradient.Visible = False self.pnlBearing = TrackRadialBoxPanel(self.gbParameters) self.pnlBearing.Caption = "Bearing" self.gbParameters.Add = self.pnlBearing self.pnlBearing.Visible = False self.pnlDistance = DistanceBoxPanel(self.gbParameters, DistanceUnits.NM) self.pnlDistance.Caption = "Distance FAF-MAPt" self.pnlDistance.Button = None self.gbParameters.Add = self.pnlDistance self.pnlClimbGradient = AngleGradientBoxPanel(self.gbParameters) self.pnlClimbGradient.CaptionUnits = AngleGradientSlopeUnits.Percent self.pnlClimbGradient.Caption = "Climb Gradient" self.pnlClimbGradient.Value = AngleGradientSlope( 2.5, AngleGradientSlopeUnits.Percent) self.gbParameters.Add = self.pnlClimbGradient self.cmbTrackGuidance = ComboBoxPanel(self.gbParameters) self.cmbTrackGuidance.Caption = "Track Guidance" self.cmbTrackGuidance.Items = ["Yes", "No"] QtCore.QObject.connect(self.cmbTrackGuidance, QtCore.SIGNAL("Event_0"), self.cmbTrackGuidanceEvent_0) self.gbParameters.Add = self.cmbTrackGuidance self.cmbAddTrackGuidance = ComboBoxPanel(self.gbParameters) self.cmbAddTrackGuidance.Caption = "Additional Track Guidance" self.cmbAddTrackGuidance.Items = ["Yes", "No"] QtCore.QObject.connect(self.cmbAddTrackGuidance, QtCore.SIGNAL("Event_0"), self.cmbAddTrackGuidanceEvent_0) self.gbParameters.Add = self.cmbAddTrackGuidance self.cmbTurnMAPt = ComboBoxPanel(self.gbParameters) self.cmbTurnMAPt.Caption = "Turn Before MAPt" self.cmbTurnMAPt.Items = ["Yes", "No"] # QtCore.QObject.connect(self.cmbTrackGuidance, QtCore.SIGNAL("Event_0"), self.cmbTrackGuidanceEvent_0) self.gbParameters.Add = self.cmbTurnMAPt self.cmbTurnMAPt.Visible = False self.gbTpTolerance = GroupBox(self.gbParameters) self.gbTpTolerance.Caption = "TP Tolerance" self.gbParameters.Add = self.gbTpTolerance self.gbTpTolerance.Visible = False self.txtKEarlist = NumberBoxPanel(self.gbTpTolerance) self.txtKEarlist.CaptionUnits = "nm" self.txtKEarlist.Caption = "K Earliest" self.gbTpTolerance.Add = self.txtKEarlist self.txtLatestFix = NumberBoxPanel(self.gbTpTolerance) self.txtLatestFix.CaptionUnits = "nm" self.txtLatestFix.Caption = "Latest Fix" self.gbTpTolerance.Add = self.txtLatestFix self.txtC = NumberBoxPanel(self.gbTpTolerance) self.txtC.CaptionUnits = "nm" self.txtC.Caption = "C" self.gbTpTolerance.Add = self.txtC self.txtLatestTurn = NumberBoxPanel(self.gbTpTolerance) self.txtLatestTurn.CaptionUnits = "nm" self.txtLatestTurn.Caption = "Latest" self.gbTpTolerance.Add = self.txtLatestTurn self.gbNominalTrack = GroupBox(self.gbParameters) self.gbNominalTrack.Caption = "Nominal Track" self.gbParameters.Add = self.gbNominalTrack self.gbNominalTrack.Visible = False self.pnlTrueStartTrack = TrackRadialBoxPanel(self.gbNominalTrack) self.pnlTrueStartTrack.Caption = "True Start Track" self.gbNominalTrack.Add = self.pnlTrueStartTrack self.pnlTrueEndTrack = TrackRadialBoxPanel(self.gbNominalTrack) self.pnlTrueEndTrack.Caption = "True End Track" self.gbNominalTrack.Add = self.pnlTrueEndTrack self.txtArcLength = NumberBoxPanel(self.gbNominalTrack) self.txtArcLength.CaptionUnits = "nm" self.txtArcLength.Caption = "Arc Length" self.gbNominalTrack.Add = self.txtArcLength self.gbVelocity = GroupBox(self.gbParameters) self.gbVelocity.Caption = "ISA VAR Celsius,IAS,TAS and Wind Velocity" self.gbParameters.Add = self.gbVelocity self.txtISAVAR = NumberBoxPanel(self.gbVelocity, "0.0") self.txtISAVAR.CaptionUnits = define._degreeStr + QtCore.QString("C") self.txtISAVAR.Caption = "ISA" # self.txtISAVAR.Items = ["ISA-30", "ISA-20", "ISA-10", "ISA", "ISA+10", "ISA+15", "ISA+20", "ISA+30"] self.gbVelocity.Add = self.txtISAVAR self.pnlIAS = SpeedBoxPanel(self.gbVelocity, SpeedUnits.KTS) self.pnlIAS.Caption = "IAS" self.gbVelocity.Add = self.pnlIAS # self.pnlWind = WindPanel(self.gbVelocity) # self.gbVelocity.Add = self.pnlWind # self.pnlWind.Visible = False self.pnlTAS = SpeedBoxPanel(self.gbVelocity, SpeedUnits.KTS) self.pnlTAS.Caption = "TAS" self.gbVelocity.Add = self.pnlTAS self.gbTurn = GroupBox(self.gbParameters) self.gbTurn.Caption = "Turn" self.gbParameters.Add = self.gbTurn self.gbTurn.Visible = False self.txtBankAngle = NumberBoxPanel(self.gbTurn) self.txtBankAngle.CaptionUnits = define._degreeStr self.txtBankAngle.Caption = "Bank Angle" self.gbTurn.Add = self.txtBankAngle self.txtRateOfTurn = NumberBoxPanel(self.gbTurn) self.txtRateOfTurn.CaptionUnits = define._degreeStr + QtCore.QString( "/sec") self.txtRateOfTurn.Caption = "Rate Of Turn" self.gbTurn.Add = self.txtRateOfTurn self.txtWindEffect = NumberBoxPanel(self.gbTurn) self.txtWindEffect.Caption = "Wind Effect" self.gbTurn.Add = self.txtWindEffect self.gbMAPtTolerance = GroupBox(self.gbParameters) self.gbMAPtTolerance.Caption = "MAPt Tolerance" self.gbParameters.Add = self.gbMAPtTolerance self.txtEarlist = NumberBoxPanel(self.gbMAPtTolerance) self.txtEarlist.CaptionUnits = "nm" self.txtEarlist.Caption = "Earliest" self.gbMAPtTolerance.Add = self.txtEarlist self.txtLatest = NumberBoxPanel(self.gbMAPtTolerance) self.txtLatest.CaptionUnits = "nm" self.txtLatest.Caption = "Latest" self.gbMAPtTolerance.Add = self.txtLatest self.txtD = NumberBoxPanel(self.gbMAPtTolerance) self.txtD.CaptionUnits = "nm" self.txtD.Caption = "D" self.gbMAPtTolerance.Add = self.txtD self.gbMAPtToSocDist = GroupBox(self.gbParameters) self.gbMAPtToSocDist.Caption = "MAPt to SOC Distance" self.gbParameters.Add = self.gbMAPtToSocDist self.txtX = NumberBoxPanel(self.gbMAPtToSocDist) self.txtX.CaptionUnits = "nm" self.txtX.Caption = "X" self.gbMAPtToSocDist.Add = self.txtX self.txtDistMAPtSOC = DistanceBoxPanel(self.gbMAPtToSocDist, DistanceUnits.NM) self.txtDistMAPtSOC.Caption = "MAPt - SOC Distance" self.txtDistMAPtSOC.Button = None self.gbMAPtToSocDist.Add = self.txtDistMAPtSOC self.txtEarlistTemp = NumberBoxPanel(self.gbParameters) self.gbParameters.Add = self.txtEarlistTemp self.txtEarlistTemp.Visible = False self.txtLatestTemp = NumberBoxPanel(self.gbParameters) self.gbParameters.Add = self.txtLatestTemp self.txtLatestTemp.Visible = False self.missedApproachMenu = QtGui.QMenu() self.strightCmd = QgisHelper.createAction(self.missedApproachMenu, "Straight", self.menuStrightClick) self.missedApproachMenu.addAction(self.strightCmd) self.turningCmd = QgisHelper.createAction(self.missedApproachMenu, "Turning", self.menuTurningClick) self.missedApproachMenu.addAction(self.turningCmd)
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 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 setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(467, 556) 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.gbVorDmePosition = QtGui.QGroupBox(Form) self.gbVorDmePosition.setObjectName(_fromUtf8("gbVorDmePosition")) self.vl_VorDmePosition = QtGui.QVBoxLayout(self.gbVorDmePosition) self.vl_VorDmePosition.setObjectName(_fromUtf8("vl_VorDmePosition")) self.verticalLayout.addWidget(self.gbVorDmePosition) self.cmbBasedOn = ComboBoxPanel(self.gbVorDmePosition, True) self.cmbBasedOn.Caption = "Based On" self.cmbBasedOn.LabelWidth = 120 self.cmbBasedOn.Width = 120 self.vl_VorDmePosition.addWidget(self.cmbBasedOn) 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.frameUsedFor = QtGui.QFrame(self.gbParameters) self.frameUsedFor.setFrameShape(QtGui.QFrame.NoFrame) self.frameUsedFor.setFrameShadow(QtGui.QFrame.Raised) self.frameUsedFor.setObjectName(_fromUtf8("frameUsedFor")) self.horizontalLayout_58 = QtGui.QHBoxLayout(self.frameUsedFor) self.horizontalLayout_58.setSpacing(0) self.horizontalLayout_58.setMargin(0) self.horizontalLayout_58.setObjectName( _fromUtf8("horizontalLayout_58")) self.label_66 = QtGui.QLabel(self.frameUsedFor) self.label_66.setMinimumSize(QtCore.QSize(120, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_66.setFont(font) self.label_66.setObjectName(_fromUtf8("label_66")) self.horizontalLayout_58.addWidget(self.label_66) self.cmbUsedFor = QtGui.QComboBox(self.frameUsedFor) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbUsedFor.sizePolicy().hasHeightForWidth()) self.cmbUsedFor.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbUsedFor.setFont(font) self.cmbUsedFor.setObjectName(_fromUtf8("cmbUsedFor")) self.cmbUsedFor.setMinimumSize(QtCore.QSize(80, 0)) self.cmbUsedFor.setMaximumSize(QtCore.QSize(80, 16777215)) self.horizontalLayout_58.addWidget(self.cmbUsedFor) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_58.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameUsedFor) self.frameType = QtGui.QFrame(self.gbParameters) self.frameType.setFrameShape(QtGui.QFrame.NoFrame) self.frameType.setFrameShadow(QtGui.QFrame.Raised) self.frameType.setObjectName(_fromUtf8("frameType")) self.horizontalLayout_59 = QtGui.QHBoxLayout(self.frameType) self.horizontalLayout_59.setSpacing(0) self.horizontalLayout_59.setMargin(0) self.horizontalLayout_59.setObjectName( _fromUtf8("horizontalLayout_59")) self.label_67 = QtGui.QLabel(self.frameType) self.label_67.setMinimumSize(QtCore.QSize(120, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_67.setFont(font) self.label_67.setObjectName(_fromUtf8("label_67")) self.horizontalLayout_59.addWidget(self.label_67) self.cmbType = QtGui.QComboBox(self.frameType) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbType.sizePolicy().hasHeightForWidth()) self.cmbType.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbType.setFont(font) self.cmbType.setObjectName(_fromUtf8("cmbType")) self.cmbType.setMinimumSize(QtCore.QSize(140, 0)) self.cmbType.setMaximumSize(QtCore.QSize(140, 16777215)) self.horizontalLayout_59.addWidget(self.cmbType) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_59.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameType) 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(120, 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.horizontalLayout_61.addWidget(self.cmbAircraftCategory) 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(120, 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.horizontalLayout_68 = QtGui.QHBoxLayout(self.frameTas) self.horizontalLayout_68.setSpacing(0) self.horizontalLayout_68.setMargin(0) self.horizontalLayout_68.setObjectName( _fromUtf8("horizontalLayout_68")) self.label_76 = QtGui.QLabel(self.frameTas) self.label_76.setMinimumSize(QtCore.QSize(120, 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.txtTas = QtGui.QLineEdit(self.frameTas) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtTas.setFont(font) self.txtTas.setText(_fromUtf8("")) self.txtTas.setObjectName(_fromUtf8("txtTas")) self.txtTas.setMinimumSize(QtCore.QSize(90, 0)) self.txtTas.setMaximumSize(QtCore.QSize(90, 16777215)) self.horizontalLayout_68.addWidget(self.txtTas) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_68.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameTas) self.frameAltitude = QtGui.QFrame(self.gbParameters) self.frameAltitude.setFrameShape(QtGui.QFrame.NoFrame) self.frameAltitude.setFrameShadow(QtGui.QFrame.Raised) self.frameAltitude.setObjectName(_fromUtf8("frameAltitude")) self.horizontalLayout_69 = QtGui.QHBoxLayout(self.frameAltitude) self.horizontalLayout_69.setSpacing(0) self.horizontalLayout_69.setMargin(0) self.horizontalLayout_69.setObjectName( _fromUtf8("horizontalLayout_69")) self.label_77 = QtGui.QLabel(self.frameAltitude) self.label_77.setMinimumSize(QtCore.QSize(120, 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.txtAltitudeM = QtGui.QLineEdit(self.frameAltitude) self.txtAltitudeM.setObjectName(_fromUtf8("txtAltitudeM")) self.txtAltitudeM.setMinimumSize(QtCore.QSize(90, 0)) self.txtAltitudeM.setMaximumSize(QtCore.QSize(90, 16777215)) self.horizontalLayout_69.addWidget(self.txtAltitudeM) self.label_2 = QtGui.QLabel(self.frameAltitude) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_69.addWidget(self.label_2) self.txtAltitude = QtGui.QLineEdit(self.frameAltitude) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAltitude.setFont(font) self.txtAltitude.setObjectName(_fromUtf8("txtAltitude")) self.txtAltitude.setMinimumSize(QtCore.QSize(90, 0)) self.txtAltitude.setMaximumSize(QtCore.QSize(90, 16777215)) self.horizontalLayout_69.addWidget(self.txtAltitude) self.label = QtGui.QLabel(self.frameAltitude) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_69.addWidget(self.label) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_69.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameAltitude) 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(120, 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.frameHoldingDme = QtGui.QFrame(self.gbParameters) self.frameHoldingDme.setFrameShape(QtGui.QFrame.NoFrame) self.frameHoldingDme.setFrameShadow(QtGui.QFrame.Raised) self.frameHoldingDme.setObjectName(_fromUtf8("frameHoldingDme")) self.horizontalLayout_66 = QtGui.QHBoxLayout(self.frameHoldingDme) self.horizontalLayout_66.setSpacing(0) self.horizontalLayout_66.setMargin(0) self.horizontalLayout_66.setObjectName( _fromUtf8("horizontalLayout_66")) self.label_74 = QtGui.QLabel(self.frameHoldingDme) self.label_74.setMinimumSize(QtCore.QSize(120, 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.frameTrack_4 = QtGui.QFrame(self.frameHoldingDme) self.frameTrack_4.setFrameShape(QtGui.QFrame.StyledPanel) self.frameTrack_4.setFrameShadow(QtGui.QFrame.Raised) self.frameTrack_4.setObjectName(_fromUtf8("frameTrack_4")) self.horizontalLayout_13 = QtGui.QHBoxLayout(self.frameTrack_4) self.horizontalLayout_13.setSpacing(0) self.horizontalLayout_13.setMargin(0) self.horizontalLayout_13.setObjectName( _fromUtf8("horizontalLayout_13")) self.txtHoldingDme = QtGui.QLineEdit(self.frameTrack_4) self.txtHoldingDme.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtHoldingDme.setFont(font) self.txtHoldingDme.setObjectName(_fromUtf8("txtHoldingDme")) self.txtHoldingDme.setMinimumSize(QtCore.QSize(60, 0)) self.txtHoldingDme.setMaximumSize(QtCore.QSize(60, 16777215)) self.horizontalLayout_13.addWidget(self.txtHoldingDme) self.btnCaptureHoldingDme = QtGui.QToolButton(self.frameTrack_4) self.btnCaptureHoldingDme.setText(_fromUtf8("")) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnCaptureHoldingDme.setIcon(icon) self.btnCaptureHoldingDme.setObjectName( _fromUtf8("btnCaptureHoldingDme")) self.horizontalLayout_13.addWidget(self.btnCaptureHoldingDme) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_13.addItem(horizontalSpacer) self.horizontalLayout_66.addWidget(self.frameTrack_4) self.vl_gbParameters.addWidget(self.frameHoldingDme) self.frameLimitingDme = QtGui.QFrame(self.gbParameters) self.frameLimitingDme.setFrameShape(QtGui.QFrame.NoFrame) self.frameLimitingDme.setFrameShadow(QtGui.QFrame.Raised) self.frameLimitingDme.setObjectName(_fromUtf8("frameLimitingDme")) self.horizontalLayout_65 = QtGui.QHBoxLayout(self.frameLimitingDme) self.horizontalLayout_65.setSpacing(0) self.horizontalLayout_65.setMargin(0) self.horizontalLayout_65.setObjectName( _fromUtf8("horizontalLayout_65")) self.label_73 = QtGui.QLabel(self.frameLimitingDme) self.label_73.setMinimumSize(QtCore.QSize(120, 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.frameLimitingDme) 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.txtLimitingDme = QtGui.QLineEdit(self.frameTrack_3) self.txtLimitingDme.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtLimitingDme.setFont(font) self.txtLimitingDme.setObjectName(_fromUtf8("txtLimitingDme")) self.txtLimitingDme.setMinimumSize(QtCore.QSize(60, 0)) self.txtLimitingDme.setMaximumSize(QtCore.QSize(60, 16777215)) self.horizontalLayout_12.addWidget(self.txtLimitingDme) self.btnCaptureLimitingDme = QtGui.QToolButton(self.frameTrack_3) self.btnCaptureLimitingDme.setText(_fromUtf8("")) self.btnCaptureLimitingDme.setIcon(icon) self.btnCaptureLimitingDme.setObjectName( _fromUtf8("btnCaptureLimitingDme")) self.horizontalLayout_12.addWidget(self.btnCaptureLimitingDme) 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.frameLimitingDme) self.frameMoc = QtGui.QFrame(self.gbParameters) self.frameMoc.setFrameShape(QtGui.QFrame.NoFrame) self.frameMoc.setFrameShadow(QtGui.QFrame.Raised) self.frameMoc.setObjectName(_fromUtf8("frameMoc")) self.horizontalLayout_74 = QtGui.QHBoxLayout(self.frameMoc) self.horizontalLayout_74.setSpacing(0) self.horizontalLayout_74.setMargin(0) self.horizontalLayout_74.setObjectName( _fromUtf8("horizontalLayout_74")) self.label_82 = QtGui.QLabel(self.frameMoc) self.label_82.setMinimumSize(QtCore.QSize(120, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_82.setFont(font) self.label_82.setObjectName(_fromUtf8("label_82")) self.horizontalLayout_74.addWidget(self.label_82) self.txtMoc = QtGui.QLineEdit(self.frameMoc) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtMoc.setFont(font) self.txtMoc.setObjectName(_fromUtf8("txtMoc")) self.txtMoc.setMinimumSize(QtCore.QSize(90, 0)) self.txtMoc.setMaximumSize(QtCore.QSize(90, 16777215)) self.horizontalLayout_74.addWidget(self.txtMoc) self.label_3 = QtGui.QLabel(self.frameMoc) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout_74.addWidget(self.label_3) self.txtMocFt = QtGui.QLineEdit(self.frameMoc) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtMocFt.setFont(font) self.txtMocFt.setText(_fromUtf8("")) self.txtMocFt.setObjectName(_fromUtf8("txtMocFt")) self.txtMocFt.setMinimumSize(QtCore.QSize(90, 0)) self.txtMocFt.setMaximumSize(QtCore.QSize(90, 16777215)) self.horizontalLayout_74.addWidget(self.txtMocFt) self.labelMocFt = QtGui.QLabel(self.frameMoc) self.labelMocFt.setObjectName(_fromUtf8("labelMocFt")) self.horizontalLayout_74.addWidget(self.labelMocFt) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_74.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameMoc) self.gbEntryAreas = QtGui.QGroupBox(self.gbParameters) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.gbEntryAreas.setFont(font) self.gbEntryAreas.setObjectName(_fromUtf8("gbEntryAreas")) self.vl_gbEntryAreas = QtGui.QVBoxLayout(self.gbEntryAreas) self.vl_gbEntryAreas.setObjectName(_fromUtf8("vl_gbEntryAreas")) self.frameEntryAreas = QtGui.QFrame(self.gbEntryAreas) self.frameEntryAreas.setFrameShape(QtGui.QFrame.StyledPanel) self.frameEntryAreas.setFrameShadow(QtGui.QFrame.Raised) self.frameEntryAreas.setObjectName(_fromUtf8("frameEntryAreas")) self.hl_EntryAreas = QtGui.QHBoxLayout(self.frameEntryAreas) self.hl_EntryAreas.setMargin(0) self.hl_EntryAreas.setObjectName(_fromUtf8("hl_EntryAreas")) self.chbSector1 = QtGui.QCheckBox(self.frameEntryAreas) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbSector1.setFont(font) self.chbSector1.setLayoutDirection(QtCore.Qt.LeftToRight) self.chbSector1.setObjectName(_fromUtf8("chbSector1")) self.hl_EntryAreas.addWidget(self.chbSector1) self.chbSector2 = QtGui.QCheckBox(self.frameEntryAreas) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbSector2.setFont(font) self.chbSector2.setLayoutDirection(QtCore.Qt.LeftToRight) self.chbSector2.setObjectName(_fromUtf8("chbSector2")) self.hl_EntryAreas.addWidget(self.chbSector2) self.chbReciprocalEntry = QtGui.QCheckBox(self.frameEntryAreas) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbReciprocalEntry.setFont(font) self.chbReciprocalEntry.setLayoutDirection(QtCore.Qt.LeftToRight) self.chbReciprocalEntry.setObjectName(_fromUtf8("chbReciprocalEntry")) self.hl_EntryAreas.addWidget(self.chbReciprocalEntry) self.chbLimitingRadial = QtGui.QCheckBox(self.frameEntryAreas) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbLimitingRadial.setFont(font) self.chbLimitingRadial.setLayoutDirection(QtCore.Qt.LeftToRight) self.chbLimitingRadial.setObjectName(_fromUtf8("chbLimitingRadial")) self.hl_EntryAreas.addWidget(self.chbLimitingRadial) self.vl_gbEntryAreas.addWidget(self.frameEntryAreas) self.vl_gbParameters.addWidget(self.gbEntryAreas) 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(120, 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.frameIas_2 = QtGui.QFrame(self.gbParameters) self.frameIas_2.setFrameShape(QtGui.QFrame.NoFrame) self.frameIas_2.setFrameShadow(QtGui.QFrame.Raised) self.frameIas_2.setObjectName(_fromUtf8("frameIas_2")) self.horizontalLayout_62 = QtGui.QHBoxLayout(self.frameIas_2) self.horizontalLayout_62.setSpacing(0) self.horizontalLayout_62.setMargin(0) self.horizontalLayout_62.setObjectName( _fromUtf8("horizontalLayout_62")) self.label_70 = QtGui.QLabel(self.frameIas_2) self.label_70.setMinimumSize(QtCore.QSize(120, 0)) self.label_70.setMaximumSize(QtCore.QSize(120, 1221212)) 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.spinBoxMocmulipiler = QtGui.QSpinBox(self.frameIas_2) self.spinBoxMocmulipiler.setProperty("value", 1) self.spinBoxMocmulipiler.setObjectName( _fromUtf8("spinBoxMocmulipiler")) self.spinBoxMocmulipiler.setMinimumSize(QtCore.QSize(60, 0)) self.spinBoxMocmulipiler.setMaximumSize(QtCore.QSize(60, 16777215)) self.horizontalLayout_62.addWidget(self.spinBoxMocmulipiler) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_62.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameIas_2) self.verticalLayout.addWidget(self.gbParameters) self.gbOrientation = QtGui.QGroupBox(Form) self.gbOrientation.setObjectName(_fromUtf8("gbOrientation")) self.vl_gbOrientation = QtGui.QVBoxLayout(self.gbOrientation) self.vl_gbOrientation.setObjectName(_fromUtf8("vl_gbOrientation")) self.txtTrack = TrackRadialBoxPanel(self.gbOrientation) self.txtTrack.Caption = "In-bound Track" self.txtTrack.LabelWidth = 120 self.vl_gbOrientation.addWidget(self.txtTrack) # self.frameTrackRoot = QtGui.QFrame(self.gbOrientation) # self.frameTrackRoot.setFrameShape(QtGui.QFrame.NoFrame) # self.frameTrackRoot.setFrameShadow(QtGui.QFrame.Raised) # self.frameTrackRoot.setObjectName(_fromUtf8("frameTrackRoot")) # self.horizontalLayout_63 = QtGui.QHBoxLayout(self.frameTrackRoot) # self.horizontalLayout_63.setSpacing(0) # self.horizontalLayout_63.setMargin(0) # self.horizontalLayout_63.setObjectName(_fromUtf8("horizontalLayout_63")) # self.label_71 = QtGui.QLabel(self.frameTrackRoot) # self.label_71.setMinimumSize(QtCore.QSize(120, 0)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_71.setFont(font) # self.label_71.setObjectName(_fromUtf8("label_71")) # self.horizontalLayout_63.addWidget(self.label_71) # self.frameTrack = QtGui.QFrame(self.frameTrackRoot) # self.frameTrack.setFrameShape(QtGui.QFrame.StyledPanel) # self.frameTrack.setFrameShadow(QtGui.QFrame.Raised) # self.frameTrack.setObjectName(_fromUtf8("frameTrack")) # self.horizontalLayout_10 = QtGui.QHBoxLayout(self.frameTrack) # self.horizontalLayout_10.setSpacing(0) # self.horizontalLayout_10.setMargin(0) # self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10")) # self.txtTrack = QtGui.QLineEdit(self.frameTrack) # self.txtTrack.setEnabled(True) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtTrack.setFont(font) # self.txtTrack.setObjectName(_fromUtf8("txtTrack")) # self.horizontalLayout_10.addWidget(self.txtTrack) # self.btnCaptureTrack = QtGui.QToolButton(self.frameTrack) # self.btnCaptureTrack.setText(_fromUtf8("")) # self.btnCaptureTrack.setIcon(icon) # self.btnCaptureTrack.setObjectName(_fromUtf8("btnCaptureTrack")) # self.horizontalLayout_10.addWidget(self.btnCaptureTrack) # self.horizontalLayout_63.addWidget(self.frameTrack) # self.vl_gbOrientation.addWidget(self.frameTrackRoot) self.frameOrientation = QtGui.QFrame(self.gbOrientation) self.frameOrientation.setFrameShape(QtGui.QFrame.NoFrame) self.frameOrientation.setFrameShadow(QtGui.QFrame.Raised) self.frameOrientation.setObjectName(_fromUtf8("frameOrientation")) self.horizontalLayout_67 = QtGui.QHBoxLayout(self.frameOrientation) self.horizontalLayout_67.setSpacing(0) self.horizontalLayout_67.setMargin(0) self.horizontalLayout_67.setObjectName( _fromUtf8("horizontalLayout_67")) self.label_75 = QtGui.QLabel(self.frameOrientation) self.label_75.setMinimumSize(QtCore.QSize(120, 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.cmbOrientation = QtGui.QComboBox(self.frameOrientation) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbOrientation.sizePolicy().hasHeightForWidth()) self.cmbOrientation.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbOrientation.setFont(font) self.cmbOrientation.setContextMenuPolicy(QtCore.Qt.NoContextMenu) self.cmbOrientation.setObjectName(_fromUtf8("cmbOrientation")) self.cmbOrientation.setMinimumSize(QtCore.QSize(70, 0)) self.cmbOrientation.setMaximumSize(QtCore.QSize(70, 16777215)) self.horizontalLayout_67.addWidget(self.cmbOrientation) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_67.addItem(horizontalSpacer) self.vl_gbOrientation.addWidget(self.frameOrientation) self.verticalLayout.addWidget(self.gbOrientation) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
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(467, 464) self.verticalLayout = QtGui.QVBoxLayout(Form) self.verticalLayout.setObjectName("verticalLayout") self.gbNavAid = GroupBox(Form) self.gbNavAid.Caption = "Navigational Aid" self.verticalLayout.addWidget(self.gbNavAid) self.cmbNavAidType = ComboBoxPanel(self.gbNavAid) self.cmbNavAidType.Caption = "Type" self.cmbNavAidType.LabelWidth = 120 self.gbNavAid.Add = self.cmbNavAidType self.cmbBasedOn = ComboBoxPanel(self.gbNavAid, True) self.cmbBasedOn.Caption = "Based On" self.cmbBasedOn.LabelWidth = 120 self.cmbBasedOn.Width = 120 self.gbNavAid.Add = self.cmbBasedOn self.pnlNavAid = PositionPanel(self.gbNavAid) self.pnlNavAid.btnCalculater.hide() self.pnlNavAid.setObjectName("pnlNavAid") self.gbNavAid.Add = self.pnlNavAid self.gbParameters = GroupBox(Form) self.gbParameters.Caption = "Parameters" self.verticalLayout.addWidget(self.gbParameters) self.cmbUsedFor = ComboBoxPanel(self.gbParameters) self.cmbUsedFor.Caption = "Type" self.cmbUsedFor.LabelWidth = 120 self.gbParameters.Add = self.cmbUsedFor self.txtIas = SpeedBoxPanel(self.gbParameters, SpeedUnits.KTS) self.txtIas.Caption = "IAS" self.txtIas.Value = Speed(250) self.txtIas.LabelWidth = 120 self.gbParameters.Add = self.txtIas self.txtTas = SpeedBoxPanel(self.gbParameters, SpeedUnits.KTS) self.txtTas.Caption = "TAS" self.txtTas.LabelWidth = 120 self.txtTas.Enabled = False self.gbParameters.Add = self.txtTas self.txtAltitude = AltitudeBoxPanel(self.gbParameters) self.txtAltitude.CaptionUnits = "ft" self.txtAltitude.Caption = "Altitude" self.txtAltitude.Value = Altitude(10000, AltitudeUnits.FT) self.txtAltitude.LabelWidth = 120 self.gbParameters.Add = self.txtAltitude self.txtIsa = NumberBoxPanel(self.gbParameters, "0.0") self.txtIsa.CaptionUnits = define._degreeStr self.txtIsa.Caption = "ISA" self.txtIsa.Value = 15 self.txtIsa.LabelWidth = 120 self.gbParameters.Add = self.txtIsa self.pnlWind = WindPanel(self.gbParameters) self.pnlWind.lblIA.setMinimumSize(113, 0) self.gbParameters.Add = self.pnlWind self.txtTime = NumberBoxPanel(self.gbParameters, "0.0") self.txtTime.CaptionUnits = "min" self.txtTime.Caption = "Time" self.txtTime.Value = 1 self.txtTime.LabelWidth = 120 self.gbParameters.Add = self.txtTime self.txtMoc = AltitudeBoxPanel(self.gbParameters) self.txtMoc.CaptionUnits = "m" self.txtMoc.Caption = "Moc" self.txtMoc.Value = Altitude(300) self.txtMoc.LabelWidth = 120 self.gbParameters.Add = self.txtMoc self.chbCatH = CheckBox(self.gbParameters) self.chbCatH.Caption = "Cat. H ( linear MOC reduction up to 2NM )" self.gbParameters.Add = self.chbCatH self.gbEntryAreas = GroupBox(self.gbParameters, "HL") self.gbEntryAreas.Caption = "Entry Areas" self.gbParameters.Add = self.gbEntryAreas self.chbIntercept = CheckBox(self.gbEntryAreas) self.chbIntercept.Caption = "Intercept" self.gbEntryAreas.Add = self.chbIntercept self.chbSector1 = CheckBox(self.gbEntryAreas) self.chbSector1.Caption = "Sector 1" self.gbEntryAreas.Add = self.chbSector1 self.chbSector2 = CheckBox(self.gbEntryAreas) self.chbSector2.Caption = "Sector 2" self.gbEntryAreas.Add = self.chbSector2 self.chbSectors12 = CheckBox(self.gbEntryAreas) self.chbSectors12.Caption = "Sectors 1 & 2" self.gbEntryAreas.Add = self.chbSectors12 self.chbSector3 = CheckBox(self.gbEntryAreas) self.chbSector3.Caption = "Sectors 3" self.gbEntryAreas.Add = self.chbSector3 self.cmbConstruction = ComboBoxPanel(self.gbParameters) self.cmbConstruction.Caption = "Construction Type" self.cmbConstruction.LabelWidth = 120 self.cmbConstruction.Width = 50 self.gbParameters.Add = self.cmbConstruction self.mocSpinBox = NumberBoxPanel(self.gbParameters, None) self.mocSpinBox.Caption = "MOCmultiplier" self.mocSpinBox.LabelWidth = 120 self.mocSpinBox.Value = 1 self.mocSpinBox.Width = 50 self.gbParameters.Add = self.mocSpinBox self.gbOrientation = GroupBox(Form) self.gbOrientation.Caption = "Orientation" self.verticalLayout.addWidget(self.gbOrientation) self.txtTrack = TrackRadialBoxPanel(self.gbOrientation) self.txtTrack.Caption = "In-bound Track" self.txtTrack.LabelWidth = 120 self.gbOrientation.Add = self.txtTrack self.cmbOrientation = ComboBoxPanel(self.gbOrientation) self.cmbOrientation.Caption = "Turns" self.cmbOrientation.LabelWidth = 120 self.gbOrientation.Add = self.cmbOrientation QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, Form): Form.setObjectName("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 setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(512, 434) 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.gbNavAid = QtGui.QGroupBox(Form) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.gbNavAid.sizePolicy().hasHeightForWidth()) self.gbNavAid.setSizePolicy(sizePolicy) self.gbNavAid.setObjectName(_fromUtf8("gbNavAid")) self.vl_gbNavAid = QtGui.QVBoxLayout(self.gbNavAid) self.vl_gbNavAid.setObjectName(_fromUtf8("vl_gbNavAid")) self.cmbNavAidType = ComboBoxPanel(self.gbNavAid) self.cmbNavAidType.Caption = "Type" self.cmbNavAidType.LabelWidth = 120 self.vl_gbNavAid.addWidget(self.cmbNavAidType) self.cmbBasedOn = ComboBoxPanel(self.gbNavAid, True) self.cmbBasedOn.Caption = "Based On" self.cmbBasedOn.LabelWidth = 120 self.cmbBasedOn.Width = 120 self.vl_gbNavAid.addWidget(self.cmbBasedOn) # self.frameNavAidType = QtGui.QFrame(self.gbNavAid) # sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) # sizePolicy.setHorizontalStretch(0) # sizePolicy.setVerticalStretch(0) # sizePolicy.setHeightForWidth(self.frameNavAidType.sizePolicy().hasHeightForWidth()) # self.frameNavAidType.setSizePolicy(sizePolicy) # self.frameNavAidType.setFrameShape(QtGui.QFrame.NoFrame) # self.frameNavAidType.setFrameShadow(QtGui.QFrame.Raised) # self.frameNavAidType.setObjectName(_fromUtf8("frameNavAidType")) # self.hlNavAidType = QtGui.QHBoxLayout(self.frameNavAidType) # self.hlNavAidType.setSpacing(0) # self.hlNavAidType.setMargin(0) # self.hlNavAidType.setObjectName(_fromUtf8("hlNavAidType")) # self.label_67 = QtGui.QLabel(self.frameNavAidType) # self.label_67.setMinimumSize(QtCore.QSize(180, 0)) # self.label_67.setMaximumSize(QtCore.QSize(180, 16777215)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_67.setFont(font) # self.label_67.setObjectName(_fromUtf8("label_67")) # self.hlNavAidType.addWidget(self.label_67) # 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) # self.cmbNavAidType.setMinimumSize(QtCore.QSize(66, 0)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.cmbNavAidType.setFont(font) # self.cmbNavAidType.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu) # self.cmbNavAidType.setObjectName(_fromUtf8("cmbNavAidType")) # self.hlNavAidType.addWidget(self.cmbNavAidType) # self.vl_gbNavAid.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.txtTrackRadial = TrackRadialBoxPanel(self.gbParameters) self.txtTrackRadial.Caption = "Track" self.vl_gbParameters.addWidget(self.txtTrackRadial) # self.frameTrackRadial = QtGui.QFrame(self.gbParameters) # self.frameTrackRadial.setFrameShape(QtGui.QFrame.NoFrame) # self.frameTrackRadial.setFrameShadow(QtGui.QFrame.Raised) # self.frameTrackRadial.setObjectName(_fromUtf8("frameTrackRadial")) # self.hlTrackRadial = QtGui.QHBoxLayout(self.frameTrackRadial) # self.hlTrackRadial.setSpacing(0) # self.hlTrackRadial.setMargin(0) # self.hlTrackRadial.setObjectName(_fromUtf8("hlTrackRadial")) # self.label_74 = QtGui.QLabel(self.frameTrackRadial) # self.label_74.setMinimumSize(QtCore.QSize(180, 0)) # self.label_74.setMaximumSize(QtCore.QSize(180, 16777215)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_74.setFont(font) # self.label_74.setObjectName(_fromUtf8("label_74")) # self.hlTrackRadial.addWidget(self.label_74) # self.frame_APV_9 = QtGui.QFrame(self.frameTrackRadial) # 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.txtTrackRadial = QtGui.QLineEdit(self.frame_APV_9) # self.txtTrackRadial.setEnabled(True) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtTrackRadial.setFont(font) # self.txtTrackRadial.setObjectName(_fromUtf8("txtTrackRadial")) # self.horizontalLayout_13.addWidget(self.txtTrackRadial) # self.btnCaptureTrackRadial = QtGui.QToolButton(self.frame_APV_9) # self.btnCaptureTrackRadial.setText(_fromUtf8("")) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) # self.btnCaptureTrackRadial.setIcon(icon) # self.btnCaptureTrackRadial.setObjectName(_fromUtf8("btnCaptureTrackRadial")) # self.horizontalLayout_13.addWidget(self.btnCaptureTrackRadial) # self.hlTrackRadial.addWidget(self.frame_APV_9) # self.vl_gbParameters.addWidget(self.frameTrackRadial) self.frameDistStart = QtGui.QFrame(self.gbParameters) self.frameDistStart.setFrameShape(QtGui.QFrame.NoFrame) self.frameDistStart.setFrameShadow(QtGui.QFrame.Raised) self.frameDistStart.setObjectName(_fromUtf8("frameDistStart")) self.hlDistStart = QtGui.QHBoxLayout(self.frameDistStart) self.hlDistStart.setSpacing(0) self.hlDistStart.setMargin(0) self.hlDistStart.setObjectName(_fromUtf8("hlDistStart")) self.label_75 = QtGui.QLabel(self.frameDistStart) self.label_75.setMinimumSize(QtCore.QSize(180, 0)) self.label_75.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_75.setFont(font) self.label_75.setObjectName(_fromUtf8("label_75")) self.hlDistStart.addWidget(self.label_75) self.frame_APV_10 = QtGui.QFrame(self.frameDistStart) self.frame_APV_10.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_APV_10.setFrameShadow(QtGui.QFrame.Raised) self.frame_APV_10.setObjectName(_fromUtf8("frame_APV_10")) self.horizontalLayout_14 = QtGui.QHBoxLayout(self.frame_APV_10) self.horizontalLayout_14.setSpacing(0) self.horizontalLayout_14.setMargin(0) self.horizontalLayout_14.setObjectName(_fromUtf8("horizontalLayout_14")) self.txtDistStart = QtGui.QLineEdit(self.frame_APV_10) self.txtDistStart.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtDistStart.setFont(font) self.txtDistStart.setObjectName(_fromUtf8("txtDistStart")) self.horizontalLayout_14.addWidget(self.txtDistStart) self.btnCaptureDistStart = QtGui.QToolButton(self.frame_APV_10) self.btnCaptureDistStart.setText(_fromUtf8("")) self.btnCaptureDistStart.setIcon(icon) self.btnCaptureDistStart.setObjectName(_fromUtf8("btnCaptureDistStart")) self.horizontalLayout_14.addWidget(self.btnCaptureDistStart) self.hlDistStart.addWidget(self.frame_APV_10) self.vl_gbParameters.addWidget(self.frameDistStart) self.frameDistFinish = QtGui.QFrame(self.gbParameters) self.frameDistFinish.setFrameShape(QtGui.QFrame.NoFrame) self.frameDistFinish.setFrameShadow(QtGui.QFrame.Raised) self.frameDistFinish.setObjectName(_fromUtf8("frameDistFinish")) self.hlDistFinish = QtGui.QHBoxLayout(self.frameDistFinish) self.hlDistFinish.setSpacing(0) self.hlDistFinish.setMargin(0) self.hlDistFinish.setObjectName(_fromUtf8("hlDistFinish")) self.label_76 = QtGui.QLabel(self.frameDistFinish) self.label_76.setMinimumSize(QtCore.QSize(180, 0)) self.label_76.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_76.setFont(font) self.label_76.setObjectName(_fromUtf8("label_76")) self.hlDistFinish.addWidget(self.label_76) self.frame_APV_11 = QtGui.QFrame(self.frameDistFinish) self.frame_APV_11.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_APV_11.setFrameShadow(QtGui.QFrame.Raised) self.frame_APV_11.setObjectName(_fromUtf8("frame_APV_11")) self.horizontalLayout_15 = QtGui.QHBoxLayout(self.frame_APV_11) self.horizontalLayout_15.setSpacing(0) self.horizontalLayout_15.setMargin(0) self.horizontalLayout_15.setObjectName(_fromUtf8("horizontalLayout_15")) self.txtDistFinish = QtGui.QLineEdit(self.frame_APV_11) self.txtDistFinish.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtDistFinish.setFont(font) self.txtDistFinish.setObjectName(_fromUtf8("txtDistFinish")) self.horizontalLayout_15.addWidget(self.txtDistFinish) self.btnCaptureDistFinish = QtGui.QToolButton(self.frame_APV_11) self.btnCaptureDistFinish.setText(_fromUtf8("")) self.btnCaptureDistFinish.setIcon(icon) self.btnCaptureDistFinish.setObjectName(_fromUtf8("btnCaptureDistFinish")) self.horizontalLayout_15.addWidget(self.btnCaptureDistFinish) self.hlDistFinish.addWidget(self.frame_APV_11) self.vl_gbParameters.addWidget(self.frameDistFinish) self.frameStartAltitude = QtGui.QFrame(self.gbParameters) self.frameStartAltitude.setFrameShape(QtGui.QFrame.NoFrame) self.frameStartAltitude.setFrameShadow(QtGui.QFrame.Raised) self.frameStartAltitude.setObjectName(_fromUtf8("frameStartAltitude")) self.hlStartAltitude = QtGui.QHBoxLayout(self.frameStartAltitude) self.hlStartAltitude.setSpacing(0) self.hlStartAltitude.setMargin(0) self.hlStartAltitude.setObjectName(_fromUtf8("hlStartAltitude")) self.label_79 = QtGui.QLabel(self.frameStartAltitude) self.label_79.setMinimumSize(QtCore.QSize(180, 0)) self.label_79.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_79.setFont(font) self.label_79.setObjectName(_fromUtf8("label_79")) self.hlStartAltitude.addWidget(self.label_79) self.frame_APV_14 = QtGui.QFrame(self.frameStartAltitude) self.frame_APV_14.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_APV_14.setFrameShadow(QtGui.QFrame.Raised) self.frame_APV_14.setObjectName(_fromUtf8("frame_APV_14")) self.horizontalLayout_18 = QtGui.QHBoxLayout(self.frame_APV_14) self.horizontalLayout_18.setSpacing(0) self.horizontalLayout_18.setMargin(0) self.horizontalLayout_18.setObjectName(_fromUtf8("horizontalLayout_18")) self.txtStartAltitude = QtGui.QLineEdit(self.frame_APV_14) self.txtStartAltitude.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtStartAltitude.setFont(font) self.txtStartAltitude.setObjectName(_fromUtf8("txtStartAltitude")) self.horizontalLayout_18.addWidget(self.txtStartAltitude) self.hlStartAltitude.addWidget(self.frame_APV_14) self.vl_gbParameters.addWidget(self.frameStartAltitude) self.frameAltitudeChange = QtGui.QFrame(self.gbParameters) self.frameAltitudeChange.setFrameShape(QtGui.QFrame.NoFrame) self.frameAltitudeChange.setFrameShadow(QtGui.QFrame.Raised) self.frameAltitudeChange.setObjectName(_fromUtf8("frameAltitudeChange")) self.hlAltitudeChange = QtGui.QHBoxLayout(self.frameAltitudeChange) self.hlAltitudeChange.setSpacing(0) self.hlAltitudeChange.setMargin(0) self.hlAltitudeChange.setObjectName(_fromUtf8("hlAltitudeChange")) self.label_77 = QtGui.QLabel(self.frameAltitudeChange) self.label_77.setMinimumSize(QtCore.QSize(180, 0)) self.label_77.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_77.setFont(font) self.label_77.setObjectName(_fromUtf8("label_77")) self.hlAltitudeChange.addWidget(self.label_77) self.frame_APV_12 = QtGui.QFrame(self.frameAltitudeChange) self.frame_APV_12.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_APV_12.setFrameShadow(QtGui.QFrame.Raised) self.frame_APV_12.setObjectName(_fromUtf8("frame_APV_12")) self.horizontalLayout_16 = QtGui.QHBoxLayout(self.frame_APV_12) self.horizontalLayout_16.setSpacing(0) self.horizontalLayout_16.setMargin(0) self.horizontalLayout_16.setObjectName(_fromUtf8("horizontalLayout_16")) self.txtAltitudeChange = QtGui.QLineEdit(self.frame_APV_12) self.txtAltitudeChange.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAltitudeChange.setFont(font) self.txtAltitudeChange.setObjectName(_fromUtf8("txtAltitudeChange")) self.horizontalLayout_16.addWidget(self.txtAltitudeChange) self.hlAltitudeChange.addWidget(self.frame_APV_12) self.vl_gbParameters.addWidget(self.frameAltitudeChange) self.frameToleranceType = QtGui.QFrame(self.gbParameters) self.frameToleranceType.setFrameShape(QtGui.QFrame.NoFrame) self.frameToleranceType.setFrameShadow(QtGui.QFrame.Raised) self.frameToleranceType.setObjectName(_fromUtf8("frameToleranceType")) self.hlToleranceType = QtGui.QHBoxLayout(self.frameToleranceType) self.hlToleranceType.setSpacing(0) self.hlToleranceType.setMargin(0) self.hlToleranceType.setObjectName(_fromUtf8("hlToleranceType")) self.label_66 = QtGui.QLabel(self.frameToleranceType) self.label_66.setMinimumSize(QtCore.QSize(180, 0)) self.label_66.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_66.setFont(font) self.label_66.setObjectName(_fromUtf8("label_66")) self.hlToleranceType.addWidget(self.label_66) self.cmbToleranceType = QtGui.QComboBox(self.frameToleranceType) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmbToleranceType.sizePolicy().hasHeightForWidth()) self.cmbToleranceType.setSizePolicy(sizePolicy) self.cmbToleranceType.setMinimumSize(QtCore.QSize(66, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbToleranceType.setFont(font) self.cmbToleranceType.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu) self.cmbToleranceType.setObjectName(_fromUtf8("cmbToleranceType")) self.hlToleranceType.addWidget(self.cmbToleranceType) self.vl_gbParameters.addWidget(self.frameToleranceType) self.frameSelectionMode = QtGui.QFrame(self.gbParameters) self.frameSelectionMode.setFrameShape(QtGui.QFrame.NoFrame) self.frameSelectionMode.setFrameShadow(QtGui.QFrame.Raised) self.frameSelectionMode.setObjectName(_fromUtf8("frameSelectionMode")) self.hLayoutSelectionMode = QtGui.QHBoxLayout(self.frameSelectionMode) self.hLayoutSelectionMode.setSpacing(0) self.hLayoutSelectionMode.setMargin(0) self.hLayoutSelectionMode.setObjectName(_fromUtf8("hLayoutSelectionMode")) self.label_68 = QtGui.QLabel(self.frameSelectionMode) self.label_68.setMinimumSize(QtCore.QSize(180, 0)) self.label_68.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_68.setFont(font) self.label_68.setObjectName(_fromUtf8("label_68")) self.hLayoutSelectionMode.addWidget(self.label_68) self.cmbSelectionMode = QtGui.QComboBox(self.frameSelectionMode) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmbSelectionMode.sizePolicy().hasHeightForWidth()) self.cmbSelectionMode.setSizePolicy(sizePolicy) self.cmbSelectionMode.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbSelectionMode.setFont(font) self.cmbSelectionMode.setObjectName(_fromUtf8("cmbSelectionMode")) self.hLayoutSelectionMode.addWidget(self.cmbSelectionMode) self.vl_gbParameters.addWidget(self.frameSelectionMode) self.framePrimaryMoc = QtGui.QFrame(self.gbParameters) self.framePrimaryMoc.setFrameShape(QtGui.QFrame.NoFrame) self.framePrimaryMoc.setFrameShadow(QtGui.QFrame.Raised) self.framePrimaryMoc.setObjectName(_fromUtf8("framePrimaryMoc")) self.hLayoutPrimaryMoc = QtGui.QHBoxLayout(self.framePrimaryMoc) self.hLayoutPrimaryMoc.setSpacing(0) self.hLayoutPrimaryMoc.setMargin(0) self.hLayoutPrimaryMoc.setObjectName(_fromUtf8("hLayoutPrimaryMoc")) self.label_70 = QtGui.QLabel(self.framePrimaryMoc) self.label_70.setMinimumSize(QtCore.QSize(180, 0)) self.label_70.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_70.setFont(font) self.label_70.setObjectName(_fromUtf8("label_70")) self.hLayoutPrimaryMoc.addWidget(self.label_70) self.txtPrimaryMOC = QtGui.QLineEdit(self.framePrimaryMoc) self.txtPrimaryMOC.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtPrimaryMOC.setFont(font) self.txtPrimaryMOC.setObjectName(_fromUtf8("txtPrimaryMOC")) self.hLayoutPrimaryMoc.addWidget(self.txtPrimaryMOC) self.label_6 = QtGui.QLabel(self.framePrimaryMoc) self.label_6.setObjectName(_fromUtf8("label_6")) self.hLayoutPrimaryMoc.addWidget(self.label_6) self.txtPrimaryMOCFt = QtGui.QLineEdit(self.framePrimaryMoc) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtPrimaryMOCFt.setFont(font) self.txtPrimaryMOCFt.setText(_fromUtf8("")) self.txtPrimaryMOCFt.setObjectName(_fromUtf8("txtPrimaryMOCFt")) self.hLayoutPrimaryMoc.addWidget(self.txtPrimaryMOCFt) self.labelMocFt = QtGui.QLabel(self.framePrimaryMoc) self.labelMocFt.setObjectName(_fromUtf8("labelMocFt")) self.hLayoutPrimaryMoc.addWidget(self.labelMocFt) self.vl_gbParameters.addWidget(self.framePrimaryMoc) self.frameConstructionType = QtGui.QFrame(self.gbParameters) self.frameConstructionType.setFrameShape(QtGui.QFrame.NoFrame) self.frameConstructionType.setFrameShadow(QtGui.QFrame.Raised) self.frameConstructionType.setObjectName(_fromUtf8("frameConstructionType")) self.hlConstructionType = QtGui.QHBoxLayout(self.frameConstructionType) self.hlConstructionType.setSpacing(0) self.hlConstructionType.setMargin(0) self.hlConstructionType.setObjectName(_fromUtf8("hlConstructionType")) self.label_69 = QtGui.QLabel(self.frameConstructionType) self.label_69.setMinimumSize(QtCore.QSize(180, 0)) self.label_69.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_69.setFont(font) self.label_69.setObjectName(_fromUtf8("label_69")) self.hlConstructionType.addWidget(self.label_69) self.cmbConstructionType = QtGui.QComboBox(self.frameConstructionType) 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) self.cmbConstructionType.setMinimumSize(QtCore.QSize(66, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbConstructionType.setFont(font) self.cmbConstructionType.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu) self.cmbConstructionType.setObjectName(_fromUtf8("cmbConstructionType")) self.hlConstructionType.addWidget(self.cmbConstructionType) self.vl_gbParameters.addWidget(self.frameConstructionType) self.frameMOCmultipiler = QtGui.QFrame(self.gbParameters) self.frameMOCmultipiler.setFrameShape(QtGui.QFrame.NoFrame) self.frameMOCmultipiler.setFrameShadow(QtGui.QFrame.Raised) self.frameMOCmultipiler.setObjectName(_fromUtf8("frameMOCmultipiler")) self.horizontalLayout_76 = QtGui.QHBoxLayout(self.frameMOCmultipiler) self.horizontalLayout_76.setSpacing(0) self.horizontalLayout_76.setMargin(0) self.horizontalLayout_76.setObjectName(_fromUtf8("horizontalLayout_76")) self.label_84 = QtGui.QLabel(self.frameMOCmultipiler) self.label_84.setMinimumSize(QtCore.QSize(180, 0)) self.label_84.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_84.setFont(font) self.label_84.setObjectName(_fromUtf8("label_84")) self.horizontalLayout_76.addWidget(self.label_84) self.mocSpinBox = QtGui.QSpinBox(self.frameMOCmultipiler) self.mocSpinBox.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.mocSpinBox.sizePolicy().hasHeightForWidth()) self.mocSpinBox.setSizePolicy(sizePolicy) self.mocSpinBox.setMinimumSize(QtCore.QSize(66, 0)) self.mocSpinBox.setMinimum(1) self.mocSpinBox.setObjectName(_fromUtf8("mocSpinBox")) self.horizontalLayout_76.addWidget(self.mocSpinBox) self.vl_gbParameters.addWidget(self.frameMOCmultipiler) self.chbOverhead = QtGui.QCheckBox(self.gbParameters) 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(_fromUtf8("Form")) Form.resize(473, 580) 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.gbWaypoint = QtGui.QGroupBox(Form) self.gbWaypoint.setObjectName(_fromUtf8("gbWaypoint")) self.vl_gbWaypoint = QtGui.QVBoxLayout(self.gbWaypoint) self.vl_gbWaypoint.setObjectName(_fromUtf8("vl_gbWaypoint")) self.verticalLayout.addWidget(self.gbWaypoint) 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.frame_58 = QtGui.QFrame(self.gbParameters) self.frame_58.setFrameShape(QtGui.QFrame.NoFrame) self.frame_58.setFrameShadow(QtGui.QFrame.Raised) self.frame_58.setObjectName(_fromUtf8("frame_58")) self.horizontalLayout_58 = QtGui.QHBoxLayout(self.frame_58) self.horizontalLayout_58.setSpacing(0) self.horizontalLayout_58.setMargin(0) self.horizontalLayout_58.setObjectName( _fromUtf8("horizontalLayout_58")) self.label_66 = QtGui.QLabel(self.frame_58) self.label_66.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_66.setFont(font) self.label_66.setObjectName(_fromUtf8("label_66")) self.horizontalLayout_58.addWidget(self.label_66) self.cmbHoldingFunctionality = QtGui.QComboBox(self.frame_58) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbHoldingFunctionality.sizePolicy().hasHeightForWidth()) self.cmbHoldingFunctionality.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbHoldingFunctionality.setFont(font) self.cmbHoldingFunctionality.setObjectName( _fromUtf8("cmbHoldingFunctionality")) self.horizontalLayout_58.addWidget(self.cmbHoldingFunctionality) self.vl_gbParameters.addWidget(self.frame_58) self.frame_OutBoundLimit = QtGui.QFrame(self.gbParameters) self.frame_OutBoundLimit.setFrameShape(QtGui.QFrame.NoFrame) self.frame_OutBoundLimit.setFrameShadow(QtGui.QFrame.Raised) self.frame_OutBoundLimit.setObjectName( _fromUtf8("frame_OutBoundLimit")) self.horizontalLayout_59 = QtGui.QHBoxLayout(self.frame_OutBoundLimit) self.horizontalLayout_59.setSpacing(0) self.horizontalLayout_59.setMargin(0) self.horizontalLayout_59.setObjectName( _fromUtf8("horizontalLayout_59")) self.label_67 = QtGui.QLabel(self.frame_OutBoundLimit) self.label_67.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_67.setFont(font) self.label_67.setObjectName(_fromUtf8("label_67")) self.horizontalLayout_59.addWidget(self.label_67) self.cmbOutboundLimit = QtGui.QComboBox(self.frame_OutBoundLimit) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbOutboundLimit.sizePolicy().hasHeightForWidth()) self.cmbOutboundLimit.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbOutboundLimit.setFont(font) self.cmbOutboundLimit.setObjectName(_fromUtf8("cmbOutboundLimit")) self.horizontalLayout_59.addWidget(self.cmbOutboundLimit) self.vl_gbParameters.addWidget(self.frame_OutBoundLimit) self.frame_59 = QtGui.QFrame(self.gbParameters) self.frame_59.setFrameShape(QtGui.QFrame.NoFrame) self.frame_59.setFrameShadow(QtGui.QFrame.Raised) self.frame_59.setObjectName(_fromUtf8("frame_59")) self.horizontalLayout_61 = QtGui.QHBoxLayout(self.frame_59) self.horizontalLayout_61.setSpacing(0) self.horizontalLayout_61.setMargin(0) self.horizontalLayout_61.setObjectName( _fromUtf8("horizontalLayout_61")) self.label_69 = QtGui.QLabel(self.frame_59) self.label_69.setMinimumSize(QtCore.QSize(250, 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.frame_59) 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.horizontalLayout_61.addWidget(self.cmbAircraftCategory) self.vl_gbParameters.addWidget(self.frame_59) self.frame_61 = QtGui.QFrame(self.gbParameters) 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(250, 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.frame_61) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtIas.setFont(font) self.txtIas.setObjectName(_fromUtf8("txtIas")) self.horizontalLayout_60.addWidget(self.txtIas) self.vl_gbParameters.addWidget(self.frame_61) self.frame_62 = QtGui.QFrame(self.gbParameters) self.frame_62.setFrameShape(QtGui.QFrame.NoFrame) self.frame_62.setFrameShadow(QtGui.QFrame.Raised) self.frame_62.setObjectName(_fromUtf8("frame_62")) self.horizontalLayout_69 = QtGui.QHBoxLayout(self.frame_62) self.horizontalLayout_69.setSpacing(0) self.horizontalLayout_69.setMargin(0) self.horizontalLayout_69.setObjectName( _fromUtf8("horizontalLayout_69")) self.label_77 = QtGui.QLabel(self.frame_62) self.label_77.setMinimumSize(QtCore.QSize(250, 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.txtAltitudeM = QtGui.QLineEdit(self.frame_62) self.txtAltitudeM.setObjectName(_fromUtf8("txtAltitudeM")) self.horizontalLayout_69.addWidget(self.txtAltitudeM) self.label_2 = QtGui.QLabel(self.frame_62) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_69.addWidget(self.label_2) self.txtAltitude = QtGui.QLineEdit(self.frame_62) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAltitude.setFont(font) self.txtAltitude.setObjectName(_fromUtf8("txtAltitude")) self.horizontalLayout_69.addWidget(self.txtAltitude) self.label = QtGui.QLabel(self.frame_62) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_69.addWidget(self.label) self.vl_gbParameters.addWidget(self.frame_62) self.frame_63 = QtGui.QFrame(self.gbParameters) self.frame_63.setFrameShape(QtGui.QFrame.NoFrame) self.frame_63.setFrameShadow(QtGui.QFrame.Raised) self.frame_63.setObjectName(_fromUtf8("frame_63")) self.horizontalLayout_72 = QtGui.QHBoxLayout(self.frame_63) self.horizontalLayout_72.setSpacing(0) self.horizontalLayout_72.setMargin(0) self.horizontalLayout_72.setObjectName( _fromUtf8("horizontalLayout_72")) self.label_80 = QtGui.QLabel(self.frame_63) self.label_80.setMinimumSize(QtCore.QSize(250, 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.frame_63) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtIsa.setFont(font) self.txtIsa.setObjectName(_fromUtf8("txtIsa")) self.horizontalLayout_72.addWidget(self.txtIsa) self.btnIasHelp = QtGui.QPushButton(self.frame_61) self.frame_Tas = QtGui.QFrame(self.gbParameters) self.frame_Tas.setFrameShape(QtGui.QFrame.NoFrame) self.frame_Tas.setFrameShadow(QtGui.QFrame.Raised) self.frame_Tas.setObjectName(_fromUtf8("frame_Tas")) self.horizontalLayout_Tas = QtGui.QHBoxLayout(self.frame_Tas) self.horizontalLayout_Tas.setSpacing(0) self.horizontalLayout_Tas.setMargin(0) self.horizontalLayout_Tas.setObjectName( _fromUtf8("horizontalLayout_Tas")) self.label_Tas = QtGui.QLabel(self.frame_Tas) self.label_Tas.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_Tas.setFont(font) self.label_Tas.setObjectName(_fromUtf8("label_Tas")) self.horizontalLayout_Tas.addWidget(self.label_Tas) self.txtTas = QtGui.QLineEdit(self.frame_Tas) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtTas.setFont(font) self.txtTas.setObjectName(_fromUtf8("txtTas")) self.horizontalLayout_Tas.addWidget(self.txtTas) self.vl_gbParameters.addWidget(self.frame_Tas) self.btnIasHelp.setText(_fromUtf8("?")) self.btnIasHelp.setObjectName(_fromUtf8("btnIasHelp")) self.btnIasHelp.setFixedWidth(23) self.horizontalLayout_60.addWidget(self.btnIasHelp) self.vl_gbParameters.addWidget(self.frame_63) self.frame_Time = QtGui.QFrame(self.gbParameters) self.frame_Time.setFrameShape(QtGui.QFrame.NoFrame) self.frame_Time.setFrameShadow(QtGui.QFrame.Raised) self.frame_Time.setObjectName(_fromUtf8("frame_Time")) self.horizontalLayout_73 = QtGui.QHBoxLayout(self.frame_Time) self.horizontalLayout_73.setSpacing(0) self.horizontalLayout_73.setMargin(0) self.horizontalLayout_73.setObjectName( _fromUtf8("horizontalLayout_73")) self.label_81 = QtGui.QLabel(self.frame_Time) self.label_81.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_81.setFont(font) self.label_81.setObjectName(_fromUtf8("label_81")) self.horizontalLayout_73.addWidget(self.label_81) self.txtTime = QtGui.QLineEdit(self.frame_Time) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtTime.setFont(font) self.txtTime.setObjectName(_fromUtf8("txtTime")) self.horizontalLayout_73.addWidget(self.txtTime) self.vl_gbParameters.addWidget(self.frame_Time) self.frame_Length = QtGui.QFrame(self.gbParameters) self.frame_Length.setFrameShape(QtGui.QFrame.NoFrame) self.frame_Length.setFrameShadow(QtGui.QFrame.Raised) self.frame_Length.setObjectName(_fromUtf8("frame_Length")) self.horizontalLayout_65 = QtGui.QHBoxLayout(self.frame_Length) self.horizontalLayout_65.setSpacing(0) self.horizontalLayout_65.setMargin(0) self.horizontalLayout_65.setObjectName( _fromUtf8("horizontalLayout_65")) self.label_73 = QtGui.QLabel(self.frame_Length) self.label_73.setMinimumSize(QtCore.QSize(250, 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_8 = QtGui.QFrame(self.frame_Length) 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.txtLength = QtGui.QLineEdit(self.frame_APV_8) self.txtLength.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtLength.setFont(font) self.txtLength.setObjectName(_fromUtf8("txtLength")) self.horizontalLayout_12.addWidget(self.txtLength) self.btnCaptureLength = QtGui.QToolButton(self.frame_APV_8) self.btnCaptureLength.setText(_fromUtf8("")) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnCaptureLength.setIcon(icon) self.btnCaptureLength.setObjectName(_fromUtf8("btnCaptureLength")) self.horizontalLayout_12.addWidget(self.btnCaptureLength) self.horizontalLayout_65.addWidget(self.frame_APV_8) self.vl_gbParameters.addWidget(self.frame_Length) self.frame_Distance = QtGui.QFrame(self.gbParameters) self.frame_Distance.setFrameShape(QtGui.QFrame.NoFrame) self.frame_Distance.setFrameShadow(QtGui.QFrame.Raised) self.frame_Distance.setObjectName(_fromUtf8("frame_Distance")) self.horizontalLayout_64 = QtGui.QHBoxLayout(self.frame_Distance) self.horizontalLayout_64.setSpacing(0) self.horizontalLayout_64.setMargin(0) self.horizontalLayout_64.setObjectName( _fromUtf8("horizontalLayout_64")) self.label_72 = QtGui.QLabel(self.frame_Distance) 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.frame_APV_7 = QtGui.QFrame(self.frame_Distance) 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.txtDistance = QtGui.QLineEdit(self.frame_APV_7) self.txtDistance.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtDistance.setFont(font) self.txtDistance.setObjectName(_fromUtf8("txtDistance")) self.horizontalLayout_11.addWidget(self.txtDistance) self.btnCaptureDistance = QtGui.QToolButton(self.frame_APV_7) self.btnCaptureDistance.setText(_fromUtf8("")) self.btnCaptureDistance.setIcon(icon) self.btnCaptureDistance.setObjectName(_fromUtf8("btnCaptureDistance")) self.horizontalLayout_11.addWidget(self.btnCaptureDistance) self.horizontalLayout_64.addWidget(self.frame_APV_7) self.vl_gbParameters.addWidget(self.frame_Distance) self.frame_69 = QtGui.QFrame(self.gbParameters) self.frame_69.setFrameShape(QtGui.QFrame.NoFrame) self.frame_69.setFrameShadow(QtGui.QFrame.Raised) self.frame_69.setObjectName(_fromUtf8("frame_69")) self.horizontalLayout_74 = QtGui.QHBoxLayout(self.frame_69) self.horizontalLayout_74.setSpacing(0) self.horizontalLayout_74.setMargin(0) self.horizontalLayout_74.setObjectName( _fromUtf8("horizontalLayout_74")) self.label_82 = QtGui.QLabel(self.frame_69) 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.horizontalLayout_74.addWidget(self.label_82) self.txtMoc = QtGui.QLineEdit(self.frame_69) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtMoc.setFont(font) self.txtMoc.setObjectName(_fromUtf8("txtMoc")) self.horizontalLayout_74.addWidget(self.txtMoc) self.label_6 = QtGui.QLabel(self.frame_69) self.label_6.setObjectName(_fromUtf8("label_6")) self.horizontalLayout_74.addWidget(self.label_6) self.txtMocFt = QtGui.QLineEdit(self.frame_69) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtMocFt.setFont(font) self.txtMocFt.setText(_fromUtf8("")) self.txtMocFt.setObjectName(_fromUtf8("txtMocFt")) self.horizontalLayout_74.addWidget(self.txtMocFt) self.labelMocFt = QtGui.QLabel(self.frame_69) self.labelMocFt.setObjectName(_fromUtf8("labelMocFt")) self.horizontalLayout_74.addWidget(self.labelMocFt) self.vl_gbParameters.addWidget(self.frame_69) self.chbCatH = QtGui.QCheckBox(self.gbParameters) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbCatH.setFont(font) self.chbCatH.setObjectName(_fromUtf8("chbCatH")) self.vl_gbParameters.addWidget(self.chbCatH) self.gbEntryAreas = QtGui.QGroupBox(self.gbParameters) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.gbEntryAreas.setFont(font) self.gbEntryAreas.setObjectName(_fromUtf8("gbEntryAreas")) self.verticalLayout_4 = QtGui.QVBoxLayout(self.gbEntryAreas) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.frame_Limitation = QtGui.QFrame(self.gbEntryAreas) 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.setMargin(0) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.chbIntercept = QtGui.QCheckBox(self.frame_Limitation) self.chbIntercept.setMinimumSize(QtCore.QSize(0, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbIntercept.setFont(font) self.chbIntercept.setObjectName(_fromUtf8("chbIntercept")) self.horizontalLayout_2.addWidget(self.chbIntercept) self.chbSector1 = QtGui.QCheckBox(self.frame_Limitation) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbSector1.setFont(font) self.chbSector1.setLayoutDirection(QtCore.Qt.LeftToRight) self.chbSector1.setObjectName(_fromUtf8("chbSector1")) self.horizontalLayout_2.addWidget(self.chbSector1) self.chbSector2 = QtGui.QCheckBox(self.frame_Limitation) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbSector2.setFont(font) self.chbSector2.setLayoutDirection(QtCore.Qt.LeftToRight) self.chbSector2.setObjectName(_fromUtf8("chbSector2")) self.horizontalLayout_2.addWidget(self.chbSector2) self.chbSectors12 = QtGui.QCheckBox(self.frame_Limitation) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbSectors12.setFont(font) self.chbSectors12.setLayoutDirection(QtCore.Qt.LeftToRight) self.chbSectors12.setObjectName(_fromUtf8("chbSectors12")) self.horizontalLayout_2.addWidget(self.chbSectors12) self.chbSector3 = QtGui.QCheckBox(self.frame_Limitation) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbSector3.setFont(font) self.chbSector3.setLayoutDirection(QtCore.Qt.LeftToRight) self.chbSector3.setObjectName(_fromUtf8("chbSector3")) self.horizontalLayout_2.addWidget(self.chbSector3) self.verticalLayout_4.addWidget(self.frame_Limitation) self.vl_gbParameters.addWidget(self.gbEntryAreas) self.frame_66 = QtGui.QFrame(self.gbParameters) self.frame_66.setFrameShape(QtGui.QFrame.NoFrame) self.frame_66.setFrameShadow(QtGui.QFrame.Raised) self.frame_66.setObjectName(_fromUtf8("frame_66")) self.horizontalLayout_75 = QtGui.QHBoxLayout(self.frame_66) self.horizontalLayout_75.setSpacing(0) self.horizontalLayout_75.setMargin(0) self.horizontalLayout_75.setObjectName( _fromUtf8("horizontalLayout_75")) self.label_83 = QtGui.QLabel(self.frame_66) self.label_83.setMinimumSize(QtCore.QSize(250, 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.frame_66) 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.horizontalLayout_75.addWidget(self.cmbConstruction) self.vl_gbParameters.addWidget(self.frame_66) self.frame_Time_2 = QtGui.QFrame(self.gbParameters) self.frame_Time_2.setFrameShape(QtGui.QFrame.NoFrame) self.frame_Time_2.setFrameShadow(QtGui.QFrame.Raised) self.frame_Time_2.setObjectName(_fromUtf8("frame_Time_2")) self.horizontalLayout_76 = QtGui.QHBoxLayout(self.frame_Time_2) self.horizontalLayout_76.setSpacing(0) self.horizontalLayout_76.setMargin(0) self.horizontalLayout_76.setObjectName( _fromUtf8("horizontalLayout_76")) self.label_84 = QtGui.QLabel(self.frame_Time_2) self.label_84.setMinimumSize(QtCore.QSize(250, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_84.setFont(font) self.label_84.setObjectName(_fromUtf8("label_84")) self.horizontalLayout_76.addWidget(self.label_84) self.txtTime_2 = QtGui.QLineEdit(self.frame_Time_2) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtTime_2.setFont(font) self.txtTime_2.setObjectName(_fromUtf8("txtTime_2")) self.horizontalLayout_76.addWidget(self.txtTime_2) self.vl_gbParameters.addWidget(self.frame_Time_2) self.verticalLayout.addWidget(self.gbParameters) self.gbOrientation = QtGui.QGroupBox(Form) self.gbOrientation.setObjectName(_fromUtf8("gbOrientation")) self.vl_gbOrientation = QtGui.QVBoxLayout(self.gbOrientation) self.vl_gbOrientation.setObjectName(_fromUtf8("vl_gbOrientation")) self.txtTrack = TrackRadialBoxPanel(self.gbOrientation) self.txtTrack.Caption = "In-bound Track" self.vl_gbOrientation.addWidget(self.txtTrack) # # self.frame_TrackFrom = QtGui.QFrame(self.gbOrientation) # # self.frame_TrackFrom.setFrameShape(QtGui.QFrame.NoFrame) # # self.frame_TrackFrom.setFrameShadow(QtGui.QFrame.Raised) # # self.frame_TrackFrom.setObjectName(_fromUtf8("frame_TrackFrom")) # # self.horizontalLayout_63 = QtGui.QHBoxLayout(self.frame_TrackFrom) # # self.horizontalLayout_63.setSpacing(0) # # self.horizontalLayout_63.setMargin(0) # # self.horizontalLayout_63.setObjectName(_fromUtf8("horizontalLayout_63")) # # self.label_71 = QtGui.QLabel(self.frame_TrackFrom) # # self.label_71.setMinimumSize(QtCore.QSize(240, 0)) # # font = QtGui.QFont() # # font.setBold(False) # # font.setWeight(50) # # self.label_71.setFont(font) # # self.label_71.setObjectName(_fromUtf8("label_71")) # # self.horizontalLayout_63.addWidget(self.label_71) # # self.frame_APV_6 = QtGui.QFrame(self.frame_TrackFrom) # 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.txtTrack = QtGui.QLineEdit(self.frame_APV_6) # self.txtTrack.setEnabled(True) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtTrack.setFont(font) # self.txtTrack.setObjectName(_fromUtf8("txtTrack")) # self.horizontalLayout_10.addWidget(self.txtTrack) # self.btnCaptureTrack = QtGui.QToolButton(self.frame_APV_6) # self.btnCaptureTrack.setText(_fromUtf8("")) # self.btnCaptureTrack.setIcon(icon) # self.btnCaptureTrack.setObjectName(_fromUtf8("btnCaptureTrack")) # self.horizontalLayout_10.addWidget(self.btnCaptureTrack) # self.horizontalLayout_63.addWidget(self.frame_APV_6) # self.vl_gbOrientation.addWidget(self.frame_TrackFrom) self.frame_67 = QtGui.QFrame(self.gbOrientation) 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(240, 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.cmbOrientation = QtGui.QComboBox(self.frame_67) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbOrientation.sizePolicy().hasHeightForWidth()) self.cmbOrientation.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbOrientation.setFont(font) self.cmbOrientation.setObjectName(_fromUtf8("cmbOrientation")) self.horizontalLayout_67.addWidget(self.cmbOrientation) self.vl_gbOrientation.addWidget(self.frame_67) self.verticalLayout.addWidget(self.gbOrientation) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(435, 580) self.verticalLayout = QtGui.QVBoxLayout(Form) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gbGeneral = QtGui.QGroupBox(Form) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.gbGeneral.sizePolicy().hasHeightForWidth()) self.gbGeneral.setSizePolicy(sizePolicy) self.gbGeneral.setObjectName(_fromUtf8("gbGeneral")) self.vl_gbGeneral = QtGui.QVBoxLayout(self.gbGeneral) self.vl_gbGeneral.setObjectName(_fromUtf8("vl_gbGeneral")) self.frameRnavSpecification = QtGui.QFrame(self.gbGeneral) self.frameRnavSpecification.setFrameShape(QtGui.QFrame.NoFrame) self.frameRnavSpecification.setFrameShadow(QtGui.QFrame.Raised) self.frameRnavSpecification.setObjectName( _fromUtf8("frameRnavSpecification")) self.hLayoutRnavSpecification = QtGui.QHBoxLayout( self.frameRnavSpecification) self.hLayoutRnavSpecification.setSpacing(0) self.hLayoutRnavSpecification.setMargin(0) self.hLayoutRnavSpecification.setObjectName( _fromUtf8("hLayoutRnavSpecification")) self.label_67 = QtGui.QLabel(self.frameRnavSpecification) self.label_67.setMinimumSize(QtCore.QSize(180, 0)) self.label_67.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_67.setFont(font) self.label_67.setObjectName(_fromUtf8("label_67")) self.hLayoutRnavSpecification.addWidget(self.label_67) self.cmbRnavSpecification = QtGui.QComboBox( self.frameRnavSpecification) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbRnavSpecification.sizePolicy().hasHeightForWidth()) self.cmbRnavSpecification.setSizePolicy(sizePolicy) self.cmbRnavSpecification.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbRnavSpecification.setFont(font) self.cmbRnavSpecification.setObjectName( _fromUtf8("cmbRnavSpecification")) self.hLayoutRnavSpecification.addWidget(self.cmbRnavSpecification) self.vl_gbGeneral.addWidget(self.frameRnavSpecification) self.framePhaseOfFlight = QtGui.QFrame(self.gbGeneral) self.framePhaseOfFlight.setFrameShape(QtGui.QFrame.NoFrame) self.framePhaseOfFlight.setFrameShadow(QtGui.QFrame.Raised) self.framePhaseOfFlight.setObjectName(_fromUtf8("framePhaseOfFlight")) self.hLayoutPhaseOfFlight = QtGui.QHBoxLayout(self.framePhaseOfFlight) self.hLayoutPhaseOfFlight.setSpacing(0) self.hLayoutPhaseOfFlight.setMargin(0) self.hLayoutPhaseOfFlight.setObjectName( _fromUtf8("hLayoutPhaseOfFlight")) self.label_69 = QtGui.QLabel(self.framePhaseOfFlight) self.label_69.setMinimumSize(QtCore.QSize(180, 0)) self.label_69.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_69.setFont(font) self.label_69.setObjectName(_fromUtf8("label_69")) self.hLayoutPhaseOfFlight.addWidget(self.label_69) self.cmbPhaseOfFlight = QtGui.QComboBox(self.framePhaseOfFlight) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbPhaseOfFlight.sizePolicy().hasHeightForWidth()) self.cmbPhaseOfFlight.setSizePolicy(sizePolicy) self.cmbPhaseOfFlight.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbPhaseOfFlight.setFont(font) self.cmbPhaseOfFlight.setObjectName(_fromUtf8("cmbPhaseOfFlight")) self.hLayoutPhaseOfFlight.addWidget(self.cmbPhaseOfFlight) self.vl_gbGeneral.addWidget(self.framePhaseOfFlight) self.gbWaypoint = QtGui.QGroupBox(self.gbGeneral) self.gbWaypoint.setObjectName(_fromUtf8("gbWaypoint")) self.vLayoutGbWaypoint = QtGui.QVBoxLayout(self.gbWaypoint) self.vLayoutGbWaypoint.setObjectName(_fromUtf8("vLayoutGbWaypoint")) self.frameType = QtGui.QFrame(self.gbWaypoint) self.frameType.setFrameShape(QtGui.QFrame.NoFrame) self.frameType.setFrameShadow(QtGui.QFrame.Raised) self.frameType.setObjectName(_fromUtf8("frameType")) self.hLayoutType = QtGui.QHBoxLayout(self.frameType) self.hLayoutType.setSpacing(0) self.hLayoutType.setMargin(0) self.hLayoutType.setObjectName(_fromUtf8("hLayoutType")) self.label_70 = QtGui.QLabel(self.frameType) self.label_70.setMinimumSize(QtCore.QSize(180, 0)) self.label_70.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_70.setFont(font) self.label_70.setObjectName(_fromUtf8("label_70")) self.hLayoutType.addWidget(self.label_70) self.cmbType = QtGui.QComboBox(self.frameType) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbType.sizePolicy().hasHeightForWidth()) self.cmbType.setSizePolicy(sizePolicy) self.cmbType.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbType.setFont(font) self.cmbType.setObjectName(_fromUtf8("cmbType")) self.hLayoutType.addWidget(self.cmbType) self.vLayoutGbWaypoint.addWidget(self.frameType) self.vl_gbGeneral.addWidget(self.gbWaypoint) self.chbCatH = QtGui.QCheckBox(self.gbGeneral) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbCatH.setFont(font) self.chbCatH.setObjectName(_fromUtf8("chbCatH")) self.vl_gbGeneral.addWidget(self.chbCatH) self.chbCircularArcs = QtGui.QCheckBox(self.gbGeneral) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbCircularArcs.setFont(font) self.chbCircularArcs.setObjectName(_fromUtf8("chbCircularArcs")) self.vl_gbGeneral.addWidget(self.chbCircularArcs) self.gbParameters = QtGui.QGroupBox(self.gbGeneral) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.gbParameters.sizePolicy().hasHeightForWidth()) self.gbParameters.setSizePolicy(sizePolicy) 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.frameSelectionMode = QtGui.QFrame(self.gbParameters) self.frameSelectionMode.setFrameShape(QtGui.QFrame.NoFrame) self.frameSelectionMode.setFrameShadow(QtGui.QFrame.Raised) self.frameSelectionMode.setObjectName(_fromUtf8("frameSelectionMode")) self.hLayoutSelectionMode = QtGui.QHBoxLayout(self.frameSelectionMode) self.hLayoutSelectionMode.setSpacing(0) self.hLayoutSelectionMode.setMargin(0) self.hLayoutSelectionMode.setObjectName( _fromUtf8("hLayoutSelectionMode")) self.label_66 = QtGui.QLabel(self.frameSelectionMode) self.label_66.setMinimumSize(QtCore.QSize(180, 0)) self.label_66.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_66.setFont(font) self.label_66.setObjectName(_fromUtf8("label_66")) self.hLayoutSelectionMode.addWidget(self.label_66) self.cmbSelectionMode = QtGui.QComboBox(self.frameSelectionMode) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbSelectionMode.sizePolicy().hasHeightForWidth()) self.cmbSelectionMode.setSizePolicy(sizePolicy) self.cmbSelectionMode.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbSelectionMode.setFont(font) self.cmbSelectionMode.setObjectName(_fromUtf8("cmbSelectionMode")) self.hLayoutSelectionMode.addWidget(self.cmbSelectionMode) self.vl_gbParameters.addWidget(self.frameSelectionMode) self.txtInbound = TrackRadialBoxPanel(self.gbParameters) self.txtInbound.Caption = "In-bound Track" self.vl_gbParameters.addWidget(self.txtInbound) self.txtOutbound = TrackRadialBoxPanel(self.gbParameters) self.txtOutbound.Caption = "Out-bound Track" self.vl_gbParameters.addWidget(self.txtOutbound) # self.frame_Track = QtGui.QFrame(self.gbParameters) # self.frame_Track.setFrameShape(QtGui.QFrame.NoFrame) # self.frame_Track.setFrameShadow(QtGui.QFrame.Raised) # self.frame_Track.setObjectName(_fromUtf8("frame_Track")) # self.hLayoutTrack = QtGui.QHBoxLayout(self.frame_Track) # self.hLayoutTrack.setSpacing(0) # self.hLayoutTrack.setMargin(0) # self.hLayoutTrack.setObjectName(_fromUtf8("hLayoutTrack")) # self.label_75 = QtGui.QLabel(self.frame_Track) # self.label_75.setMinimumSize(QtCore.QSize(180, 0)) # self.label_75.setMaximumSize(QtCore.QSize(180, 16777215)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_75.setFont(font) # self.label_75.setObjectName(_fromUtf8("label_75")) # self.hLayoutTrack.addWidget(self.label_75) # self.frame_APV_10 = QtGui.QFrame(self.frame_Track) # self.frame_APV_10.setFrameShape(QtGui.QFrame.StyledPanel) # self.frame_APV_10.setFrameShadow(QtGui.QFrame.Raised) # self.frame_APV_10.setObjectName(_fromUtf8("frame_APV_10")) # self.horizontalLayout_14 = QtGui.QHBoxLayout(self.frame_APV_10) # self.horizontalLayout_14.setSpacing(0) # self.horizontalLayout_14.setMargin(0) # self.horizontalLayout_14.setObjectName(_fromUtf8("horizontalLayout_14")) # self.txtInbound = QtGui.QLineEdit(self.frame_APV_10) # self.txtInbound.setEnabled(True) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtInbound.setFont(font) # self.txtInbound.setObjectName(_fromUtf8("txtInbound")) # self.horizontalLayout_14.addWidget(self.txtInbound) # self.btnCaptureInboundTrack = QtGui.QToolButton(self.frame_APV_10) # self.btnCaptureInboundTrack.setText(_fromUtf8("")) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) # self.btnCaptureInboundTrack.setIcon(icon) # self.btnCaptureInboundTrack.setObjectName(_fromUtf8("btnCaptureInboundTrack")) # self.horizontalLayout_14.addWidget(self.btnCaptureInboundTrack) # self.hLayoutTrack.addWidget(self.frame_APV_10) # self.vl_gbParameters.addWidget(self.frame_Track) # self.frameDistance = QtGui.QFrame(self.gbParameters) # self.frameDistance.setFrameShape(QtGui.QFrame.NoFrame) # self.frameDistance.setFrameShadow(QtGui.QFrame.Raised) # self.frameDistance.setObjectName(_fromUtf8("frameDistance")) # self.hLayoutDistance = QtGui.QHBoxLayout(self.frameDistance) # self.hLayoutDistance.setSpacing(0) # self.hLayoutDistance.setMargin(0) # self.hLayoutDistance.setObjectName(_fromUtf8("hLayoutDistance")) # self.label_76 = QtGui.QLabel(self.frameDistance) # self.label_76.setMinimumSize(QtCore.QSize(180, 0)) # self.label_76.setMaximumSize(QtCore.QSize(180, 16777215)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_76.setFont(font) # self.label_76.setObjectName(_fromUtf8("label_76")) # self.hLayoutDistance.addWidget(self.label_76) # self.frame_APV_11 = QtGui.QFrame(self.frameDistance) # self.frame_APV_11.setFrameShape(QtGui.QFrame.StyledPanel) # self.frame_APV_11.setFrameShadow(QtGui.QFrame.Raised) # self.frame_APV_11.setObjectName(_fromUtf8("frame_APV_11")) # self.horizontalLayout_15 = QtGui.QHBoxLayout(self.frame_APV_11) # self.horizontalLayout_15.setSpacing(0) # self.horizontalLayout_15.setMargin(0) # self.horizontalLayout_15.setObjectName(_fromUtf8("horizontalLayout_15")) # self.txtOutbound = QtGui.QLineEdit(self.frame_APV_11) # self.txtOutbound.setEnabled(True) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtOutbound.setFont(font) # self.txtOutbound.setObjectName(_fromUtf8("txtOutbound")) # self.horizontalLayout_15.addWidget(self.txtOutbound) # self.btnCaptureOutboundTrack = QtGui.QToolButton(self.frame_APV_11) # self.btnCaptureOutboundTrack.setText(_fromUtf8("")) # self.btnCaptureOutboundTrack.setIcon(icon) # self.btnCaptureOutboundTrack.setObjectName(_fromUtf8("btnCaptureOutboundTrack")) # self.horizontalLayout_15.addWidget(self.btnCaptureOutboundTrack) # self.hLayoutDistance.addWidget(self.frame_APV_11) # self.vl_gbParameters.addWidget(self.frameDistance) self.framePDG = QtGui.QFrame(self.gbParameters) self.framePDG.setFrameShape(QtGui.QFrame.NoFrame) self.framePDG.setFrameShadow(QtGui.QFrame.Raised) self.framePDG.setObjectName(_fromUtf8("framePDG")) self.hLayoutPDG = QtGui.QHBoxLayout(self.framePDG) self.hLayoutPDG.setSpacing(0) self.hLayoutPDG.setMargin(0) self.hLayoutPDG.setObjectName(_fromUtf8("hLayoutPDG")) self.label_71 = QtGui.QLabel(self.framePDG) self.label_71.setMinimumSize(QtCore.QSize(180, 0)) self.label_71.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_71.setFont(font) self.label_71.setObjectName(_fromUtf8("label_71")) self.hLayoutPDG.addWidget(self.label_71) self.txtIas = QtGui.QLineEdit(self.framePDG) self.txtIas.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtIas.setFont(font) self.txtIas.setObjectName(_fromUtf8("txtIas")) self.hLayoutPDG.addWidget(self.txtIas) self.vl_gbParameters.addWidget(self.framePDG) self.frameAltitude = QtGui.QFrame(self.gbParameters) self.frameAltitude.setFrameShape(QtGui.QFrame.NoFrame) self.frameAltitude.setFrameShadow(QtGui.QFrame.Raised) self.frameAltitude.setObjectName(_fromUtf8("frameAltitude")) self.hLayoutAltitude = QtGui.QHBoxLayout(self.frameAltitude) self.hLayoutAltitude.setSpacing(0) self.hLayoutAltitude.setMargin(0) self.hLayoutAltitude.setObjectName(_fromUtf8("hLayoutAltitude")) self.label_77 = QtGui.QLabel(self.frameAltitude) self.label_77.setMinimumSize(QtCore.QSize(180, 0)) self.label_77.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_77.setFont(font) self.label_77.setObjectName(_fromUtf8("label_77")) self.hLayoutAltitude.addWidget(self.label_77) self.txtAltitudeM = QtGui.QLineEdit(self.frameAltitude) self.txtAltitudeM.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAltitudeM.setFont(font) self.txtAltitudeM.setText(_fromUtf8("")) self.txtAltitudeM.setObjectName(_fromUtf8("txtAltitudeM")) self.hLayoutAltitude.addWidget(self.txtAltitudeM) self.label = QtGui.QLabel(self.frameAltitude) self.label.setObjectName(_fromUtf8("label")) self.hLayoutAltitude.addWidget(self.label) self.txtAltitude = QtGui.QLineEdit(self.frameAltitude) self.txtAltitude.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAltitude.setFont(font) self.txtAltitude.setObjectName(_fromUtf8("txtAltitude")) self.hLayoutAltitude.addWidget(self.txtAltitude) self.label_2 = QtGui.QLabel(self.frameAltitude) self.label_2.setObjectName(_fromUtf8("label_2")) self.hLayoutAltitude.addWidget(self.label_2) self.vl_gbParameters.addWidget(self.frameAltitude) self.frameMoc = QtGui.QFrame(self.gbParameters) self.frameMoc.setFrameShape(QtGui.QFrame.NoFrame) self.frameMoc.setFrameShadow(QtGui.QFrame.Raised) self.frameMoc.setObjectName(_fromUtf8("frameMoc")) self.hLayoutMoc = QtGui.QHBoxLayout(self.frameMoc) self.hLayoutMoc.setSpacing(0) self.hLayoutMoc.setMargin(0) self.hLayoutMoc.setObjectName(_fromUtf8("hLayoutMoc")) self.label_78 = QtGui.QLabel(self.frameMoc) self.label_78.setMinimumSize(QtCore.QSize(180, 0)) self.label_78.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_78.setFont(font) self.label_78.setObjectName(_fromUtf8("label_78")) self.hLayoutMoc.addWidget(self.label_78) self.txtIsa = QtGui.QLineEdit(self.frameMoc) self.txtIsa.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtIsa.setFont(font) self.txtIsa.setObjectName(_fromUtf8("txtIsa")) self.hLayoutMoc.addWidget(self.txtIsa) self.vl_gbParameters.addWidget(self.frameMoc) self.frameMoc_2 = QtGui.QFrame(self.gbParameters) self.frameMoc_2.setFrameShape(QtGui.QFrame.NoFrame) self.frameMoc_2.setFrameShadow(QtGui.QFrame.Raised) self.frameMoc_2.setObjectName(_fromUtf8("frameMoc_2")) self.hLayoutMoc_2 = QtGui.QHBoxLayout(self.frameMoc_2) self.hLayoutMoc_2.setSpacing(0) self.hLayoutMoc_2.setMargin(0) self.hLayoutMoc_2.setObjectName(_fromUtf8("hLayoutMoc_2")) self.label_79 = QtGui.QLabel(self.frameMoc_2) self.label_79.setMinimumSize(QtCore.QSize(180, 0)) self.label_79.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_79.setFont(font) self.label_79.setObjectName(_fromUtf8("label_79")) self.hLayoutMoc_2.addWidget(self.label_79) self.txtBankAngle = QtGui.QLineEdit(self.frameMoc_2) self.txtBankAngle.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtBankAngle.setFont(font) self.txtBankAngle.setObjectName(_fromUtf8("txtBankAngle")) self.hLayoutMoc_2.addWidget(self.txtBankAngle) self.vl_gbParameters.addWidget(self.frameMoc_2) self.frameMoc_3 = QtGui.QFrame(self.gbParameters) self.frameMoc_3.setFrameShape(QtGui.QFrame.NoFrame) self.frameMoc_3.setFrameShadow(QtGui.QFrame.Raised) self.frameMoc_3.setObjectName(_fromUtf8("frameMoc_3")) self.hLayoutMoc_3 = QtGui.QHBoxLayout(self.frameMoc_3) self.hLayoutMoc_3.setSpacing(0) self.hLayoutMoc_3.setMargin(0) self.hLayoutMoc_3.setObjectName(_fromUtf8("hLayoutMoc_3")) self.label_80 = QtGui.QLabel(self.frameMoc_3) self.label_80.setMinimumSize(QtCore.QSize(180, 0)) self.label_80.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_80.setFont(font) self.label_80.setObjectName(_fromUtf8("label_80")) self.hLayoutMoc_3.addWidget(self.label_80) self.txtBankEstTime = QtGui.QLineEdit(self.frameMoc_3) self.txtBankEstTime.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtBankEstTime.setFont(font) self.txtBankEstTime.setObjectName(_fromUtf8("txtBankEstTime")) self.hLayoutMoc_3.addWidget(self.txtBankEstTime) self.vl_gbParameters.addWidget(self.frameMoc_3) self.frameMoc_4 = QtGui.QFrame(self.gbParameters) self.frameMoc_4.setFrameShape(QtGui.QFrame.NoFrame) self.frameMoc_4.setFrameShadow(QtGui.QFrame.Raised) self.frameMoc_4.setObjectName(_fromUtf8("frameMoc_4")) self.hLayoutMoc_4 = QtGui.QHBoxLayout(self.frameMoc_4) self.hLayoutMoc_4.setSpacing(0) self.hLayoutMoc_4.setMargin(0) self.hLayoutMoc_4.setObjectName(_fromUtf8("hLayoutMoc_4")) self.label_81 = QtGui.QLabel(self.frameMoc_4) self.label_81.setMinimumSize(QtCore.QSize(180, 0)) self.label_81.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_81.setFont(font) self.label_81.setObjectName(_fromUtf8("label_81")) self.hLayoutMoc_4.addWidget(self.label_81) self.txtPilotTime = QtGui.QLineEdit(self.frameMoc_4) self.txtPilotTime.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtPilotTime.setFont(font) self.txtPilotTime.setObjectName(_fromUtf8("txtPilotTime")) self.hLayoutMoc_4.addWidget(self.txtPilotTime) self.vl_gbParameters.addWidget(self.frameMoc_4) self.framePrimaryMoc = QtGui.QFrame(self.gbParameters) self.framePrimaryMoc.setFrameShape(QtGui.QFrame.NoFrame) self.framePrimaryMoc.setFrameShadow(QtGui.QFrame.Raised) self.framePrimaryMoc.setObjectName(_fromUtf8("framePrimaryMoc")) self.hLayoutPrimaryMoc = QtGui.QHBoxLayout(self.framePrimaryMoc) self.hLayoutPrimaryMoc.setSpacing(0) self.hLayoutPrimaryMoc.setMargin(0) self.hLayoutPrimaryMoc.setObjectName(_fromUtf8("hLayoutPrimaryMoc")) self.label_68 = QtGui.QLabel(self.framePrimaryMoc) self.label_68.setMinimumSize(QtCore.QSize(180, 0)) self.label_68.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_68.setFont(font) self.label_68.setObjectName(_fromUtf8("label_68")) self.hLayoutPrimaryMoc.addWidget(self.label_68) self.txtPrimaryMoc = QtGui.QLineEdit(self.framePrimaryMoc) self.txtPrimaryMoc.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtPrimaryMoc.setFont(font) self.txtPrimaryMoc.setObjectName(_fromUtf8("txtPrimaryMoc")) self.hLayoutPrimaryMoc.addWidget(self.txtPrimaryMoc) self.label_6 = QtGui.QLabel(self.framePrimaryMoc) self.label_6.setObjectName(_fromUtf8("label_6")) self.hLayoutPrimaryMoc.addWidget(self.label_6) self.txtPrimaryMocFt = QtGui.QLineEdit(self.framePrimaryMoc) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtPrimaryMocFt.setFont(font) self.txtPrimaryMocFt.setText(_fromUtf8("")) self.txtPrimaryMocFt.setObjectName(_fromUtf8("txtPrimaryMocFt")) self.hLayoutPrimaryMoc.addWidget(self.txtPrimaryMocFt) self.labelMocFt = QtGui.QLabel(self.framePrimaryMoc) self.labelMocFt.setObjectName(_fromUtf8("labelMocFt")) self.hLayoutPrimaryMoc.addWidget(self.labelMocFt) self.vl_gbParameters.addWidget(self.framePrimaryMoc) self.frameConstruct = QtGui.QFrame(self.gbParameters) self.frameConstruct.setFrameShape(QtGui.QFrame.NoFrame) self.frameConstruct.setFrameShadow(QtGui.QFrame.Raised) self.frameConstruct.setObjectName(_fromUtf8("frameConstruct")) self.hLayoutConstruct = QtGui.QHBoxLayout(self.frameConstruct) self.hLayoutConstruct.setSpacing(0) self.hLayoutConstruct.setMargin(0) self.hLayoutConstruct.setObjectName(_fromUtf8("hLayoutConstruct")) self.label_83 = QtGui.QLabel(self.frameConstruct) self.label_83.setMinimumSize(QtCore.QSize(180, 0)) self.label_83.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_83.setFont(font) self.label_83.setObjectName(_fromUtf8("label_83")) self.hLayoutConstruct.addWidget(self.label_83) self.cmbConstructionType = QtGui.QComboBox(self.frameConstruct) 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) self.cmbConstructionType.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbConstructionType.setFont(font) self.cmbConstructionType.setObjectName( _fromUtf8("cmbConstructionType")) self.hLayoutConstruct.addWidget(self.cmbConstructionType) self.vl_gbParameters.addWidget(self.frameConstruct) self.frameMOCmultipiler = QtGui.QFrame(self.gbParameters) self.frameMOCmultipiler.setFrameShape(QtGui.QFrame.NoFrame) self.frameMOCmultipiler.setFrameShadow(QtGui.QFrame.Raised) self.frameMOCmultipiler.setObjectName(_fromUtf8("frameMOCmultipiler")) self.hLayoutMOCmultipiler = QtGui.QHBoxLayout(self.frameMOCmultipiler) self.hLayoutMOCmultipiler.setSpacing(0) self.hLayoutMOCmultipiler.setMargin(0) self.hLayoutMOCmultipiler.setObjectName( _fromUtf8("hLayoutMOCmultipiler")) self.label_84 = QtGui.QLabel(self.frameMOCmultipiler) self.label_84.setMinimumSize(QtCore.QSize(180, 0)) self.label_84.setMaximumSize(QtCore.QSize(180, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_84.setFont(font) self.label_84.setObjectName(_fromUtf8("label_84")) self.hLayoutMOCmultipiler.addWidget(self.label_84) self.mocSpinBox = QtGui.QSpinBox(self.frameMOCmultipiler) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mocSpinBox.sizePolicy().hasHeightForWidth()) self.mocSpinBox.setSizePolicy(sizePolicy) self.mocSpinBox.setMinimumSize(QtCore.QSize(72, 0)) self.mocSpinBox.setMinimum(1) self.mocSpinBox.setObjectName(_fromUtf8("mocSpinBox")) self.hLayoutMOCmultipiler.addWidget(self.mocSpinBox) self.vl_gbParameters.addWidget(self.frameMOCmultipiler) self.chbDrawTolerance = QtGui.QCheckBox(self.gbParameters) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbDrawTolerance.setFont(font) self.chbDrawTolerance.setObjectName(_fromUtf8("chbDrawTolerance")) self.vl_gbParameters.addWidget(self.chbDrawTolerance) self.vl_gbGeneral.addWidget(self.gbParameters) self.verticalLayout.addWidget(self.gbGeneral) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, OverheadTolerance): OverheadTolerance.setObjectName(_fromUtf8("OverheadTolerance")) OverheadTolerance.resize(323, 242) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Ignored) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(OverheadTolerance.sizePolicy().hasHeightForWidth()) OverheadTolerance.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) OverheadTolerance.setFont(font) self.verticalLayout = QtGui.QVBoxLayout(OverheadTolerance) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.gbNavAid = QtGui.QGroupBox(OverheadTolerance) self.gbNavAid.setObjectName(_fromUtf8("gbNavAid")) self.vl_NavAid = QtGui.QVBoxLayout(self.gbNavAid) self.vl_NavAid.setObjectName(_fromUtf8("vl_NavAid")) 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_61 = QtGui.QHBoxLayout(self.frameNavAidType) self.horizontalLayout_61.setSpacing(0) self.horizontalLayout_61.setMargin(0) self.horizontalLayout_61.setObjectName(_fromUtf8("horizontalLayout_61")) self.label_69 = QtGui.QLabel(self.frameNavAidType) self.label_69.setMinimumSize(QtCore.QSize(100, 0)) self.label_69.setMaximumSize(QtCore.QSize(100, 16777215)) 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.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_61.addWidget(self.cmbNavAidType) self.vl_NavAid.addWidget(self.frameNavAidType) self.verticalLayout.addWidget(self.gbNavAid) self.gbParameters = QtGui.QGroupBox(OverheadTolerance) 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.txtTrackRadial = TrackRadialBoxPanel(self.gbParameters) self.txtTrackRadial.Caption = "Radial" self.vl_gbParameters.addWidget(self.txtTrackRadial) # self.frameTrackRoot = QtGui.QFrame(self.gbParameters) # self.frameTrackRoot.setFrameShape(QtGui.QFrame.NoFrame) # self.frameTrackRoot.setFrameShadow(QtGui.QFrame.Raised) # self.frameTrackRoot.setObjectName(_fromUtf8("frameTrackRoot")) # self.horizontalLayout_63 = QtGui.QHBoxLayout(self.frameTrackRoot) # self.horizontalLayout_63.setSpacing(0) # self.horizontalLayout_63.setMargin(0) # self.horizontalLayout_63.setObjectName(_fromUtf8("horizontalLayout_63")) # self.label_71 = QtGui.QLabel(self.frameTrackRoot) # self.label_71.setMinimumSize(QtCore.QSize(100, 0)) # self.label_71.setMaximumSize(QtCore.QSize(100, 16777215)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_71.setFont(font) # self.label_71.setObjectName(_fromUtf8("label_71")) # self.horizontalLayout_63.addWidget(self.label_71) # self.frameTrack = QtGui.QFrame(self.frameTrackRoot) # self.frameTrack.setFrameShape(QtGui.QFrame.StyledPanel) # self.frameTrack.setFrameShadow(QtGui.QFrame.Raised) # self.frameTrack.setObjectName(_fromUtf8("frameTrack")) # self.horizontalLayout_10 = QtGui.QHBoxLayout(self.frameTrack) # self.horizontalLayout_10.setSpacing(0) # self.horizontalLayout_10.setMargin(0) # self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10")) # self.txtTrackRadial = QtGui.QLineEdit(self.frameTrack) # self.txtTrackRadial.setEnabled(True) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtTrackRadial.setFont(font) # self.txtTrackRadial.setObjectName(_fromUtf8("txtTrackRadial")) # self.horizontalLayout_10.addWidget(self.txtTrackRadial) # self.btnCaptureTrack = QtGui.QToolButton(self.frameTrack) # self.btnCaptureTrack.setText(_fromUtf8("")) # icon = QtGui.QIcon() # icon.addPixmap(QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) # self.btnCaptureTrack.setIcon(icon) # self.btnCaptureTrack.setObjectName(_fromUtf8("btnCaptureTrack")) # self.horizontalLayout_10.addWidget(self.btnCaptureTrack) # self.horizontalLayout_63.addWidget(self.frameTrack) # self.vl_gbParameters.addWidget(self.frameTrackRoot) self.frameAltitude_2 = QtGui.QFrame(self.gbParameters) self.frameAltitude_2.setFrameShape(QtGui.QFrame.NoFrame) self.frameAltitude_2.setFrameShadow(QtGui.QFrame.Raised) self.frameAltitude_2.setObjectName(_fromUtf8("frameAltitude_2")) self.horizontalLayout_70 = QtGui.QHBoxLayout(self.frameAltitude_2) self.horizontalLayout_70.setSpacing(0) self.horizontalLayout_70.setMargin(0) self.horizontalLayout_70.setObjectName(_fromUtf8("horizontalLayout_70")) self.label_78 = QtGui.QLabel(self.frameAltitude_2) self.label_78.setMinimumSize(QtCore.QSize(100, 0)) self.label_78.setMaximumSize(QtCore.QSize(100, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_78.setFont(font) self.label_78.setObjectName(_fromUtf8("label_78")) self.horizontalLayout_70.addWidget(self.label_78) self.txtAltitudeM = QtGui.QLineEdit(self.frameAltitude_2) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAltitudeM.setFont(font) self.txtAltitudeM.setText(_fromUtf8("")) self.txtAltitudeM.setObjectName(_fromUtf8("txtAltitudeM")) self.horizontalLayout_70.addWidget(self.txtAltitudeM) self.label_2 = QtGui.QLabel(self.frameAltitude_2) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_70.addWidget(self.label_2) self.txtAltitude = QtGui.QLineEdit(self.frameAltitude_2) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAltitude.setFont(font) self.txtAltitude.setObjectName(_fromUtf8("txtAltitude")) self.horizontalLayout_70.addWidget(self.txtAltitude) self.label = QtGui.QLabel(self.frameAltitude_2) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_70.addWidget(self.label) self.vl_gbParameters.addWidget(self.frameAltitude_2) self.frameMoc = QtGui.QFrame(self.gbParameters) self.frameMoc.setFrameShape(QtGui.QFrame.NoFrame) self.frameMoc.setFrameShadow(QtGui.QFrame.Raised) self.frameMoc.setObjectName(_fromUtf8("frameMoc")) self.horizontalLayout_74 = QtGui.QHBoxLayout(self.frameMoc) self.horizontalLayout_74.setSpacing(0) self.horizontalLayout_74.setMargin(0) self.horizontalLayout_74.setObjectName(_fromUtf8("horizontalLayout_74")) self.label_82 = QtGui.QLabel(self.frameMoc) self.label_82.setMinimumSize(QtCore.QSize(100, 0)) self.label_82.setMaximumSize(QtCore.QSize(100, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_82.setFont(font) self.label_82.setObjectName(_fromUtf8("label_82")) self.horizontalLayout_74.addWidget(self.label_82) self.txtMoc = QtGui.QLineEdit(self.frameMoc) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtMoc.setFont(font) self.txtMoc.setObjectName(_fromUtf8("txtMoc")) self.horizontalLayout_74.addWidget(self.txtMoc) self.vl_gbParameters.addWidget(self.frameMoc) self.frameMOCMultipiler = QtGui.QFrame(self.gbParameters) self.frameMOCMultipiler.setFrameShape(QtGui.QFrame.NoFrame) self.frameMOCMultipiler.setFrameShadow(QtGui.QFrame.Raised) self.frameMOCMultipiler.setObjectName(_fromUtf8("frameMOCMultipiler")) self.horizontalLayout_62 = QtGui.QHBoxLayout(self.frameMOCMultipiler) self.horizontalLayout_62.setSpacing(0) self.horizontalLayout_62.setMargin(0) self.horizontalLayout_62.setObjectName(_fromUtf8("horizontalLayout_62")) self.label_70 = QtGui.QLabel(self.frameMOCMultipiler) self.label_70.setMinimumSize(QtCore.QSize(100, 0)) self.label_70.setMaximumSize(QtCore.QSize(100, 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.spinBoxMocmulipiler = QtGui.QSpinBox(self.frameMOCMultipiler) self.spinBoxMocmulipiler.setProperty("value", 1) self.spinBoxMocmulipiler.setObjectName(_fromUtf8("spinBoxMocmulipiler")) self.horizontalLayout_62.addWidget(self.spinBoxMocmulipiler) self.vl_gbParameters.addWidget(self.frameMOCMultipiler) self.verticalLayout.addWidget(self.gbParameters) self.retranslateUi(OverheadTolerance) QtCore.QMetaObject.connectSlotsByName(OverheadTolerance)
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(461, 472) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) Form.setFont(font) self.verticalLayout_AAC = QtGui.QVBoxLayout(Form) self.verticalLayout_AAC.setObjectName(_fromUtf8("verticalLayout_AAC")) self.gbNavAid = QtGui.QGroupBox(Form) self.gbNavAid.setObjectName(_fromUtf8("gbNavAid")) self.verticalLayout_gbNavAid = QtGui.QVBoxLayout(self.gbNavAid) self.verticalLayout_gbNavAid.setObjectName( _fromUtf8("verticalLayout_gbNavAid")) self.cmbNavAidType = ComboBoxPanel(self.gbNavAid) self.cmbNavAidType.Caption = "Type" self.cmbNavAidType.LabelWidth = 120 self.verticalLayout_gbNavAid.addWidget(self.cmbNavAidType) self.cmbBasedOn = ComboBoxPanel(self.gbNavAid, True) self.cmbBasedOn.Caption = "Based On" self.cmbBasedOn.LabelWidth = 120 self.cmbBasedOn.Width = 120 self.verticalLayout_gbNavAid.addWidget(self.cmbBasedOn) # self.frameType = QtGui.QFrame(self.gbNavAid) # self.frameType.setFrameShape(QtGui.QFrame.NoFrame) # self.frameType.setFrameShadow(QtGui.QFrame.Raised) # self.frameType.setObjectName(_fromUtf8("frameType")) # self.horizontalLayout_59 = QtGui.QHBoxLayout(self.frameType) # self.horizontalLayout_59.setSpacing(0) # self.horizontalLayout_59.setMargin(0) # self.horizontalLayout_59.setObjectName(_fromUtf8("horizontalLayout_59")) # self.label_67 = QtGui.QLabel(self.frameType) # self.label_67.setMinimumSize(QtCore.QSize(140, 0)) # self.label_67.setMaximumSize(QtCore.QSize(140, 16777215)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_67.setFont(font) # self.label_67.setObjectName(_fromUtf8("label_67")) # self.horizontalLayout_59.addWidget(self.label_67) # self.cmbNavAidType = QtGui.QComboBox(self.frameType) # 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_59.addWidget(self.cmbNavAidType) # self.verticalLayout_gbNavAid.addWidget(self.frameType) self.verticalLayout_AAC.addWidget(self.gbNavAid) 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.frame_IasIA1 = QtGui.QFrame(self.grbParameters) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_IasIA1.sizePolicy().hasHeightForWidth()) self.frame_IasIA1.setSizePolicy(sizePolicy) self.frame_IasIA1.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_IasIA1.setFrameShadow(QtGui.QFrame.Raised) self.frame_IasIA1.setObjectName(_fromUtf8("frame_IasIA1")) self.horizontalLayout_16 = QtGui.QHBoxLayout(self.frame_IasIA1) self.horizontalLayout_16.setSpacing(0) self.horizontalLayout_16.setMargin(0) self.horizontalLayout_16.setObjectName( _fromUtf8("horizontalLayout_16")) self.label_7 = QtGui.QLabel(self.frame_IasIA1) self.label_7.setMinimumSize(QtCore.QSize(140, 0)) self.label_7.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_7.setFont(font) self.label_7.setObjectName(_fromUtf8("label_7")) self.horizontalLayout_16.addWidget(self.label_7) self.txtIas = QtGui.QLineEdit(self.frame_IasIA1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtIas.sizePolicy().hasHeightForWidth()) self.txtIas.setSizePolicy(sizePolicy) self.txtIas.setMinimumSize(QtCore.QSize(60, 0)) self.txtIas.setMaximumSize(QtCore.QSize(60, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtIas.setFont(font) self.txtIas.setObjectName(_fromUtf8("txtIas")) self.horizontalLayout_16.addWidget(self.txtIas) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_16.addItem(horizontalSpacer) self.vLayout_grbParameters.addWidget(self.frame_IasIA1) self.frameTas = QtGui.QFrame(self.grbParameters) self.frameTas.setFrameShape(QtGui.QFrame.NoFrame) self.frameTas.setFrameShadow(QtGui.QFrame.Raised) self.frameTas.setObjectName(_fromUtf8("frameTas")) self.horizontalLayout_69 = QtGui.QHBoxLayout(self.frameTas) self.horizontalLayout_69.setSpacing(0) self.horizontalLayout_69.setMargin(0) self.horizontalLayout_69.setObjectName( _fromUtf8("horizontalLayout_69")) self.label_77 = QtGui.QLabel(self.frameTas) self.label_77.setMinimumSize(QtCore.QSize(140, 0)) self.label_77.setMaximumSize(QtCore.QSize(140, 16777215)) 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.txtTas = QtGui.QLineEdit(self.frameTas) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtTas.setFont(font) self.txtTas.setText(_fromUtf8("")) self.txtTas.setObjectName(_fromUtf8("txtTas")) self.txtTas.setMinimumSize(QtCore.QSize(90, 0)) self.txtTas.setMaximumSize(QtCore.QSize(90, 16777215)) self.horizontalLayout_69.addWidget(self.txtTas) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_69.addItem(horizontalSpacer) self.vLayout_grbParameters.addWidget(self.frameTas) self.frame_AltitudeIA1 = QtGui.QFrame(self.grbParameters) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_AltitudeIA1.sizePolicy().hasHeightForWidth()) self.frame_AltitudeIA1.setSizePolicy(sizePolicy) self.frame_AltitudeIA1.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_AltitudeIA1.setFrameShadow(QtGui.QFrame.Raised) self.frame_AltitudeIA1.setObjectName(_fromUtf8("frame_AltitudeIA1")) self.horizontalLayout_27 = QtGui.QHBoxLayout(self.frame_AltitudeIA1) self.horizontalLayout_27.setSpacing(0) self.horizontalLayout_27.setMargin(0) self.horizontalLayout_27.setObjectName( _fromUtf8("horizontalLayout_27")) self.label_17 = QtGui.QLabel(self.frame_AltitudeIA1) self.label_17.setMinimumSize(QtCore.QSize(140, 0)) self.label_17.setMaximumSize(QtCore.QSize(100, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_17.setFont(font) self.label_17.setObjectName(_fromUtf8("label_17")) self.horizontalLayout_27.addWidget(self.label_17) self.txtAltitudeM = QtGui.QLineEdit(self.frame_AltitudeIA1) self.txtAltitudeM.setObjectName(_fromUtf8("txtAltitudeM")) self.txtAltitudeM.setMinimumSize(QtCore.QSize(90, 0)) self.txtAltitudeM.setMaximumSize(QtCore.QSize(90, 16777215)) self.horizontalLayout_27.addWidget(self.txtAltitudeM) self.label_2 = QtGui.QLabel(self.frame_AltitudeIA1) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_27.addWidget(self.label_2) self.txtAltitude = QtGui.QLineEdit(self.frame_AltitudeIA1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtAltitude.sizePolicy().hasHeightForWidth()) self.txtAltitude.setSizePolicy(sizePolicy) self.txtAltitude.setMinimumSize(QtCore.QSize(90, 0)) self.txtAltitude.setMaximumSize(QtCore.QSize(90, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtAltitude.setFont(font) self.txtAltitude.setObjectName(_fromUtf8("txtAltitude")) self.horizontalLayout_27.addWidget(self.txtAltitude) self.label = QtGui.QLabel(self.frame_AltitudeIA1) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_27.addWidget(self.label) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_27.addItem(horizontalSpacer) self.vLayout_grbParameters.addWidget(self.frame_AltitudeIA1) self.frame_IasMA = QtGui.QFrame(self.grbParameters) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_IasMA.sizePolicy().hasHeightForWidth()) self.frame_IasMA.setSizePolicy(sizePolicy) self.frame_IasMA.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_IasMA.setFrameShadow(QtGui.QFrame.Raised) self.frame_IasMA.setObjectName(_fromUtf8("frame_IasMA")) self.horizontalLayout_11 = QtGui.QHBoxLayout(self.frame_IasMA) self.horizontalLayout_11.setSpacing(0) self.horizontalLayout_11.setMargin(0) self.horizontalLayout_11.setObjectName( _fromUtf8("horizontalLayout_11")) self.label_3 = QtGui.QLabel(self.frame_IasMA) self.label_3.setMinimumSize(QtCore.QSize(140, 0)) self.label_3.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_3.setFont(font) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout_11.addWidget(self.label_3) self.txtIsa = QtGui.QLineEdit(self.frame_IasMA) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtIsa.sizePolicy().hasHeightForWidth()) self.txtIsa.setSizePolicy(sizePolicy) self.txtIsa.setMinimumSize(QtCore.QSize(60, 0)) self.txtIsa.setMaximumSize(QtCore.QSize(60, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtIsa.setFont(font) self.txtIsa.setObjectName(_fromUtf8("txtIsa")) self.horizontalLayout_11.addWidget(self.txtIsa) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_11.addItem(horizontalSpacer) self.vLayout_grbParameters.addWidget(self.frame_IasMA) self.frame_IasMA_2 = QtGui.QFrame(self.grbParameters) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_IasMA_2.sizePolicy().hasHeightForWidth()) self.frame_IasMA_2.setSizePolicy(sizePolicy) self.frame_IasMA_2.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_IasMA_2.setFrameShadow(QtGui.QFrame.Raised) self.frame_IasMA_2.setObjectName(_fromUtf8("frame_IasMA_2")) self.horizontalLayout_12 = QtGui.QHBoxLayout(self.frame_IasMA_2) self.horizontalLayout_12.setSpacing(0) self.horizontalLayout_12.setMargin(0) self.horizontalLayout_12.setObjectName( _fromUtf8("horizontalLayout_12")) self.label_4 = QtGui.QLabel(self.frame_IasMA_2) self.label_4.setMinimumSize(QtCore.QSize(140, 0)) self.label_4.setMaximumSize(QtCore.QSize(140, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_4.setFont(font) self.label_4.setObjectName(_fromUtf8("label_4")) self.horizontalLayout_12.addWidget(self.label_4) self.txtOffset = QtGui.QLineEdit(self.frame_IasMA_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtOffset.sizePolicy().hasHeightForWidth()) self.txtOffset.setSizePolicy(sizePolicy) self.txtOffset.setMinimumSize(QtCore.QSize(60, 0)) self.txtOffset.setMaximumSize(QtCore.QSize(60, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtOffset.setFont(font) self.txtOffset.setObjectName(_fromUtf8("txtOffset")) self.horizontalLayout_12.addWidget(self.txtOffset) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_12.addItem(horizontalSpacer) self.vLayout_grbParameters.addWidget(self.frame_IasMA_2) self.frame_RNVA_2 = QtGui.QFrame(self.grbParameters) self.frame_RNVA_2.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_RNVA_2.sizePolicy().hasHeightForWidth()) self.frame_RNVA_2.setSizePolicy(sizePolicy) self.frame_RNVA_2.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_RNVA_2.setFrameShadow(QtGui.QFrame.Raised) self.frame_RNVA_2.setObjectName(_fromUtf8("frame_RNVA_2")) self.horizontalLayout_17 = QtGui.QHBoxLayout(self.frame_RNVA_2) self.horizontalLayout_17.setSpacing(0) self.horizontalLayout_17.setMargin(0) self.horizontalLayout_17.setObjectName( _fromUtf8("horizontalLayout_17")) self.label_8 = QtGui.QLabel(self.frame_RNVA_2) self.label_8.setMinimumSize(QtCore.QSize(140, 0)) self.label_8.setMaximumSize(QtCore.QSize(140, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_8.setFont(font) self.label_8.setObjectName(_fromUtf8("label_8")) self.horizontalLayout_17.addWidget(self.label_8) self.cmbTurnLimitation = QtGui.QComboBox(self.frame_RNVA_2) self.cmbTurnLimitation.setMinimumSize(QtCore.QSize(100, 0)) self.cmbTurnLimitation.setMaximumSize(QtCore.QSize(100, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.cmbTurnLimitation.setFont(font) self.cmbTurnLimitation.setFrame(True) self.cmbTurnLimitation.setObjectName(_fromUtf8("cmbTurnLimitation")) self.horizontalLayout_17.addWidget(self.cmbTurnLimitation) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_17.addItem(horizontalSpacer) self.vLayout_grbParameters.addWidget(self.frame_RNVA_2) self.frame_DMEDistance = QtGui.QFrame(self.grbParameters) self.frame_DMEDistance.setFrameShape(QtGui.QFrame.NoFrame) self.frame_DMEDistance.setFrameShadow(QtGui.QFrame.Raised) self.frame_DMEDistance.setObjectName(_fromUtf8("frame_DMEDistance")) self.horizontalLayout_66 = QtGui.QHBoxLayout(self.frame_DMEDistance) self.horizontalLayout_66.setSpacing(0) self.horizontalLayout_66.setMargin(0) self.horizontalLayout_66.setObjectName( _fromUtf8("horizontalLayout_66")) self.label_74 = QtGui.QLabel(self.frame_DMEDistance) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_74.sizePolicy().hasHeightForWidth()) self.label_74.setSizePolicy(sizePolicy) self.label_74.setMinimumSize(QtCore.QSize(140, 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.frame_APV_10 = QtGui.QFrame(self.frame_DMEDistance) self.frame_APV_10.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_APV_10.setFrameShadow(QtGui.QFrame.Raised) self.frame_APV_10.setObjectName(_fromUtf8("frame_APV_10")) self.horizontalLayout_18 = QtGui.QHBoxLayout(self.frame_APV_10) self.horizontalLayout_18.setSpacing(0) self.horizontalLayout_18.setMargin(0) self.horizontalLayout_18.setObjectName( _fromUtf8("horizontalLayout_18")) self.txtDmeDistance = QtGui.QLineEdit(self.frame_APV_10) self.txtDmeDistance.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtDmeDistance.setFont(font) self.txtDmeDistance.setObjectName(_fromUtf8("txtDmeDistance")) self.txtDmeDistance.setMinimumSize(QtCore.QSize(100, 0)) self.txtDmeDistance.setMaximumSize(QtCore.QSize(100, 16777215)) self.horizontalLayout_18.addWidget(self.txtDmeDistance) self.btnCaptureDME = QtGui.QToolButton(self.frame_APV_10) self.btnCaptureDME.setText(_fromUtf8("")) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnCaptureDME.setIcon(icon) self.btnCaptureDME.setObjectName(_fromUtf8("btnCaptureDME")) self.horizontalLayout_18.addWidget(self.btnCaptureDME) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_18.addItem(horizontalSpacer) self.horizontalLayout_66.addWidget(self.frame_APV_10) self.vLayout_grbParameters.addWidget(self.frame_DMEDistance) self.frame_IasMA_3 = QtGui.QFrame(self.grbParameters) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_IasMA_3.sizePolicy().hasHeightForWidth()) self.frame_IasMA_3.setSizePolicy(sizePolicy) self.frame_IasMA_3.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_IasMA_3.setFrameShadow(QtGui.QFrame.Raised) self.frame_IasMA_3.setObjectName(_fromUtf8("frame_IasMA_3")) self.horizontalLayout_14 = QtGui.QHBoxLayout(self.frame_IasMA_3) self.horizontalLayout_14.setSpacing(0) self.horizontalLayout_14.setMargin(0) self.horizontalLayout_14.setObjectName( _fromUtf8("horizontalLayout_14")) self.label_5 = QtGui.QLabel(self.frame_IasMA_3) self.label_5.setMinimumSize(QtCore.QSize(140, 0)) self.label_5.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.label_5.setFont(font) self.label_5.setObjectName(_fromUtf8("label_5")) self.horizontalLayout_14.addWidget(self.label_5) self.txtTime = QtGui.QLineEdit(self.frame_IasMA_3) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.txtTime.sizePolicy().hasHeightForWidth()) self.txtTime.setSizePolicy(sizePolicy) self.txtTime.setMinimumSize(QtCore.QSize(60, 0)) self.txtTime.setMaximumSize(QtCore.QSize(60, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) self.txtTime.setFont(font) self.txtTime.setObjectName(_fromUtf8("txtTime")) self.horizontalLayout_14.addWidget(self.txtTime) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_14.addItem(horizontalSpacer) self.vLayout_grbParameters.addWidget(self.frame_IasMA_3) self.frameMoc = QtGui.QFrame(self.grbParameters) self.frameMoc.setFrameShape(QtGui.QFrame.NoFrame) self.frameMoc.setFrameShadow(QtGui.QFrame.Raised) self.frameMoc.setObjectName(_fromUtf8("frameMoc")) self.horizontalLayout_74 = QtGui.QHBoxLayout(self.frameMoc) self.horizontalLayout_74.setSpacing(0) self.horizontalLayout_74.setMargin(0) self.horizontalLayout_74.setObjectName( _fromUtf8("horizontalLayout_74")) self.label_82 = QtGui.QLabel(self.frameMoc) self.label_82.setMinimumSize(QtCore.QSize(140, 0)) self.label_82.setMaximumSize(QtCore.QSize(140, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_82.setFont(font) self.label_82.setObjectName(_fromUtf8("label_82")) self.horizontalLayout_74.addWidget(self.label_82) self.txtMoc = QtGui.QLineEdit(self.frameMoc) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtMoc.setFont(font) self.txtMoc.setObjectName(_fromUtf8("txtMoc")) self.txtMoc.setMinimumSize(QtCore.QSize(90, 0)) self.txtMoc.setMaximumSize(QtCore.QSize(90, 16777215)) self.horizontalLayout_74.addWidget(self.txtMoc) self.label_6 = QtGui.QLabel(self.frameMoc) self.label_6.setObjectName(_fromUtf8("label_6")) self.horizontalLayout_74.addWidget(self.label_6) self.txtMocFt = QtGui.QLineEdit(self.frameMoc) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtMocFt.setFont(font) self.txtMocFt.setText(_fromUtf8("")) self.txtMocFt.setObjectName(_fromUtf8("txtMocFt")) self.txtMocFt.setMinimumSize(QtCore.QSize(90, 0)) self.txtMocFt.setMaximumSize(QtCore.QSize(90, 16777215)) self.horizontalLayout_74.addWidget(self.txtMocFt) self.labelMocFt = QtGui.QLabel(self.frameMoc) self.labelMocFt.setObjectName(_fromUtf8("labelMocFt")) self.horizontalLayout_74.addWidget(self.labelMocFt) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_74.addItem(horizontalSpacer) self.vLayout_grbParameters.addWidget(self.frameMoc) self.frameIas_2 = QtGui.QFrame(self.grbParameters) self.frameIas_2.setFrameShape(QtGui.QFrame.NoFrame) self.frameIas_2.setFrameShadow(QtGui.QFrame.Raised) self.frameIas_2.setObjectName(_fromUtf8("frameIas_2")) self.horizontalLayout_62 = QtGui.QHBoxLayout(self.frameIas_2) self.horizontalLayout_62.setSpacing(0) self.horizontalLayout_62.setMargin(0) self.horizontalLayout_62.setObjectName( _fromUtf8("horizontalLayout_62")) self.label_70 = QtGui.QLabel(self.frameIas_2) self.label_70.setMinimumSize(QtCore.QSize(140, 0)) self.label_70.setMaximumSize(QtCore.QSize(140, 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.spinBoxMocmulipiler = QtGui.QSpinBox(self.frameIas_2) self.spinBoxMocmulipiler.setProperty("value", 1) self.spinBoxMocmulipiler.setObjectName( _fromUtf8("spinBoxMocmulipiler")) self.spinBoxMocmulipiler.setMinimumSize(QtCore.QSize(60, 0)) self.spinBoxMocmulipiler.setMaximumSize(QtCore.QSize(60, 16777215)) self.horizontalLayout_62.addWidget(self.spinBoxMocmulipiler) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_62.addItem(horizontalSpacer) self.vLayout_grbParameters.addWidget(self.frameIas_2) self.verticalLayout_AAC.addWidget(self.grbParameters) self.groupBox_2 = QtGui.QGroupBox(Form) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox_2) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.txtTrackRadial = TrackRadialBoxPanel(self.groupBox_2) self.txtTrackRadial.Caption = "In-bound Track" self.txtTrackRadial.LabelWidth = 140 self.verticalLayout_2.addWidget(self.txtTrackRadial) # self.frame_ThrFaf = QtGui.QFrame(self.groupBox_2) # 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(140, 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.txtTrackRadial = QtGui.QLineEdit(self.frame_APV_9) # self.txtTrackRadial.setEnabled(True) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtTrackRadial.setFont(font) # self.txtTrackRadial.setObjectName(_fromUtf8("txtTrackRadial")) # self.horizontalLayout_13.addWidget(self.txtTrackRadial) # self.btnCaptureTrack = QtGui.QToolButton(self.frame_APV_9) # self.btnCaptureTrack.setText(_fromUtf8("")) # self.btnCaptureTrack.setIcon(icon) # self.btnCaptureTrack.setObjectName(_fromUtf8("btnCaptureTrack")) # self.horizontalLayout_13.addWidget(self.btnCaptureTrack) # self.horizontalLayout_65.addWidget(self.frame_APV_9) # self.verticalLayout_2.addWidget(self.frame_ThrFaf) self.frame_60 = QtGui.QFrame(self.groupBox_2) 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(140, 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.cmbOrientation = QtGui.QComboBox(self.frame_60) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbOrientation.sizePolicy().hasHeightForWidth()) self.cmbOrientation.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbOrientation.setFont(font) self.cmbOrientation.setObjectName(_fromUtf8("cmbOrientation")) self.cmbOrientation.setMinimumSize(QtCore.QSize(70, 0)) self.cmbOrientation.setMaximumSize(QtCore.QSize(70, 16777215)) self.horizontalLayout_61.addWidget(self.cmbOrientation) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_61.addItem(horizontalSpacer) self.verticalLayout_2.addWidget(self.frame_60) self.verticalLayout_AAC.addWidget(self.groupBox_2) 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.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(417, 350) 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.gbRunway = QtGui.QGroupBox(Form) self.gbRunway.setObjectName(_fromUtf8("gbRunway")) self.vl_gbRunway = QtGui.QVBoxLayout(self.gbRunway) self.vl_gbRunway.setObjectName(_fromUtf8("vl_gbRunway")) self.txtRwyDir = TrackRadialBoxPanel(self.gbRunway) self.txtRwyDir.Caption = "Direction" self.txtRwyDir.LabelWidth = 130 self.vl_gbRunway.addWidget(self.txtRwyDir) # self.frameRwyDir = QtGui.QFrame(self.gbRunway) # self.frameRwyDir.setFrameShape(QtGui.QFrame.NoFrame) # self.frameRwyDir.setFrameShadow(QtGui.QFrame.Raised) # self.frameRwyDir.setObjectName(_fromUtf8("frameRwyDir")) # self.hLayoutRwyDir = QtGui.QHBoxLayout(self.frameRwyDir) # self.hLayoutRwyDir.setSpacing(0) # self.hLayoutRwyDir.setMargin(0) # self.hLayoutRwyDir.setObjectName(_fromUtf8("hLayoutRwyDir")) # self.label_74 = QtGui.QLabel(self.frameRwyDir) # self.label_74.setMinimumSize(QtCore.QSize(180, 0)) # self.label_74.setMaximumSize(QtCore.QSize(180, 16777215)) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.label_74.setFont(font) # self.label_74.setObjectName(_fromUtf8("label_74")) # self.hLayoutRwyDir.addWidget(self.label_74) # self.frame_APV_9 = QtGui.QFrame(self.frameRwyDir) # 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.txtRwyDir = QtGui.QLineEdit(self.frame_APV_9) # self.txtRwyDir.setEnabled(True) # font = QtGui.QFont() # font.setBold(False) # font.setWeight(50) # self.txtRwyDir.setFont(font) # self.txtRwyDir.setObjectName(_fromUtf8("txtRwyDir")) # self.horizontalLayout_13.addWidget(self.txtRwyDir) # self.btnCaptureRwyDir = QtGui.QToolButton(self.frame_APV_9) # self.btnCaptureRwyDir.setText(_fromUtf8("")) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(_fromUtf8("Resource/coordinate_capture.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) # self.btnCaptureRwyDir.setIcon(icon) # self.btnCaptureRwyDir.setObjectName(_fromUtf8("btnCaptureRwyDir")) # self.horizontalLayout_13.addWidget(self.btnCaptureRwyDir) # self.hLayoutRwyDir.addWidget(self.frame_APV_9) # self.vl_gbRunway.addWidget(self.frameRwyDir) self.verticalLayout.addWidget(self.gbRunway) 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.frameType = QtGui.QFrame(self.gbParameters) self.frameType.setFrameShape(QtGui.QFrame.NoFrame) self.frameType.setFrameShadow(QtGui.QFrame.Raised) self.frameType.setObjectName(_fromUtf8("frameType")) self.hLayoutType = QtGui.QHBoxLayout(self.frameType) self.hLayoutType.setSpacing(0) self.hLayoutType.setMargin(0) self.hLayoutType.setObjectName(_fromUtf8("hLayoutType")) self.label_66 = QtGui.QLabel(self.frameType) self.label_66.setMinimumSize(QtCore.QSize(130, 0)) self.label_66.setMaximumSize(QtCore.QSize(130, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_66.setFont(font) self.label_66.setObjectName(_fromUtf8("label_66")) self.hLayoutType.addWidget(self.label_66) self.cmbType = QtGui.QComboBox(self.frameType) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbType.sizePolicy().hasHeightForWidth()) self.cmbType.setSizePolicy(sizePolicy) self.cmbType.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbType.setFont(font) self.cmbType.setObjectName(_fromUtf8("cmbType")) self.cmbType.setMinimumSize(QtCore.QSize(130, 0)) self.cmbType.setMaximumSize(QtCore.QSize(130, 16777215)) self.hLayoutType.addWidget(self.cmbType) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hLayoutType.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameType) self.txtTrack = TrackRadialBoxPanel(self.gbParameters) self.txtTrack.Caption = "Track" self.txtTrack.LabelWidth = 130 self.vl_gbParameters.addWidget(self.txtTrack) self.frameDistance = QtGui.QFrame(self.gbParameters) self.frameDistance.setFrameShape(QtGui.QFrame.NoFrame) self.frameDistance.setFrameShadow(QtGui.QFrame.Raised) self.frameDistance.setObjectName(_fromUtf8("frameDistance")) self.hLayoutDistance = QtGui.QHBoxLayout(self.frameDistance) self.hLayoutDistance.setSpacing(0) self.hLayoutDistance.setMargin(0) self.hLayoutDistance.setObjectName(_fromUtf8("hLayoutDistance")) self.label_76 = QtGui.QLabel(self.frameDistance) self.label_76.setMinimumSize(QtCore.QSize(130, 0)) self.label_76.setMaximumSize(QtCore.QSize(130, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_76.setFont(font) self.label_76.setObjectName(_fromUtf8("label_76")) self.hLayoutDistance.addWidget(self.label_76) self.frame_APV_11 = QtGui.QFrame(self.frameDistance) self.frame_APV_11.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_APV_11.setFrameShadow(QtGui.QFrame.Raised) self.frame_APV_11.setObjectName(_fromUtf8("frame_APV_11")) self.horizontalLayout_15 = QtGui.QHBoxLayout(self.frame_APV_11) self.horizontalLayout_15.setSpacing(0) self.horizontalLayout_15.setMargin(0) self.horizontalLayout_15.setObjectName( _fromUtf8("horizontalLayout_15")) self.txtDistance = QtGui.QLineEdit(self.frame_APV_11) self.txtDistance.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtDistance.setFont(font) self.txtDistance.setObjectName(_fromUtf8("txtDistance")) self.txtDistance.setMinimumSize(QtCore.QSize(60, 0)) self.txtDistance.setMaximumSize(QtCore.QSize(60, 16777215)) self.horizontalLayout_15.addWidget(self.txtDistance) self.btnCaptureDistance = QtGui.QToolButton(self.frame_APV_11) self.btnCaptureDistance.setText(_fromUtf8("")) self.btnCaptureDistance.setIcon(icon) self.btnCaptureDistance.setObjectName(_fromUtf8("btnCaptureDistance")) self.horizontalLayout_15.addWidget(self.btnCaptureDistance) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_15.addItem(horizontalSpacer) self.hLayoutDistance.addWidget(self.frame_APV_11) self.vl_gbParameters.addWidget(self.frameDistance) self.frameAltitude = QtGui.QFrame(self.gbParameters) self.frameAltitude.setFrameShape(QtGui.QFrame.NoFrame) self.frameAltitude.setFrameShadow(QtGui.QFrame.Raised) self.frameAltitude.setObjectName(_fromUtf8("frameAltitude")) self.hLayoutPDG_2 = QtGui.QHBoxLayout(self.frameAltitude) self.hLayoutPDG_2.setSpacing(0) self.hLayoutPDG_2.setMargin(0) self.hLayoutPDG_2.setObjectName(_fromUtf8("hLayoutPDG_2")) self.label_69 = QtGui.QLabel(self.frameAltitude) self.label_69.setMinimumSize(QtCore.QSize(130, 0)) self.label_69.setMaximumSize(QtCore.QSize(130, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_69.setFont(font) self.label_69.setObjectName(_fromUtf8("label_69")) self.hLayoutPDG_2.addWidget(self.label_69) self.txtAltitudeM = QtGui.QLineEdit(self.frameAltitude) self.txtAltitudeM.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtAltitudeM.setFont(font) self.txtAltitudeM.setObjectName(_fromUtf8("txtAltitudeM")) self.txtAltitudeM.setMinimumSize(QtCore.QSize(90, 0)) self.txtAltitudeM.setMaximumSize(QtCore.QSize(90, 16777215)) self.hLayoutPDG_2.addWidget(self.txtAltitudeM) self.label = QtGui.QLabel(self.frameAltitude) self.label.setObjectName(_fromUtf8("label")) self.hLayoutPDG_2.addWidget(self.label) self.txtAltitudeFt = QtGui.QLineEdit(self.frameAltitude) self.txtAltitudeFt.setObjectName(_fromUtf8("txtAltitudeFt")) self.txtAltitudeFt.setMinimumSize(QtCore.QSize(90, 0)) self.txtAltitudeFt.setMaximumSize(QtCore.QSize(90, 16777215)) self.hLayoutPDG_2.addWidget(self.txtAltitudeFt) self.label_2 = QtGui.QLabel(self.frameAltitude) self.label_2.setObjectName(_fromUtf8("label_2")) self.hLayoutPDG_2.addWidget(self.label_2) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hLayoutPDG_2.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameAltitude) self.chbCatH = QtGui.QCheckBox(self.gbParameters) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.chbCatH.setFont(font) self.chbCatH.setObjectName(_fromUtf8("chbCatH")) self.vl_gbParameters.addWidget(self.chbCatH) self.frameMoc = QtGui.QFrame(self.gbParameters) self.frameMoc.setFrameShape(QtGui.QFrame.NoFrame) self.frameMoc.setFrameShadow(QtGui.QFrame.Raised) self.frameMoc.setObjectName(_fromUtf8("frameMoc")) self.hLayoutMoc = QtGui.QHBoxLayout(self.frameMoc) self.hLayoutMoc.setSpacing(0) self.hLayoutMoc.setMargin(0) self.hLayoutMoc.setObjectName(_fromUtf8("hLayoutMoc")) self.label_77 = QtGui.QLabel(self.frameMoc) self.label_77.setMinimumSize(QtCore.QSize(130, 0)) self.label_77.setMaximumSize(QtCore.QSize(130, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_77.setFont(font) self.label_77.setObjectName(_fromUtf8("label_77")) self.hLayoutMoc.addWidget(self.label_77) self.txtMoc = QtGui.QLineEdit(self.frameMoc) self.txtMoc.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtMoc.setFont(font) self.txtMoc.setObjectName(_fromUtf8("txtMoc")) self.txtMoc.setMinimumSize(QtCore.QSize(60, 0)) self.txtMoc.setMaximumSize(QtCore.QSize(60, 16777215)) self.hLayoutMoc.addWidget(self.txtMoc) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hLayoutMoc.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameMoc) self.framePDG = QtGui.QFrame(self.gbParameters) self.framePDG.setFrameShape(QtGui.QFrame.NoFrame) self.framePDG.setFrameShadow(QtGui.QFrame.Raised) self.framePDG.setObjectName(_fromUtf8("framePDG")) self.hLayoutPDG = QtGui.QHBoxLayout(self.framePDG) self.hLayoutPDG.setSpacing(0) self.hLayoutPDG.setMargin(0) self.hLayoutPDG.setObjectName(_fromUtf8("hLayoutPDG")) self.label_68 = QtGui.QLabel(self.framePDG) self.label_68.setMinimumSize(QtCore.QSize(130, 0)) self.label_68.setMaximumSize(QtCore.QSize(130, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_68.setFont(font) self.label_68.setObjectName(_fromUtf8("label_68")) self.hLayoutPDG.addWidget(self.label_68) self.txtPdg = QtGui.QLineEdit(self.framePDG) self.txtPdg.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtPdg.setFont(font) self.txtPdg.setObjectName(_fromUtf8("txtPdg")) self.txtPdg.setMinimumSize(QtCore.QSize(60, 0)) self.txtPdg.setMaximumSize(QtCore.QSize(60, 16777215)) self.hLayoutPDG.addWidget(self.txtPdg) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hLayoutPDG.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.framePDG) self.frameConstruct = QtGui.QFrame(self.gbParameters) self.frameConstruct.setFrameShape(QtGui.QFrame.NoFrame) self.frameConstruct.setFrameShadow(QtGui.QFrame.Raised) self.frameConstruct.setObjectName(_fromUtf8("frameConstruct")) self.hLayoutConstruct = QtGui.QHBoxLayout(self.frameConstruct) self.hLayoutConstruct.setSpacing(0) self.hLayoutConstruct.setMargin(0) self.hLayoutConstruct.setObjectName(_fromUtf8("hLayoutConstruct")) self.label_83 = QtGui.QLabel(self.frameConstruct) self.label_83.setMinimumSize(QtCore.QSize(130, 0)) self.label_83.setMaximumSize(QtCore.QSize(130, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_83.setFont(font) self.label_83.setObjectName(_fromUtf8("label_83")) self.hLayoutConstruct.addWidget(self.label_83) self.cmbConstruct = QtGui.QComboBox(self.frameConstruct) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cmbConstruct.sizePolicy().hasHeightForWidth()) self.cmbConstruct.setSizePolicy(sizePolicy) self.cmbConstruct.setMinimumSize(QtCore.QSize(72, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmbConstruct.setFont(font) self.cmbConstruct.setObjectName(_fromUtf8("cmbConstruct")) self.cmbConstruct.setMinimumSize(QtCore.QSize(60, 0)) self.cmbConstruct.setMaximumSize(QtCore.QSize(60, 16777215)) self.hLayoutConstruct.addWidget(self.cmbConstruct) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hLayoutConstruct.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameConstruct) self.frameMOCmultipiler = QtGui.QFrame(self.gbParameters) self.frameMOCmultipiler.setFrameShape(QtGui.QFrame.NoFrame) self.frameMOCmultipiler.setFrameShadow(QtGui.QFrame.Raised) self.frameMOCmultipiler.setObjectName(_fromUtf8("frameMOCmultipiler")) self.hLayoutMOCmultipiler = QtGui.QHBoxLayout(self.frameMOCmultipiler) self.hLayoutMOCmultipiler.setSpacing(0) self.hLayoutMOCmultipiler.setMargin(0) self.hLayoutMOCmultipiler.setObjectName( _fromUtf8("hLayoutMOCmultipiler")) self.label_84 = QtGui.QLabel(self.frameMOCmultipiler) self.label_84.setMinimumSize(QtCore.QSize(130, 0)) self.label_84.setMaximumSize(QtCore.QSize(130, 16777215)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_84.setFont(font) self.label_84.setObjectName(_fromUtf8("label_84")) self.hLayoutMOCmultipiler.addWidget(self.label_84) self.mocSpinBox = QtGui.QSpinBox(self.frameMOCmultipiler) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mocSpinBox.sizePolicy().hasHeightForWidth()) self.mocSpinBox.setSizePolicy(sizePolicy) self.mocSpinBox.setMinimumSize(QtCore.QSize(72, 0)) self.mocSpinBox.setMinimum(1) self.mocSpinBox.setObjectName(_fromUtf8("mocSpinBox")) self.mocSpinBox.setMinimumSize(QtCore.QSize(60, 0)) self.mocSpinBox.setMaximumSize(QtCore.QSize(60, 16777215)) self.hLayoutMOCmultipiler.addWidget(self.mocSpinBox) horizontalSpacer = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hLayoutMOCmultipiler.addItem(horizontalSpacer) self.vl_gbParameters.addWidget(self.frameMOCmultipiler) 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.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): Form.setObjectName(_fromUtf8("Form")) Form.resize(473, 580) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setBold(False) font.setWeight(50) Form.setFont(font) self.vlForm = QtGui.QVBoxLayout(Form) self.vlForm.setObjectName(_fromUtf8("vlForm")) self.gbGeneral = QtGui.QGroupBox(Form) self.gbGeneral.setObjectName(_fromUtf8("gbGeneral")) self.gbGeneral.setTitle("General") self.vl_gbGeneral = QtGui.QVBoxLayout(self.gbGeneral) self.vl_gbGeneral.setObjectName(_fromUtf8("vl_gbGeneral")) self.pnlProcType = ComboBoxPanel(self.gbGeneral) self.pnlProcType.Caption = "Procedure Type" self.vl_gbGeneral.addWidget(self.pnlProcType) self.pnlBasedOn = ComboBoxPanel(self.gbGeneral) self.pnlBasedOn.Caption = "Path Terminators Based On" self.vl_gbGeneral.addWidget(self.pnlBasedOn) self.vlForm.addWidget(self.gbGeneral) 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.gbParameters.setTitle("Path Terminators") self.vl_gbParameters = QtGui.QVBoxLayout(self.gbParameters) self.vl_gbParameters.setObjectName(_fromUtf8("vl_gbParameters")) self.pnlPT = ComboBoxPanel(self.gbParameters) self.pnlPT.Caption = "Type" self.vl_gbParameters.addWidget(self.pnlPT) self.pnlProperties = QtGui.QFrame(self.gbParameters) self.pnlProperties.setObjectName("pnlProperties") self.hl_pnlProperties = QtGui.QHBoxLayout(self.pnlProperties) self.hl_pnlProperties.setObjectName("hl_pnlProperties") # self.hl_pnlProperties.setMargin(0) # self.hl_pnlProperties.setSpacing(0) self.pnlLeft = QtGui.QFrame(self.pnlProperties) self.pnlLeft.setFrameShape(QtGui.QFrame.NoFrame) self.pnlLeft.setFrameShadow(QtGui.QFrame.Raised) self.pnlLeft.setObjectName("pnlLeft") self.vl_pnlLeft = QtGui.QVBoxLayout(self.pnlLeft) self.vl_pnlLeft.setObjectName("vl_pnlLeft") self.vl_pnlLeft.setMargin(0) self.vl_pnlLeft.setSpacing(0) self.gbWpt = QtGui.QGroupBox(self.pnlLeft) self.gbWpt.setObjectName("gbWpt") self.gbWpt.setTitle("Waypoint") self.vl_gbWpt = QtGui.QVBoxLayout(self.gbWpt) self.vl_gbWpt.setObjectName("vl_gbWpt") self.pnlWpt = PositionPanel(self.gbWpt, None, None, "Degree") self.pnlWpt.btnCalculater.hide() self.pnlWpt.showframe_ID() self.pnlWpt.hideframe_Altitude() self.pnlWpt.degreeFormat = "ddmmss.ssssH" self.vl_gbWpt.addWidget(self.pnlWpt) self.pnlFlyOver = ComboBoxPanel(self.gbWpt) self.pnlFlyOver.Caption = "Fly-over" self.pnlFlyOver.LabelWidth = 150 self.vl_gbWpt.addWidget(self.pnlFlyOver) self.vl_pnlLeft.addWidget(self.gbWpt) self.pnlAltitude = AltitudeBoxPanel(self.pnlLeft) self.pnlAltitude.Caption = "Altitude Restriction" self.pnlAltitude.CaptionUnits = "ft" self.pnlAltitude.LabelWidth = 150 self.vl_pnlLeft.addWidget(self.pnlAltitude) self.pnlSpeed = SpeedBoxPanel(self.pnlLeft, SpeedUnits.KTS) self.pnlSpeed.Caption = "Speed Limit" self.pnlSpeed.LabelWidth = 150 self.vl_pnlLeft.addWidget(self.pnlSpeed) self.hl_pnlProperties.addWidget(self.pnlLeft) self.pnlRight = QtGui.QFrame(self.pnlProperties) self.pnlRight.setObjectName("pnlRight") self.pnlRight.setFrameShape(QtGui.QFrame.NoFrame) self.pnlRight.setFrameShadow(QtGui.QFrame.Raised) self.vl_pnlRight = QtGui.QVBoxLayout(self.pnlRight) self.vl_pnlRight.setObjectName("vl_pnlRight") self.vl_pnlRight.setMargin(0) self.vl_pnlRight.setSpacing(0) self.pnlCourse = TrackRadialBoxPanel(self.pnlRight) self.pnlCourse.Caption = "Course" self.pnlCourse.LabelWidth = 150 self.vl_pnlRight.addWidget(self.pnlCourse) self.pnlTurnDir = ComboBoxPanel(self.pnlRight) self.pnlTurnDir.Caption = "Turn Direction" self.pnlTurnDir.LabelWidth = 150 self.vl_pnlRight.addWidget(self.pnlTurnDir) self.pnlDist = DistanceBoxPanel(self.pnlRight, DistanceUnits.NM) self.pnlDist.Caption = "Distance" self.pnlDist.LabelWidth = 150 self.vl_pnlRight.addWidget(self.pnlDist) self.pnlTime = NumberBoxPanel(self.pnlRight) self.pnlTime.CaptionUnits = "min" self.pnlTime.Caption = "Time" self.pnlTime.LabelWidth = 150 self.vl_pnlRight.addWidget(self.pnlTime) self.pnlArcCen = PositionPanel(self.pnlRight, None, None, "Degree") self.pnlArcCen.groupBox.setTitle("Arc Center") self.pnlArcCen.btnCalculater.hide() self.pnlArcCen.hideframe_Altitude() self.pnlWpt.degreeFormat = "ddmmss.ssssH" self.vl_pnlRight.addWidget(self.pnlArcCen) self.hl_pnlProperties.addWidget(self.pnlRight) self.vl_gbParameters.addWidget(self.pnlProperties) self.frameResult = Frame(self.gbParameters, "HL") self.vl_gbParameters.addWidget(self.frameResult) self.grid = QtGui.QTableView(self.frameResult) self.grid.setObjectName("grid") self.frameResult.Add = self.grid self.lblError = QtGui.QLabel(self.gbParameters) self.lblError.setObjectName("lblError") self.lblError.setAlignment(QtCore.Qt.AlignCenter) font = QtGui.QFont() font.setBold(True) font.setPointSize(10) self.lblError.setFont(font) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(207, 56, 86, 255)) # brush.setStyle(Qt::SolidPattern); palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) # palette.setBrush(QPalette.Inactive, QPalette.WindowText, brush2); # palette.setBrush(QPalette.Disabled, QPalette.WindowText, brush1); self.lblError.setPalette(palette) self.vl_gbParameters.addWidget(self.lblError) self.gridStdModel = QtGui.QStandardItemModel() self.gridStdModel.setHorizontalHeaderLabels([ "#", "ID", "Latitude", "Longitude", "P/T", "Fly-over", unicode("Course (° T)", "utf-8"), "Turn Direction", "Altitude (ft)", "Dist. (nm) / Time (min)", "Speed Limit (kts)", "Center Latitude", "Center Longitude" ]) # self.gridSelectionModel = QtGui.QSortFilterProxyModel() # # self.gridSelectionModel.setSourceModel(self.gridStdModel) self.grid.setModel(self.gridStdModel) self.grid.setSelectionBehavior(1) # self.grid.setSelectionMode(1) self.pnlTreeViewActions = QtGui.QFrame(self.frameResult) self.pnlTreeViewActions.setObjectName("pnlTreeViewActions") self.vl_pnlTreeViewActions = QtGui.QVBoxLayout(self.pnlTreeViewActions) self.vl_pnlTreeViewActions.setObjectName("vl_pnlTreeViewActions") self.btnAdd = QtGui.QPushButton(self.pnlTreeViewActions) self.btnAdd.setObjectName("btnAdd") self.btnAdd.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("Resource/add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnAdd.setIcon(icon) self.vl_pnlTreeViewActions.addWidget(self.btnAdd) self.btnRemove = QtGui.QPushButton(self.pnlTreeViewActions) self.btnRemove.setObjectName("btnRemove") self.btnRemove.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("Resource/remove.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnRemove.setIcon(icon) self.vl_pnlTreeViewActions.addWidget(self.btnRemove) self.btnUp = QtGui.QPushButton(self.pnlTreeViewActions) self.btnUp.setObjectName("btnUp") self.btnUp.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("Resource/up.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnUp.setIcon(icon) self.vl_pnlTreeViewActions.addWidget(self.btnUp) self.btnDown = QtGui.QPushButton(self.pnlTreeViewActions) self.btnDown.setObjectName("btnDown") self.btnDown.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("Resource/down.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnDown.setIcon(icon) self.vl_pnlTreeViewActions.addWidget(self.btnDown) self.frameResult.Add = self.pnlTreeViewActions self.vlForm.addWidget(self.gbParameters)