24 #include "InventoryWaters.h" |
24 #include "InventoryWaters.h" |
25 #include "InventoryEquipments.h" |
25 #include "InventoryEquipments.h" |
26 #include "ProfileWaters.h" |
26 #include "ProfileWaters.h" |
27 #include "ProfileMashs.h" |
27 #include "ProfileMashs.h" |
28 #include "ProfileStyles.h" |
28 #include "ProfileStyles.h" |
|
29 #include "ProfileFerments.h" |
29 #include "Setup.h" |
30 #include "Setup.h" |
30 #include "PrinterDialog.h" |
31 #include "PrinterDialog.h" |
31 #include "../ui/ui_MainWindow.h" |
32 #include "../ui/ui_MainWindow.h" |
32 #include "config.h" |
33 #include "config.h" |
33 |
34 |
253 this->hide(); // Close the main window |
254 this->hide(); // Close the main window |
254 ProfileStylesWindow->show(); // Show a second window |
255 ProfileStylesWindow->show(); // Show a second window |
255 } |
256 } |
256 |
257 |
257 |
258 |
|
259 void MainWindow::fromProfileFerments() |
|
260 { |
|
261 qDebug() << Q_FUNC_INFO; |
|
262 delete ProfileFermentsWindow; |
|
263 this->show(); |
|
264 } |
|
265 |
|
266 |
|
267 void MainWindow::on_actionFerments_profiles_triggered() |
|
268 { |
|
269 qDebug() << Q_FUNC_INFO; |
|
270 ProfileFermentsWindow = new ProfileFerments(this); |
|
271 QObject::connect(ProfileFermentsWindow, SIGNAL(firstWindow()), this, SLOT(fromProfileFerments())); |
|
272 this->hide(); // Close the main window |
|
273 ProfileFermentsWindow->show(); // Show a second window |
|
274 } |
|
275 |
|
276 |
258 void MainWindow::fromSetup() |
277 void MainWindow::fromSetup() |
259 { |
278 { |
260 qDebug() << Q_FUNC_INFO; |
279 qDebug() << Q_FUNC_INFO; |
261 delete SetupWindow; |
280 delete SetupWindow; |
262 this->show(); |
281 this->show(); |