(self)
| 124 | self.pb_manage_emission_lines.clicked.connect(self.pb_manage_emission_lines_clicked) |
| 125 | |
| 126 | def _setup_settings_group(self): |
| 127 | self.group_settings = QGroupBox("Settings for Fitting Algorithm") |
| 128 | |
| 129 | self.pb_fit_param_general = QPushButton("General ...") |
| 130 | self.pb_fit_param_general.clicked.connect(self.pb_fit_param_general_clicked) |
| 131 | |
| 132 | self.pb_fit_param_shared = QPushButton("Shared ...") |
| 133 | self.pb_fit_param_shared.clicked.connect(self.pb_fit_param_shared_clicked) |
| 134 | |
| 135 | self.pb_fit_param_lines = QPushButton("Lines ...") |
| 136 | self.pb_fit_param_lines.clicked.connect(self.pb_fit_param_lines_clicked) |
| 137 | |
| 138 | fit_strategy_list = self.gpc.get_fit_strategy_list() |
| 139 | combo_items = [fitting_preset_names[_] for _ in fit_strategy_list] |
| 140 | combo_items = ["None"] + combo_items |
| 141 | self.cb_step1 = QComboBox() |
| 142 | self.cb_step1.setMinimumWidth(150) |
| 143 | self.cb_step1.addItems(combo_items) |
| 144 | self.cb_step1.setCurrentIndex(1) # Should also be set based on data |
| 145 | self.cb_step2 = QComboBox() |
| 146 | self.cb_step2.setMinimumWidth(150) |
| 147 | self.cb_step2.addItems(combo_items) |
| 148 | |
| 149 | vbox = QVBoxLayout() |
| 150 | hbox = QHBoxLayout() |
| 151 | hbox.addWidget(self.pb_fit_param_general) |
| 152 | hbox.addWidget(self.pb_fit_param_shared) |
| 153 | hbox.addWidget(self.pb_fit_param_lines) |
| 154 | vbox.addLayout(hbox) |
| 155 | |
| 156 | hbox = QHBoxLayout() |
| 157 | hbox.addWidget(QLabel("Fitting step 1:")) |
| 158 | hbox.addSpacing(20) |
| 159 | hbox.addWidget(self.cb_step1) |
| 160 | hbox.addStretch(1) |
| 161 | vbox.addLayout(hbox) |
| 162 | |
| 163 | hbox = QHBoxLayout() |
| 164 | hbox.addWidget(QLabel("Fitting step 2:")) |
| 165 | hbox.addSpacing(20) |
| 166 | hbox.addWidget(self.cb_step2) |
| 167 | hbox.addStretch(1) |
| 168 | vbox.addLayout(hbox) |
| 169 | |
| 170 | self.group_settings.setLayout(vbox) |
| 171 | |
| 172 | def _setup_model_fitting_group(self): |
| 173 | self.group_model_fitting = QGroupBox("Model Fitting Based on Total Spectrum") |
no test coverage detected