def __init__(self, range_from=None, range_to=None, range_step=None): RangeDialog.__init__(self, 'Planet temperature range') self.setFixedHeight(140) grid = QGridLayout() grid.setAlignment(Qt.AlignTop) grid.setColumnStretch(1,1) grid.setColumnMinimumWidth(0,60) self.planet_temperature_from = PlanetTemperature() self.planet_temperature_from.label.setText('From:') range_from = 0 if not range_from else range_from self.planet_temperature_from.value.setValue(range_from) self.planet_temperature_to = PlanetTemperature() self.planet_temperature_to.label.setText('To:') range_to = 1000 if not range_to else range_to self.planet_temperature_to.value.setValue(range_to) self.planet_temperature_step = PlanetTemperatureStep() range_step = self.planet_temperature_step.value.value() if not range_step else range_step self.planet_temperature_step.value.setValue(range_step) add_triplet(grid, self.planet_temperature_from, 1) add_triplet(grid, self.planet_temperature_to, 2) add_triplet(grid, self.planet_temperature_step, 3) self.layout().insertLayout(0, grid)
def __init__(self, range_from=None, range_to=None, range_step=None): RangeDialog.__init__(self, 'Inclination range') self.setFixedHeight(140) grid = QGridLayout() grid.setAlignment(Qt.AlignTop) grid.setColumnStretch(1,1) grid.setColumnMinimumWidth(0,60) self.inclination_from = Inclination() self.inclination_from.label.setText('From:') range_from = 85 if not range_from else range_from self.inclination_from.value.setValue(range_from) self.inclination_to = Inclination() self.inclination_to.label.setText('To:') range_to = 90 if not range_to else range_to self.inclination_to.value.setValue(range_to) self.inclination_step = InclinationStep() range_step = self.inclination_step.value.value() if not range_step else range_step self.inclination_step.value.setValue(range_step) add_triplet(grid, self.inclination_from, 1) add_triplet(grid, self.inclination_to, 2) add_triplet(grid, self.inclination_step, 3) self.layout().insertLayout(0, grid)
def __init__(self, range_from=None, range_to=None, range_step=None): RangeDialog.__init__(self, 'Darkening coefficient 1 range') self.setFixedHeight(140) grid = QGridLayout() grid.setAlignment(Qt.AlignTop) grid.setColumnStretch(1,1) grid.setColumnMinimumWidth(0,60) self.darkening_coefficient_1_from = DarkeningCoefficient() self.darkening_coefficient_1_from.label.setText('From:') range_from = 0 if not range_from else range_from self.darkening_coefficient_1_from.value.setValue(range_from) self.darkening_coefficient_1_to = DarkeningCoefficient() self.darkening_coefficient_1_to.label.setText('To:') range_to = 1 if not range_to else range_to self.darkening_coefficient_1_to.value.setValue(range_to) self.darkening_coefficient_1_step = DarkeningCoefficientStep() range_step = self.darkening_coefficient_1_step.value.value() if not range_step else range_step self.darkening_coefficient_1_step.value.setValue(range_step) add_triplet(grid, self.darkening_coefficient_1_from, 1) add_triplet(grid, self.darkening_coefficient_1_to, 2) add_triplet(grid, self.darkening_coefficient_1_step, 3) self.layout().insertLayout(0, grid)
def __init__(self, range_from=None, range_to=None, range_step=None): RangeDialog.__init__(self, 'Semi-major axis range') self.setFixedHeight(140) grid = QGridLayout() grid.setAlignment(Qt.AlignTop) grid.setColumnStretch(1,1) grid.setColumnMinimumWidth(0,60) self.semi_major_axis_from = SemiMajorAxis() self.semi_major_axis_from.label.setText('From:') range_from = 0.001 if not range_from else range_from self.semi_major_axis_from.value.setValue(range_from) self.semi_major_axis_to = SemiMajorAxis() self.semi_major_axis_to.label.setText('To:') range_to = 2 if not range_to else range_to self.semi_major_axis_to.value.setValue(range_to) self.semi_major_axis_step = SemiMajorAxisStep() range_step = self.semi_major_axis_step.value.value() if not range_step else range_step self.semi_major_axis_step.value.setValue(range_step) add_triplet(grid, self.semi_major_axis_from, 1) add_triplet(grid, self.semi_major_axis_to, 2) add_triplet(grid, self.semi_major_axis_step, 3) self.layout().insertLayout(0, grid)
def __init__(self, range_from=None, range_to=None, range_step=None): RangeDialog.__init__(self, 'Planet temperature range') self.setFixedHeight(140) grid = QGridLayout() grid.setAlignment(Qt.AlignTop) grid.setColumnStretch(1, 1) grid.setColumnMinimumWidth(0, 60) self.planet_temperature_from = PlanetTemperature() self.planet_temperature_from.label.setText('From:') range_from = 0 if not range_from else range_from self.planet_temperature_from.value.setValue(range_from) self.planet_temperature_to = PlanetTemperature() self.planet_temperature_to.label.setText('To:') range_to = 1000 if not range_to else range_to self.planet_temperature_to.value.setValue(range_to) self.planet_temperature_step = PlanetTemperatureStep() range_step = self.planet_temperature_step.value.value( ) if not range_step else range_step self.planet_temperature_step.value.setValue(range_step) add_triplet(grid, self.planet_temperature_from, 1) add_triplet(grid, self.planet_temperature_to, 2) add_triplet(grid, self.planet_temperature_step, 3) self.layout().insertLayout(0, grid)
def __init__(self, range_from=None, range_to=None, range_step=None): RangeDialog.__init__(self, 'Darkening coefficient 1 range') self.setFixedHeight(140) grid = QGridLayout() grid.setAlignment(Qt.AlignTop) grid.setColumnStretch(1, 1) grid.setColumnMinimumWidth(0, 60) self.darkening_coefficient_1_from = DarkeningCoefficient() self.darkening_coefficient_1_from.label.setText('From:') range_from = 0 if not range_from else range_from self.darkening_coefficient_1_from.value.setValue(range_from) self.darkening_coefficient_1_to = DarkeningCoefficient() self.darkening_coefficient_1_to.label.setText('To:') range_to = 1 if not range_to else range_to self.darkening_coefficient_1_to.value.setValue(range_to) self.darkening_coefficient_1_step = DarkeningCoefficientStep() range_step = self.darkening_coefficient_1_step.value.value( ) if not range_step else range_step self.darkening_coefficient_1_step.value.setValue(range_step) add_triplet(grid, self.darkening_coefficient_1_from, 1) add_triplet(grid, self.darkening_coefficient_1_to, 2) add_triplet(grid, self.darkening_coefficient_1_step, 3) self.layout().insertLayout(0, grid)
def __init__(self, range_from=None, range_to=None, range_step=None): RangeDialog.__init__(self, 'Semi-major axis range') self.setFixedHeight(140) grid = QGridLayout() grid.setAlignment(Qt.AlignTop) grid.setColumnStretch(1, 1) grid.setColumnMinimumWidth(0, 60) self.semi_major_axis_from = SemiMajorAxis() self.semi_major_axis_from.label.setText('From:') range_from = 0.001 if not range_from else range_from self.semi_major_axis_from.value.setValue(range_from) self.semi_major_axis_to = SemiMajorAxis() self.semi_major_axis_to.label.setText('To:') range_to = 2 if not range_to else range_to self.semi_major_axis_to.value.setValue(range_to) self.semi_major_axis_step = SemiMajorAxisStep() range_step = self.semi_major_axis_step.value.value( ) if not range_step else range_step self.semi_major_axis_step.value.setValue(range_step) add_triplet(grid, self.semi_major_axis_from, 1) add_triplet(grid, self.semi_major_axis_to, 2) add_triplet(grid, self.semi_major_axis_step, 3) self.layout().insertLayout(0, grid)
def __init__(self, range_from=None, range_to=None, range_step=None): RangeDialog.__init__(self, 'Inclination range') self.setFixedHeight(140) grid = QGridLayout() grid.setAlignment(Qt.AlignTop) grid.setColumnStretch(1, 1) grid.setColumnMinimumWidth(0, 60) self.inclination_from = Inclination() self.inclination_from.label.setText('From:') range_from = 85 if not range_from else range_from self.inclination_from.value.setValue(range_from) self.inclination_to = Inclination() self.inclination_to.label.setText('To:') range_to = 90 if not range_to else range_to self.inclination_to.value.setValue(range_to) self.inclination_step = InclinationStep() range_step = self.inclination_step.value.value( ) if not range_step else range_step self.inclination_step.value.setValue(range_step) add_triplet(grid, self.inclination_from, 1) add_triplet(grid, self.inclination_to, 2) add_triplet(grid, self.inclination_step, 3) self.layout().insertLayout(0, grid)
def __init__(self, range_from=None, range_to=None, range_step=None): RangeDialog.__init__(self, 'Star radius range') self.setFixedHeight(222) grid = QGridLayout() grid.setAlignment(Qt.AlignTop) grid.setColumnStretch(1,1) grid.setColumnMinimumWidth(0,60) self.star_radius_from = StarRadiusAU() self.star_radius_from.label.setText('From:') self.star_radius_from_rs = StarRadiusRS() self.star_radius_to = StarRadiusAU() self.star_radius_to.label.setText('To:') self.star_radius_to_rs = PlanetRadiusRJ() self.star_radius_step = StarRadiusStepAU() self.star_radius_step_rs = StarRadiusStepRS() self.star_radius_from.value.valueChanged.connect(self._on_au_change) self.star_radius_to.value.valueChanged.connect(self._on_au_change) self.star_radius_step.value.valueChanged.connect(self._on_au_change) self.star_radius_from_rs.value.valueChanged.connect(self._on_rs_change) self.star_radius_to_rs.value.valueChanged.connect(self._on_rs_change) self.star_radius_step_rs.value.valueChanged.connect(self._on_rs_change) self.star_radius_from.value.setValue(0 if not range_from else range_from) self.star_radius_to.value.setValue(1 if not range_to else range_to) self.star_radius_step.value.setValue(0.001 if not range_step else range_step) add_triplet(grid, self.star_radius_from, 1) add_triplet(grid, self.star_radius_from_rs, 2) add_triplet(grid, self.star_radius_to, 3) add_triplet(grid, self.star_radius_to_rs, 4) add_triplet(grid, self.star_radius_step, 5) add_triplet(grid, self.star_radius_step_rs, 6) self.layout().insertLayout(0, grid)
def __init__(self, range_from=None, range_to=None, range_step=None): RangeDialog.__init__(self, 'Star radius range') self.setFixedHeight(222) grid = QGridLayout() grid.setAlignment(Qt.AlignTop) grid.setColumnStretch(1, 1) grid.setColumnMinimumWidth(0, 60) self.star_radius_from = StarRadiusAU() self.star_radius_from.label.setText('From:') self.star_radius_from_rs = StarRadiusRS() self.star_radius_to = StarRadiusAU() self.star_radius_to.label.setText('To:') self.star_radius_to_rs = PlanetRadiusRJ() self.star_radius_step = StarRadiusStepAU() self.star_radius_step_rs = StarRadiusStepRS() self.star_radius_from.value.valueChanged.connect(self._on_au_change) self.star_radius_to.value.valueChanged.connect(self._on_au_change) self.star_radius_step.value.valueChanged.connect(self._on_au_change) self.star_radius_from_rs.value.valueChanged.connect(self._on_rs_change) self.star_radius_to_rs.value.valueChanged.connect(self._on_rs_change) self.star_radius_step_rs.value.valueChanged.connect(self._on_rs_change) self.star_radius_from.value.setValue( 0 if not range_from else range_from) self.star_radius_to.value.setValue(1 if not range_to else range_to) self.star_radius_step.value.setValue( 0.001 if not range_step else range_step) add_triplet(grid, self.star_radius_from, 1) add_triplet(grid, self.star_radius_from_rs, 2) add_triplet(grid, self.star_radius_to, 3) add_triplet(grid, self.star_radius_to_rs, 4) add_triplet(grid, self.star_radius_step, 5) add_triplet(grid, self.star_radius_step_rs, 6) self.layout().insertLayout(0, grid)