120 ui->mainStack->setCurrentIndex(-1); |
120 ui->mainStack->setCurrentIndex(-1); |
121 ui->mainStack->removeWidget(InventoryHopsWindow); |
121 ui->mainStack->removeWidget(InventoryHopsWindow); |
122 delete InventoryHopsWindow; |
122 delete InventoryHopsWindow; |
123 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
123 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
124 ui->menuBar->setVisible(true); |
124 ui->menuBar->setVisible(true); |
|
125 statusBar()->clearMessage(); |
125 } |
126 } |
126 |
127 |
127 |
128 |
128 void MainWindow::on_actionHops_triggered() |
129 void MainWindow::on_actionHops_triggered() |
129 { |
130 { |
143 ui->mainStack->setCurrentIndex(-1); |
144 ui->mainStack->setCurrentIndex(-1); |
144 ui->mainStack->removeWidget(InventoryYeastsWindow); |
145 ui->mainStack->removeWidget(InventoryYeastsWindow); |
145 delete InventoryYeastsWindow; |
146 delete InventoryYeastsWindow; |
146 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
147 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
147 ui->menuBar->setVisible(true); |
148 ui->menuBar->setVisible(true); |
|
149 statusBar()->clearMessage(); |
148 } |
150 } |
149 |
151 |
150 |
152 |
151 void MainWindow::on_actionYeasts_triggered() |
153 void MainWindow::on_actionYeasts_triggered() |
152 { |
154 { |
166 ui->mainStack->setCurrentIndex(-1); |
168 ui->mainStack->setCurrentIndex(-1); |
167 ui->mainStack->removeWidget(InventoryMiscsWindow); |
169 ui->mainStack->removeWidget(InventoryMiscsWindow); |
168 delete InventoryMiscsWindow; |
170 delete InventoryMiscsWindow; |
169 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
171 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
170 ui->menuBar->setVisible(true); |
172 ui->menuBar->setVisible(true); |
|
173 statusBar()->clearMessage(); |
171 } |
174 } |
172 |
175 |
173 |
176 |
174 void MainWindow::on_actionMiscs_triggered() |
177 void MainWindow::on_actionMiscs_triggered() |
175 { |
178 { |
189 ui->mainStack->setCurrentIndex(-1); |
192 ui->mainStack->setCurrentIndex(-1); |
190 ui->mainStack->removeWidget(InventoryWatersWindow); |
193 ui->mainStack->removeWidget(InventoryWatersWindow); |
191 delete InventoryWatersWindow; |
194 delete InventoryWatersWindow; |
192 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
195 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
193 ui->menuBar->setVisible(true); |
196 ui->menuBar->setVisible(true); |
|
197 statusBar()->clearMessage(); |
194 } |
198 } |
195 |
199 |
196 |
200 |
197 void MainWindow::on_actionWaters_triggered() |
201 void MainWindow::on_actionWaters_triggered() |
198 { |
202 { |
212 ui->mainStack->setCurrentIndex(-1); |
216 ui->mainStack->setCurrentIndex(-1); |
213 ui->mainStack->removeWidget(InventoryEquipmentsWindow); |
217 ui->mainStack->removeWidget(InventoryEquipmentsWindow); |
214 delete InventoryEquipmentsWindow; |
218 delete InventoryEquipmentsWindow; |
215 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
219 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
216 ui->menuBar->setVisible(true); |
220 ui->menuBar->setVisible(true); |
|
221 statusBar()->clearMessage(); |
217 } |
222 } |
218 |
223 |
219 |
224 |
220 void MainWindow::on_actionEquipments_triggered() |
225 void MainWindow::on_actionEquipments_triggered() |
221 { |
226 { |
249 ui->mainStack->setCurrentIndex(-1); |
254 ui->mainStack->setCurrentIndex(-1); |
250 ui->mainStack->removeWidget(ProfileWatersWindow); |
255 ui->mainStack->removeWidget(ProfileWatersWindow); |
251 delete ProfileWatersWindow; |
256 delete ProfileWatersWindow; |
252 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
257 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
253 ui->menuBar->setVisible(true); |
258 ui->menuBar->setVisible(true); |
|
259 statusBar()->clearMessage(); |
254 } |
260 } |
255 |
261 |
256 |
262 |
257 void MainWindow::on_actionWater_profiles_triggered() |
263 void MainWindow::on_actionWater_profiles_triggered() |
258 { |
264 { |
272 ui->mainStack->setCurrentIndex(-1); |
278 ui->mainStack->setCurrentIndex(-1); |
273 ui->mainStack->removeWidget(ProfileMashsWindow); |
279 ui->mainStack->removeWidget(ProfileMashsWindow); |
274 delete ProfileMashsWindow; |
280 delete ProfileMashsWindow; |
275 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
281 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
276 ui->menuBar->setVisible(true); |
282 ui->menuBar->setVisible(true); |
|
283 statusBar()->clearMessage(); |
277 } |
284 } |
278 |
285 |
279 |
286 |
280 void MainWindow::on_actionMash_profiles_triggered() |
287 void MainWindow::on_actionMash_profiles_triggered() |
281 { |
288 { |
295 ui->mainStack->setCurrentIndex(-1); |
302 ui->mainStack->setCurrentIndex(-1); |
296 ui->mainStack->removeWidget(ProfileStylesWindow); |
303 ui->mainStack->removeWidget(ProfileStylesWindow); |
297 delete ProfileStylesWindow; |
304 delete ProfileStylesWindow; |
298 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
305 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
299 ui->menuBar->setVisible(true); |
306 ui->menuBar->setVisible(true); |
|
307 statusBar()->clearMessage(); |
300 } |
308 } |
301 |
309 |
302 |
310 |
303 void MainWindow::on_actionStyles_profiles_triggered() |
311 void MainWindow::on_actionStyles_profiles_triggered() |
304 { |
312 { |
318 ui->mainStack->setCurrentIndex(-1); |
326 ui->mainStack->setCurrentIndex(-1); |
319 ui->mainStack->removeWidget(ProfileFermentsWindow); |
327 ui->mainStack->removeWidget(ProfileFermentsWindow); |
320 delete ProfileFermentsWindow; |
328 delete ProfileFermentsWindow; |
321 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
329 setWindowTitle( QString("BMSapp - %1").arg(VERSIONSTRING) ); |
322 ui->menuBar->setVisible(true); |
330 ui->menuBar->setVisible(true); |
|
331 statusBar()->clearMessage(); |
323 } |
332 } |
324 |
333 |
325 |
334 |
326 void MainWindow::on_actionFerments_profiles_triggered() |
335 void MainWindow::on_actionFerments_profiles_triggered() |
327 { |
336 { |
365 } |
374 } |
366 |
375 |
367 |
376 |
368 void MainWindow::windowTitle(QString msg) |
377 void MainWindow::windowTitle(QString msg) |
369 { |
378 { |
370 qDebug() << Q_FUNC_INFO << msg; |
|
371 setWindowTitle(QString("BMSapp - %1 - %2").arg(VERSIONSTRING).arg(msg)); |
379 setWindowTitle(QString("BMSapp - %1 - %2").arg(VERSIONSTRING).arg(msg)); |
372 } |
380 } |
373 |
381 |
374 |
382 |
375 void MainWindow::statusMsg(QString msg) |
383 void MainWindow::statusMsg(QString msg) |
376 { |
384 { |
377 qDebug() << Q_FUNC_INFO << msg; |
|
378 statusBar()->showMessage(msg); |
385 statusBar()->showMessage(msg); |
379 } |
386 } |
380 |
387 |