def __init__(self, parent): FlightPlanBaseSimpleDlg.__init__(self, parent) self.setObjectName("DmeToleranceDlg") self.surfaceType = SurfaceTypes.DmeTolerance self.dmeTolerance = Distance.NaN() self.slantTolerance = Distance.NaN() self.pilotDistance = Distance.NaN() self.groundDistance = Distance.NaN() self.initParametersPan() self.setWindowTitle("DME Tolerance and Slant Range") self.method_29() self.method_28() self.resize(550, 550) QgisHelper.matchingDialogSize(self, 550, 600) self.vorDmeFeatureArray = [] self.currentLayer = define._canvas.currentLayer() self.resultLayerList = [] # self.rwyFeatureArray = [] # self.thrPoint3d = None # self.thrEndPoint3d = None self.initBasedOnCmb()
def __init__(self, parent): FlightPlanBaseDlg.__init__(self, parent) s = QString("safggjkk") x = s.mid(3, 2) # dlg = DlgHelp() # dlg.exec_() self.setObjectName("PathTerminatorsDlg") self.surfaceType = SurfaceTypes.FasDataBlock self.selectedRow = None self.editingModelIndex = None self.initParametersPan() self.setWindowTitle(SurfaceTypes.FasDataBlock) self.resize(540, 550) QgisHelper.matchingDialogSize(self, 630, 700) self.surfaceList = None ss = bytearray(40) s = len(ss) pass
def __init__(self, parent): FlightPlanBaseSimpleDlg.__init__(self, parent) self.setObjectName("IasToTas") self.surfaceType = SurfaceTypes.IasToTas self.initParametersPan() self.setWindowTitle(SurfaceTypes.IasToTas) QgisHelper.matchingDialogSize(self, 650, 600)
def __init__(self, parent): FlightPlanBaseDlg.__init__(self, parent) self.resize(600, 500) self.setObjectName("TurnAreaDlg") self.surfaceType = SurfaceTypes.TurnArea self.initParametersPan() self.setWindowTitle(SurfaceTypes.TurnArea) self.resize(600, 500) QgisHelper.matchingDialogSize(self, 700, 500) self.surfaceList = None
def __init__(self, parent, dlgType): FlightPlanBaseDlg.__init__(self, parent) # self.dlgType = dlgType self.setObjectName("PaIlsDlg") self.dlgType = dlgType if self.dlgType == "NpaOnFix": self.surfaceType = SurfaceTypes.NpaOnFix else: self.surfaceType = SurfaceTypes.NpaOverheadingNavaid self.initParametersPan() self.setWindowTitle(self.surfaceType) self.resize(540, 600) QgisHelper.matchingDialogSize(self, 650, 700) self.surfaceList = None self.manualPolygon = None self.mapToolPan = None self.toolSelectByPolygon = None self.accepted.connect(self.closed) self.rejected.connect(self.closed) self.wptLayer = None self.arpFeatureArray = [] self.currentLayer = define._canvas.currentLayer() self.rwyFeatureArray = [] self.rwyEndPosition = None self.initAerodromeAndRwyCmb() self.socRubber = None self.socAnnotation = QgsTextAnnotationItem(define._canvas) self.socAnnotation.setDocument(QTextDocument(Captions.SOC)) self.socAnnotation.setFrameBackgroundColor(Qt.white) self.socAnnotation.setFrameSize(QSizeF(30, 20)) self.socAnnotation.setFrameColor(Qt.magenta) self.socAnnotation.hide() self.socPoint3d = None self.daRubber = None self.daAnnotation = QgsTextAnnotationItem(define._canvas) self.daAnnotation.setDocument(QTextDocument(Captions.DA)) self.daAnnotation.setFrameBackgroundColor(Qt.white) self.daAnnotation.setFrameSize(QSizeF(30, 20)) self.daAnnotation.setFrameColor(Qt.magenta) self.daAnnotation.hide() self.daPoint3d = None self.annotationFAWP = self.parametersPanel.pnlFafPosition.annotation self.annotationMAPt = self.parametersPanel.pnlMaPtPosition.annotation
def __init__(self, parent): ''' Constructor ''' FlightPlanBaseDlg.__init__(self, parent) self.setObjectName("HoldingRnp") self.surfaceType = SurfaceTypes.HoldingRnp self.initParametersPan() self.setWindowTitle(SurfaceTypes.HoldingRnp) self.resize(540, 550) QgisHelper.matchingDialogSize(self, 710, 700)
def __init__(self, parent): FlightPlanBaseDlg.__init__(self, parent) self.setObjectName("DepartureOmnidirectionalDlg") self.surfaceType = SurfaceTypes.DepartureOmnidirectional self.initParametersPan() self.setWindowTitle(SurfaceTypes.DepartureOmnidirectional) self.resize(540, 700) QgisHelper.matchingDialogSize(self, 600, 700) self.surfaceList = None self.manualPolygon = None self.area123 = [] self.circleArea = None self.resultLayerList = []
def __init__(self, parent): FlightPlanBaseDlg.__init__(self, parent) self.setObjectName("HoldingOverHeadDlg") self.surfaceType = SurfaceTypes.HoldingOverHead self.initParametersPan() self.setWindowTitle(SurfaceTypes.HoldingOverHead) self.resize(540, 550) QgisHelper.matchingDialogSize(self, 630, 610) self.surfaceList = None self.resultLayerList = dict() self.vorDmeFeatureArray = [] self.currentLayer = define._canvas.currentLayer() self.initBasedOnCmb()
def __init__(self, parent): FlightPlanBaseDlg.__init__(self, parent) self.setObjectName("VisualSegmentSurfaceDlg") self.surfaceType = SurfaceTypes.VisualSegmentSurface self.initParametersPan() self.setWindowTitle(SurfaceTypes.VisualSegmentSurface) QgisHelper.matchingDialogSize(self, 700, 650) # self.captureTrackTool= CaptureBearingTool(define._canvas, self.parametersPanel.txtTrack) self.surfaceArea = None self.arpFeatureArray = [] self.currentLayer = define._canvas.currentLayer() self.rwyFeatureArray = [] self.thrPoint3d = None self.thrEndPoint3d = None self.initAerodromeAndRwyCmb()
def __init__(self, parent): FlightPlanBaseSimpleDlg.__init__(self, parent) self.setObjectName("RnavDmeUpdateAreaDlg") self.surfaceType = SurfaceTypes.DmeUpdateArea self.initParametersPan() self.setWindowTitle("DME Update Area Construction") self.resize(450, 370) QgisHelper.matchingDialogSize(self, 550, 500) self.vorDmeFeatureArray1 = dict() self.currentLayer = define._canvas.currentLayer() self.initBasedOnCmb1() self.vorDmeFeatureArray = dict() self.initBasedOnCmb()
def __init__(self, parent): FlightPlanBaseDlg.__init__(self, parent) self.currentLayer = define._canvas.currentLayer() self.setObjectName("RadialDlg") self.surfaceType = SurfaceTypes.Radial self.initParametersPan() self.setWindowTitle(SurfaceTypes.Radial) self.resize(540, 550) QgisHelper.matchingDialogSize(self, 720, 550) self.surfaceList = None self.complexObstacleArea = ComplexObstacleArea() self.vorDmeFeatureArray = [] self.initBasedOnCmb()
def __init__(self, parent): FlightPlanBaseSimpleDlg.__init__(self, parent) self.setObjectName("ApproachAlignmentDesigner") self.surfaceType = SurfaceTypes.ApproachAlignment self.initParametersPan() self.setWindowTitle(SurfaceTypes.ApproachAlignment) QgisHelper.matchingDialogSize(self, 670, 600) self.arpFeatureArray = [] self.currentLayer = define._canvas.currentLayer() self.rwyFeatureArray = [] self.thrPoint3d = None self.thrEndPoint3d = None self.resultLayers = [] self.initAerodromeAndRwyCmb() pt = QaHeadingColumn("ttt", 2, True) d = pt.__class__.__dict__['Index'] pass
def __init__(self, parent): FlightPlanBaseDlg.__init__(self, parent) self.setObjectName("PathTerminatorsDlg") self.surfaceType = SurfaceTypes.ProcedureExport self.selectedRow = None self.editingModelIndex = None self.initParametersPan() self.setWindowTitle(SurfaceTypes.ProcedureExport) self.resize(540, 550) QgisHelper.matchingDialogSize(self, 540, 650) self.surfaceList = None self.loaderAixm = DataBaseLoaderAixm() self.directory = None self.adding = False self.newRowIndex = -1 # assa = vars(SurfaceTypes) # asa = SurfaceTypes.__dict__ pass
def __init__(self, parent): QDialog.__init__(self, parent) self.setObjectName("FixToleranceAreaDlg") self.resize(470, 400) QgisHelper.matchingDialogSize(self, 650, 450) ui = Ui_FixToleranceArea() ui.setupUi(self) self.parametersPanel = ui self.uiStateInit() self.initParametersPan() self.setWindowTitle(SurfaceTypes.FixToleranceArea) icon = QIcon() icon.addPixmap(QPixmap("Resource/btnImage/dlgIcon.png"), QIcon.Normal, QIcon.Off) self.setWindowIcon(icon) self.resultLayerList1 = [] self.resultLayerList2 = [] self.surfaceType2 = SurfaceTypes.FixConstruction self.surfaceType1 = SurfaceTypes.OverheadTolerance
def __init__(self, parent): QDialog.__init__(self, parent) self.ui = ui_PinSVisualSegmentDepDlg() self.ui.setupUi(self) self.surfaceType = SurfaceTypes.PinSVisualSegmentDep QgisHelper.matchingDialogSize(self, 700, 650) ''' UI State Initialize ''' # self.ui.btnOpenData.setDisabled(True) # self.ui.btnSaveData.setDisabled(True) self.ui.btnExportResult.setDisabled(True) self.ui.btnEvaluate.setEnabled(False) self.ui.btnUpdateQA.setVisible(False) self.ui.btnUpdateQA_2.setVisible(False) self.pnlMCAH = MCAHPanel(self.ui.groupBox_20) self.pnlMCAH.lblMCAH.setText("Minimum (ft):") self.pnlMCAH.setValue(Altitude(500, AltitudeUnits.FT)) self.ui.verticalLayout_5.insertWidget(4, self.pnlMCAH) self.ui.cmbSegmentType.Items = [ PinsVisualSegmentType.Direct, PinsVisualSegmentType.Manoeuvring ] self.ui.cmbDepartureType.Items = [ PinsOperationType.DayOnly, PinsOperationType.DayNight ] self.ui.cmbDepartureType.SelectedIndex = 1 # self.ui.cmbMCAH.addItems([MCAHType.MCA, MCAHType.MCH]) self.ui.cmbDepartureType.Visible = False self.ui.txtTakeOffSurfaceTrack.Visible = False self.ui.frame_Limitation.hide() self.pnlHRP = PositionPanel(self.ui.grbIDF) self.pnlHRP.groupBox.setTitle("Heliport Reference point (HRP)") self.pnlHRP.btnCalculater.hide() self.pnlHRP.setObjectName("positionHRP") self.ui.verticalLayout_HRP.insertWidget(0, self.pnlHRP) self.connect(self.pnlHRP, SIGNAL("positionChanged"), self.initResultPanel) self.pnlIDF = PositionPanel(self.ui.grbIDF) self.pnlIDF.groupBox.setTitle("") self.pnlIDF.hideframe_Altitude() self.pnlIDF.setObjectName("positionIDF") self.pnlIDF.btnCalculater.hide() self.ui.verticalLayout_IDF.insertWidget(0, self.pnlIDF) self.connect(self.pnlIDF, SIGNAL("positionChanged"), self.initResultPanel) self.ui.cmbConstructionType.Items = [ ConstructionType.Construct2D, ConstructionType.Construct3D ] self.ui.tblObstacles.setSelectionBehavior(QAbstractItemView.SelectRows) self.ui.tblObstacles.setSortingEnabled(True) '''Event Handlers Connect''' self.ui.btnOpenData.clicked.connect(self.openData) self.ui.btnSaveData.clicked.connect(self.saveData) self.connect(self.ui.cmbSegmentType, SIGNAL("Event_0"), self.chbLeftTurnProhibited_Click) self.connect(self.ui.cmbDepartureType, SIGNAL("Event_0"), self.chbLeftTurnProhibited_Click) self.connect(self.ui.txtVSDG, SIGNAL("Event_0"), self.chbLeftTurnProhibited_Click) self.connect(self.ui.txtTakeOffSurfaceTrack, SIGNAL("Event_0"), self.chbLeftTurnProhibited_Click) # self.ui.btnCaptureSurfaceTrack.clicked.connect(self.method_39) self.ui.chbLeftTurnProhibited.clicked.connect( self.chbLeftTurnProhibited_Click) self.ui.chbRightTurnProhibited.clicked.connect( self.chbLeftTurnProhibited_Click) # self.ui.btnCaptureTrackFrom.clicked.connect(self.method_37) self.pnlIDF.txtPointX.textChanged.connect( self.chbLeftTurnProhibited_Click) self.pnlIDF.txtPointY.textChanged.connect( self.chbLeftTurnProhibited_Click) self.pnlHRP.txtPointX.textChanged.connect( self.chbLeftTurnProhibited_Click) self.pnlHRP.txtPointY.textChanged.connect( self.chbLeftTurnProhibited_Click) self.pnlHRP.txtAltitudeM.textChanged.connect( self.chbLeftTurnProhibited_Click) self.ui.btnClose.clicked.connect(self.reject) self.ui.btnClose_2.clicked.connect(self.reject) self.ui.btnConstruct.clicked.connect(self.btnConstruct_Click) self.ui.btnEvaluate.clicked.connect(self.btnEvaluate_Click) self.ui.cmbSurface.currentIndexChanged.connect(self.cmbSurfaceChanged) self.ui.btnExportResult.clicked.connect(self.exportResult) self.obstaclesModel = None lstTextControls = self.ui.groupBox_20.findChildren(QLineEdit) for ctrl in lstTextControls: ctrl.textChanged.connect(self.initResultPanel) lstComboControls = self.ui.groupBox_20.findChildren(QComboBox) for ctrl in lstComboControls: ctrl.currentIndexChanged.connect(self.initResultPanel)