diff --git a/CHANGES.markdown b/CHANGES.markdown index fccc939fa..c43842d12 100644 --- a/CHANGES.markdown +++ b/CHANGES.markdown @@ -13,6 +13,18 @@ happens, so I'm now setting it to a slightly arbitrary time early in the morning * Additional methods for calculating IBU * We'll list other new features here... +## v4.0.16 +Bug fixes and minor enhancements. + +### New Features +* None + +### Bug Fixes +* None yet! + +### Release Timestamp +Wed, 1 Jan 2025 04:00:16 +0100 + ## v4.0.15 Bug fixes and minor enhancements. diff --git a/CMakeLists.txt b/CMakeLists.txt index 2118753dc..7180624eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,7 +115,7 @@ endif() #======================================================================================================================= # It's simplest to keep the project name all lower-case as it means we can use a lot more of the default settings for # Linux packaging (where directory names etc are expected to be all lower-case). -project(brewtarget VERSION 4.0.15 LANGUAGES CXX) +project(brewtarget VERSION 4.0.16 LANGUAGES CXX) message(STATUS "Building ${PROJECT_NAME} version ${PROJECT_VERSION}") message(STATUS "PROJECT_SOURCE_DIR is ${PROJECT_SOURCE_DIR}") # Sometimes we do need the capitalised version of the project name @@ -456,6 +456,16 @@ endif() # declarations etc. set(CMAKE_AUTOMOC ON) +# Although AUTOMOC is pretty neat when it works, it can be problematic. Part of what it does is #include all the +# generated files (eg "moc_AboutDialog.cpp") into a single intermediate source file, which it then compiles. We have +# sometimes had compiler errors from this because of various Qt headers complaining about things being redefined. The +# brute-force workaround is, on CMake builds, to manually include these generated files in our corresponding .cpp file +# (eg "AboutDialog.cpp"), which then stops CMake pulling those generated files into its intermediate source file. +# +# (We don't want to do this extra manual include on the Meson builds because then we'd get duplicate symbols at the +# linking stage.) +add_compile_definitions(BUILDING_WITH_CMAKE) + # Set the AUTOUIC property on all targets. This tells CMake to automatically handle the Qt uic code generator, without # having to use commands such as QT4_WRAP_UI(), QT5_WRAP_UI(), etc. set(CMAKE_AUTOUIC ON) diff --git a/meson.build b/meson.build index a06e58c18..69c8ee086 100644 --- a/meson.build +++ b/meson.build @@ -189,7 +189,7 @@ # # project('brewtarget', 'cpp', - version: '4.0.15', + version: '4.0.16', license: 'GPL-3.0-or-later', meson_version: '>=0.63.0', default_options : ['cpp_std=c++23', @@ -690,23 +690,6 @@ commonSourceFiles = files([ 'src/editors/StyleEditor.cpp', 'src/editors/WaterEditor.cpp', 'src/editors/YeastEditor.cpp', - 'src/listModels/BoilListModel.cpp', - 'src/listModels/EquipmentListModel.cpp', - 'src/listModels/FermentableListModel.cpp', - 'src/listModels/FermentationListModel.cpp', - 'src/listModels/HopListModel.cpp', - 'src/listModels/MashListModel.cpp', - 'src/listModels/MashStepListModel.cpp', - 'src/listModels/MiscListModel.cpp', - 'src/listModels/RecipeAdditionFermentableListModel.cpp', - 'src/listModels/RecipeAdditionHopListModel.cpp', - 'src/listModels/RecipeAdditionMiscListModel.cpp', - 'src/listModels/RecipeAdditionYeastListModel.cpp', - 'src/listModels/RecipeAdjustmentSaltListModel.cpp', - 'src/listModels/SaltListModel.cpp', - 'src/listModels/StyleListModel.cpp', - 'src/listModels/WaterListModel.cpp', - 'src/listModels/YeastListModel.cpp', 'src/measurement/Amount.cpp', 'src/measurement/ColorMethods.cpp', 'src/measurement/IbuMethods.cpp', @@ -750,6 +733,57 @@ commonSourceFiles = files([ 'src/model/Style.cpp', 'src/model/Water.cpp', 'src/model/Yeast.cpp', + 'src/qtModels/listModels/BoilListModel.cpp', + 'src/qtModels/listModels/EquipmentListModel.cpp', + 'src/qtModels/listModels/FermentableListModel.cpp', + 'src/qtModels/listModels/FermentationListModel.cpp', + 'src/qtModels/listModels/HopListModel.cpp', + 'src/qtModels/listModels/MashListModel.cpp', + 'src/qtModels/listModels/MashStepListModel.cpp', + 'src/qtModels/listModels/MiscListModel.cpp', + 'src/qtModels/listModels/RecipeAdditionFermentableListModel.cpp', + 'src/qtModels/listModels/RecipeAdditionHopListModel.cpp', + 'src/qtModels/listModels/RecipeAdditionMiscListModel.cpp', + 'src/qtModels/listModels/RecipeAdditionYeastListModel.cpp', + 'src/qtModels/listModels/RecipeAdjustmentSaltListModel.cpp', + 'src/qtModels/listModels/SaltListModel.cpp', + 'src/qtModels/listModels/StyleListModel.cpp', + 'src/qtModels/listModels/WaterListModel.cpp', + 'src/qtModels/listModels/YeastListModel.cpp', + 'src/qtModels/sortFilterProxyModels/BoilSortFilterProxyModel.cpp', + 'src/qtModels/sortFilterProxyModels/EquipmentSortFilterProxyModel.cpp', + 'src/qtModels/sortFilterProxyModels/FermentationSortFilterProxyModel.cpp', + 'src/qtModels/sortFilterProxyModels/FermentableSortFilterProxyModel.cpp', + 'src/qtModels/sortFilterProxyModels/HopSortFilterProxyModel.cpp', + 'src/qtModels/sortFilterProxyModels/MashSortFilterProxyModel.cpp', + 'src/qtModels/sortFilterProxyModels/MiscSortFilterProxyModel.cpp', + 'src/qtModels/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.cpp', + 'src/qtModels/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.cpp', + 'src/qtModels/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.cpp', + 'src/qtModels/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.cpp', + 'src/qtModels/sortFilterProxyModels/StyleSortFilterProxyModel.cpp', + 'src/qtModels/sortFilterProxyModels/WaterSortFilterProxyModel.cpp', + 'src/qtModels/sortFilterProxyModels/YeastSortFilterProxyModel.cpp', + 'src/qtModels/tableModels/BoilStepTableModel.cpp', + 'src/qtModels/tableModels/BoilTableModel.cpp', + 'src/qtModels/tableModels/BtTableModel.cpp', + 'src/qtModels/tableModels/EquipmentTableModel.cpp', + 'src/qtModels/tableModels/FermentableTableModel.cpp', + 'src/qtModels/tableModels/FermentationStepTableModel.cpp', + 'src/qtModels/tableModels/FermentationTableModel.cpp', + 'src/qtModels/tableModels/HopTableModel.cpp', + 'src/qtModels/tableModels/MashStepTableModel.cpp', + 'src/qtModels/tableModels/MashTableModel.cpp', + 'src/qtModels/tableModels/MiscTableModel.cpp', + 'src/qtModels/tableModels/RecipeAdditionFermentableTableModel.cpp', + 'src/qtModels/tableModels/RecipeAdditionHopTableModel.cpp', + 'src/qtModels/tableModels/RecipeAdditionMiscTableModel.cpp', + 'src/qtModels/tableModels/RecipeAdditionYeastTableModel.cpp', + 'src/qtModels/tableModels/RecipeAdjustmentSaltTableModel.cpp', + 'src/qtModels/tableModels/SaltTableModel.cpp', + 'src/qtModels/tableModels/StyleTableModel.cpp', + 'src/qtModels/tableModels/WaterTableModel.cpp', + 'src/qtModels/tableModels/YeastTableModel.cpp', 'src/serialization/ImportExport.cpp', 'src/serialization/SerializationRecord.cpp', 'src/serialization/json/BeerJson.cpp', @@ -768,40 +802,6 @@ commonSourceFiles = files([ 'src/serialization/xml/XmlRecipeRecord.cpp', 'src/serialization/xml/XmlRecord.cpp', 'src/serialization/xml/XmlRecordDefinition.cpp', - 'src/sortFilterProxyModels/BoilSortFilterProxyModel.cpp', - 'src/sortFilterProxyModels/EquipmentSortFilterProxyModel.cpp', - 'src/sortFilterProxyModels/FermentationSortFilterProxyModel.cpp', - 'src/sortFilterProxyModels/FermentableSortFilterProxyModel.cpp', - 'src/sortFilterProxyModels/HopSortFilterProxyModel.cpp', - 'src/sortFilterProxyModels/MashSortFilterProxyModel.cpp', - 'src/sortFilterProxyModels/MiscSortFilterProxyModel.cpp', - 'src/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.cpp', - 'src/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.cpp', - 'src/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.cpp', - 'src/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.cpp', - 'src/sortFilterProxyModels/StyleSortFilterProxyModel.cpp', - 'src/sortFilterProxyModels/WaterSortFilterProxyModel.cpp', - 'src/sortFilterProxyModels/YeastSortFilterProxyModel.cpp', - 'src/tableModels/BoilStepTableModel.cpp', - 'src/tableModels/BoilTableModel.cpp', - 'src/tableModels/BtTableModel.cpp', - 'src/tableModels/EquipmentTableModel.cpp', - 'src/tableModels/FermentableTableModel.cpp', - 'src/tableModels/FermentationStepTableModel.cpp', - 'src/tableModels/FermentationTableModel.cpp', - 'src/tableModels/HopTableModel.cpp', - 'src/tableModels/MashStepTableModel.cpp', - 'src/tableModels/MashTableModel.cpp', - 'src/tableModels/MiscTableModel.cpp', - 'src/tableModels/RecipeAdditionFermentableTableModel.cpp', - 'src/tableModels/RecipeAdditionHopTableModel.cpp', - 'src/tableModels/RecipeAdditionMiscTableModel.cpp', - 'src/tableModels/RecipeAdditionYeastTableModel.cpp', - 'src/tableModels/RecipeAdjustmentSaltTableModel.cpp', - 'src/tableModels/SaltTableModel.cpp', - 'src/tableModels/StyleTableModel.cpp', - 'src/tableModels/WaterTableModel.cpp', - 'src/tableModels/YeastTableModel.cpp', 'src/trees/TreeFilterProxyModel.cpp', 'src/trees/TreeModel.cpp', 'src/trees/TreeNode.cpp', @@ -923,23 +923,6 @@ mocHeaders = files([ 'src/editors/StyleEditor.h', 'src/editors/WaterEditor.h', 'src/editors/YeastEditor.h', - 'src/listModels/BoilListModel.h', - 'src/listModels/EquipmentListModel.h', - 'src/listModels/FermentableListModel.h', - 'src/listModels/FermentationListModel.h', - 'src/listModels/HopListModel.h', - 'src/listModels/MashListModel.h', - 'src/listModels/MashStepListModel.h', - 'src/listModels/MiscListModel.h', - 'src/listModels/RecipeAdditionFermentableListModel.h', - 'src/listModels/RecipeAdditionHopListModel.h', - 'src/listModels/RecipeAdditionMiscListModel.h', - 'src/listModels/RecipeAdditionYeastListModel.h', - 'src/listModels/RecipeAdjustmentSaltListModel.h', - 'src/listModels/SaltListModel.h', - 'src/listModels/StyleListModel.h', - 'src/listModels/WaterListModel.h', - 'src/listModels/YeastListModel.h', 'src/model/Boil.h', 'src/model/BoilStep.h', 'src/model/BrewNote.h', @@ -978,40 +961,57 @@ mocHeaders = files([ 'src/model/Style.h', 'src/model/Water.h', 'src/model/Yeast.h', - 'src/sortFilterProxyModels/BoilSortFilterProxyModel.h', - 'src/sortFilterProxyModels/EquipmentSortFilterProxyModel.h', - 'src/sortFilterProxyModels/FermentableSortFilterProxyModel.h', - 'src/sortFilterProxyModels/FermentationSortFilterProxyModel.h', - 'src/sortFilterProxyModels/HopSortFilterProxyModel.h', - 'src/sortFilterProxyModels/MashSortFilterProxyModel.h', - 'src/sortFilterProxyModels/MiscSortFilterProxyModel.h', - 'src/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.h', - 'src/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.h', - 'src/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.h', - 'src/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.h', - 'src/sortFilterProxyModels/StyleSortFilterProxyModel.h', - 'src/sortFilterProxyModels/WaterSortFilterProxyModel.h', - 'src/sortFilterProxyModels/YeastSortFilterProxyModel.h', - 'src/tableModels/BoilStepTableModel.h', - 'src/tableModels/BoilTableModel.h', - 'src/tableModels/BtTableModel.h', - 'src/tableModels/EquipmentTableModel.h', - 'src/tableModels/FermentableTableModel.h', - 'src/tableModels/FermentationStepTableModel.h', - 'src/tableModels/FermentationTableModel.h', - 'src/tableModels/HopTableModel.h', - 'src/tableModels/MashStepTableModel.h', - 'src/tableModels/MashTableModel.h', - 'src/tableModels/MiscTableModel.h', - 'src/tableModels/RecipeAdditionFermentableTableModel.h', - 'src/tableModels/RecipeAdditionHopTableModel.h', - 'src/tableModels/RecipeAdditionMiscTableModel.h', - 'src/tableModels/RecipeAdditionYeastTableModel.h', - 'src/tableModels/RecipeAdjustmentSaltTableModel.h', - 'src/tableModels/SaltTableModel.h', - 'src/tableModels/StyleTableModel.h', - 'src/tableModels/WaterTableModel.h', - 'src/tableModels/YeastTableModel.h', + 'src/qtModels/listModels/BoilListModel.h', + 'src/qtModels/listModels/EquipmentListModel.h', + 'src/qtModels/listModels/FermentableListModel.h', + 'src/qtModels/listModels/FermentationListModel.h', + 'src/qtModels/listModels/HopListModel.h', + 'src/qtModels/listModels/MashListModel.h', + 'src/qtModels/listModels/MashStepListModel.h', + 'src/qtModels/listModels/MiscListModel.h', + 'src/qtModels/listModels/RecipeAdditionFermentableListModel.h', + 'src/qtModels/listModels/RecipeAdditionHopListModel.h', + 'src/qtModels/listModels/RecipeAdditionMiscListModel.h', + 'src/qtModels/listModels/RecipeAdditionYeastListModel.h', + 'src/qtModels/listModels/RecipeAdjustmentSaltListModel.h', + 'src/qtModels/listModels/SaltListModel.h', + 'src/qtModels/listModels/StyleListModel.h', + 'src/qtModels/listModels/WaterListModel.h', + 'src/qtModels/listModels/YeastListModel.h', + 'src/qtModels/sortFilterProxyModels/BoilSortFilterProxyModel.h', + 'src/qtModels/sortFilterProxyModels/EquipmentSortFilterProxyModel.h', + 'src/qtModels/sortFilterProxyModels/FermentableSortFilterProxyModel.h', + 'src/qtModels/sortFilterProxyModels/FermentationSortFilterProxyModel.h', + 'src/qtModels/sortFilterProxyModels/HopSortFilterProxyModel.h', + 'src/qtModels/sortFilterProxyModels/MashSortFilterProxyModel.h', + 'src/qtModels/sortFilterProxyModels/MiscSortFilterProxyModel.h', + 'src/qtModels/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.h', + 'src/qtModels/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.h', + 'src/qtModels/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.h', + 'src/qtModels/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.h', + 'src/qtModels/sortFilterProxyModels/StyleSortFilterProxyModel.h', + 'src/qtModels/sortFilterProxyModels/WaterSortFilterProxyModel.h', + 'src/qtModels/sortFilterProxyModels/YeastSortFilterProxyModel.h', + 'src/qtModels/tableModels/BoilStepTableModel.h', + 'src/qtModels/tableModels/BoilTableModel.h', + 'src/qtModels/tableModels/BtTableModel.h', + 'src/qtModels/tableModels/EquipmentTableModel.h', + 'src/qtModels/tableModels/FermentableTableModel.h', + 'src/qtModels/tableModels/FermentationStepTableModel.h', + 'src/qtModels/tableModels/FermentationTableModel.h', + 'src/qtModels/tableModels/HopTableModel.h', + 'src/qtModels/tableModels/MashStepTableModel.h', + 'src/qtModels/tableModels/MashTableModel.h', + 'src/qtModels/tableModels/MiscTableModel.h', + 'src/qtModels/tableModels/RecipeAdditionFermentableTableModel.h', + 'src/qtModels/tableModels/RecipeAdditionHopTableModel.h', + 'src/qtModels/tableModels/RecipeAdditionMiscTableModel.h', + 'src/qtModels/tableModels/RecipeAdditionYeastTableModel.h', + 'src/qtModels/tableModels/RecipeAdjustmentSaltTableModel.h', + 'src/qtModels/tableModels/SaltTableModel.h', + 'src/qtModels/tableModels/StyleTableModel.h', + 'src/qtModels/tableModels/WaterTableModel.h', + 'src/qtModels/tableModels/YeastTableModel.h', 'src/trees/TreeFilterProxyModel.h', 'src/trees/TreeModel.h', 'src/trees/TreeView.h', diff --git a/src/AboutDialog.cpp b/src/AboutDialog.cpp old mode 100755 new mode 100644 index bfde683cb..4fca701e9 --- a/src/AboutDialog.cpp +++ b/src/AboutDialog.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * AboutDialog.cpp is part of Brewtarget, and is copyright the following authors 2009-2022: + * AboutDialog.cpp is part of Brewtarget, and is copyright the following authors 2009-2025: * • Matt Young * • Philip Greggory Lee * @@ -27,6 +27,11 @@ #include "config.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_AboutDialog.cpp" +#endif + AboutDialog::AboutDialog(QWidget * parent) : QDialog(parent), label(0) { @@ -139,7 +144,7 @@ AboutDialog::AboutDialog(QWidget * parent) : "
  • 2015 Markus Mårtensson <mackan.90@gmail.com>
  • " "
  • 2017 Matt Anderson <matt.anderson@is4s.com>
  • " // Commit is "andersonm ", but second name clear from email "
  • 2020-2022 Mattias Måhl <mattias@kejsarsten.com>
  • " - "
  • 2020-2024 Matt Young <mfsy@yahoo.com>
  • " + "
  • 2020-2025 Matt Young <mfsy@yahoo.com>
  • " "
  • 2014-2017 Maxime Lavigne <duguigne@gmail.com>
  • " "
  • 2018 Medic Momcilo <medicmomcilo@gmail.com>
  • " "
  • 2016 Mike Evans <mikee@saxicola.co.uk>
  • " diff --git a/src/AlcoholTool.cpp b/src/AlcoholTool.cpp index 9e58197e5..4b0eaaadc 100644 --- a/src/AlcoholTool.cpp +++ b/src/AlcoholTool.cpp @@ -34,6 +34,11 @@ #include "measurement/SystemOfMeasurement.h" #include "widgets/ToggleSwitch.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_AlcoholTool.cpp" +#endif + // Settings we only use in this file under the PersistentSettings::Sections::alcoholTool section #define AddSettingName(name) namespace { BtStringConst const name{#name}; } AddSettingName(advancedInputsEnabled) diff --git a/src/AncestorDialog.cpp b/src/AncestorDialog.cpp index db1035542..9d36a7d8f 100644 --- a/src/AncestorDialog.cpp +++ b/src/AncestorDialog.cpp @@ -37,6 +37,11 @@ #include "model/NamedEntity.h" #include "model/Recipe.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_AncestorDialog.cpp" +#endif + AncestorDialog::AncestorDialog(QWidget * parent) : QDialog(parent) { setupUi(this); diff --git a/src/BeerColorWidget.cpp b/src/BeerColorWidget.cpp index 7f64861a1..7db4349fa 100644 --- a/src/BeerColorWidget.cpp +++ b/src/BeerColorWidget.cpp @@ -26,6 +26,11 @@ #include "config.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BeerColorWidget.cpp" +#endif + // TODO: make the size adjust inside the container. BeerColorWidget::BeerColorWidget(QWidget* parent) : QWidget(parent) { //setFixedSize(QSize(90,130)); diff --git a/src/BrewDayFormatter.cpp b/src/BrewDayFormatter.cpp index e2b4b5290..888e58baf 100644 --- a/src/BrewDayFormatter.cpp +++ b/src/BrewDayFormatter.cpp @@ -30,6 +30,11 @@ #include "model/Style.h" #include "PersistentSettings.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BrewDayFormatter.cpp" +#endif + BrewDayFormatter::BrewDayFormatter(QObject * parent) : QObject(parent) { recObs = nullptr; diff --git a/src/BrewDayScrollWidget.cpp b/src/BrewDayScrollWidget.cpp index 20067348e..3d8cfc346 100644 --- a/src/BrewDayScrollWidget.cpp +++ b/src/BrewDayScrollWidget.cpp @@ -41,6 +41,11 @@ #include "PersistentSettings.h" #include "TimerWidget.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BrewDayScrollWidget.cpp" +#endif + namespace { QString styleName(Style const * style) { if (!style) { diff --git a/src/BrewNoteWidget.cpp b/src/BrewNoteWidget.cpp index 7e888eced..ffe1e03bf 100644 --- a/src/BrewNoteWidget.cpp +++ b/src/BrewNoteWidget.cpp @@ -29,6 +29,11 @@ #include "model/BrewNote.h" #include "PersistentSettings.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BrewNoteWidget.cpp" +#endif + namespace { double const lowLimitPct = 0.95; double const highLimitPct = 1.05; diff --git a/src/BtDatePopup.cpp b/src/BtDatePopup.cpp index a772b44a6..dcf004295 100644 --- a/src/BtDatePopup.cpp +++ b/src/BtDatePopup.cpp @@ -20,6 +20,11 @@ #include #include "BtDatePopup.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BtDatePopup.cpp" +#endif + //! \brief set up the popup window. BtDatePopup::BtDatePopup(QWidget* parent) : QDialog(parent, Qt::Popup) { diff --git a/src/BtSplashScreen.cpp b/src/BtSplashScreen.cpp index 222d12afc..c678a919b 100644 --- a/src/BtSplashScreen.cpp +++ b/src/BtSplashScreen.cpp @@ -21,6 +21,11 @@ #include "config.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BtSplashScreen.cpp" +#endif + namespace { static QString const logoFile = QString{":images/%1.svg"}.arg(CONFIG_APPLICATION_NAME_LC); } diff --git a/src/BtTabWidget.cpp b/src/BtTabWidget.cpp index 4eaf9cbc7..e418f0fec 100644 --- a/src/BtTabWidget.cpp +++ b/src/BtTabWidget.cpp @@ -26,6 +26,11 @@ #include "model/Recipe.h" #include "model/Style.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BtTabWidget.cpp" +#endif + //! \brief set up the popup window. BtTabWidget::BtTabWidget(QWidget* parent) : diff --git a/src/BtTextEdit.cpp b/src/BtTextEdit.cpp index e5dded85f..3f386d767 100644 --- a/src/BtTextEdit.cpp +++ b/src/BtTextEdit.cpp @@ -22,6 +22,11 @@ #include #include +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BtTextEdit.cpp" +#endif + BtTextEdit::BtTextEdit([[maybe_unused]] QWidget * parent) : wasModified{false} { // We will see if this works... diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e722e66ce..11207bb45 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -61,7 +61,7 @@ set(filesToCompile_cpp ${repoDir}/src/HydrometerTool.cpp ${repoDir}/src/IbuGuSlider.cpp ${repoDir}/src/InventoryFormatter.cpp - ${repoDir}/src/LatestReleaseFinder + ${repoDir}/src/LatestReleaseFinder.cpp ${repoDir}/src/Localization.cpp ${repoDir}/src/Logging.cpp ${repoDir}/src/MainWindow.cpp @@ -121,23 +121,6 @@ set(filesToCompile_cpp ${repoDir}/src/editors/StyleEditor.cpp ${repoDir}/src/editors/WaterEditor.cpp ${repoDir}/src/editors/YeastEditor.cpp - ${repoDir}/src/listModels/BoilListModel.cpp - ${repoDir}/src/listModels/EquipmentListModel.cpp - ${repoDir}/src/listModels/FermentableListModel.cpp - ${repoDir}/src/listModels/FermentationListModel.cpp - ${repoDir}/src/listModels/HopListModel.cpp - ${repoDir}/src/listModels/MashListModel.cpp - ${repoDir}/src/listModels/MashStepListModel.cpp - ${repoDir}/src/listModels/MiscListModel.cpp - ${repoDir}/src/listModels/RecipeAdditionFermentableListModel.cpp - ${repoDir}/src/listModels/RecipeAdditionHopListModel.cpp - ${repoDir}/src/listModels/RecipeAdditionMiscListModel.cpp - ${repoDir}/src/listModels/RecipeAdditionYeastListModel.cpp - ${repoDir}/src/listModels/RecipeAdjustmentSaltListModel.cpp - ${repoDir}/src/listModels/SaltListModel.cpp - ${repoDir}/src/listModels/StyleListModel.cpp - ${repoDir}/src/listModels/WaterListModel.cpp - ${repoDir}/src/listModels/YeastListModel.cpp ${repoDir}/src/measurement/Amount.cpp ${repoDir}/src/measurement/ColorMethods.cpp ${repoDir}/src/measurement/IbuMethods.cpp @@ -181,6 +164,57 @@ set(filesToCompile_cpp ${repoDir}/src/model/Style.cpp ${repoDir}/src/model/Water.cpp ${repoDir}/src/model/Yeast.cpp + ${repoDir}/src/qtModels/listModels/BoilListModel.cpp + ${repoDir}/src/qtModels/listModels/EquipmentListModel.cpp + ${repoDir}/src/qtModels/listModels/FermentableListModel.cpp + ${repoDir}/src/qtModels/listModels/FermentationListModel.cpp + ${repoDir}/src/qtModels/listModels/HopListModel.cpp + ${repoDir}/src/qtModels/listModels/MashListModel.cpp + ${repoDir}/src/qtModels/listModels/MashStepListModel.cpp + ${repoDir}/src/qtModels/listModels/MiscListModel.cpp + ${repoDir}/src/qtModels/listModels/RecipeAdditionFermentableListModel.cpp + ${repoDir}/src/qtModels/listModels/RecipeAdditionHopListModel.cpp + ${repoDir}/src/qtModels/listModels/RecipeAdditionMiscListModel.cpp + ${repoDir}/src/qtModels/listModels/RecipeAdditionYeastListModel.cpp + ${repoDir}/src/qtModels/listModels/RecipeAdjustmentSaltListModel.cpp + ${repoDir}/src/qtModels/listModels/SaltListModel.cpp + ${repoDir}/src/qtModels/listModels/StyleListModel.cpp + ${repoDir}/src/qtModels/listModels/WaterListModel.cpp + ${repoDir}/src/qtModels/listModels/YeastListModel.cpp + ${repoDir}/src/qtModels/sortFilterProxyModels/BoilSortFilterProxyModel.cpp + ${repoDir}/src/qtModels/sortFilterProxyModels/EquipmentSortFilterProxyModel.cpp + ${repoDir}/src/qtModels/sortFilterProxyModels/FermentableSortFilterProxyModel.cpp + ${repoDir}/src/qtModels/sortFilterProxyModels/FermentationSortFilterProxyModel.cpp + ${repoDir}/src/qtModels/sortFilterProxyModels/HopSortFilterProxyModel.cpp + ${repoDir}/src/qtModels/sortFilterProxyModels/MashSortFilterProxyModel.cpp + ${repoDir}/src/qtModels/sortFilterProxyModels/MiscSortFilterProxyModel.cpp + ${repoDir}/src/qtModels/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.cpp + ${repoDir}/src/qtModels/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.cpp + ${repoDir}/src/qtModels/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.cpp + ${repoDir}/src/qtModels/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.cpp + ${repoDir}/src/qtModels/sortFilterProxyModels/StyleSortFilterProxyModel.cpp + ${repoDir}/src/qtModels/sortFilterProxyModels/WaterSortFilterProxyModel.cpp + ${repoDir}/src/qtModels/sortFilterProxyModels/YeastSortFilterProxyModel.cpp + ${repoDir}/src/qtModels/tableModels/BoilStepTableModel.cpp + ${repoDir}/src/qtModels/tableModels/BoilTableModel.cpp + ${repoDir}/src/qtModels/tableModels/BtTableModel.cpp + ${repoDir}/src/qtModels/tableModels/EquipmentTableModel.cpp + ${repoDir}/src/qtModels/tableModels/FermentableTableModel.cpp + ${repoDir}/src/qtModels/tableModels/FermentationStepTableModel.cpp + ${repoDir}/src/qtModels/tableModels/FermentationTableModel.cpp + ${repoDir}/src/qtModels/tableModels/HopTableModel.cpp + ${repoDir}/src/qtModels/tableModels/MashStepTableModel.cpp + ${repoDir}/src/qtModels/tableModels/MashTableModel.cpp + ${repoDir}/src/qtModels/tableModels/MiscTableModel.cpp + ${repoDir}/src/qtModels/tableModels/RecipeAdditionFermentableTableModel.cpp + ${repoDir}/src/qtModels/tableModels/RecipeAdditionHopTableModel.cpp + ${repoDir}/src/qtModels/tableModels/RecipeAdditionMiscTableModel.cpp + ${repoDir}/src/qtModels/tableModels/RecipeAdditionYeastTableModel.cpp + ${repoDir}/src/qtModels/tableModels/RecipeAdjustmentSaltTableModel.cpp + ${repoDir}/src/qtModels/tableModels/SaltTableModel.cpp + ${repoDir}/src/qtModels/tableModels/StyleTableModel.cpp + ${repoDir}/src/qtModels/tableModels/WaterTableModel.cpp + ${repoDir}/src/qtModels/tableModels/YeastTableModel.cpp ${repoDir}/src/serialization/ImportExport.cpp ${repoDir}/src/serialization/SerializationRecord.cpp ${repoDir}/src/serialization/json/BeerJson.cpp @@ -199,40 +233,6 @@ set(filesToCompile_cpp ${repoDir}/src/serialization/xml/XmlRecipeRecord.cpp ${repoDir}/src/serialization/xml/XmlRecord.cpp ${repoDir}/src/serialization/xml/XmlRecordDefinition.cpp - ${repoDir}/src/sortFilterProxyModels/BoilSortFilterProxyModel.cpp - ${repoDir}/src/sortFilterProxyModels/EquipmentSortFilterProxyModel.cpp - ${repoDir}/src/sortFilterProxyModels/FermentableSortFilterProxyModel.cpp - ${repoDir}/src/sortFilterProxyModels/FermentationSortFilterProxyModel.cpp - ${repoDir}/src/sortFilterProxyModels/HopSortFilterProxyModel.cpp - ${repoDir}/src/sortFilterProxyModels/MashSortFilterProxyModel.cpp - ${repoDir}/src/sortFilterProxyModels/MiscSortFilterProxyModel.cpp - ${repoDir}/src/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.cpp - ${repoDir}/src/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.cpp - ${repoDir}/src/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.cpp - ${repoDir}/src/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.cpp - ${repoDir}/src/sortFilterProxyModels/StyleSortFilterProxyModel.cpp - ${repoDir}/src/sortFilterProxyModels/WaterSortFilterProxyModel.cpp - ${repoDir}/src/sortFilterProxyModels/YeastSortFilterProxyModel.cpp - ${repoDir}/src/tableModels/BoilStepTableModel.cpp - ${repoDir}/src/tableModels/BoilTableModel.cpp - ${repoDir}/src/tableModels/BtTableModel.cpp - ${repoDir}/src/tableModels/EquipmentTableModel.cpp - ${repoDir}/src/tableModels/FermentableTableModel.cpp - ${repoDir}/src/tableModels/FermentationStepTableModel.cpp - ${repoDir}/src/tableModels/FermentationTableModel.cpp - ${repoDir}/src/tableModels/HopTableModel.cpp - ${repoDir}/src/tableModels/MashStepTableModel.cpp - ${repoDir}/src/tableModels/MashTableModel.cpp - ${repoDir}/src/tableModels/MiscTableModel.cpp - ${repoDir}/src/tableModels/RecipeAdditionFermentableTableModel.cpp - ${repoDir}/src/tableModels/RecipeAdditionHopTableModel.cpp - ${repoDir}/src/tableModels/RecipeAdditionMiscTableModel.cpp - ${repoDir}/src/tableModels/RecipeAdditionYeastTableModel.cpp - ${repoDir}/src/tableModels/RecipeAdjustmentSaltTableModel.cpp - ${repoDir}/src/tableModels/SaltTableModel.cpp - ${repoDir}/src/tableModels/StyleTableModel.cpp - ${repoDir}/src/tableModels/WaterTableModel.cpp - ${repoDir}/src/tableModels/YeastTableModel.cpp ${repoDir}/src/trees/TreeFilterProxyModel.cpp ${repoDir}/src/trees/TreeModel.cpp ${repoDir}/src/trees/TreeNode.cpp diff --git a/src/ConverterTool.cpp b/src/ConverterTool.cpp index fe4841b46..af5f661eb 100644 --- a/src/ConverterTool.cpp +++ b/src/ConverterTool.cpp @@ -24,6 +24,11 @@ #include "measurement/Unit.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_ConverterTool.cpp" +#endif + ConverterTool::ConverterTool(QWidget* parent) : QDialog(parent) { this->doLayout(); diff --git a/src/HelpDialog.cpp b/src/HelpDialog.cpp old mode 100755 new mode 100644 index 06b9b3f45..1fb84f121 --- a/src/HelpDialog.cpp +++ b/src/HelpDialog.cpp @@ -25,6 +25,11 @@ #include "Logging.h" #include "PersistentSettings.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_HelpDialog.cpp" +#endif + // This private implementation class holds all private non-virtual members of HelpDialog class HelpDialog::impl { diff --git a/src/HydrometerTool.cpp b/src/HydrometerTool.cpp index ead974d7a..9b068dd4e 100644 --- a/src/HydrometerTool.cpp +++ b/src/HydrometerTool.cpp @@ -32,6 +32,11 @@ #include "Algorithms.h" #include "measurement/Unit.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_HydrometerTool.cpp" +#endif + HydrometerTool::HydrometerTool(QWidget* parent) : QDialog(parent) { this->doLayout(); diff --git a/src/IbuGuSlider.cpp b/src/IbuGuSlider.cpp index 421f67d0c..821e46d2c 100644 --- a/src/IbuGuSlider.cpp +++ b/src/IbuGuSlider.cpp @@ -16,6 +16,11 @@ #include "IbuGuSlider.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_IbuGuSlider.cpp" +#endif + IbuGuSlider::IbuGuSlider(QWidget* parent) : RangedSlider(parent) { diff --git a/src/LatestReleaseFinder.cpp b/src/LatestReleaseFinder.cpp index 6d20cac8c..419427005 100644 --- a/src/LatestReleaseFinder.cpp +++ b/src/LatestReleaseFinder.cpp @@ -28,6 +28,11 @@ #include "config.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_LatestReleaseFinder.cpp" +#endif + void LatestReleaseFinder::checkMainRespository() { // diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 4fff3b3de..941761fd0 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -121,10 +121,10 @@ #include "editors/StyleEditor.h" #include "editors/WaterEditor.h" #include "editors/YeastEditor.h" -#include "listModels/EquipmentListModel.h" -#include "listModels/MashListModel.h" -#include "listModels/StyleListModel.h" -#include "listModels/WaterListModel.h" +#include "qtModels/listModels/EquipmentListModel.h" +#include "qtModels/listModels/MashListModel.h" +#include "qtModels/listModels/StyleListModel.h" +#include "qtModels/listModels/WaterListModel.h" #include "measurement/Measurement.h" #include "measurement/Unit.h" #include "model/Boil.h" @@ -138,20 +138,20 @@ #include "model/Style.h" #include "model/Yeast.h" #include "serialization/ImportExport.h" -#include "sortFilterProxyModels/FermentableSortFilterProxyModel.h" -#include "sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.h" -#include "sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.h" -#include "sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.h" -#include "sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.h" -#include "sortFilterProxyModels/StyleSortFilterProxyModel.h" -#include "tableModels/BoilStepTableModel.h" -#include "tableModels/FermentableTableModel.h" -#include "tableModels/FermentationStepTableModel.h" -#include "tableModels/MashStepTableModel.h" -#include "tableModels/RecipeAdditionFermentableTableModel.h" -#include "tableModels/RecipeAdditionHopTableModel.h" -#include "tableModels/RecipeAdditionMiscTableModel.h" -#include "tableModels/RecipeAdditionYeastTableModel.h" +#include "qtModels/sortFilterProxyModels/FermentableSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/StyleSortFilterProxyModel.h" +#include "qtModels/tableModels/BoilStepTableModel.h" +#include "qtModels/tableModels/FermentableTableModel.h" +#include "qtModels/tableModels/FermentationStepTableModel.h" +#include "qtModels/tableModels/MashStepTableModel.h" +#include "qtModels/tableModels/RecipeAdditionFermentableTableModel.h" +#include "qtModels/tableModels/RecipeAdditionHopTableModel.h" +#include "qtModels/tableModels/RecipeAdditionMiscTableModel.h" +#include "qtModels/tableModels/RecipeAdditionYeastTableModel.h" #include "undoRedo/RelationalUndoableUpdate.h" #include "undoRedo/Undoable.h" #include "undoRedo/UndoableAddOrRemove.h" @@ -159,6 +159,11 @@ #include "utils/BtStringConst.h" #include "utils/OptionalHelpers.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_MainWindow.cpp" +#endif + namespace { /** diff --git a/src/MashDesigner.cpp b/src/MashDesigner.cpp index 91d192d75..cd7a6ee01 100644 --- a/src/MashDesigner.cpp +++ b/src/MashDesigner.cpp @@ -32,6 +32,11 @@ #include "model/Fermentable.h" #include "PhysicalConstants.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_MashDesigner.cpp" +#endif + MashDesigner::MashDesigner(QWidget * parent) : QDialog {parent}, m_recObs {nullptr}, m_mash {nullptr}, diff --git a/src/MashWizard.cpp b/src/MashWizard.cpp index 61458fd4a..181cecbd8 100644 --- a/src/MashWizard.cpp +++ b/src/MashWizard.cpp @@ -37,6 +37,11 @@ #include "model/MashStep.h" #include "PhysicalConstants.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_MashWizard.cpp" +#endif + MashWizard::MashWizard(QWidget* parent) : QDialog(parent), m_recObs{nullptr}, diff --git a/src/NamedEntitySortProxyModel.cpp b/src/NamedEntitySortProxyModel.cpp index b047dd365..20d8ebffe 100644 --- a/src/NamedEntitySortProxyModel.cpp +++ b/src/NamedEntitySortProxyModel.cpp @@ -19,6 +19,11 @@ #include #include +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_NamedEntitySortProxyModel.cpp" +#endif + NamedEntitySortProxyModel::NamedEntitySortProxyModel(QAbstractItemModel* sourceModel) : QSortFilterProxyModel(sourceModel) { diff --git a/src/OgAdjuster.cpp b/src/OgAdjuster.cpp index b4a9dcf27..556ff69e6 100644 --- a/src/OgAdjuster.cpp +++ b/src/OgAdjuster.cpp @@ -26,6 +26,11 @@ #include "model/Equipment.h" #include "model/Recipe.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_OgAdjuster.cpp" +#endif + OgAdjuster::OgAdjuster( QWidget* parent ) : QDialog{parent}, recObs {nullptr} { diff --git a/src/OptionDialog.cpp b/src/OptionDialog.cpp index d845efe74..9ec0ddfb1 100644 --- a/src/OptionDialog.cpp +++ b/src/OptionDialog.cpp @@ -52,6 +52,11 @@ #include "measurement/UnitSystem.h" #include "PersistentSettings.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_OptionDialog.cpp" +#endif + // // Anonymous namespace for constants, global variables and functions used only in this file // diff --git a/src/PitchDialog.cpp b/src/PitchDialog.cpp index eeaa1e317..c4c97c82c 100644 --- a/src/PitchDialog.cpp +++ b/src/PitchDialog.cpp @@ -29,6 +29,11 @@ #include "measurement/Unit.h" #include "PersistentSettings.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_PitchDialog.cpp" +#endif + PitchDialog::PitchDialog(QWidget* parent) : QDialog(parent) { setupUi(this); diff --git a/src/PrimingDialog.cpp b/src/PrimingDialog.cpp index 591687d68..2aae5faf6 100644 --- a/src/PrimingDialog.cpp +++ b/src/PrimingDialog.cpp @@ -27,6 +27,11 @@ #include "measurement/Unit.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_PrimingDialog.cpp" +#endif + PrimingDialog::PrimingDialog(QWidget* parent) : QDialog(parent) { this->setupUi(this); diff --git a/src/PrintAndPreviewDialog.cpp b/src/PrintAndPreviewDialog.cpp index a5c702aeb..867302ac2 100644 --- a/src/PrintAndPreviewDialog.cpp +++ b/src/PrintAndPreviewDialog.cpp @@ -29,6 +29,11 @@ #include "InventoryFormatter.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_PrintAndPreviewDialog.cpp" +#endif + /** * @brief Construct a new Print And Preview Dialog:: Print And Preview Dialog object * diff --git a/src/RangedSlider.cpp b/src/RangedSlider.cpp index df220a3d5..5f84d5d4e 100644 --- a/src/RangedSlider.cpp +++ b/src/RangedSlider.cpp @@ -34,6 +34,11 @@ #include #include +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RangedSlider.cpp" +#endif + RangedSlider::RangedSlider(QWidget* parent) : QWidget(parent), m_min(0.0), diff --git a/src/RecipeExtrasWidget.cpp b/src/RecipeExtrasWidget.cpp index 858fe5668..2aa16a578 100644 --- a/src/RecipeExtrasWidget.cpp +++ b/src/RecipeExtrasWidget.cpp @@ -28,6 +28,11 @@ #include "undoRedo/Undoable.h" #include "utils/OptionalHelpers.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeExtrasWidget.cpp" +#endif + RecipeExtrasWidget::RecipeExtrasWidget(QWidget* parent) : QWidget(parent), recipe(nullptr), diff --git a/src/RecipeFormatter.cpp b/src/RecipeFormatter.cpp index f06fe4034..a3a758a30 100644 --- a/src/RecipeFormatter.cpp +++ b/src/RecipeFormatter.cpp @@ -58,6 +58,11 @@ #include "model/Yeast.h" #include "PersistentSettings.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeFormatter.cpp" +#endif + namespace { //! Get the maximum number of characters in a list of strings. unsigned int getMaxLength(QStringList & list) { diff --git a/src/RefractoDialog.cpp b/src/RefractoDialog.cpp index 349fdcd62..c11693de9 100644 --- a/src/RefractoDialog.cpp +++ b/src/RefractoDialog.cpp @@ -29,6 +29,11 @@ #include "Algorithms.h" #include "measurement/Measurement.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RefractoDialog.cpp" +#endif + RefractoDialog::RefractoDialog(QWidget* parent) : QDialog(parent) { setupUi(this); diff --git a/src/ScaleRecipeTool.cpp b/src/ScaleRecipeTool.cpp index b1c0e4d88..b03e089f2 100644 --- a/src/ScaleRecipeTool.cpp +++ b/src/ScaleRecipeTool.cpp @@ -23,7 +23,7 @@ #include "config.h" #include "database/ObjectStoreWrapper.h" -#include "listModels/EquipmentListModel.h" +#include "qtModels/listModels/EquipmentListModel.h" #include "model/Boil.h" #include "model/Equipment.h" #include "model/Fermentable.h" @@ -41,6 +41,11 @@ #include "model/Yeast.h" #include "NamedEntitySortProxyModel.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_ScaleRecipeTool.cpp" +#endif + ScaleRecipeTool::ScaleRecipeTool(QWidget* parent) : QWizard(parent), equipListModel(new EquipmentListModel(this)), diff --git a/src/StrikeWaterDialog.cpp b/src/StrikeWaterDialog.cpp index ce766cb45..462925981 100644 --- a/src/StrikeWaterDialog.cpp +++ b/src/StrikeWaterDialog.cpp @@ -22,6 +22,11 @@ #include +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_StrikeWaterDialog.cpp" +#endif + namespace { // From Northern Brewer ~0.38 but Jon Palmer suggest 0.41 // to compensate for the lost to the tun even if the tun is pre-heated diff --git a/src/StyleRangeWidget.cpp b/src/StyleRangeWidget.cpp index 24de90b9d..9c400135a 100644 --- a/src/StyleRangeWidget.cpp +++ b/src/StyleRangeWidget.cpp @@ -19,6 +19,11 @@ #include #include +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_StyleRangeWidget.cpp" +#endif + StyleRangeWidget::StyleRangeWidget(QWidget* parent) : RangedSlider(parent) { setBackgroundBrush(QColor(121,201,121)); setPreferredRangeBrush(QColor(0,127,0)); diff --git a/src/TimerListDialog.cpp b/src/TimerListDialog.cpp index 2fa38ef08..8307060ed 100644 --- a/src/TimerListDialog.cpp +++ b/src/TimerListDialog.cpp @@ -21,6 +21,11 @@ #include "TimerWidget.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_TimerListDialog.cpp" +#endif + TimerListDialog::TimerListDialog(QWidget* parent, QList* timers) : QDialog(parent) { this->setWindowTitle(tr("Addition Timers")); diff --git a/src/TimerMainDialog.cpp b/src/TimerMainDialog.cpp index 72e3930d2..6882aa93b 100644 --- a/src/TimerMainDialog.cpp +++ b/src/TimerMainDialog.cpp @@ -29,6 +29,11 @@ #include "TimerListDialog.h" #include "TimerWidget.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_TimerMainDialog.cpp" +#endif + TimerMainDialog::TimerMainDialog(MainWindow* parent) : QDialog{parent}, mainWindow{parent}, diff --git a/src/TimerWidget.cpp b/src/TimerWidget.cpp index edb357f57..c26c63ee4 100644 --- a/src/TimerWidget.cpp +++ b/src/TimerWidget.cpp @@ -36,6 +36,11 @@ #include "TimerMainDialog.h" #include "utils/TimerUtils.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_TimerWidget.cpp" +#endif + TimerWidget::TimerWidget(TimerMainDialog *parent, BoilTime* bt) : QDialog{parent}, // ui{new Ui::timerWidget}, diff --git a/src/WaterDialog.cpp b/src/WaterDialog.cpp index d75eab043..dc7f176be 100644 --- a/src/WaterDialog.cpp +++ b/src/WaterDialog.cpp @@ -36,13 +36,18 @@ #include "model/RecipeAdditionFermentable.h" #include "model/RecipeUseOfWater.h" #include "model/Salt.h" -#include "tableModels/RecipeAdjustmentSaltTableModel.h" -#include "tableModels/WaterTableModel.h" +#include "qtModels/tableModels/RecipeAdjustmentSaltTableModel.h" +#include "qtModels/tableModels/WaterTableModel.h" #include "editors/WaterEditor.h" -#include "listModels/WaterListModel.h" -#include "sortFilterProxyModels/WaterSortFilterProxyModel.h" +#include "qtModels/listModels/WaterListModel.h" +#include "qtModels/sortFilterProxyModels/WaterSortFilterProxyModel.h" #include "widgets/SmartDigitWidget.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_WaterDialog.cpp" +#endif + // // All of the pH calculations are taken from the work done by Kai Troester and published at diff --git a/src/boiltime.cpp b/src/boiltime.cpp index a41dd25e4..0a03914ea 100644 --- a/src/boiltime.cpp +++ b/src/boiltime.cpp @@ -17,6 +17,11 @@ #include "boiltime.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_boiltime.cpp" +#endif + BoilTime::BoilTime(QObject* parent): QObject(parent), time(0), started(false), diff --git a/src/buttons/BoilButton.cpp b/src/buttons/BoilButton.cpp old mode 100755 new mode 100644 index 088a9319c..2890c0068 --- a/src/buttons/BoilButton.cpp +++ b/src/buttons/BoilButton.cpp @@ -15,4 +15,9 @@ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ #include "buttons/BoilButton.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BoilButton.cpp" +#endif + RECIPE_ATTRIBUTE_BUTTON_BASE_COMMON_CODE(Boil) diff --git a/src/buttons/EquipmentButton.cpp b/src/buttons/EquipmentButton.cpp old mode 100755 new mode 100644 index 43a1e2244..6d6a5dfd9 --- a/src/buttons/EquipmentButton.cpp +++ b/src/buttons/EquipmentButton.cpp @@ -18,4 +18,9 @@ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ #include "buttons/EquipmentButton.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_EquipmentButton.cpp" +#endif + RECIPE_ATTRIBUTE_BUTTON_BASE_COMMON_CODE(Equipment) diff --git a/src/buttons/FermentationButton.cpp b/src/buttons/FermentationButton.cpp old mode 100755 new mode 100644 index d67f56f75..440aa9228 --- a/src/buttons/FermentationButton.cpp +++ b/src/buttons/FermentationButton.cpp @@ -15,4 +15,9 @@ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ #include "buttons/FermentationButton.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_FermentationButton.cpp" +#endif + RECIPE_ATTRIBUTE_BUTTON_BASE_COMMON_CODE(Fermentation) diff --git a/src/buttons/MashButton.cpp b/src/buttons/MashButton.cpp old mode 100755 new mode 100644 index 97efab510..39b64bf89 --- a/src/buttons/MashButton.cpp +++ b/src/buttons/MashButton.cpp @@ -18,4 +18,9 @@ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ #include "buttons/MashButton.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_MashButton.cpp" +#endif + RECIPE_ATTRIBUTE_BUTTON_BASE_COMMON_CODE(Mash) diff --git a/src/buttons/RecipeAttributeButton.cpp b/src/buttons/RecipeAttributeButton.cpp old mode 100755 new mode 100644 index d1ce28549..87898ce85 --- a/src/buttons/RecipeAttributeButton.cpp +++ b/src/buttons/RecipeAttributeButton.cpp @@ -15,6 +15,11 @@ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ #include "buttons/RecipeAttributeButton.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAttributeButton.cpp" +#endif + RecipeAttributeButton::RecipeAttributeButton(QWidget * parent) : QPushButton(parent) { return; diff --git a/src/buttons/StyleButton.cpp b/src/buttons/StyleButton.cpp old mode 100755 new mode 100644 index 2c16c9a4d..878772073 --- a/src/buttons/StyleButton.cpp +++ b/src/buttons/StyleButton.cpp @@ -18,4 +18,9 @@ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ #include "buttons/StyleButton.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_StyleButton.cpp" +#endif + RECIPE_ATTRIBUTE_BUTTON_BASE_COMMON_CODE(Style) diff --git a/src/buttons/WaterButton.cpp b/src/buttons/WaterButton.cpp old mode 100755 new mode 100644 index 24c327968..c61f1dc21 --- a/src/buttons/WaterButton.cpp +++ b/src/buttons/WaterButton.cpp @@ -16,4 +16,9 @@ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ #include "buttons/WaterButton.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_WaterButton.cpp" +#endif + RECIPE_ATTRIBUTE_BUTTON_BASE_COMMON_CODE(Water) diff --git a/src/catalogs/EquipmentCatalog.cpp b/src/catalogs/EquipmentCatalog.cpp old mode 100755 new mode 100644 index f3a606a7e..b61610eb5 --- a/src/catalogs/EquipmentCatalog.cpp +++ b/src/catalogs/EquipmentCatalog.cpp @@ -15,7 +15,12 @@ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ #include "catalogs/EquipmentCatalog.h" -#include "sortFilterProxyModels/EquipmentSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/EquipmentSortFilterProxyModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_EquipmentCatalog.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in CatalogBase CATALOG_COMMON_CODE(Equipment) diff --git a/src/catalogs/EquipmentCatalog.h b/src/catalogs/EquipmentCatalog.h index 2062823f1..5d3e28c8b 100755 --- a/src/catalogs/EquipmentCatalog.h +++ b/src/catalogs/EquipmentCatalog.h @@ -22,8 +22,8 @@ #include "editors/EquipmentEditor.h" #include "model/Equipment.h" -#include "sortFilterProxyModels/EquipmentSortFilterProxyModel.h" -#include "tableModels/EquipmentTableModel.h" +#include "qtModels/sortFilterProxyModels/EquipmentSortFilterProxyModel.h" +#include "qtModels/tableModels/EquipmentTableModel.h" // This needs to be the last include. (I know, I know...) #include "catalogs/CatalogBase.h" diff --git a/src/catalogs/FermentableCatalog.cpp b/src/catalogs/FermentableCatalog.cpp old mode 100755 new mode 100644 index 981bf76e4..337a9d9dd --- a/src/catalogs/FermentableCatalog.cpp +++ b/src/catalogs/FermentableCatalog.cpp @@ -19,7 +19,12 @@ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ #include "catalogs/FermentableCatalog.h" -#include "sortFilterProxyModels/FermentableSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/FermentableSortFilterProxyModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_FermentableCatalog.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in CatalogBase CATALOG_COMMON_CODE(Fermentable) diff --git a/src/catalogs/FermentableCatalog.h b/src/catalogs/FermentableCatalog.h index 3415c54db..1df26675f 100755 --- a/src/catalogs/FermentableCatalog.h +++ b/src/catalogs/FermentableCatalog.h @@ -26,8 +26,8 @@ #include "editors/FermentableEditor.h" #include "model/Fermentable.h" -#include "tableModels/FermentableTableModel.h" -#include "sortFilterProxyModels/FermentableSortFilterProxyModel.h" +#include "qtModels/tableModels/FermentableTableModel.h" +#include "qtModels/sortFilterProxyModels/FermentableSortFilterProxyModel.h" // This needs to be the last include. (I know, I know...) #include "catalogs/CatalogBase.h" diff --git a/src/catalogs/HopCatalog.cpp b/src/catalogs/HopCatalog.cpp old mode 100755 new mode 100644 index 868283405..e9e2aa884 --- a/src/catalogs/HopCatalog.cpp +++ b/src/catalogs/HopCatalog.cpp @@ -21,7 +21,12 @@ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ #include "catalogs/HopCatalog.h" -#include "sortFilterProxyModels/HopSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/HopSortFilterProxyModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_HopCatalog.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in CatalogBase CATALOG_COMMON_CODE(Hop) diff --git a/src/catalogs/HopCatalog.h b/src/catalogs/HopCatalog.h index 97fa25877..93e4adb07 100755 --- a/src/catalogs/HopCatalog.h +++ b/src/catalogs/HopCatalog.h @@ -26,8 +26,8 @@ #include "editors/HopEditor.h" #include "model/Hop.h" -#include "sortFilterProxyModels/HopSortFilterProxyModel.h" -#include "tableModels/HopTableModel.h" +#include "qtModels/sortFilterProxyModels/HopSortFilterProxyModel.h" +#include "qtModels/tableModels/HopTableModel.h" // This needs to be the last include. (I know, I know...) #include "catalogs/CatalogBase.h" diff --git a/src/catalogs/MiscCatalog.cpp b/src/catalogs/MiscCatalog.cpp old mode 100755 new mode 100644 index 73867aee8..1687d2bad --- a/src/catalogs/MiscCatalog.cpp +++ b/src/catalogs/MiscCatalog.cpp @@ -19,7 +19,12 @@ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ #include "catalogs/MiscCatalog.h" -#include "sortFilterProxyModels/MiscSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/MiscSortFilterProxyModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_MiscCatalog.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in CatalogBase CATALOG_COMMON_CODE(Misc) diff --git a/src/catalogs/MiscCatalog.h b/src/catalogs/MiscCatalog.h index cd2f49f3c..54a0652a8 100755 --- a/src/catalogs/MiscCatalog.h +++ b/src/catalogs/MiscCatalog.h @@ -26,8 +26,8 @@ #include "editors/MiscEditor.h" #include "model/Misc.h" -#include "sortFilterProxyModels/MiscSortFilterProxyModel.h" -#include "tableModels/MiscTableModel.h" +#include "qtModels/sortFilterProxyModels/MiscSortFilterProxyModel.h" +#include "qtModels/tableModels/MiscTableModel.h" // This needs to be the last include. (I know, I know...) #include "catalogs/CatalogBase.h" diff --git a/src/catalogs/StyleCatalog.cpp b/src/catalogs/StyleCatalog.cpp old mode 100755 new mode 100644 index 37f08750f..b9eb428e4 --- a/src/catalogs/StyleCatalog.cpp +++ b/src/catalogs/StyleCatalog.cpp @@ -15,7 +15,12 @@ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ #include "catalogs/StyleCatalog.h" -#include "sortFilterProxyModels/StyleSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/StyleSortFilterProxyModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_StyleCatalog.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in CatalogBase CATALOG_COMMON_CODE(Style) diff --git a/src/catalogs/StyleCatalog.h b/src/catalogs/StyleCatalog.h index 73b7acd2d..fccb63d85 100755 --- a/src/catalogs/StyleCatalog.h +++ b/src/catalogs/StyleCatalog.h @@ -22,8 +22,8 @@ #include "editors/StyleEditor.h" #include "model/Style.h" -#include "sortFilterProxyModels/StyleSortFilterProxyModel.h" -#include "tableModels/StyleTableModel.h" +#include "qtModels/sortFilterProxyModels/StyleSortFilterProxyModel.h" +#include "qtModels/tableModels/StyleTableModel.h" // This needs to be the last include. (I know, I know...) #include "catalogs/CatalogBase.h" diff --git a/src/catalogs/YeastCatalog.cpp b/src/catalogs/YeastCatalog.cpp old mode 100755 new mode 100644 index 83601041c..ce6920a57 --- a/src/catalogs/YeastCatalog.cpp +++ b/src/catalogs/YeastCatalog.cpp @@ -19,7 +19,12 @@ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ #include "catalogs/YeastCatalog.h" -#include "sortFilterProxyModels/YeastSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/YeastSortFilterProxyModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_YeastCatalog.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in CatalogBase CATALOG_COMMON_CODE(Yeast) diff --git a/src/catalogs/YeastCatalog.h b/src/catalogs/YeastCatalog.h index 622e751c2..0edf2a5c5 100755 --- a/src/catalogs/YeastCatalog.h +++ b/src/catalogs/YeastCatalog.h @@ -26,8 +26,8 @@ #include "editors/YeastEditor.h" #include "model/Yeast.h" -#include "sortFilterProxyModels/YeastSortFilterProxyModel.h" -#include "tableModels/YeastTableModel.h" +#include "qtModels/sortFilterProxyModels/YeastSortFilterProxyModel.h" +#include "qtModels/tableModels/YeastTableModel.h" // This needs to be the last include. (I know, I know...) #include "catalogs/CatalogBase.h" diff --git a/src/database/ObjectStore.cpp b/src/database/ObjectStore.cpp index baa14e71f..6ccc558ec 100644 --- a/src/database/ObjectStore.cpp +++ b/src/database/ObjectStore.cpp @@ -36,6 +36,11 @@ #include "utils/MetaTypes.h" #include "utils/OptionalHelpers.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_ObjectStore.cpp" +#endif + // Private implementation details that don't need access to class member variables namespace { diff --git a/src/editors/BoilEditor.cpp b/src/editors/BoilEditor.cpp old mode 100755 new mode 100644 index ec2b92169..37d1911b0 --- a/src/editors/BoilEditor.cpp +++ b/src/editors/BoilEditor.cpp @@ -22,6 +22,11 @@ #include "model/Boil.h" #include "model/Recipe.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BoilEditor.cpp" +#endif + BoilEditor::BoilEditor(QWidget* parent, QString const editorName) : QDialog(parent), EditorBase(editorName) { diff --git a/src/editors/BoilStepEditor.cpp b/src/editors/BoilStepEditor.cpp old mode 100755 new mode 100644 index 8b4f5960a..7d4a971ff --- a/src/editors/BoilStepEditor.cpp +++ b/src/editors/BoilStepEditor.cpp @@ -18,6 +18,11 @@ #include "MainWindow.h" #include "measurement/Unit.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BoilStepEditor.cpp" +#endif + BoilStepEditor::BoilStepEditor(QWidget* parent, QString const editorName) : QDialog{parent}, StepEditorBase{}, diff --git a/src/editors/EquipmentEditor.cpp b/src/editors/EquipmentEditor.cpp old mode 100755 new mode 100644 index cfc8cf4ca..2ccd97e92 --- a/src/editors/EquipmentEditor.cpp +++ b/src/editors/EquipmentEditor.cpp @@ -41,6 +41,11 @@ #include "PersistentSettings.h" #include "PhysicalConstants.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_EquipmentEditor.cpp" +#endif + // // TODO: According to https://www.engineersedge.com/materials/specific_heat_capacity_of_metals_13259.htm, the specific // heat capacity of 304 grade stainless steel is 502.416 J/kg·K = 0.120080 c/g·C. Would be nice to have a way for the diff --git a/src/editors/FermentableEditor.cpp b/src/editors/FermentableEditor.cpp old mode 100755 new mode 100644 index a15a4a833..e78876de9 --- a/src/editors/FermentableEditor.cpp +++ b/src/editors/FermentableEditor.cpp @@ -27,6 +27,11 @@ #include "database/ObjectStoreWrapper.h" #include "measurement/Unit.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_FermentableEditor.cpp" +#endif + // TODO: Need a separate editor for inventory FermentableEditor::FermentableEditor(QWidget* parent, QString const editorName) : diff --git a/src/editors/FermentationEditor.cpp b/src/editors/FermentationEditor.cpp old mode 100755 new mode 100644 index 52b7dc185..6eb7f5636 --- a/src/editors/FermentationEditor.cpp +++ b/src/editors/FermentationEditor.cpp @@ -22,6 +22,11 @@ #include "model/Fermentation.h" #include "model/Recipe.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_FermentationEditor.cpp" +#endif + FermentationEditor::FermentationEditor(QWidget* parent, QString const editorName) : QDialog(parent), EditorBase(editorName) { diff --git a/src/editors/FermentationStepEditor.cpp b/src/editors/FermentationStepEditor.cpp old mode 100755 new mode 100644 index ce8279107..c3909fdb5 --- a/src/editors/FermentationStepEditor.cpp +++ b/src/editors/FermentationStepEditor.cpp @@ -18,6 +18,11 @@ #include "MainWindow.h" #include "measurement/Unit.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_FermentationStepEditor.cpp" +#endif + FermentationStepEditor::FermentationStepEditor(QWidget* parent, QString const editorName) : QDialog{parent}, StepEditorBase{}, diff --git a/src/editors/HopEditor.cpp b/src/editors/HopEditor.cpp old mode 100755 new mode 100644 index f16a02217..fe415ac51 --- a/src/editors/HopEditor.cpp +++ b/src/editors/HopEditor.cpp @@ -29,6 +29,11 @@ #include "database/ObjectStoreWrapper.h" #include "measurement/Unit.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_HopEditor.cpp" +#endif + // TODO: Need a separate editor for inventory HopEditor::HopEditor(QWidget * parent, QString const editorName) : diff --git a/src/editors/MashEditor.cpp b/src/editors/MashEditor.cpp old mode 100755 new mode 100644 index 48b8fc960..5200ae814 --- a/src/editors/MashEditor.cpp +++ b/src/editors/MashEditor.cpp @@ -28,6 +28,11 @@ #include "model/Mash.h" #include "model/Recipe.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_MashEditor.cpp" +#endif + MashEditor::MashEditor(QWidget* parent) : QDialog(parent), m_recipe{nullptr}, diff --git a/src/editors/MashStepEditor.cpp b/src/editors/MashStepEditor.cpp old mode 100755 new mode 100644 index b85c9ccdc..20a72346c --- a/src/editors/MashStepEditor.cpp +++ b/src/editors/MashStepEditor.cpp @@ -21,6 +21,11 @@ #include "MainWindow.h" #include "measurement/Unit.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_MashStepEditor.cpp" +#endif + MashStepEditor::MashStepEditor(QWidget* parent, QString const editorName) : QDialog{parent}, StepEditorBase{}, diff --git a/src/editors/MiscEditor.cpp b/src/editors/MiscEditor.cpp old mode 100755 new mode 100644 index 6295ace65..b0c09c622 --- a/src/editors/MiscEditor.cpp +++ b/src/editors/MiscEditor.cpp @@ -28,6 +28,11 @@ #include "database/ObjectStoreWrapper.h" #include "measurement/Unit.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_MiscEditor.cpp" +#endif + MiscEditor::MiscEditor(QWidget * parent, QString const editorName) : QDialog(parent), EditorBase(editorName) { diff --git a/src/editors/NamedMashEditor.cpp b/src/editors/NamedMashEditor.cpp old mode 100755 new mode 100644 index 2e44d00c5..afaefda43 --- a/src/editors/NamedMashEditor.cpp +++ b/src/editors/NamedMashEditor.cpp @@ -28,6 +28,11 @@ #include "model/Mash.h" #include "model/Recipe.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_NamedMashEditor.cpp" +#endif + NamedMashEditor::NamedMashEditor(QWidget* parent, MashStepEditor* editor, bool singleMashEditor) : QDialog{parent}, diff --git a/src/editors/NamedMashEditor.h b/src/editors/NamedMashEditor.h index 531b12036..4ba7029e1 100755 --- a/src/editors/NamedMashEditor.h +++ b/src/editors/NamedMashEditor.h @@ -27,10 +27,10 @@ #include "ui_namedMashEditor.h" #include "editors/MashStepEditor.h" -#include "listModels/MashListModel.h" -#include "listModels/EquipmentListModel.h" +#include "qtModels/listModels/MashListModel.h" +#include "qtModels/listModels/EquipmentListModel.h" #include "NamedEntitySortProxyModel.h" -#include "tableModels/MashStepTableModel.h" +#include "qtModels/tableModels/MashStepTableModel.h" // Forward declarations. diff --git a/src/editors/StyleEditor.cpp b/src/editors/StyleEditor.cpp old mode 100755 new mode 100644 index ede476672..841bb1c5a --- a/src/editors/StyleEditor.cpp +++ b/src/editors/StyleEditor.cpp @@ -23,7 +23,12 @@ #include "BtHorizontalTabs.h" #include "database/ObjectStoreWrapper.h" #include "measurement/Unit.h" -#include "sortFilterProxyModels/StyleSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/StyleSortFilterProxyModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_StyleEditor.cpp" +#endif StyleEditor::StyleEditor(QWidget* parent, QString const editorName) : QDialog{parent}, diff --git a/src/editors/WaterEditor.cpp b/src/editors/WaterEditor.cpp old mode 100755 new mode 100644 index 86c0713e2..fdd4bca53 --- a/src/editors/WaterEditor.cpp +++ b/src/editors/WaterEditor.cpp @@ -25,6 +25,11 @@ #include "database/ObjectStoreWrapper.h" #include "model/Water.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_WaterEditor.cpp" +#endif + namespace { auto const seriesNameCurrent {WaterEditor::tr("Current" )}; auto const seriesNameModified{WaterEditor::tr("Modified")}; diff --git a/src/editors/YeastEditor.cpp b/src/editors/YeastEditor.cpp old mode 100755 new mode 100644 index 611564410..043b57db3 --- a/src/editors/YeastEditor.cpp +++ b/src/editors/YeastEditor.cpp @@ -29,6 +29,11 @@ #include "database/ObjectStoreWrapper.h" #include "measurement/Unit.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_YeastEditor.cpp" +#endif + YeastEditor::YeastEditor(QWidget * parent, QString const editorName) : QDialog(parent), EditorBase(editorName) { diff --git a/src/model/Boil.cpp b/src/model/Boil.cpp old mode 100755 new mode 100644 index 616a9aa1d..b8851a773 --- a/src/model/Boil.cpp +++ b/src/model/Boil.cpp @@ -25,6 +25,11 @@ #include "model/NamedParameterBundle.h" #include "utils/AutoCompare.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Boil.cpp" +#endif + QString Boil::localisedName() { return tr("Boil"); } bool Boil::isEqualTo(NamedEntity const & other) const { diff --git a/src/model/BoilStep.cpp b/src/model/BoilStep.cpp old mode 100755 new mode 100644 index 0c2883fb4..f079abb2d --- a/src/model/BoilStep.cpp +++ b/src/model/BoilStep.cpp @@ -20,6 +20,11 @@ #include "utils/OptionalHelpers.h" #include "utils/AutoCompare.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BoilStep.cpp" +#endif + QString BoilStep::localisedName() { return tr("Boil Step"); } EnumStringMapping const BoilStep::chillingTypeStringMapping { diff --git a/src/model/BrewNote.cpp b/src/model/BrewNote.cpp index a3d316988..6b8cb9488 100644 --- a/src/model/BrewNote.cpp +++ b/src/model/BrewNote.cpp @@ -38,6 +38,11 @@ #include "model/Recipe.h" #include "model/RecipeAdditionYeast.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BrewNote.cpp" +#endif + QString BrewNote::localisedName() { return tr("Brew Note"); } // BrewNote doesn't use its name field, so we sort by brew date diff --git a/src/model/Equipment.cpp b/src/model/Equipment.cpp index a58445bec..3061edae2 100644 --- a/src/model/Equipment.cpp +++ b/src/model/Equipment.cpp @@ -25,6 +25,11 @@ #include "model/Recipe.h" #include "utils/AutoCompare.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Equipment.cpp" +#endif + QString Equipment::localisedName() { return tr("Equipment"); } bool Equipment::isEqualTo(NamedEntity const & other) const { diff --git a/src/model/Fermentable.cpp b/src/model/Fermentable.cpp index efbf7bfb2..d5b757b6f 100644 --- a/src/model/Fermentable.cpp +++ b/src/model/Fermentable.cpp @@ -35,6 +35,11 @@ #include "utils/AutoCompare.h" #include "utils/OptionalHelpers.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Fermentable.cpp" +#endif + QString Fermentable::localisedName() { return tr("Fermentable"); } // Note that Fermentable::typeStringMapping and Fermentable::grainGroupStringMapping are as defined by BeerJSON, but we diff --git a/src/model/Fermentation.cpp b/src/model/Fermentation.cpp old mode 100755 new mode 100644 index 838012113..8a3cb7f88 --- a/src/model/Fermentation.cpp +++ b/src/model/Fermentation.cpp @@ -17,6 +17,11 @@ #include "model/NamedParameterBundle.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Fermentation.cpp" +#endif + QString Fermentation::localisedName() { return tr("Fermentation"); } bool Fermentation::isEqualTo(NamedEntity const & other) const { diff --git a/src/model/FermentationStep.cpp b/src/model/FermentationStep.cpp old mode 100755 new mode 100644 index 595cd5d48..03e5e70bd --- a/src/model/FermentationStep.cpp +++ b/src/model/FermentationStep.cpp @@ -19,6 +19,11 @@ #include "model/NamedParameterBundle.h" #include "utils/AutoCompare.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_FermentationStep.cpp" +#endif + QString FermentationStep::localisedName() { return tr("Fermentation Step"); } bool FermentationStep::isEqualTo(NamedEntity const & other) const { diff --git a/src/model/Folder.cpp b/src/model/Folder.cpp index fb132e901..64f49b3ec 100644 --- a/src/model/Folder.cpp +++ b/src/model/Folder.cpp @@ -20,6 +20,11 @@ #include #include +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Folder.cpp" +#endif + Folder::Folder() : QObject() { setObjectName("Folder"); return; diff --git a/src/model/Hop.cpp b/src/model/Hop.cpp index 91169a9f2..17ac7ee75 100644 --- a/src/model/Hop.cpp +++ b/src/model/Hop.cpp @@ -30,6 +30,11 @@ #include "model/Recipe.h" #include "utils/AutoCompare.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Hop.cpp" +#endif + QString Hop::localisedName() { return tr("Hop"); } // Note that Hop::typeStringMapping and Hop::formStringMapping are as defined by BeerJSON, but we also use them for the diff --git a/src/model/Ingredient.cpp b/src/model/Ingredient.cpp old mode 100755 new mode 100644 index fb56b412b..a7f8a24d4 --- a/src/model/Ingredient.cpp +++ b/src/model/Ingredient.cpp @@ -17,6 +17,11 @@ #include "model/NamedParameterBundle.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Ingredient.cpp" +#endif + QString Ingredient::localisedName() { return tr("Ingredient"); } TypeLookup const Ingredient::typeLookup { diff --git a/src/model/IngredientInRecipe.cpp b/src/model/IngredientInRecipe.cpp old mode 100755 new mode 100644 index a25c3ce06..121aca443 --- a/src/model/IngredientInRecipe.cpp +++ b/src/model/IngredientInRecipe.cpp @@ -17,6 +17,11 @@ #include "model/Recipe.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_IngredientInRecipe.cpp" +#endif + QString IngredientInRecipe::localisedName() { return tr("Ingredient In Recipe"); } bool IngredientInRecipe::isEqualTo(NamedEntity const & other) const { diff --git a/src/model/Instruction.cpp b/src/model/Instruction.cpp index a7ec68786..a62ecbd43 100644 --- a/src/model/Instruction.cpp +++ b/src/model/Instruction.cpp @@ -22,6 +22,11 @@ #include "model/NamedParameterBundle.h" #include "model/Recipe.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Instruction.cpp" +#endif + QString Instruction::localisedName() { return tr("Instruction"); } bool Instruction::isEqualTo(NamedEntity const & other) const { diff --git a/src/model/Inventory.cpp b/src/model/Inventory.cpp index a3df18865..7a62f391a 100644 --- a/src/model/Inventory.cpp +++ b/src/model/Inventory.cpp @@ -29,11 +29,16 @@ // produce moc_InventoryHop.cpp) etc but will not link the resulting code (because there is not a corresponding // InventoryHop.cpp. If we include the results of the MOC here, it guarantees they get linked into the final // executable. -#include "moc_InventoryFermentable.cpp" -#include "moc_InventoryHop.cpp" -#include "moc_InventoryMisc.cpp" -#include "moc_InventorySalt.cpp" -#include "moc_InventoryYeast.cpp" + #include "moc_InventoryFermentable.cpp" + #include "moc_InventoryHop.cpp" + #include "moc_InventoryMisc.cpp" + #include "moc_InventorySalt.cpp" + #include "moc_InventoryYeast.cpp" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Inventory.cpp" +#endif QString Inventory::localisedName() { return tr("Inventory"); } diff --git a/src/model/Mash.cpp b/src/model/Mash.cpp index 85751fd4d..6ccfa2063 100644 --- a/src/model/Mash.cpp +++ b/src/model/Mash.cpp @@ -30,6 +30,11 @@ #include "model/Recipe.h" #include "utils/AutoCompare.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Mash.cpp" +#endif + QString Mash::localisedName() { return tr("Mash"); } bool Mash::isEqualTo(NamedEntity const & other) const { diff --git a/src/model/MashStep.cpp b/src/model/MashStep.cpp index 32861337d..2659ce22d 100644 --- a/src/model/MashStep.cpp +++ b/src/model/MashStep.cpp @@ -27,6 +27,11 @@ #include "PhysicalConstants.h" #include "utils/AutoCompare.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_MashStep.cpp" +#endif + QString MashStep::localisedName() { return tr("Mash Step"); } EnumStringMapping const MashStep::typeStringMapping { diff --git a/src/model/Misc.cpp b/src/model/Misc.cpp index d99e9bf1e..1f6bf61f3 100644 --- a/src/model/Misc.cpp +++ b/src/model/Misc.cpp @@ -33,6 +33,11 @@ #include "model/Recipe.h" #include "utils/AutoCompare.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Misc.cpp" +#endif + QString Misc::localisedName() { return tr("Miscellaneous"); } EnumStringMapping const Misc::typeStringMapping { diff --git a/src/model/NamedEntity.cpp b/src/model/NamedEntity.cpp index 1aa66b05c..387ab2272 100644 --- a/src/model/NamedEntity.cpp +++ b/src/model/NamedEntity.cpp @@ -57,6 +57,11 @@ #include "model/Water.h" #include "model/Yeast.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_NamedEntity.cpp" +#endif + namespace { /** * \brief This is a regexp that will match the " (n)" (for n some positive integer) added on the end of a name to diff --git a/src/model/OutlineableNamedEntity.cpp b/src/model/OutlineableNamedEntity.cpp old mode 100755 new mode 100644 index 8877b3cfd..83dc0fb89 --- a/src/model/OutlineableNamedEntity.cpp +++ b/src/model/OutlineableNamedEntity.cpp @@ -18,6 +18,11 @@ #include "BtFieldType.h" #include "model/NamedParameterBundle.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_OutlineableNamedEntity.cpp" +#endif + QString OutlineableNamedEntity::localisedName() { return tr("Outlineable Named Entity"); } TypeLookup const OutlineableNamedEntity::typeLookup { diff --git a/src/model/OwnedByRecipe.cpp b/src/model/OwnedByRecipe.cpp old mode 100755 new mode 100644 index dd5576dfd..604f8f74b --- a/src/model/OwnedByRecipe.cpp +++ b/src/model/OwnedByRecipe.cpp @@ -17,6 +17,11 @@ #include "model/Recipe.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_OwnedByRecipe.cpp" +#endif + QString OwnedByRecipe::localisedName() { return tr("Owned By Recipe"); } bool OwnedByRecipe::isEqualTo(NamedEntity const & other) const { diff --git a/src/model/Recipe.cpp b/src/model/Recipe.cpp index 253fcacd9..d0e8e8cad 100644 --- a/src/model/Recipe.cpp +++ b/src/model/Recipe.cpp @@ -70,6 +70,11 @@ #include "PhysicalConstants.h" #include "utils/AutoCompare.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Recipe.cpp" +#endif + namespace { /** diff --git a/src/model/RecipeAddition.cpp b/src/model/RecipeAddition.cpp old mode 100755 new mode 100644 index 9d21bbbfd..cf2c77595 --- a/src/model/RecipeAddition.cpp +++ b/src/model/RecipeAddition.cpp @@ -23,6 +23,11 @@ #include "model/Recipe.h" #include "utils/AutoCompare.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAddition.cpp" +#endif + QString RecipeAddition::localisedName() { return tr("Recipe Addition"); } // Note that RecipeAddition::stageStringMapping is as defined by BeerJSON, but we also use them for the DB and for diff --git a/src/model/RecipeAdditionBase.h b/src/model/RecipeAdditionBase.h index 6c647baa5..84cd323a6 100755 --- a/src/model/RecipeAdditionBase.h +++ b/src/model/RecipeAdditionBase.h @@ -25,7 +25,7 @@ class RecipeAddition; // -// See comment in tableModels/TableModelBase.h about benefits (and limitations) of using concepts. +// See comment in qtModels/tableModels/TableModelBase.h about benefits (and limitations) of using concepts. // // See comment in utils/TypeTraits.h for definition of CONCEPT_FIX_UP (and why, for now, we need it) template concept CONCEPT_FIX_UP IsRegularAddition = std::is_base_of_v; diff --git a/src/model/RecipeAdditionFermentable.cpp b/src/model/RecipeAdditionFermentable.cpp old mode 100755 new mode 100644 index bddc7c4e6..26e5911e7 --- a/src/model/RecipeAdditionFermentable.cpp +++ b/src/model/RecipeAdditionFermentable.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * model/RecipeAdditionFermentable.cpp is part of Brewtarget, and is copyright the following authors 2023-2024: + * model/RecipeAdditionFermentable.cpp is part of Brewtarget, and is copyright the following authors 2023-2025: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -21,6 +21,11 @@ #include "model/Boil.h" #include "model/BoilStep.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdditionFermentable.cpp" +#endif + QString RecipeAdditionFermentable::localisedName() { return tr("Fermentable Addition"); } ObjectStore & RecipeAdditionFermentable::getObjectStoreTypedInstance() const { diff --git a/src/model/RecipeAdditionFermentable.h b/src/model/RecipeAdditionFermentable.h index 4bcae0d2b..3dc3a71f3 100755 --- a/src/model/RecipeAdditionFermentable.h +++ b/src/model/RecipeAdditionFermentable.h @@ -99,8 +99,6 @@ class RecipeAdditionFermentable : public RecipeAddition, }; -Q_DECLARE_METATYPE(Fermentable) -Q_DECLARE_METATYPE(Fermentable *) BT_DECLARE_METATYPES(RecipeAdditionFermentable) #endif diff --git a/src/model/RecipeAdditionHop.cpp b/src/model/RecipeAdditionHop.cpp old mode 100755 new mode 100644 index 5c07b70ca..2dd32d66d --- a/src/model/RecipeAdditionHop.cpp +++ b/src/model/RecipeAdditionHop.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * model/RecipeAdditionHop.cpp is part of Brewtarget, and is copyright the following authors 2023-2024: + * model/RecipeAdditionHop.cpp is part of Brewtarget, and is copyright the following authors 2023-2025: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -21,6 +21,11 @@ #include "model/Boil.h" #include "model/BoilStep.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdditionHop.cpp" +#endif + QString RecipeAdditionHop::localisedName() { return tr("Hop Addition"); } EnumStringMapping const RecipeAdditionHop::useStringMapping { diff --git a/src/model/RecipeAdditionHop.h b/src/model/RecipeAdditionHop.h index 63204fbf9..c7bd12021 100755 --- a/src/model/RecipeAdditionHop.h +++ b/src/model/RecipeAdditionHop.h @@ -140,8 +140,6 @@ class RecipeAdditionHop : public RecipeAddition, }; -Q_DECLARE_METATYPE(Hop) -Q_DECLARE_METATYPE(Hop *) BT_DECLARE_METATYPES(RecipeAdditionHop) #endif diff --git a/src/model/RecipeAdditionMisc.cpp b/src/model/RecipeAdditionMisc.cpp old mode 100755 new mode 100644 index 8b67e3615..6e7c6eb08 --- a/src/model/RecipeAdditionMisc.cpp +++ b/src/model/RecipeAdditionMisc.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * model/RecipeAdditionMisc.cpp is part of Brewtarget, and is copyright the following authors 2023-2024: + * model/RecipeAdditionMisc.cpp is part of Brewtarget, and is copyright the following authors 2023-2025: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -21,6 +21,11 @@ #include "model/Boil.h" #include "model/BoilStep.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdditionMisc.cpp" +#endif + QString RecipeAdditionMisc::localisedName() { return tr("Misc Addition"); } EnumStringMapping const RecipeAdditionMisc::useStringMapping { diff --git a/src/model/RecipeAdditionMisc.h b/src/model/RecipeAdditionMisc.h index d6b9e9c39..0539a1690 100755 --- a/src/model/RecipeAdditionMisc.h +++ b/src/model/RecipeAdditionMisc.h @@ -128,8 +128,6 @@ class RecipeAdditionMisc : public RecipeAddition, }; -Q_DECLARE_METATYPE(Misc) -Q_DECLARE_METATYPE(Misc *) BT_DECLARE_METATYPES(RecipeAdditionMisc) #endif diff --git a/src/model/RecipeAdditionYeast.cpp b/src/model/RecipeAdditionYeast.cpp old mode 100755 new mode 100644 index 6a52c1cd9..0be19047e --- a/src/model/RecipeAdditionYeast.cpp +++ b/src/model/RecipeAdditionYeast.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * model/RecipeAdditionYeast.cpp is part of Brewtarget, and is copyright the following authors 2023-2024: + * model/RecipeAdditionYeast.cpp is part of Brewtarget, and is copyright the following authors 2023-2025: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -19,6 +19,11 @@ #include "database/ObjectStoreWrapper.h" #include "model/NamedParameterBundle.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdditionYeast.cpp" +#endif + QString RecipeAdditionYeast::localisedName() { return tr("Yeast Addition"); } ObjectStore & RecipeAdditionYeast::getObjectStoreTypedInstance() const { diff --git a/src/model/RecipeAdditionYeast.h b/src/model/RecipeAdditionYeast.h index 15341a051..e5731d224 100755 --- a/src/model/RecipeAdditionYeast.h +++ b/src/model/RecipeAdditionYeast.h @@ -116,8 +116,6 @@ class RecipeAdditionYeast : public RecipeAddition, std::optional m_cellCountBillions; }; -Q_DECLARE_METATYPE(Yeast) -Q_DECLARE_METATYPE(Yeast *) BT_DECLARE_METATYPES(RecipeAdditionYeast) #endif diff --git a/src/model/RecipeAdjustmentSalt.cpp b/src/model/RecipeAdjustmentSalt.cpp old mode 100755 new mode 100644 index 2ed4da525..152f3bc15 --- a/src/model/RecipeAdjustmentSalt.cpp +++ b/src/model/RecipeAdjustmentSalt.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * model/RecipeAdjustmentSalt.cpp is part of Brewtarget, and is copyright the following authors 2024: + * model/RecipeAdjustmentSalt.cpp is part of Brewtarget, and is copyright the following authors 2024-2025: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -21,6 +21,11 @@ #include "model/Boil.h" #include "model/BoilStep.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdjustmentSalt.cpp" +#endif + QString RecipeAdjustmentSalt::localisedName() { return tr("Salt Addition"); } EnumStringMapping const RecipeAdjustmentSalt::whenToAddStringMapping { diff --git a/src/model/RecipeAdjustmentSalt.h b/src/model/RecipeAdjustmentSalt.h index 1a7974c93..196d43341 100755 --- a/src/model/RecipeAdjustmentSalt.h +++ b/src/model/RecipeAdjustmentSalt.h @@ -124,10 +124,6 @@ class RecipeAdjustmentSalt : public IngredientInRecipe, WhenToAdd m_whenToAdd; }; -Q_DECLARE_METATYPE(Salt) -// As of Qt6, we get compiler errors if we uncomment the following, but, so far, everything seems to work fine with it -// commented out! -//Q_DECLARE_METATYPE(Salt *) BT_DECLARE_METATYPES(RecipeAdjustmentSalt) #endif diff --git a/src/model/RecipeUseOfWater.cpp b/src/model/RecipeUseOfWater.cpp old mode 100755 new mode 100644 index 6401c2cd2..d3e020f0e --- a/src/model/RecipeUseOfWater.cpp +++ b/src/model/RecipeUseOfWater.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * model/RecipeUseOfWater.cpp is part of Brewtarget, and is copyright the following authors 2024: + * model/RecipeUseOfWater.cpp is part of Brewtarget, and is copyright the following authors 2024-2025: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -17,6 +17,11 @@ #include "model/NamedParameterBundle.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeUseOfWater.cpp" +#endif + QString RecipeUseOfWater::localisedName() { return tr("Recipe Use Of Water"); } ObjectStore & RecipeUseOfWater::getObjectStoreTypedInstance() const { diff --git a/src/model/RecipeUseOfWater.h b/src/model/RecipeUseOfWater.h index 94627e92c..d13c349c4 100755 --- a/src/model/RecipeUseOfWater.h +++ b/src/model/RecipeUseOfWater.h @@ -97,8 +97,6 @@ class RecipeUseOfWater : public IngredientInRecipe, }; -Q_DECLARE_METATYPE(Water) -Q_DECLARE_METATYPE(Water *) BT_DECLARE_METATYPES(RecipeUseOfWater) #endif diff --git a/src/model/Salt.cpp b/src/model/Salt.cpp index d363327cf..b0d1f4991 100644 --- a/src/model/Salt.cpp +++ b/src/model/Salt.cpp @@ -24,6 +24,11 @@ #include "model/Recipe.h" #include "utils/AutoCompare.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Salt.cpp" +#endif + namespace { // Constants used in our mass concentration calculations below double constexpr molarMass_Ca = 40.078 ; // https://en.wikipedia.org/wiki/Calcium diff --git a/src/model/Step.cpp b/src/model/Step.cpp old mode 100755 new mode 100644 index 22519485c..d0ed818f5 --- a/src/model/Step.cpp +++ b/src/model/Step.cpp @@ -19,6 +19,11 @@ #include "PhysicalConstants.h" #include "utils/AutoCompare.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Step.cpp" +#endif + QString Step::localisedName() { return tr("Step"); } bool Step::isEqualTo(NamedEntity const & other) const { diff --git a/src/model/StepExtended.cpp b/src/model/StepExtended.cpp old mode 100755 new mode 100644 index 1c9ef9662..e0a8afb03 --- a/src/model/StepExtended.cpp +++ b/src/model/StepExtended.cpp @@ -19,6 +19,11 @@ #include "PhysicalConstants.h" #include "utils/AutoCompare.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_StepExtended.cpp" +#endif + QString StepExtended::localisedName() { return tr("Extended Step"); } bool StepExtended::isEqualTo(NamedEntity const & other) const { diff --git a/src/model/Style.cpp b/src/model/Style.cpp index 1b300fde0..11815941d 100644 --- a/src/model/Style.cpp +++ b/src/model/Style.cpp @@ -25,6 +25,11 @@ #include "model/Recipe.h" #include "utils/AutoCompare.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Style.cpp" +#endif + QString Style::localisedName() { return tr("Style"); } EnumStringMapping const Style::typeStringMapping { diff --git a/src/model/Water.cpp b/src/model/Water.cpp index 3abae77a2..ccaa01774 100644 --- a/src/model/Water.cpp +++ b/src/model/Water.cpp @@ -23,6 +23,11 @@ #include "model/Recipe.h" #include "utils/AutoCompare.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Water.cpp" +#endif + QString Water::localisedName() { return tr("Water"); } EnumStringMapping const Water::typeStringMapping { diff --git a/src/model/Yeast.cpp b/src/model/Yeast.cpp index 670aea04b..cab715563 100644 --- a/src/model/Yeast.cpp +++ b/src/model/Yeast.cpp @@ -29,6 +29,11 @@ #include "PhysicalConstants.h" #include "utils/AutoCompare.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Yeast.cpp" +#endif + QString Yeast::localisedName() { return tr("Yeast"); } EnumStringMapping const Yeast::typeStringMapping { diff --git a/src/listModels/BoilListModel.cpp b/src/qtModels/listModels/BoilListModel.cpp similarity index 82% rename from src/listModels/BoilListModel.cpp rename to src/qtModels/listModels/BoilListModel.cpp index 9768005a6..3f4ea1f5b 100644 --- a/src/listModels/BoilListModel.cpp +++ b/src/qtModels/listModels/BoilListModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/BoilListModel.cpp is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/listModels/BoilListModel.cpp is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,12 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "listModels/BoilListModel.h" +#include "qtModels/listModels/BoilListModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BoilListModel.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in ListModelBase LIST_MODEL_COMMON_CODE(Boil, PropertyNames::Recipe::boil) diff --git a/src/listModels/BoilListModel.h b/src/qtModels/listModels/BoilListModel.h similarity index 91% rename from src/listModels/BoilListModel.h rename to src/qtModels/listModels/BoilListModel.h index 96bf130ff..d103e9662 100644 --- a/src/listModels/BoilListModel.h +++ b/src/qtModels/listModels/BoilListModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/BoilListModel.h is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/listModels/BoilListModel.h is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -19,7 +19,7 @@ #include -#include "listModels/ListModelBase.h" +#include "qtModels/listModels/ListModelBase.h" #include "model/Boil.h" /*! diff --git a/src/listModels/EquipmentListModel.cpp b/src/qtModels/listModels/EquipmentListModel.cpp old mode 100755 new mode 100644 similarity index 83% rename from src/listModels/EquipmentListModel.cpp rename to src/qtModels/listModels/EquipmentListModel.cpp index 62e7b914d..6d6587073 --- a/src/listModels/EquipmentListModel.cpp +++ b/src/qtModels/listModels/EquipmentListModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/EquipmentListModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2023: + * qtModels/listModels/EquipmentListModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2023: * • Brian Rower * • Matt Young * • Mik Firestone @@ -17,7 +17,12 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "listModels/EquipmentListModel.h" +#include "qtModels/listModels/EquipmentListModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_EquipmentListModel.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in ListModelBase LIST_MODEL_COMMON_CODE(Equipment, PropertyNames::Recipe::equipment) diff --git a/src/listModels/EquipmentListModel.h b/src/qtModels/listModels/EquipmentListModel.h similarity index 91% rename from src/listModels/EquipmentListModel.h rename to src/qtModels/listModels/EquipmentListModel.h index e65c68847..3d1f86044 100755 --- a/src/listModels/EquipmentListModel.h +++ b/src/qtModels/listModels/EquipmentListModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/EquipmentListModel.h is part of Brewtarget, and is copyright the following authors 2009-2023: + * qtModels/listModels/EquipmentListModel.h is part of Brewtarget, and is copyright the following authors 2009-2023: * • Matt Young * • Philip Greggory Lee * @@ -20,7 +20,7 @@ #include -#include "listModels/ListModelBase.h" +#include "qtModels/listModels/ListModelBase.h" #include "model/Equipment.h" /*! diff --git a/src/listModels/FermentableListModel.cpp b/src/qtModels/listModels/FermentableListModel.cpp old mode 100755 new mode 100644 similarity index 81% rename from src/listModels/FermentableListModel.cpp rename to src/qtModels/listModels/FermentableListModel.cpp index 8bcc56f29..888c7bee7 --- a/src/listModels/FermentableListModel.cpp +++ b/src/qtModels/listModels/FermentableListModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/FermentableListModel.cpp is part of Brewtarget, and is copyright the following authors 2023: + * qtModels/listModels/FermentableListModel.cpp is part of Brewtarget, and is copyright the following authors 2023: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,12 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "listModels/FermentableListModel.h" +#include "qtModels/listModels/FermentableListModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_FermentableListModel.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in ListModelBase LIST_MODEL_COMMON_CODE(Fermentable, PropertyNames::Recipe::fermentableAdditions) diff --git a/src/listModels/FermentableListModel.h b/src/qtModels/listModels/FermentableListModel.h similarity index 91% rename from src/listModels/FermentableListModel.h rename to src/qtModels/listModels/FermentableListModel.h index 241a0e749..89c4055aa 100755 --- a/src/listModels/FermentableListModel.h +++ b/src/qtModels/listModels/FermentableListModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/FermentableListModel.h is part of Brewtarget, and is copyright the following authors 2023: + * qtModels/listModels/FermentableListModel.h is part of Brewtarget, and is copyright the following authors 2023: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -19,7 +19,7 @@ #include -#include "listModels/ListModelBase.h" +#include "qtModels/listModels/ListModelBase.h" #include "model/Fermentable.h" /*! diff --git a/src/listModels/FermentationListModel.cpp b/src/qtModels/listModels/FermentationListModel.cpp similarity index 81% rename from src/listModels/FermentationListModel.cpp rename to src/qtModels/listModels/FermentationListModel.cpp index 9805a3218..7c66e5a15 100644 --- a/src/listModels/FermentationListModel.cpp +++ b/src/qtModels/listModels/FermentationListModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/FermentationListModel.cpp is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/listModels/FermentationListModel.cpp is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,12 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "listModels/FermentationListModel.h" +#include "qtModels/listModels/FermentationListModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_FermentationListModel.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in ListModelBase LIST_MODEL_COMMON_CODE(Fermentation, PropertyNames::Recipe::fermentation) diff --git a/src/listModels/FermentationListModel.h b/src/qtModels/listModels/FermentationListModel.h similarity index 91% rename from src/listModels/FermentationListModel.h rename to src/qtModels/listModels/FermentationListModel.h index 6efd6d1a5..09ddbef5d 100644 --- a/src/listModels/FermentationListModel.h +++ b/src/qtModels/listModels/FermentationListModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/FermentationListModel.h is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/listModels/FermentationListModel.h is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -19,7 +19,7 @@ #include -#include "listModels/ListModelBase.h" +#include "qtModels/listModels/ListModelBase.h" #include "model/Fermentation.h" /*! diff --git a/src/listModels/HopListModel.cpp b/src/qtModels/listModels/HopListModel.cpp old mode 100755 new mode 100644 similarity index 82% rename from src/listModels/HopListModel.cpp rename to src/qtModels/listModels/HopListModel.cpp index e471bae00..ceb6bb423 --- a/src/listModels/HopListModel.cpp +++ b/src/qtModels/listModels/HopListModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/HopListModel.cpp is part of Brewtarget, and is copyright the following authors 2023: + * qtModels/listModels/HopListModel.cpp is part of Brewtarget, and is copyright the following authors 2023: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,12 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "listModels/HopListModel.h" +#include "qtModels/listModels/HopListModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_HopListModel.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in ListModelBase LIST_MODEL_COMMON_CODE(Hop, PropertyNames::Recipe::hopAdditions) diff --git a/src/listModels/HopListModel.h b/src/qtModels/listModels/HopListModel.h similarity index 91% rename from src/listModels/HopListModel.h rename to src/qtModels/listModels/HopListModel.h index 0cf9fc3ba..5bd5897e7 100755 --- a/src/listModels/HopListModel.h +++ b/src/qtModels/listModels/HopListModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/HopListModel.h is part of Brewtarget, and is copyright the following authors 2023: + * qtModels/listModels/HopListModel.h is part of Brewtarget, and is copyright the following authors 2023: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -19,7 +19,7 @@ #include -#include "listModels/ListModelBase.h" +#include "qtModels/listModels/ListModelBase.h" #include "model/Hop.h" /*! diff --git a/src/listModels/ListModelBase.h b/src/qtModels/listModels/ListModelBase.h similarity index 99% rename from src/listModels/ListModelBase.h rename to src/qtModels/listModels/ListModelBase.h index 93e585f0c..05b88d681 100755 --- a/src/listModels/ListModelBase.h +++ b/src/qtModels/listModels/ListModelBase.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/ListModelBase.h is part of Brewtarget, and is copyright the following authors 2023-2024: + * qtModels/listModels/ListModelBase.h is part of Brewtarget, and is copyright the following authors 2023-2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License diff --git a/src/listModels/MashListModel.cpp b/src/qtModels/listModels/MashListModel.cpp old mode 100755 new mode 100644 similarity index 83% rename from src/listModels/MashListModel.cpp rename to src/qtModels/listModels/MashListModel.cpp index 031fd9ce3..935177f03 --- a/src/listModels/MashListModel.cpp +++ b/src/qtModels/listModels/MashListModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/MashListModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2023: + * qtModels/listModels/MashListModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2023: * • Brian Rower * • Matt Young * • Mik Firestone @@ -17,7 +17,12 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "listModels/MashListModel.h" +#include "qtModels/listModels/MashListModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_MashListModel.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in ListModelBase LIST_MODEL_COMMON_CODE(Mash, PropertyNames::Recipe::mash) diff --git a/src/listModels/MashListModel.h b/src/qtModels/listModels/MashListModel.h similarity index 92% rename from src/listModels/MashListModel.h rename to src/qtModels/listModels/MashListModel.h index 0350e9055..020e8d5f6 100755 --- a/src/listModels/MashListModel.h +++ b/src/qtModels/listModels/MashListModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/MashListModel.h is part of Brewtarget, and is copyright the following authors 2009-2023: + * qtModels/listModels/MashListModel.h is part of Brewtarget, and is copyright the following authors 2009-2023: * • Matt Young * • Mik Firestone * • Philip Greggory Lee @@ -21,7 +21,7 @@ #include -#include "listModels/ListModelBase.h" +#include "qtModels/listModels/ListModelBase.h" #include "model/Mash.h" /*! diff --git a/src/listModels/MashStepListModel.cpp b/src/qtModels/listModels/MashStepListModel.cpp old mode 100755 new mode 100644 similarity index 81% rename from src/listModels/MashStepListModel.cpp rename to src/qtModels/listModels/MashStepListModel.cpp index de18c832e..410ed95bd --- a/src/listModels/MashStepListModel.cpp +++ b/src/qtModels/listModels/MashStepListModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/MashStepListModel.cpp is part of Brewtarget, and is copyright the following authors 2023: + * qtModels/listModels/MashStepListModel.cpp is part of Brewtarget, and is copyright the following authors 2023: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,12 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "listModels/MashStepListModel.h" +#include "qtModels/listModels/MashStepListModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_MashStepListModel.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in ListModelBase LIST_MODEL_COMMON_CODE(MashStep, PropertyNames::Recipe::mash) diff --git a/src/listModels/MashStepListModel.h b/src/qtModels/listModels/MashStepListModel.h similarity index 91% rename from src/listModels/MashStepListModel.h rename to src/qtModels/listModels/MashStepListModel.h index 19e3ac338..bc4f48875 100755 --- a/src/listModels/MashStepListModel.h +++ b/src/qtModels/listModels/MashStepListModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/MashStepListModel.h is part of Brewtarget, and is copyright the following authors 2023: + * qtModels/listModels/MashStepListModel.h is part of Brewtarget, and is copyright the following authors 2023: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -19,7 +19,7 @@ #include -#include "listModels/ListModelBase.h" +#include "qtModels/listModels/ListModelBase.h" #include "model/MashStep.h" /*! diff --git a/src/listModels/MiscListModel.cpp b/src/qtModels/listModels/MiscListModel.cpp old mode 100755 new mode 100644 similarity index 82% rename from src/listModels/MiscListModel.cpp rename to src/qtModels/listModels/MiscListModel.cpp index 018ef3984..6e13c8a7a --- a/src/listModels/MiscListModel.cpp +++ b/src/qtModels/listModels/MiscListModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/MiscListModel.cpp is part of Brewtarget, and is copyright the following authors 2023-2024: + * qtModels/listModels/MiscListModel.cpp is part of Brewtarget, and is copyright the following authors 2023-2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,12 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "listModels/MiscListModel.h" +#include "qtModels/listModels/MiscListModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_MiscListModel.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in ListModelBase LIST_MODEL_COMMON_CODE(Misc, PropertyNames::Recipe::miscAdditions) diff --git a/src/listModels/MiscListModel.h b/src/qtModels/listModels/MiscListModel.h similarity index 91% rename from src/listModels/MiscListModel.h rename to src/qtModels/listModels/MiscListModel.h index 89fb9767f..7795bca83 100755 --- a/src/listModels/MiscListModel.h +++ b/src/qtModels/listModels/MiscListModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/MiscListModel.h is part of Brewtarget, and is copyright the following authors 2023: + * qtModels/listModels/MiscListModel.h is part of Brewtarget, and is copyright the following authors 2023: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -19,7 +19,7 @@ #include -#include "listModels/ListModelBase.h" +#include "qtModels/listModels/ListModelBase.h" #include "model/Misc.h" /*! diff --git a/src/listModels/RecipeAdditionFermentableListModel.cpp b/src/qtModels/listModels/RecipeAdditionFermentableListModel.cpp old mode 100755 new mode 100644 similarity index 79% rename from src/listModels/RecipeAdditionFermentableListModel.cpp rename to src/qtModels/listModels/RecipeAdditionFermentableListModel.cpp index fea84279d..d37fbce11 --- a/src/listModels/RecipeAdditionFermentableListModel.cpp +++ b/src/qtModels/listModels/RecipeAdditionFermentableListModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/RecipeAdditionFermentableListModel.cpp is part of Brewtarget, and is copyright the following authors 2023: + * qtModels/listModels/RecipeAdditionFermentableListModel.cpp is part of Brewtarget, and is copyright the following authors 2023: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,12 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "listModels/RecipeAdditionFermentableListModel.h" +#include "qtModels/listModels/RecipeAdditionFermentableListModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdditionFermentableListModel.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in ListModelBase LIST_MODEL_COMMON_CODE(RecipeAdditionFermentable, PropertyNames::Recipe::fermentableAdditions) diff --git a/src/listModels/RecipeAdditionFermentableListModel.h b/src/qtModels/listModels/RecipeAdditionFermentableListModel.h similarity index 91% rename from src/listModels/RecipeAdditionFermentableListModel.h rename to src/qtModels/listModels/RecipeAdditionFermentableListModel.h index f2fa4f5fd..78cb93af0 100755 --- a/src/listModels/RecipeAdditionFermentableListModel.h +++ b/src/qtModels/listModels/RecipeAdditionFermentableListModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/RecipeAdditionFermentableListModel.h is part of Brewtarget, and is copyright the following authors 2023: + * qtModels/listModels/RecipeAdditionFermentableListModel.h is part of Brewtarget, and is copyright the following authors 2023: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -19,7 +19,7 @@ #include -#include "listModels/ListModelBase.h" +#include "qtModels/listModels/ListModelBase.h" #include "model/RecipeAdditionFermentable.h" /*! diff --git a/src/listModels/RecipeAdditionHopListModel.cpp b/src/qtModels/listModels/RecipeAdditionHopListModel.cpp old mode 100755 new mode 100644 similarity index 80% rename from src/listModels/RecipeAdditionHopListModel.cpp rename to src/qtModels/listModels/RecipeAdditionHopListModel.cpp index e92b0171f..2d4d4a037 --- a/src/listModels/RecipeAdditionHopListModel.cpp +++ b/src/qtModels/listModels/RecipeAdditionHopListModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/RecipeAdditionHopListModel.cpp is part of Brewtarget, and is copyright the following authors 2023: + * qtModels/listModels/RecipeAdditionHopListModel.cpp is part of Brewtarget, and is copyright the following authors 2023: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,12 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "listModels/RecipeAdditionHopListModel.h" +#include "qtModels/listModels/RecipeAdditionHopListModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdditionHopListModel.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in ListModelBase LIST_MODEL_COMMON_CODE(RecipeAdditionHop, PropertyNames::Recipe::hopAdditions) diff --git a/src/listModels/RecipeAdditionHopListModel.h b/src/qtModels/listModels/RecipeAdditionHopListModel.h similarity index 91% rename from src/listModels/RecipeAdditionHopListModel.h rename to src/qtModels/listModels/RecipeAdditionHopListModel.h index 5e778dc2b..e8c49f4c1 100755 --- a/src/listModels/RecipeAdditionHopListModel.h +++ b/src/qtModels/listModels/RecipeAdditionHopListModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/RecipeAdditionHopListModel.h is part of Brewtarget, and is copyright the following authors 2023: + * qtModels/listModels/RecipeAdditionHopListModel.h is part of Brewtarget, and is copyright the following authors 2023: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -19,7 +19,7 @@ #include -#include "listModels/ListModelBase.h" +#include "qtModels/listModels/ListModelBase.h" #include "model/RecipeAdditionHop.h" /*! diff --git a/src/listModels/RecipeAdditionMiscListModel.cpp b/src/qtModels/listModels/RecipeAdditionMiscListModel.cpp old mode 100755 new mode 100644 similarity index 80% rename from src/listModels/RecipeAdditionMiscListModel.cpp rename to src/qtModels/listModels/RecipeAdditionMiscListModel.cpp index 73230fa5c..cef69d02d --- a/src/listModels/RecipeAdditionMiscListModel.cpp +++ b/src/qtModels/listModels/RecipeAdditionMiscListModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/RecipeAdditionMiscListModel.cpp is part of Brewtarget, and is copyright the following authors 2023-2024: + * qtModels/listModels/RecipeAdditionMiscListModel.cpp is part of Brewtarget, and is copyright the following authors 2023-2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,12 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "listModels/RecipeAdditionMiscListModel.h" +#include "qtModels/listModels/RecipeAdditionMiscListModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdditionMiscListModel.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in ListModelBase LIST_MODEL_COMMON_CODE(RecipeAdditionMisc, PropertyNames::Recipe::miscAdditions) diff --git a/src/listModels/RecipeAdditionMiscListModel.h b/src/qtModels/listModels/RecipeAdditionMiscListModel.h similarity index 91% rename from src/listModels/RecipeAdditionMiscListModel.h rename to src/qtModels/listModels/RecipeAdditionMiscListModel.h index 98b642b26..dde1ea755 100755 --- a/src/listModels/RecipeAdditionMiscListModel.h +++ b/src/qtModels/listModels/RecipeAdditionMiscListModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/RecipeAdditionMiscListModel.h is part of Brewtarget, and is copyright the following authors 2023-2024: + * qtModels/listModels/RecipeAdditionMiscListModel.h is part of Brewtarget, and is copyright the following authors 2023-2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -19,7 +19,7 @@ #include -#include "listModels/ListModelBase.h" +#include "qtModels/listModels/ListModelBase.h" #include "model/RecipeAdditionMisc.h" /*! diff --git a/src/listModels/RecipeAdditionYeastListModel.cpp b/src/qtModels/listModels/RecipeAdditionYeastListModel.cpp old mode 100755 new mode 100644 similarity index 80% rename from src/listModels/RecipeAdditionYeastListModel.cpp rename to src/qtModels/listModels/RecipeAdditionYeastListModel.cpp index 046c85fec..b0db9ac20 --- a/src/listModels/RecipeAdditionYeastListModel.cpp +++ b/src/qtModels/listModels/RecipeAdditionYeastListModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/RecipeAdditionYeastListModel.cpp is part of Brewtarget, and is copyright the following authors 2023-2024: + * qtModels/listModels/RecipeAdditionYeastListModel.cpp is part of Brewtarget, and is copyright the following authors 2023-2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,12 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "listModels/RecipeAdditionYeastListModel.h" +#include "qtModels/listModels/RecipeAdditionYeastListModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdditionYeastListModel.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in ListModelBase LIST_MODEL_COMMON_CODE(RecipeAdditionYeast, PropertyNames::Recipe::yeastAdditions) diff --git a/src/listModels/RecipeAdditionYeastListModel.h b/src/qtModels/listModels/RecipeAdditionYeastListModel.h similarity index 91% rename from src/listModels/RecipeAdditionYeastListModel.h rename to src/qtModels/listModels/RecipeAdditionYeastListModel.h index dcfb88f22..8870c29ad 100755 --- a/src/listModels/RecipeAdditionYeastListModel.h +++ b/src/qtModels/listModels/RecipeAdditionYeastListModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/RecipeAdditionYeastListModel.h is part of Brewtarget, and is copyright the following authors 2023-2024: + * qtModels/listModels/RecipeAdditionYeastListModel.h is part of Brewtarget, and is copyright the following authors 2023-2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -19,7 +19,7 @@ #include -#include "listModels/ListModelBase.h" +#include "qtModels/listModels/ListModelBase.h" #include "model/RecipeAdditionYeast.h" /*! diff --git a/src/listModels/RecipeAdjustmentSaltListModel.cpp b/src/qtModels/listModels/RecipeAdjustmentSaltListModel.cpp old mode 100755 new mode 100644 similarity index 80% rename from src/listModels/RecipeAdjustmentSaltListModel.cpp rename to src/qtModels/listModels/RecipeAdjustmentSaltListModel.cpp index 45bbe827a..ff4de6ae8 --- a/src/listModels/RecipeAdjustmentSaltListModel.cpp +++ b/src/qtModels/listModels/RecipeAdjustmentSaltListModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/RecipeAdjustmentSaltListModel.cpp is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/listModels/RecipeAdjustmentSaltListModel.cpp is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,12 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "listModels/RecipeAdjustmentSaltListModel.h" +#include "qtModels/listModels/RecipeAdjustmentSaltListModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdjustmentSaltListModel.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in ListModelBase LIST_MODEL_COMMON_CODE(RecipeAdjustmentSalt, PropertyNames::Recipe::saltAdjustments) diff --git a/src/listModels/RecipeAdjustmentSaltListModel.h b/src/qtModels/listModels/RecipeAdjustmentSaltListModel.h similarity index 91% rename from src/listModels/RecipeAdjustmentSaltListModel.h rename to src/qtModels/listModels/RecipeAdjustmentSaltListModel.h index e0a49629b..fa234d091 100755 --- a/src/listModels/RecipeAdjustmentSaltListModel.h +++ b/src/qtModels/listModels/RecipeAdjustmentSaltListModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/RecipeAdjustmentSaltListModel.h is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/listModels/RecipeAdjustmentSaltListModel.h is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -19,7 +19,7 @@ #include -#include "listModels/ListModelBase.h" +#include "qtModels/listModels/ListModelBase.h" #include "model/RecipeAdjustmentSalt.h" /*! diff --git a/src/listModels/SaltListModel.cpp b/src/qtModels/listModels/SaltListModel.cpp old mode 100755 new mode 100644 similarity index 82% rename from src/listModels/SaltListModel.cpp rename to src/qtModels/listModels/SaltListModel.cpp index c917b1f22..b26bead34 --- a/src/listModels/SaltListModel.cpp +++ b/src/qtModels/listModels/SaltListModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/SaltListModel.cpp is part of Brewtarget, and is copyright the following authors 2023-2024: + * qtModels/listModels/SaltListModel.cpp is part of Brewtarget, and is copyright the following authors 2023-2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,12 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "listModels/SaltListModel.h" +#include "qtModels/listModels/SaltListModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_SaltListModel.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in ListModelBase LIST_MODEL_COMMON_CODE(Salt, PropertyNames::Recipe::saltAdjustments) diff --git a/src/listModels/SaltListModel.h b/src/qtModels/listModels/SaltListModel.h similarity index 91% rename from src/listModels/SaltListModel.h rename to src/qtModels/listModels/SaltListModel.h index 4bd2deb31..21326142b 100755 --- a/src/listModels/SaltListModel.h +++ b/src/qtModels/listModels/SaltListModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/SaltListModel.h is part of Brewtarget, and is copyright the following authors 2023: + * qtModels/listModels/SaltListModel.h is part of Brewtarget, and is copyright the following authors 2023: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -19,7 +19,7 @@ #include -#include "listModels/ListModelBase.h" +#include "qtModels/listModels/ListModelBase.h" #include "model/Salt.h" /*! diff --git a/src/listModels/StyleListModel.cpp b/src/qtModels/listModels/StyleListModel.cpp old mode 100755 new mode 100644 similarity index 83% rename from src/listModels/StyleListModel.cpp rename to src/qtModels/listModels/StyleListModel.cpp index f8b2f6c25..b01b494a4 --- a/src/listModels/StyleListModel.cpp +++ b/src/qtModels/listModels/StyleListModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/StyleListModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2023: + * qtModels/listModels/StyleListModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2023: * • Brian Rower * • Matt Young * • Mik Firestone @@ -17,7 +17,12 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "listModels/StyleListModel.h" +#include "qtModels/listModels/StyleListModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_StyleListModel.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in ListModelBase LIST_MODEL_COMMON_CODE(Style, PropertyNames::Recipe::style) diff --git a/src/listModels/StyleListModel.h b/src/qtModels/listModels/StyleListModel.h similarity index 91% rename from src/listModels/StyleListModel.h rename to src/qtModels/listModels/StyleListModel.h index a4539574a..69492f482 100755 --- a/src/listModels/StyleListModel.h +++ b/src/qtModels/listModels/StyleListModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/StyleListModel.h is part of Brewtarget, and is copyright the following authors 2009-2023: + * qtModels/listModels/StyleListModel.h is part of Brewtarget, and is copyright the following authors 2009-2023: * • Matt Young * • Philip Greggory Lee * @@ -20,7 +20,7 @@ #include -#include "listModels/ListModelBase.h" +#include "qtModels/listModels/ListModelBase.h" #include "model/Style.h" /*! diff --git a/src/listModels/WaterListModel.cpp b/src/qtModels/listModels/WaterListModel.cpp old mode 100755 new mode 100644 similarity index 82% rename from src/listModels/WaterListModel.cpp rename to src/qtModels/listModels/WaterListModel.cpp index d681e12fa..817b81934 --- a/src/listModels/WaterListModel.cpp +++ b/src/qtModels/listModels/WaterListModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/WaterListModel.cpp is part of Brewtarget, and is copyright the following authors 2020-2024: + * qtModels/listModels/WaterListModel.cpp is part of Brewtarget, and is copyright the following authors 2020-2024: * • Matt Young * • Mik Firestone * @@ -14,7 +14,12 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "listModels/WaterListModel.h" +#include "qtModels/listModels/WaterListModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_WaterListModel.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in ListModelBase LIST_MODEL_COMMON_CODE(Water, PropertyNames::Recipe::waterUses) diff --git a/src/listModels/WaterListModel.h b/src/qtModels/listModels/WaterListModel.h similarity index 92% rename from src/listModels/WaterListModel.h rename to src/qtModels/listModels/WaterListModel.h index 2d06649e7..acc4f37f6 100755 --- a/src/listModels/WaterListModel.h +++ b/src/qtModels/listModels/WaterListModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/WaterListModel.h is part of Brewtarget, and is copyright the following authors 2009-2023: + * qtModels/listModels/WaterListModel.h is part of Brewtarget, and is copyright the following authors 2009-2023: * • Matt Young * • Mik Firestone * • Philip Greggory Lee @@ -21,7 +21,7 @@ #include -#include "listModels/ListModelBase.h" +#include "qtModels/listModels/ListModelBase.h" #include "model/Water.h" /*! diff --git a/src/listModels/YeastListModel.cpp b/src/qtModels/listModels/YeastListModel.cpp old mode 100755 new mode 100644 similarity index 81% rename from src/listModels/YeastListModel.cpp rename to src/qtModels/listModels/YeastListModel.cpp index ffabf4855..07da5a3cc --- a/src/listModels/YeastListModel.cpp +++ b/src/qtModels/listModels/YeastListModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/YeastListModel.cpp is part of Brewtarget, and is copyright the following authors 2023-2024: + * qtModels/listModels/YeastListModel.cpp is part of Brewtarget, and is copyright the following authors 2023-2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,12 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "listModels/YeastListModel.h" +#include "qtModels/listModels/YeastListModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_YeastListModel.cpp" +#endif // Insert the boiler-plate stuff that we cannot do in ListModelBase LIST_MODEL_COMMON_CODE(Yeast, PropertyNames::Recipe::yeastAdditions) diff --git a/src/listModels/YeastListModel.h b/src/qtModels/listModels/YeastListModel.h similarity index 91% rename from src/listModels/YeastListModel.h rename to src/qtModels/listModels/YeastListModel.h index 7631d039f..b90052198 100755 --- a/src/listModels/YeastListModel.h +++ b/src/qtModels/listModels/YeastListModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * listModels/YeastListModel.h is part of Brewtarget, and is copyright the following authors 2023: + * qtModels/listModels/YeastListModel.h is part of Brewtarget, and is copyright the following authors 2023: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -19,7 +19,7 @@ #include -#include "listModels/ListModelBase.h" +#include "qtModels/listModels/ListModelBase.h" #include "model/Yeast.h" /*! diff --git a/src/sortFilterProxyModels/BoilSortFilterProxyModel.cpp b/src/qtModels/sortFilterProxyModels/BoilSortFilterProxyModel.cpp similarity index 86% rename from src/sortFilterProxyModels/BoilSortFilterProxyModel.cpp rename to src/qtModels/sortFilterProxyModels/BoilSortFilterProxyModel.cpp index 61f20f73e..922124f58 100644 --- a/src/sortFilterProxyModels/BoilSortFilterProxyModel.cpp +++ b/src/qtModels/sortFilterProxyModels/BoilSortFilterProxyModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/BoilSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/sortFilterProxyModels/BoilSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,11 +13,16 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "sortFilterProxyModels/BoilSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/BoilSortFilterProxyModel.h" #include "measurement/Measurement.h" #include "measurement/PhysicalQuantity.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BoilSortFilterProxyModel.cpp" +#endif + bool BoilSortFilterProxyModel::isLessThan(BoilTableModel::ColumnIndex const columnIndex, QVariant const & leftItem, QVariant const & rightItem) const { diff --git a/src/sortFilterProxyModels/BoilSortFilterProxyModel.h b/src/qtModels/sortFilterProxyModels/BoilSortFilterProxyModel.h similarity index 87% rename from src/sortFilterProxyModels/BoilSortFilterProxyModel.h rename to src/qtModels/sortFilterProxyModels/BoilSortFilterProxyModel.h index c2c9332b4..8b15e912a 100644 --- a/src/sortFilterProxyModels/BoilSortFilterProxyModel.h +++ b/src/qtModels/sortFilterProxyModels/BoilSortFilterProxyModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/BoilSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/sortFilterProxyModels/BoilSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -19,9 +19,9 @@ #include -#include "sortFilterProxyModels/SortFilterProxyModelBase.h" -#include "tableModels/BoilTableModel.h" -#include "listModels/BoilListModel.h" +#include "qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h" +#include "qtModels/tableModels/BoilTableModel.h" +#include "qtModels/listModels/BoilListModel.h" /*! * \class BoilSortFilterProxyModel diff --git a/src/sortFilterProxyModels/EquipmentSortFilterProxyModel.cpp b/src/qtModels/sortFilterProxyModels/EquipmentSortFilterProxyModel.cpp old mode 100755 new mode 100644 similarity index 86% rename from src/sortFilterProxyModels/EquipmentSortFilterProxyModel.cpp rename to src/qtModels/sortFilterProxyModels/EquipmentSortFilterProxyModel.cpp index 49d088883..d2730034a --- a/src/sortFilterProxyModels/EquipmentSortFilterProxyModel.cpp +++ b/src/qtModels/sortFilterProxyModels/EquipmentSortFilterProxyModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/EquipmentSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors + * qtModels/sortFilterProxyModels/EquipmentSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors * 2023: * • Matt Young * @@ -14,11 +14,16 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "sortFilterProxyModels/EquipmentSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/EquipmentSortFilterProxyModel.h" #include "measurement/Measurement.h" #include "measurement/PhysicalQuantity.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_EquipmentSortFilterProxyModel.cpp" +#endif + bool EquipmentSortFilterProxyModel::isLessThan(EquipmentTableModel::ColumnIndex const columnIndex, QVariant const & leftItem, QVariant const & rightItem) const { diff --git a/src/sortFilterProxyModels/EquipmentSortFilterProxyModel.h b/src/qtModels/sortFilterProxyModels/EquipmentSortFilterProxyModel.h similarity index 87% rename from src/sortFilterProxyModels/EquipmentSortFilterProxyModel.h rename to src/qtModels/sortFilterProxyModels/EquipmentSortFilterProxyModel.h index 7867e7c99..b6c109a5a 100755 --- a/src/sortFilterProxyModels/EquipmentSortFilterProxyModel.h +++ b/src/qtModels/sortFilterProxyModels/EquipmentSortFilterProxyModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/EquipmentSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors + * qtModels/sortFilterProxyModels/EquipmentSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors * 2023: * • Matt Young * @@ -20,9 +20,9 @@ #include -#include "sortFilterProxyModels/SortFilterProxyModelBase.h" -#include "tableModels/EquipmentTableModel.h" -#include "listModels/EquipmentListModel.h" +#include "qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h" +#include "qtModels/tableModels/EquipmentTableModel.h" +#include "qtModels/listModels/EquipmentListModel.h" /*! * \class EquipmentSortFilterProxyModel diff --git a/src/sortFilterProxyModels/FermentableSortFilterProxyModel.cpp b/src/qtModels/sortFilterProxyModels/FermentableSortFilterProxyModel.cpp old mode 100755 new mode 100644 similarity index 89% rename from src/sortFilterProxyModels/FermentableSortFilterProxyModel.cpp rename to src/qtModels/sortFilterProxyModels/FermentableSortFilterProxyModel.cpp index 9bfe5e7bc..8c01ea75f --- a/src/sortFilterProxyModels/FermentableSortFilterProxyModel.cpp +++ b/src/qtModels/sortFilterProxyModels/FermentableSortFilterProxyModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/FermentableSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors + * qtModels/sortFilterProxyModels/FermentableSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors * 2009-2023: * • Daniel Pettersson * • Jamie Daws @@ -20,11 +20,16 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "sortFilterProxyModels/FermentableSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/FermentableSortFilterProxyModel.h" #include "measurement/Measurement.h" #include "measurement/PhysicalQuantity.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_FermentableSortFilterProxyModel.cpp" +#endif + bool FermentableSortFilterProxyModel::isLessThan(FermentableTableModel::ColumnIndex const columnIndex, QVariant const & leftItem, QVariant const & rightItem) const { diff --git a/src/sortFilterProxyModels/FermentableSortFilterProxyModel.h b/src/qtModels/sortFilterProxyModels/FermentableSortFilterProxyModel.h similarity index 87% rename from src/sortFilterProxyModels/FermentableSortFilterProxyModel.h rename to src/qtModels/sortFilterProxyModels/FermentableSortFilterProxyModel.h index 0104879da..f5c246442 100755 --- a/src/sortFilterProxyModels/FermentableSortFilterProxyModel.h +++ b/src/qtModels/sortFilterProxyModels/FermentableSortFilterProxyModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/FermentableSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors + * qtModels/sortFilterProxyModels/FermentableSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors * 2009-2023: * • Matt Young * • Mik Firestone @@ -23,9 +23,9 @@ #include -#include "sortFilterProxyModels/SortFilterProxyModelBase.h" -#include "tableModels/FermentableTableModel.h" -#include "listModels/FermentableListModel.h" +#include "qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h" +#include "qtModels/tableModels/FermentableTableModel.h" +#include "qtModels/listModels/FermentableListModel.h" /*! * \class FermentableSortFilterProxyModel diff --git a/src/sortFilterProxyModels/FermentationSortFilterProxyModel.cpp b/src/qtModels/sortFilterProxyModels/FermentationSortFilterProxyModel.cpp similarity index 85% rename from src/sortFilterProxyModels/FermentationSortFilterProxyModel.cpp rename to src/qtModels/sortFilterProxyModels/FermentationSortFilterProxyModel.cpp index 0486ed921..b680910b6 100644 --- a/src/sortFilterProxyModels/FermentationSortFilterProxyModel.cpp +++ b/src/qtModels/sortFilterProxyModels/FermentationSortFilterProxyModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/FermentationSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors + * qtModels/sortFilterProxyModels/FermentationSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors * 2024: * • Matt Young * @@ -14,11 +14,16 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "sortFilterProxyModels/FermentationSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/FermentationSortFilterProxyModel.h" #include "measurement/Measurement.h" #include "measurement/PhysicalQuantity.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_FermentationSortFilterProxyModel.cpp" +#endif + bool FermentationSortFilterProxyModel::isLessThan(FermentationTableModel::ColumnIndex const columnIndex, QVariant const & leftItem, QVariant const & rightItem) const { diff --git a/src/sortFilterProxyModels/FermentationSortFilterProxyModel.h b/src/qtModels/sortFilterProxyModels/FermentationSortFilterProxyModel.h similarity index 86% rename from src/sortFilterProxyModels/FermentationSortFilterProxyModel.h rename to src/qtModels/sortFilterProxyModels/FermentationSortFilterProxyModel.h index 2ca1dca21..b814c9fc9 100644 --- a/src/sortFilterProxyModels/FermentationSortFilterProxyModel.h +++ b/src/qtModels/sortFilterProxyModels/FermentationSortFilterProxyModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/FermentationSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/sortFilterProxyModels/FermentationSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -19,9 +19,9 @@ #include -#include "sortFilterProxyModels/SortFilterProxyModelBase.h" -#include "tableModels/FermentationTableModel.h" -#include "listModels/FermentationListModel.h" +#include "qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h" +#include "qtModels/tableModels/FermentationTableModel.h" +#include "qtModels/listModels/FermentationListModel.h" /*! * \class FermentationSortFilterProxyModel diff --git a/src/sortFilterProxyModels/HopSortFilterProxyModel.cpp b/src/qtModels/sortFilterProxyModels/HopSortFilterProxyModel.cpp old mode 100755 new mode 100644 similarity index 88% rename from src/sortFilterProxyModels/HopSortFilterProxyModel.cpp rename to src/qtModels/sortFilterProxyModels/HopSortFilterProxyModel.cpp index 90529b6ea..5736afa1b --- a/src/sortFilterProxyModels/HopSortFilterProxyModel.cpp +++ b/src/qtModels/sortFilterProxyModels/HopSortFilterProxyModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/HopSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors + * qtModels/sortFilterProxyModels/HopSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors * 2009-2023: * • Daniel Pettersson * • Mattias Måhl @@ -19,11 +19,16 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "sortFilterProxyModels/HopSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/HopSortFilterProxyModel.h" #include "measurement/Measurement.h" #include "measurement/PhysicalQuantity.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_HopSortFilterProxyModel.cpp" +#endif + bool HopSortFilterProxyModel::isLessThan(HopTableModel::ColumnIndex const columnIndex, QVariant const & leftItem, QVariant const & rightItem) const { diff --git a/src/sortFilterProxyModels/HopSortFilterProxyModel.h b/src/qtModels/sortFilterProxyModels/HopSortFilterProxyModel.h similarity index 87% rename from src/sortFilterProxyModels/HopSortFilterProxyModel.h rename to src/qtModels/sortFilterProxyModels/HopSortFilterProxyModel.h index 3aa2ef883..d1cea835d 100755 --- a/src/sortFilterProxyModels/HopSortFilterProxyModel.h +++ b/src/qtModels/sortFilterProxyModels/HopSortFilterProxyModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/HopSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors 2009-2023: + * qtModels/sortFilterProxyModels/HopSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors 2009-2023: * • Matt Young * • Mik Firestone * • Philip Greggory Lee @@ -21,9 +21,9 @@ #include -#include "sortFilterProxyModels/SortFilterProxyModelBase.h" -#include "tableModels/HopTableModel.h" -#include "listModels/HopListModel.h" +#include "qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h" +#include "qtModels/tableModels/HopTableModel.h" +#include "qtModels/listModels/HopListModel.h" /*! * \class HopSortFilterProxyModel diff --git a/src/sortFilterProxyModels/MashSortFilterProxyModel.cpp b/src/qtModels/sortFilterProxyModels/MashSortFilterProxyModel.cpp similarity index 88% rename from src/sortFilterProxyModels/MashSortFilterProxyModel.cpp rename to src/qtModels/sortFilterProxyModels/MashSortFilterProxyModel.cpp index cdf83c5c4..25e5d68bf 100644 --- a/src/sortFilterProxyModels/MashSortFilterProxyModel.cpp +++ b/src/qtModels/sortFilterProxyModels/MashSortFilterProxyModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/MashSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/sortFilterProxyModels/MashSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,11 +13,16 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "sortFilterProxyModels/MashSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/MashSortFilterProxyModel.h" #include "measurement/Measurement.h" #include "measurement/PhysicalQuantity.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_MashSortFilterProxyModel.cpp" +#endif + bool MashSortFilterProxyModel::isLessThan(MashTableModel::ColumnIndex const columnIndex, QVariant const & leftItem, QVariant const & rightItem) const { diff --git a/src/sortFilterProxyModels/MashSortFilterProxyModel.h b/src/qtModels/sortFilterProxyModels/MashSortFilterProxyModel.h similarity index 87% rename from src/sortFilterProxyModels/MashSortFilterProxyModel.h rename to src/qtModels/sortFilterProxyModels/MashSortFilterProxyModel.h index 63b0291fe..53b464cf4 100644 --- a/src/sortFilterProxyModels/MashSortFilterProxyModel.h +++ b/src/qtModels/sortFilterProxyModels/MashSortFilterProxyModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/MashSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/sortFilterProxyModels/MashSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -19,9 +19,9 @@ #include -#include "sortFilterProxyModels/SortFilterProxyModelBase.h" -#include "tableModels/MashTableModel.h" -#include "listModels/MashListModel.h" +#include "qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h" +#include "qtModels/tableModels/MashTableModel.h" +#include "qtModels/listModels/MashListModel.h" /*! * \class MashSortFilterProxyModel diff --git a/src/sortFilterProxyModels/MiscSortFilterProxyModel.cpp b/src/qtModels/sortFilterProxyModels/MiscSortFilterProxyModel.cpp old mode 100755 new mode 100644 similarity index 89% rename from src/sortFilterProxyModels/MiscSortFilterProxyModel.cpp rename to src/qtModels/sortFilterProxyModels/MiscSortFilterProxyModel.cpp index b678dc644..7105e5bce --- a/src/sortFilterProxyModels/MiscSortFilterProxyModel.cpp +++ b/src/qtModels/sortFilterProxyModels/MiscSortFilterProxyModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/MiscSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors + * qtModels/sortFilterProxyModels/MiscSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors * 2009-2024: * • Daniel Pettersson * • Matt Young @@ -18,11 +18,16 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "sortFilterProxyModels/MiscSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/MiscSortFilterProxyModel.h" #include "measurement/Measurement.h" #include "measurement/PhysicalQuantity.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_MiscSortFilterProxyModel.cpp" +#endif + bool MiscSortFilterProxyModel::isLessThan(MiscTableModel::ColumnIndex const columnIndex, QVariant const & leftItem, QVariant const & rightItem) const { diff --git a/src/sortFilterProxyModels/MiscSortFilterProxyModel.h b/src/qtModels/sortFilterProxyModels/MiscSortFilterProxyModel.h similarity index 88% rename from src/sortFilterProxyModels/MiscSortFilterProxyModel.h rename to src/qtModels/sortFilterProxyModels/MiscSortFilterProxyModel.h index 47622108d..b2a24321d 100755 --- a/src/sortFilterProxyModels/MiscSortFilterProxyModel.h +++ b/src/qtModels/sortFilterProxyModels/MiscSortFilterProxyModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/MiscSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors + * qtModels/sortFilterProxyModels/MiscSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors * 2009-2023: * • Matt Young * • Mik Firestone @@ -22,9 +22,9 @@ #include -#include "sortFilterProxyModels/SortFilterProxyModelBase.h" -#include "tableModels/MiscTableModel.h" -#include "listModels/MiscListModel.h" +#include "qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h" +#include "qtModels/tableModels/MiscTableModel.h" +#include "qtModels/listModels/MiscListModel.h" /*! * \class MiscSortFilterProxyModel diff --git a/src/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.cpp b/src/qtModels/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.cpp old mode 100755 new mode 100644 similarity index 89% rename from src/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.cpp rename to src/qtModels/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.cpp index 7db8b19d6..9efeee8a2 --- a/src/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.cpp +++ b/src/qtModels/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following + * qtModels/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following * authors 2009-2023: * • Daniel Pettersson * • Mattias Måhl @@ -19,11 +19,16 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.h" #include "measurement/Measurement.h" #include "measurement/PhysicalQuantity.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdditionFermentableSortFilterProxyModel.cpp" +#endif + bool RecipeAdditionFermentableSortFilterProxyModel::isLessThan(RecipeAdditionFermentableTableModel::ColumnIndex const columnIndex, QVariant const & leftItem, QVariant const & rightItem) const { diff --git a/src/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.h b/src/qtModels/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.h similarity index 86% rename from src/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.h rename to src/qtModels/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.h index 5f77b0445..6fffd0ffc 100755 --- a/src/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.h +++ b/src/qtModels/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.h is part of Brewtarget, and is copyright the following + * qtModels/sortFilterProxyModels/RecipeAdditionFermentableSortFilterProxyModel.h is part of Brewtarget, and is copyright the following * authors 2009-2023: * • Matt Young * @@ -20,9 +20,9 @@ #include -#include "sortFilterProxyModels/SortFilterProxyModelBase.h" -#include "tableModels/RecipeAdditionFermentableTableModel.h" -#include "listModels/RecipeAdditionFermentableListModel.h" +#include "qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h" +#include "qtModels/tableModels/RecipeAdditionFermentableTableModel.h" +#include "qtModels/listModels/RecipeAdditionFermentableListModel.h" /*! * \class RecipeAdditionFermentableSortFilterProxyModel diff --git a/src/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.cpp b/src/qtModels/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.cpp old mode 100755 new mode 100644 similarity index 89% rename from src/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.cpp rename to src/qtModels/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.cpp index 198f6d055..4512f1b46 --- a/src/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.cpp +++ b/src/qtModels/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following + * qtModels/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following * authors 2009-2023: * • Daniel Pettersson * • Mattias Måhl @@ -19,11 +19,16 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.h" #include "measurement/Measurement.h" #include "measurement/PhysicalQuantity.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdditionHopSortFilterProxyModel.cpp" +#endif + bool RecipeAdditionHopSortFilterProxyModel::isLessThan(RecipeAdditionHopTableModel::ColumnIndex const columnIndex, QVariant const & leftItem, QVariant const & rightItem) const { diff --git a/src/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.h b/src/qtModels/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.h similarity index 87% rename from src/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.h rename to src/qtModels/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.h index e2eb69c33..2d860ccf5 100755 --- a/src/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.h +++ b/src/qtModels/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.h is part of Brewtarget, and is copyright the following + * qtModels/sortFilterProxyModels/RecipeAdditionHopSortFilterProxyModel.h is part of Brewtarget, and is copyright the following * authors 2009-2023: * • Matt Young * @@ -20,9 +20,9 @@ #include -#include "sortFilterProxyModels/SortFilterProxyModelBase.h" -#include "tableModels/RecipeAdditionHopTableModel.h" -#include "listModels/RecipeAdditionHopListModel.h" +#include "qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h" +#include "qtModels/tableModels/RecipeAdditionHopTableModel.h" +#include "qtModels/listModels/RecipeAdditionHopListModel.h" /*! * \class RecipeAdditionHopSortFilterProxyModel diff --git a/src/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.cpp b/src/qtModels/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.cpp old mode 100755 new mode 100644 similarity index 88% rename from src/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.cpp rename to src/qtModels/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.cpp index 5ffad009d..b5ea0517d --- a/src/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.cpp +++ b/src/qtModels/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following + * qtModels/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following * authors 2009-2024: * • Daniel Pettersson * • Mattias Måhl @@ -19,11 +19,16 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.h" #include "measurement/Measurement.h" #include "measurement/PhysicalQuantity.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdditionMiscSortFilterProxyModel.cpp" +#endif + bool RecipeAdditionMiscSortFilterProxyModel::isLessThan(RecipeAdditionMiscTableModel::ColumnIndex const columnIndex, QVariant const & leftItem, QVariant const & rightItem) const { diff --git a/src/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.h b/src/qtModels/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.h similarity index 87% rename from src/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.h rename to src/qtModels/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.h index e107be327..e2839eef8 100755 --- a/src/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.h +++ b/src/qtModels/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.h is part of Brewtarget, and is copyright the following + * qtModels/sortFilterProxyModels/RecipeAdditionMiscSortFilterProxyModel.h is part of Brewtarget, and is copyright the following * authors 2009-2024: * • Matt Young * @@ -20,9 +20,9 @@ #include -#include "sortFilterProxyModels/SortFilterProxyModelBase.h" -#include "tableModels/RecipeAdditionMiscTableModel.h" -#include "listModels/RecipeAdditionMiscListModel.h" +#include "qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h" +#include "qtModels/tableModels/RecipeAdditionMiscTableModel.h" +#include "qtModels/listModels/RecipeAdditionMiscListModel.h" /*! * \class RecipeAdditionMiscSortFilterProxyModel diff --git a/src/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.cpp b/src/qtModels/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.cpp old mode 100755 new mode 100644 similarity index 90% rename from src/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.cpp rename to src/qtModels/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.cpp index b85120ba9..9ccb61118 --- a/src/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.cpp +++ b/src/qtModels/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following + * qtModels/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following * authors 2009-2024: * • Daniel Pettersson * • Mattias Måhl @@ -19,11 +19,16 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.h" #include "measurement/Measurement.h" #include "measurement/PhysicalQuantity.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdditionYeastSortFilterProxyModel.cpp" +#endif + bool RecipeAdditionYeastSortFilterProxyModel::isLessThan(RecipeAdditionYeastTableModel::ColumnIndex const columnIndex, QVariant const & leftItem, QVariant const & rightItem) const { diff --git a/src/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.h b/src/qtModels/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.h similarity index 87% rename from src/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.h rename to src/qtModels/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.h index 96f0c9dd2..5c9b8b4a4 100755 --- a/src/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.h +++ b/src/qtModels/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.h is part of Brewtarget, and is copyright the following + * qtModels/sortFilterProxyModels/RecipeAdditionYeastSortFilterProxyModel.h is part of Brewtarget, and is copyright the following * authors 2009-2024: * • Matt Young * @@ -20,9 +20,9 @@ #include -#include "sortFilterProxyModels/SortFilterProxyModelBase.h" -#include "tableModels/RecipeAdditionYeastTableModel.h" -#include "listModels/RecipeAdditionYeastListModel.h" +#include "qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h" +#include "qtModels/tableModels/RecipeAdditionYeastTableModel.h" +#include "qtModels/listModels/RecipeAdditionYeastListModel.h" /*! * \class RecipeAdditionYeastSortFilterProxyModel diff --git a/src/sortFilterProxyModels/SortFilterProxyModelBase.h b/src/qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h similarity index 97% rename from src/sortFilterProxyModels/SortFilterProxyModelBase.h rename to src/qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h index 1e25af3d6..310030ed4 100755 --- a/src/sortFilterProxyModels/SortFilterProxyModelBase.h +++ b/src/qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/SortFilterProxyModelBase.h is part of Brewtarget, and is copyright the following authors + * qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h is part of Brewtarget, and is copyright the following authors * 2023-2024: * • Matt Young * @@ -116,7 +116,7 @@ class SortFilterProxyModelBase : public CuriouslyRecurringTemplateBasedata(right); } - // As per more detailed comment in tableModels/ItemDelegate.h, we need "typename" here only until Apple ship Clang + // As per more detailed comment in qtModels/tableModels/ItemDelegate.h, we need "typename" here only until Apple ship Clang // 16 or later as their standard C++ compiler. auto const columnIndex = static_cast(left.column()); return this->derived().isLessThan(columnIndex, leftItem, rightItem); diff --git a/src/sortFilterProxyModels/StyleSortFilterProxyModel.cpp b/src/qtModels/sortFilterProxyModels/StyleSortFilterProxyModel.cpp old mode 100755 new mode 100644 similarity index 86% rename from src/sortFilterProxyModels/StyleSortFilterProxyModel.cpp rename to src/qtModels/sortFilterProxyModels/StyleSortFilterProxyModel.cpp index dc5c4319b..4e8b7c472 --- a/src/sortFilterProxyModels/StyleSortFilterProxyModel.cpp +++ b/src/qtModels/sortFilterProxyModels/StyleSortFilterProxyModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/StyleSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors + * qtModels/sortFilterProxyModels/StyleSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors * 2009-2023: * • Matt Young * • Philip Greggory Lee @@ -15,11 +15,16 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "sortFilterProxyModels/StyleSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/StyleSortFilterProxyModel.h" #include "measurement/Measurement.h" #include "measurement/PhysicalQuantity.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_StyleSortFilterProxyModel.cpp" +#endif + bool StyleSortFilterProxyModel::isLessThan(StyleTableModel::ColumnIndex const columnIndex, QVariant const & leftItem, QVariant const & rightItem) const { diff --git a/src/sortFilterProxyModels/StyleSortFilterProxyModel.h b/src/qtModels/sortFilterProxyModels/StyleSortFilterProxyModel.h similarity index 88% rename from src/sortFilterProxyModels/StyleSortFilterProxyModel.h rename to src/qtModels/sortFilterProxyModels/StyleSortFilterProxyModel.h index 2b49db6ff..1e484d7fc 100755 --- a/src/sortFilterProxyModels/StyleSortFilterProxyModel.h +++ b/src/qtModels/sortFilterProxyModels/StyleSortFilterProxyModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/StyleSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors + * qtModels/sortFilterProxyModels/StyleSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors * 2009-2023: * • Matt Young * • Mik Firestone @@ -22,9 +22,9 @@ #include -#include "sortFilterProxyModels/SortFilterProxyModelBase.h" -#include "tableModels/StyleTableModel.h" -#include "listModels/StyleListModel.h" +#include "qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h" +#include "qtModels/tableModels/StyleTableModel.h" +#include "qtModels/listModels/StyleListModel.h" /*! * \class StyleSortFilterProxyModel diff --git a/src/sortFilterProxyModels/WaterSortFilterProxyModel.cpp b/src/qtModels/sortFilterProxyModels/WaterSortFilterProxyModel.cpp old mode 100755 new mode 100644 similarity index 88% rename from src/sortFilterProxyModels/WaterSortFilterProxyModel.cpp rename to src/qtModels/sortFilterProxyModels/WaterSortFilterProxyModel.cpp index b717e5147..28a6382a8 --- a/src/sortFilterProxyModels/WaterSortFilterProxyModel.cpp +++ b/src/qtModels/sortFilterProxyModels/WaterSortFilterProxyModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/WaterSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors + * qtModels/sortFilterProxyModels/WaterSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors * 2009-2024: * • Matt Young * • Mik Firestone @@ -15,13 +15,18 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "sortFilterProxyModels/WaterSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/WaterSortFilterProxyModel.h" #include #include "measurement/Measurement.h" #include "measurement/PhysicalQuantity.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_WaterSortFilterProxyModel.cpp" +#endif + bool WaterSortFilterProxyModel::isLessThan(WaterTableModel::ColumnIndex const columnIndex, QVariant const & leftItem, QVariant const & rightItem) const { diff --git a/src/sortFilterProxyModels/WaterSortFilterProxyModel.h b/src/qtModels/sortFilterProxyModels/WaterSortFilterProxyModel.h similarity index 88% rename from src/sortFilterProxyModels/WaterSortFilterProxyModel.h rename to src/qtModels/sortFilterProxyModels/WaterSortFilterProxyModel.h index c4b6e831f..97845a3ba 100755 --- a/src/sortFilterProxyModels/WaterSortFilterProxyModel.h +++ b/src/qtModels/sortFilterProxyModels/WaterSortFilterProxyModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/WaterSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors + * qtModels/sortFilterProxyModels/WaterSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors * 2009-2023: * • Matt Young * • Mik Firestone @@ -22,9 +22,9 @@ #include -#include "sortFilterProxyModels/SortFilterProxyModelBase.h" -#include "tableModels/WaterTableModel.h" -#include "listModels/WaterListModel.h" +#include "qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h" +#include "qtModels/tableModels/WaterTableModel.h" +#include "qtModels/listModels/WaterListModel.h" /*! * \class WaterSortFilterProxyModel diff --git a/src/sortFilterProxyModels/YeastSortFilterProxyModel.cpp b/src/qtModels/sortFilterProxyModels/YeastSortFilterProxyModel.cpp old mode 100755 new mode 100644 similarity index 88% rename from src/sortFilterProxyModels/YeastSortFilterProxyModel.cpp rename to src/qtModels/sortFilterProxyModels/YeastSortFilterProxyModel.cpp index 6516d1f0e..7af419b1c --- a/src/sortFilterProxyModels/YeastSortFilterProxyModel.cpp +++ b/src/qtModels/sortFilterProxyModels/YeastSortFilterProxyModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/YeastSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors + * qtModels/sortFilterProxyModels/YeastSortFilterProxyModel.cpp is part of Brewtarget, and is copyright the following authors * 2009-2024: * • Daniel Pettersson * • Matt Young @@ -18,11 +18,16 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "sortFilterProxyModels/YeastSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/YeastSortFilterProxyModel.h" #include "measurement/Measurement.h" #include "measurement/PhysicalQuantity.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_YeastSortFilterProxyModel.cpp" +#endif + bool YeastSortFilterProxyModel::isLessThan(YeastTableModel::ColumnIndex const columnIndex, QVariant const & leftItem, QVariant const & rightItem) const { diff --git a/src/sortFilterProxyModels/YeastSortFilterProxyModel.h b/src/qtModels/sortFilterProxyModels/YeastSortFilterProxyModel.h similarity index 88% rename from src/sortFilterProxyModels/YeastSortFilterProxyModel.h rename to src/qtModels/sortFilterProxyModels/YeastSortFilterProxyModel.h index 4f264ee52..6b47503ba 100755 --- a/src/sortFilterProxyModels/YeastSortFilterProxyModel.h +++ b/src/qtModels/sortFilterProxyModels/YeastSortFilterProxyModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * sortFilterProxyModels/YeastSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors + * qtModels/sortFilterProxyModels/YeastSortFilterProxyModel.h is part of Brewtarget, and is copyright the following authors * 2009-2023: * • Matt Young * • Mik Firestone @@ -22,9 +22,9 @@ #include -#include "sortFilterProxyModels/SortFilterProxyModelBase.h" -#include "tableModels/YeastTableModel.h" -#include "listModels/YeastListModel.h" +#include "qtModels/sortFilterProxyModels/SortFilterProxyModelBase.h" +#include "qtModels/tableModels/YeastTableModel.h" +#include "qtModels/listModels/YeastListModel.h" /*! * \class YeastSortFilterProxyModel diff --git a/src/tableModels/BoilStepTableModel.cpp b/src/qtModels/tableModels/BoilStepTableModel.cpp old mode 100755 new mode 100644 similarity index 93% rename from src/tableModels/BoilStepTableModel.cpp rename to src/qtModels/tableModels/BoilStepTableModel.cpp index d65d4e806..38661687b --- a/src/tableModels/BoilStepTableModel.cpp +++ b/src/qtModels/tableModels/BoilStepTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/BoilStepTableModel.cpp is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/tableModels/BoilStepTableModel.cpp is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/BoilStepTableModel.h" +#include "qtModels/tableModels/BoilStepTableModel.h" #include #include @@ -22,7 +22,12 @@ #include #include "model/BoilStep.h" -#include "tableModels/BtTableModel.h" +#include "qtModels/tableModels/BtTableModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BoilStepTableModel.cpp" +#endif BoilStepTableModel::BoilStepTableModel(QTableView * parent, bool editable) : BtTableModel{ diff --git a/src/tableModels/BoilStepTableModel.h b/src/qtModels/tableModels/BoilStepTableModel.h similarity index 90% rename from src/tableModels/BoilStepTableModel.h rename to src/qtModels/tableModels/BoilStepTableModel.h index 5ff874b9f..647fe2a14 100755 --- a/src/tableModels/BoilStepTableModel.h +++ b/src/qtModels/tableModels/BoilStepTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/BoilStepTableModel.h is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/tableModels/BoilStepTableModel.h is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -20,10 +20,10 @@ #include #include "model/BoilStep.h" -#include "tableModels/BtTableModel.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/StepTableModelBase.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/BtTableModel.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/StepTableModelBase.h" +#include "qtModels/tableModels/TableModelBase.h" TABLE_MODEL_TRAITS(BoilStep, Name , StepTime , diff --git a/src/tableModels/BoilTableModel.cpp b/src/qtModels/tableModels/BoilTableModel.cpp similarity index 90% rename from src/tableModels/BoilTableModel.cpp rename to src/qtModels/tableModels/BoilTableModel.cpp index 1fd90646a..93953e8db 100644 --- a/src/tableModels/BoilTableModel.cpp +++ b/src/qtModels/tableModels/BoilTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/BoilTableModel.cpp is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/tableModels/BoilTableModel.cpp is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/BoilTableModel.h" +#include "qtModels/tableModels/BoilTableModel.h" #include #include @@ -23,6 +23,11 @@ #include "model/Boil.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BoilTableModel.cpp" +#endif + BoilTableModel::BoilTableModel(QTableView * parent, bool editable) : BtTableModel{ parent, diff --git a/src/tableModels/BoilTableModel.h b/src/qtModels/tableModels/BoilTableModel.h similarity index 91% rename from src/tableModels/BoilTableModel.h rename to src/qtModels/tableModels/BoilTableModel.h index 794a35cf9..9a52d6b02 100644 --- a/src/tableModels/BoilTableModel.h +++ b/src/qtModels/tableModels/BoilTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/BoilTableModel.h is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/tableModels/BoilTableModel.h is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -20,8 +20,8 @@ #include #include "model/Boil.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/TableModelBase.h" TABLE_MODEL_TRAITS(Boil, Name, PreBoilSize) diff --git a/src/tableModels/BtTableModel.cpp b/src/qtModels/tableModels/BtTableModel.cpp similarity index 96% rename from src/tableModels/BtTableModel.cpp rename to src/qtModels/tableModels/BtTableModel.cpp index 0add739a4..d40ab9cc3 100644 --- a/src/tableModels/BtTableModel.cpp +++ b/src/qtModels/tableModels/BtTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/BtTableModel.cpp is part of Brewtarget, and is copyright the following authors 2021-2024: + * qtModels/tableModels/BtTableModel.cpp is part of Brewtarget, and is copyright the following authors 2021-2024: * • Matt Young * • Mik Firestone * @@ -14,7 +14,7 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/BtTableModel.h" +#include "qtModels/tableModels/BtTableModel.h" #include #include @@ -28,6 +28,11 @@ #include "widgets/SmartAmounts.h" #include "widgets/UnitAndScalePopUpMenu.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BtTableModel.cpp" +#endif + BtTableModelRecipeObserver::BtTableModelRecipeObserver(QTableView * parent, bool editable, std::initializer_list columnInfos) : diff --git a/src/tableModels/BtTableModel.h b/src/qtModels/tableModels/BtTableModel.h similarity index 99% rename from src/tableModels/BtTableModel.h rename to src/qtModels/tableModels/BtTableModel.h index 406e2a097..420e665b0 100644 --- a/src/tableModels/BtTableModel.h +++ b/src/qtModels/tableModels/BtTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/BtTableModel.h is part of Brewtarget, and is copyright the following authors 2021-2023: + * qtModels/tableModels/BtTableModel.h is part of Brewtarget, and is copyright the following authors 2021-2023: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License diff --git a/src/tableModels/EquipmentTableModel.cpp b/src/qtModels/tableModels/EquipmentTableModel.cpp old mode 100755 new mode 100644 similarity index 90% rename from src/tableModels/EquipmentTableModel.cpp rename to src/qtModels/tableModels/EquipmentTableModel.cpp index 1e89f0e05..8b904a7e8 --- a/src/tableModels/EquipmentTableModel.cpp +++ b/src/qtModels/tableModels/EquipmentTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/EquipmentTableModel.cpp is part of Brewtarget, and is copyright the following authors 2023-2024: + * qtModels/tableModels/EquipmentTableModel.cpp is part of Brewtarget, and is copyright the following authors 2023-2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,13 +13,18 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/EquipmentTableModel.h" +#include "qtModels/tableModels/EquipmentTableModel.h" #include #include #include #include +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_EquipmentTableModel.cpp" +#endif + EquipmentTableModel::EquipmentTableModel(QTableView* parent, bool editable) : BtTableModel{ parent, diff --git a/src/tableModels/EquipmentTableModel.h b/src/qtModels/tableModels/EquipmentTableModel.h similarity index 92% rename from src/tableModels/EquipmentTableModel.h rename to src/qtModels/tableModels/EquipmentTableModel.h index 2a5b18def..c801ccb4f 100755 --- a/src/tableModels/EquipmentTableModel.h +++ b/src/qtModels/tableModels/EquipmentTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/EquipmentTableModel.h is part of Brewtarget, and is copyright the following authors 2023: + * qtModels/tableModels/EquipmentTableModel.h is part of Brewtarget, and is copyright the following authors 2023: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -24,8 +24,8 @@ #include #include "model/Equipment.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/TableModelBase.h" class BtStringConst; class Recipe; diff --git a/src/tableModels/FermentableTableModel.cpp b/src/qtModels/tableModels/FermentableTableModel.cpp similarity index 93% rename from src/tableModels/FermentableTableModel.cpp rename to src/qtModels/tableModels/FermentableTableModel.cpp index ebd2e1c8f..7e671fa08 100644 --- a/src/tableModels/FermentableTableModel.cpp +++ b/src/qtModels/tableModels/FermentableTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/FermentableTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/FermentableTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2024: * • Brian Rower * • Daniel Pettersson * • Mattias Måhl @@ -21,7 +21,7 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/FermentableTableModel.h" +#include "qtModels/tableModels/FermentableTableModel.h" #include @@ -39,10 +39,15 @@ #include "measurement/Unit.h" #include "model/Inventory.h" #include "model/Recipe.h" -#include "tableModels/ItemDelegate.h" +#include "qtModels/tableModels/ItemDelegate.h" #include "utils/BtStringConst.h" #include "widgets/BtComboBoxEnum.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_FermentableTableModel.cpp" +#endif + //=====================CLASS FermentableTableModel============================== FermentableTableModel::FermentableTableModel(QTableView* parent, bool editable) : BtTableModel{ diff --git a/src/tableModels/FermentableTableModel.h b/src/qtModels/tableModels/FermentableTableModel.h similarity index 93% rename from src/tableModels/FermentableTableModel.h rename to src/qtModels/tableModels/FermentableTableModel.h index 2fb0f32af..47811f0b3 100644 --- a/src/tableModels/FermentableTableModel.h +++ b/src/qtModels/tableModels/FermentableTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/FermentableTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/FermentableTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: * • Jeff Bailey * • Matt Young * • Mik Firestone @@ -34,8 +34,8 @@ #include "measurement/Unit.h" #include "model/Fermentable.h" #include "model/InventoryFermentable.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/TableModelBase.h" // Forward declarations. class BtStringConst; diff --git a/src/tableModels/FermentationStepTableModel.cpp b/src/qtModels/tableModels/FermentationStepTableModel.cpp old mode 100755 new mode 100644 similarity index 95% rename from src/tableModels/FermentationStepTableModel.cpp rename to src/qtModels/tableModels/FermentationStepTableModel.cpp index ee96ae1a9..f8735ac79 --- a/src/tableModels/FermentationStepTableModel.cpp +++ b/src/qtModels/tableModels/FermentationStepTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/FermentationStepTableModel.cpp is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/tableModels/FermentationStepTableModel.cpp is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/FermentationStepTableModel.h" +#include "qtModels/tableModels/FermentationStepTableModel.h" #include #include @@ -34,6 +34,11 @@ #include "model/FermentationStep.h" #include "PersistentSettings.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_FermentationStepTableModel.cpp" +#endif + FermentationStepTableModel::FermentationStepTableModel(QTableView * parent, bool editable) : BtTableModel{ parent, diff --git a/src/tableModels/FermentationStepTableModel.h b/src/qtModels/tableModels/FermentationStepTableModel.h similarity index 91% rename from src/tableModels/FermentationStepTableModel.h rename to src/qtModels/tableModels/FermentationStepTableModel.h index 43c7ab94d..2e39f15c1 100755 --- a/src/tableModels/FermentationStepTableModel.h +++ b/src/qtModels/tableModels/FermentationStepTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/FermentationStepTableModel.h is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/tableModels/FermentationStepTableModel.h is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -28,10 +28,10 @@ #include "measurement/Unit.h" #include "model/FermentationStep.h" #include "model/Fermentation.h" -#include "tableModels/BtTableModel.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/StepTableModelBase.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/BtTableModel.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/StepTableModelBase.h" +#include "qtModels/tableModels/TableModelBase.h" // You have to get the order of everything right with traits classes, but the end result is that we can refer to // HopTableModel::ColumnIndex::Alpha etc. diff --git a/src/tableModels/FermentationTableModel.cpp b/src/qtModels/tableModels/FermentationTableModel.cpp similarity index 90% rename from src/tableModels/FermentationTableModel.cpp rename to src/qtModels/tableModels/FermentationTableModel.cpp index 241a9f492..042e08300 100644 --- a/src/tableModels/FermentationTableModel.cpp +++ b/src/qtModels/tableModels/FermentationTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/FermentationTableModel.cpp is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/tableModels/FermentationTableModel.cpp is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/FermentationTableModel.h" +#include "qtModels/tableModels/FermentationTableModel.h" #include #include @@ -23,6 +23,11 @@ #include "model/Fermentation.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_FermentationTableModel.cpp" +#endif + FermentationTableModel::FermentationTableModel(QTableView * parent, bool editable) : BtTableModel{ parent, diff --git a/src/tableModels/FermentationTableModel.h b/src/qtModels/tableModels/FermentationTableModel.h similarity index 89% rename from src/tableModels/FermentationTableModel.h rename to src/qtModels/tableModels/FermentationTableModel.h index fddd58491..711c64278 100644 --- a/src/tableModels/FermentationTableModel.h +++ b/src/qtModels/tableModels/FermentationTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/FermentationTableModel.h is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/tableModels/FermentationTableModel.h is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -20,9 +20,9 @@ #include #include "model/Fermentation.h" -#include "tableModels/BtTableModel.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/BtTableModel.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/TableModelBase.h" TABLE_MODEL_TRAITS(Fermentation, Name, NumSteps) diff --git a/src/tableModels/HopTableModel.cpp b/src/qtModels/tableModels/HopTableModel.cpp similarity index 93% rename from src/tableModels/HopTableModel.cpp rename to src/qtModels/tableModels/HopTableModel.cpp index d18876930..91e50d8f8 100644 --- a/src/tableModels/HopTableModel.cpp +++ b/src/qtModels/tableModels/HopTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/HopTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2023: + * qtModels/tableModels/HopTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2023: * • Brian Rower * • Daniel Pettersson * • Luke Vincent @@ -23,13 +23,18 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/HopTableModel.h" +#include "qtModels/tableModels/HopTableModel.h" #include #include #include #include +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_HopTableModel.cpp" +#endif + HopTableModel::HopTableModel(QTableView * parent, bool editable) : BtTableModel{ parent, diff --git a/src/tableModels/HopTableModel.h b/src/qtModels/tableModels/HopTableModel.h similarity index 93% rename from src/tableModels/HopTableModel.h rename to src/qtModels/tableModels/HopTableModel.h index ac3fcf478..e4a75110b 100644 --- a/src/tableModels/HopTableModel.h +++ b/src/qtModels/tableModels/HopTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/HopTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/HopTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: * • Jeff Bailey * • Matt Young * • Markus Mårtensson @@ -30,8 +30,8 @@ #include "model/Hop.h" #include "model/InventoryHop.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/TableModelBase.h" class BtStringConst; class Recipe; diff --git a/src/tableModels/ItemDelegate.h b/src/qtModels/tableModels/ItemDelegate.h similarity index 99% rename from src/tableModels/ItemDelegate.h rename to src/qtModels/tableModels/ItemDelegate.h index fb34b4d8b..4374262e5 100755 --- a/src/tableModels/ItemDelegate.h +++ b/src/qtModels/tableModels/ItemDelegate.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/ItemDelegate.h is part of Brewtarget, and is copyright the following authors 2023-2024: + * qtModels/tableModels/ItemDelegate.h is part of Brewtarget, and is copyright the following authors 2023-2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -23,7 +23,7 @@ #include "utils/NoCopy.h" #include "widgets/BtComboBoxBool.h" #include "widgets/BtComboBoxEnum.h" -#include "tableModels/BtTableModel.h" +#include "qtModels/tableModels/BtTableModel.h" namespace { /** diff --git a/src/tableModels/MashStepTableModel.cpp b/src/qtModels/tableModels/MashStepTableModel.cpp similarity index 93% rename from src/tableModels/MashStepTableModel.cpp rename to src/qtModels/tableModels/MashStepTableModel.cpp index d88c9fe4b..484087610 100644 --- a/src/tableModels/MashStepTableModel.cpp +++ b/src/qtModels/tableModels/MashStepTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/MashStepTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/MashStepTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2024: * • Brian Rower * • Mattias Måhl * • Matt Young @@ -19,7 +19,7 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/MashStepTableModel.h" +#include "qtModels/tableModels/MashStepTableModel.h" #include #include @@ -28,7 +28,12 @@ #include #include "model/MashStep.h" -#include "tableModels/BtTableModel.h" +#include "qtModels/tableModels/BtTableModel.h" + +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_MashStepTableModel.cpp" +#endif MashStepTableModel::MashStepTableModel(QTableView * parent, bool editable) : BtTableModel{ diff --git a/src/tableModels/MashStepTableModel.h b/src/qtModels/tableModels/MashStepTableModel.h similarity index 90% rename from src/tableModels/MashStepTableModel.h rename to src/qtModels/tableModels/MashStepTableModel.h index 640438837..54fb0d7da 100644 --- a/src/tableModels/MashStepTableModel.h +++ b/src/qtModels/tableModels/MashStepTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/MashStepTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/MashStepTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: * • Jeff Bailey * • Matt Young * • Mik Firestone @@ -24,10 +24,10 @@ #include "model/MashStep.h" #include "model/Mash.h" -#include "tableModels/BtTableModel.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/StepTableModelBase.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/BtTableModel.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/StepTableModelBase.h" +#include "qtModels/tableModels/TableModelBase.h" // You have to get the order of everything right with traits classes, but the end result is that we can refer to // HopTableModel::ColumnIndex::Alpha etc. diff --git a/src/tableModels/MashTableModel.cpp b/src/qtModels/tableModels/MashTableModel.cpp similarity index 91% rename from src/tableModels/MashTableModel.cpp rename to src/qtModels/tableModels/MashTableModel.cpp index 27b003377..94b185954 100644 --- a/src/tableModels/MashTableModel.cpp +++ b/src/qtModels/tableModels/MashTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/MashTableModel.cpp is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/tableModels/MashTableModel.cpp is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/MashTableModel.h" +#include "qtModels/tableModels/MashTableModel.h" #include #include @@ -23,6 +23,11 @@ #include "model/Mash.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_MashTableModel.cpp" +#endif + MashTableModel::MashTableModel(QTableView * parent, bool editable) : BtTableModel{ parent, diff --git a/src/tableModels/MashTableModel.h b/src/qtModels/tableModels/MashTableModel.h similarity index 89% rename from src/tableModels/MashTableModel.h rename to src/qtModels/tableModels/MashTableModel.h index df91b3dd8..227e6a3bb 100644 --- a/src/tableModels/MashTableModel.h +++ b/src/qtModels/tableModels/MashTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/MashTableModel.h is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/tableModels/MashTableModel.h is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -20,9 +20,9 @@ #include #include "model/Mash.h" -#include "tableModels/BtTableModel.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/BtTableModel.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/TableModelBase.h" TABLE_MODEL_TRAITS(Mash, Name, InitialGrainTemp, diff --git a/src/tableModels/MiscTableModel.cpp b/src/qtModels/tableModels/MiscTableModel.cpp similarity index 92% rename from src/tableModels/MiscTableModel.cpp rename to src/qtModels/tableModels/MiscTableModel.cpp index c38aca4f6..f1dc4b693 100644 --- a/src/tableModels/MiscTableModel.cpp +++ b/src/qtModels/tableModels/MiscTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/MiscTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/MiscTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2024: * • Brian Rower * • Daniel Pettersson * • Mattias Måhl @@ -21,13 +21,18 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/MiscTableModel.h" +#include "qtModels/tableModels/MiscTableModel.h" #include #include #include #include +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_MiscTableModel.cpp" +#endif + MiscTableModel::MiscTableModel(QTableView* parent, bool editable) : BtTableModel{ parent, diff --git a/src/tableModels/MiscTableModel.h b/src/qtModels/tableModels/MiscTableModel.h similarity index 93% rename from src/tableModels/MiscTableModel.h rename to src/qtModels/tableModels/MiscTableModel.h index 7b38f2a48..4d9be3629 100644 --- a/src/tableModels/MiscTableModel.h +++ b/src/qtModels/tableModels/MiscTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/MiscTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/MiscTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: * • Jeff Bailey * • Matt Young * • Mik Firestone @@ -29,8 +29,8 @@ #include "model/InventoryMisc.h" #include "model/Misc.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/TableModelBase.h" class BtStringConst; class Recipe; diff --git a/src/tableModels/RecipeAdditionFermentableTableModel.cpp b/src/qtModels/tableModels/RecipeAdditionFermentableTableModel.cpp old mode 100755 new mode 100644 similarity index 95% rename from src/tableModels/RecipeAdditionFermentableTableModel.cpp rename to src/qtModels/tableModels/RecipeAdditionFermentableTableModel.cpp index 0ef2ed23f..78c1caa62 --- a/src/tableModels/RecipeAdditionFermentableTableModel.cpp +++ b/src/qtModels/tableModels/RecipeAdditionFermentableTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/RecipeAdditionFermentableTableModel.cpp is part of Brewtarget, and is copyright the following authors + * qtModels/tableModels/RecipeAdditionFermentableTableModel.cpp is part of Brewtarget, and is copyright the following authors * 2009-2024: * • Brian Rower * • Daniel Pettersson @@ -24,7 +24,7 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/RecipeAdditionFermentableTableModel.h" +#include "qtModels/tableModels/RecipeAdditionFermentableTableModel.h" #include #include @@ -37,6 +37,11 @@ #include "model/Inventory.h" #include "model/Recipe.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdditionFermentableTableModel.cpp" +#endif + RecipeAdditionFermentableTableModel::RecipeAdditionFermentableTableModel(QTableView * parent, bool editable) : BtTableModelRecipeObserver{ parent, diff --git a/src/tableModels/RecipeAdditionFermentableTableModel.h b/src/qtModels/tableModels/RecipeAdditionFermentableTableModel.h similarity index 93% rename from src/tableModels/RecipeAdditionFermentableTableModel.h rename to src/qtModels/tableModels/RecipeAdditionFermentableTableModel.h index f346f9ae2..c7e0d1640 100755 --- a/src/tableModels/RecipeAdditionFermentableTableModel.h +++ b/src/qtModels/tableModels/RecipeAdditionFermentableTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/RecipeAdditionFermentableTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2023: + * qtModels/tableModels/RecipeAdditionFermentableTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2023: * • Jeff Bailey * • Matt Young * • Markus Mårtensson @@ -29,9 +29,9 @@ #include #include "model/RecipeAdditionFermentable.h" -#include "tableModels/BtTableModel.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/BtTableModel.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/TableModelBase.h" class BtStringConst; class Recipe; diff --git a/src/tableModels/RecipeAdditionHopTableModel.cpp b/src/qtModels/tableModels/RecipeAdditionHopTableModel.cpp old mode 100755 new mode 100644 similarity index 95% rename from src/tableModels/RecipeAdditionHopTableModel.cpp rename to src/qtModels/tableModels/RecipeAdditionHopTableModel.cpp index 99213b436..bb27e7754 --- a/src/tableModels/RecipeAdditionHopTableModel.cpp +++ b/src/qtModels/tableModels/RecipeAdditionHopTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/RecipeAdditionHopTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/RecipeAdditionHopTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2024: * • Brian Rower * • Daniel Pettersson * • Luke Vincent @@ -23,7 +23,7 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/RecipeAdditionHopTableModel.h" +#include "qtModels/tableModels/RecipeAdditionHopTableModel.h" #include #include @@ -36,6 +36,11 @@ #include "model/Inventory.h" #include "model/Recipe.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdditionHopTableModel.cpp" +#endif + RecipeAdditionHopTableModel::RecipeAdditionHopTableModel(QTableView * parent, bool editable) : BtTableModelRecipeObserver{ parent, diff --git a/src/tableModels/RecipeAdditionHopTableModel.h b/src/qtModels/tableModels/RecipeAdditionHopTableModel.h similarity index 93% rename from src/tableModels/RecipeAdditionHopTableModel.h rename to src/qtModels/tableModels/RecipeAdditionHopTableModel.h index 10d354fe0..ff741eaba 100755 --- a/src/tableModels/RecipeAdditionHopTableModel.h +++ b/src/qtModels/tableModels/RecipeAdditionHopTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/RecipeAdditionHopTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2023: + * qtModels/tableModels/RecipeAdditionHopTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2023: * • Jeff Bailey * • Matt Young * • Markus Mårtensson @@ -29,9 +29,9 @@ #include #include "model/RecipeAdditionHop.h" -#include "tableModels/BtTableModel.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/BtTableModel.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/TableModelBase.h" class BtStringConst; class Recipe; diff --git a/src/tableModels/RecipeAdditionMiscTableModel.cpp b/src/qtModels/tableModels/RecipeAdditionMiscTableModel.cpp old mode 100755 new mode 100644 similarity index 94% rename from src/tableModels/RecipeAdditionMiscTableModel.cpp rename to src/qtModels/tableModels/RecipeAdditionMiscTableModel.cpp index 21690f4de..abda939ac --- a/src/tableModels/RecipeAdditionMiscTableModel.cpp +++ b/src/qtModels/tableModels/RecipeAdditionMiscTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/RecipeAdditionMiscTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/RecipeAdditionMiscTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2024: * • Brian Rower * • Daniel Pettersson * • Luke Vincent @@ -23,7 +23,7 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/RecipeAdditionMiscTableModel.h" +#include "qtModels/tableModels/RecipeAdditionMiscTableModel.h" #include #include @@ -36,6 +36,11 @@ #include "model/Inventory.h" #include "model/Recipe.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdditionMiscTableModel.cpp" +#endif + RecipeAdditionMiscTableModel::RecipeAdditionMiscTableModel(QTableView * parent, bool editable) : BtTableModelRecipeObserver{ parent, diff --git a/src/tableModels/RecipeAdditionMiscTableModel.h b/src/qtModels/tableModels/RecipeAdditionMiscTableModel.h similarity index 93% rename from src/tableModels/RecipeAdditionMiscTableModel.h rename to src/qtModels/tableModels/RecipeAdditionMiscTableModel.h index 8340e9b92..69e9e53d5 100755 --- a/src/tableModels/RecipeAdditionMiscTableModel.h +++ b/src/qtModels/tableModels/RecipeAdditionMiscTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/RecipeAdditionMiscTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/RecipeAdditionMiscTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: * • Jeff Bailey * • Matt Young * • Markus Mårtensson @@ -29,9 +29,9 @@ #include #include "model/RecipeAdditionMisc.h" -#include "tableModels/BtTableModel.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/BtTableModel.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/TableModelBase.h" class BtStringConst; class Recipe; diff --git a/src/tableModels/RecipeAdditionYeastTableModel.cpp b/src/qtModels/tableModels/RecipeAdditionYeastTableModel.cpp old mode 100755 new mode 100644 similarity index 95% rename from src/tableModels/RecipeAdditionYeastTableModel.cpp rename to src/qtModels/tableModels/RecipeAdditionYeastTableModel.cpp index e5e85e1e6..1cd0125d0 --- a/src/tableModels/RecipeAdditionYeastTableModel.cpp +++ b/src/qtModels/tableModels/RecipeAdditionYeastTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/RecipeAdditionYeastTableModel.cpp is part of Brewtarget, and is copyright the following authors + * qtModels/tableModels/RecipeAdditionYeastTableModel.cpp is part of Brewtarget, and is copyright the following authors * 2009-2024: * • Brian Rower * • Daniel Pettersson @@ -24,7 +24,7 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/RecipeAdditionYeastTableModel.h" +#include "qtModels/tableModels/RecipeAdditionYeastTableModel.h" #include #include @@ -37,6 +37,11 @@ #include "model/Inventory.h" #include "model/Recipe.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdditionYeastTableModel.cpp" +#endif + RecipeAdditionYeastTableModel::RecipeAdditionYeastTableModel(QTableView * parent, bool editable) : BtTableModelRecipeObserver{ parent, diff --git a/src/tableModels/RecipeAdditionYeastTableModel.h b/src/qtModels/tableModels/RecipeAdditionYeastTableModel.h similarity index 92% rename from src/tableModels/RecipeAdditionYeastTableModel.h rename to src/qtModels/tableModels/RecipeAdditionYeastTableModel.h index 31ce583e1..fab383c6b 100755 --- a/src/tableModels/RecipeAdditionYeastTableModel.h +++ b/src/qtModels/tableModels/RecipeAdditionYeastTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/RecipeAdditionYeastTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/RecipeAdditionYeastTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: * • Jeff Bailey * • Matt Young * • Markus Mårtensson @@ -29,9 +29,9 @@ #include #include "model/RecipeAdditionYeast.h" -#include "tableModels/BtTableModel.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/BtTableModel.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/TableModelBase.h" class BtStringConst; class Recipe; diff --git a/src/tableModels/RecipeAdjustmentSaltTableModel.cpp b/src/qtModels/tableModels/RecipeAdjustmentSaltTableModel.cpp old mode 100755 new mode 100644 similarity index 97% rename from src/tableModels/RecipeAdjustmentSaltTableModel.cpp rename to src/qtModels/tableModels/RecipeAdjustmentSaltTableModel.cpp index 03bb8e441..0870b028a --- a/src/tableModels/RecipeAdjustmentSaltTableModel.cpp +++ b/src/qtModels/tableModels/RecipeAdjustmentSaltTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/RecipeAdjustmentSaltTableModel.cpp is part of Brewtarget, and is copyright the following authors + * qtModels/tableModels/RecipeAdjustmentSaltTableModel.cpp is part of Brewtarget, and is copyright the following authors * 2009-2024: * • Mattias Måhl * • Matt Young @@ -18,7 +18,7 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/RecipeAdjustmentSaltTableModel.h" +#include "qtModels/tableModels/RecipeAdjustmentSaltTableModel.h" #include #include @@ -32,6 +32,11 @@ #include "model/Mash.h" #include "model/Recipe.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_RecipeAdjustmentSaltTableModel.cpp" +#endif + RecipeAdjustmentSaltTableModel::RecipeAdjustmentSaltTableModel(QTableView* parent, bool editable) : BtTableModelRecipeObserver{ parent, diff --git a/src/tableModels/RecipeAdjustmentSaltTableModel.h b/src/qtModels/tableModels/RecipeAdjustmentSaltTableModel.h similarity index 93% rename from src/tableModels/RecipeAdjustmentSaltTableModel.h rename to src/qtModels/tableModels/RecipeAdjustmentSaltTableModel.h index 9f30697bc..f2bf1cc29 100755 --- a/src/tableModels/RecipeAdjustmentSaltTableModel.h +++ b/src/qtModels/tableModels/RecipeAdjustmentSaltTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/RecipeAdjustmentSaltTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/RecipeAdjustmentSaltTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: * • Jeff Bailey * • Matt Young * • Mik Firestone @@ -31,9 +31,9 @@ #include "measurement/Unit.h" #include "model/RecipeAdjustmentSalt.h" #include "model/Water.h" -#include "tableModels/BtTableModel.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/BtTableModel.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/TableModelBase.h" // Forward declarations. class Mash; diff --git a/src/tableModels/SaltTableModel.cpp b/src/qtModels/tableModels/SaltTableModel.cpp similarity index 94% rename from src/tableModels/SaltTableModel.cpp rename to src/qtModels/tableModels/SaltTableModel.cpp index 2e3b90366..073011513 100644 --- a/src/tableModels/SaltTableModel.cpp +++ b/src/qtModels/tableModels/SaltTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/SaltTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/SaltTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2024: * • Mattias Måhl * • Matt Young * • Mik Firestone @@ -17,13 +17,18 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/SaltTableModel.h" +#include "qtModels/tableModels/SaltTableModel.h" #include #include #include #include +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_SaltTableModel.cpp" +#endif + SaltTableModel::SaltTableModel(QTableView* parent, bool editable) : BtTableModel{ parent, diff --git a/src/tableModels/SaltTableModel.h b/src/qtModels/tableModels/SaltTableModel.h similarity index 91% rename from src/tableModels/SaltTableModel.h rename to src/qtModels/tableModels/SaltTableModel.h index ce627ca65..527095766 100644 --- a/src/tableModels/SaltTableModel.h +++ b/src/qtModels/tableModels/SaltTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/SaltTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/SaltTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: * • Jeff Bailey * • Matt Young * • Mik Firestone @@ -32,9 +32,9 @@ #include "model/InventorySalt.h" #include "model/Salt.h" #include "model/Water.h" -#include "tableModels/BtTableModel.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/BtTableModel.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/TableModelBase.h" // Forward declarations. class Mash; diff --git a/src/tableModels/StepTableModelBase.h b/src/qtModels/tableModels/StepTableModelBase.h similarity index 99% rename from src/tableModels/StepTableModelBase.h rename to src/qtModels/tableModels/StepTableModelBase.h index 70f1c53f8..04e89d28e 100755 --- a/src/tableModels/StepTableModelBase.h +++ b/src/qtModels/tableModels/StepTableModelBase.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/StepTableModelBase.h is part of Brewtarget, and is copyright the following authors 2024: + * qtModels/tableModels/StepTableModelBase.h is part of Brewtarget, and is copyright the following authors 2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License diff --git a/src/tableModels/StyleTableModel.cpp b/src/qtModels/tableModels/StyleTableModel.cpp old mode 100755 new mode 100644 similarity index 91% rename from src/tableModels/StyleTableModel.cpp rename to src/qtModels/tableModels/StyleTableModel.cpp index 9829b312d..83a53ebd6 --- a/src/tableModels/StyleTableModel.cpp +++ b/src/qtModels/tableModels/StyleTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/StyleTableModel.cpp is part of Brewtarget, and is copyright the following authors 2023: + * qtModels/tableModels/StyleTableModel.cpp is part of Brewtarget, and is copyright the following authors 2023: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -13,13 +13,18 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/StyleTableModel.h" +#include "qtModels/tableModels/StyleTableModel.h" #include #include #include #include +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_StyleTableModel.cpp" +#endif + StyleTableModel::StyleTableModel(QTableView* parent, bool editable) : BtTableModel{ parent, diff --git a/src/tableModels/StyleTableModel.h b/src/qtModels/tableModels/StyleTableModel.h similarity index 92% rename from src/tableModels/StyleTableModel.h rename to src/qtModels/tableModels/StyleTableModel.h index 6e965093d..b93d2120c 100755 --- a/src/tableModels/StyleTableModel.h +++ b/src/qtModels/tableModels/StyleTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/StyleTableModel.h is part of Brewtarget, and is copyright the following authors 2023: + * qtModels/tableModels/StyleTableModel.h is part of Brewtarget, and is copyright the following authors 2023: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -24,8 +24,8 @@ #include #include "model/Style.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/TableModelBase.h" class BtStringConst; class Recipe; diff --git a/src/tableModels/TableModelBase.h b/src/qtModels/tableModels/TableModelBase.h similarity index 99% rename from src/tableModels/TableModelBase.h rename to src/qtModels/tableModels/TableModelBase.h index 1aa61ce44..e53ff1fd4 100755 --- a/src/tableModels/TableModelBase.h +++ b/src/qtModels/tableModels/TableModelBase.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/TableModelBase.h is part of Brewtarget, and is copyright the following authors 2023-2024: + * qtModels/tableModels/TableModelBase.h is part of Brewtarget, and is copyright the following authors 2023-2024: * • Matt Young * * Brewtarget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -31,7 +31,7 @@ #include "model/IngredientAmount.h" #include "model/Inventory.h" #include "model/Recipe.h" -#include "tableModels/BtTableModel.h" +#include "qtModels/tableModels/BtTableModel.h" #include "utils/CuriouslyRecurringTemplateBase.h" #include "utils/MetaTypes.h" @@ -111,7 +111,7 @@ template struct TableModelTraits; /** - * \brief See comment in tableModels/BtTableModel.h for more info on inheritance structure + * \brief See comment in qtModels/tableModels/BtTableModel.h for more info on inheritance structure * * Classes inheriting from this one need to include the TABLE_MODEL_COMMON_DECL macro in their header file and * the TABLE_MODEL_COMMON_CODE macro in their .cpp file. @@ -517,7 +517,7 @@ class TableModelBase : public CuriouslyRecurringTemplateBase(*typeInfo.fieldType) || typeInfo.typeIndex == typeid(Measurement::Amount)) { // - // Per the comments in tableModels/ItemDelegate.h, depending on the value of extras, this is either the + // Per the comments in qtModels/tableModels/ItemDelegate.h, depending on the value of extras, this is either the // amount itself or a drop-down for the PhysicalQuantity of the amount. // // In both cases, we start by getting the amount from the model. diff --git a/src/tableModels/WaterTableModel.cpp b/src/qtModels/tableModels/WaterTableModel.cpp similarity index 95% rename from src/tableModels/WaterTableModel.cpp rename to src/qtModels/tableModels/WaterTableModel.cpp index fbd1543dc..5ca4063e5 100644 --- a/src/tableModels/WaterTableModel.cpp +++ b/src/qtModels/tableModels/WaterTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/WaterTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/WaterTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2024: * • Brian Rower * • Mattias Måhl * • Matt Young @@ -18,7 +18,7 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/WaterTableModel.h" +#include "qtModels/tableModels/WaterTableModel.h" #include #include @@ -27,6 +27,11 @@ #include "Localization.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_WaterTableModel.cpp" +#endif + WaterTableModel::WaterTableModel(QTableView * parent, bool editable) : BtTableModel{ parent, diff --git a/src/tableModels/WaterTableModel.h b/src/qtModels/tableModels/WaterTableModel.h similarity index 95% rename from src/tableModels/WaterTableModel.h rename to src/qtModels/tableModels/WaterTableModel.h index fc5b94941..b5cb58bba 100644 --- a/src/tableModels/WaterTableModel.h +++ b/src/qtModels/tableModels/WaterTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/WaterTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/WaterTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: * • Jeff Bailey * • Matt Young * • Mik Firestone @@ -31,8 +31,8 @@ #include "measurement/Unit.h" #include "model/Water.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/TableModelBase.h" // Forward declarations. class Water; diff --git a/src/tableModels/YeastTableModel.cpp b/src/qtModels/tableModels/YeastTableModel.cpp similarity index 93% rename from src/tableModels/YeastTableModel.cpp rename to src/qtModels/tableModels/YeastTableModel.cpp index 519343263..b96464653 100644 --- a/src/tableModels/YeastTableModel.cpp +++ b/src/qtModels/tableModels/YeastTableModel.cpp @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/YeastTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/YeastTableModel.cpp is part of Brewtarget, and is copyright the following authors 2009-2024: * • Brian Rower * • Daniel Pettersson * • Mattias Måhl @@ -21,13 +21,18 @@ * You should have received a copy of the GNU General Public License along with this program. If not, see * . ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ -#include "tableModels/YeastTableModel.h" +#include "qtModels/tableModels/YeastTableModel.h" #include #include #include #include +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_YeastTableModel.cpp" +#endif + YeastTableModel::YeastTableModel(QTableView * parent, bool editable) : BtTableModel{ parent, diff --git a/src/tableModels/YeastTableModel.h b/src/qtModels/tableModels/YeastTableModel.h similarity index 93% rename from src/tableModels/YeastTableModel.h rename to src/qtModels/tableModels/YeastTableModel.h index 59c8a3692..a245b088b 100644 --- a/src/tableModels/YeastTableModel.h +++ b/src/qtModels/tableModels/YeastTableModel.h @@ -1,5 +1,5 @@ /*╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ - * tableModels/YeastTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: + * qtModels/tableModels/YeastTableModel.h is part of Brewtarget, and is copyright the following authors 2009-2024: * • Jeff Bailey * • Matt Young * • Mik Firestone @@ -31,8 +31,8 @@ #include "model/InventoryYeast.h" #include "model/Yeast.h" -#include "tableModels/ItemDelegate.h" -#include "tableModels/TableModelBase.h" +#include "qtModels/tableModels/ItemDelegate.h" +#include "qtModels/tableModels/TableModelBase.h" // Forward declarations. class BtStringConst; diff --git a/src/trees/TreeFilterProxyModel.cpp b/src/trees/TreeFilterProxyModel.cpp old mode 100755 new mode 100644 index d84a231df..eeafda950 --- a/src/trees/TreeFilterProxyModel.cpp +++ b/src/trees/TreeFilterProxyModel.cpp @@ -32,6 +32,11 @@ #include "model/Water.h" #include "model/Yeast.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_TreeFilterProxyModel.cpp" +#endif + namespace { template bool lessThan(TreeModel * model, diff --git a/src/trees/TreeModel.cpp b/src/trees/TreeModel.cpp index e5bf3e3d5..29a9ea849 100644 --- a/src/trees/TreeModel.cpp +++ b/src/trees/TreeModel.cpp @@ -49,6 +49,11 @@ #include "utils/BtStringConst.h" #include "PersistentSettings.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_TreeModel.cpp" +#endif + namespace { NamedEntity * getElement(TreeNode::Type oType, int id) { switch (oType) { diff --git a/src/trees/TreeNode.h b/src/trees/TreeNode.h index dc930aa24..140bbda8c 100644 --- a/src/trees/TreeNode.h +++ b/src/trees/TreeNode.h @@ -43,7 +43,7 @@ class TreeModel; template class TreeFolderNode; /** - * \brief See comment in tableModels/TableModelBase.h for why we use a traits class to allow the following attributes + * \brief See comment in qtModels/tableModels/TableModelBase.h for why we use a traits class to allow the following attributes * from each \c Derived class to be accessible in \c TreeNodeBase: * - \c ColumnIndex = class enum for the columns of this node type * - \c Info = class enum holding just NumberOfColumns = number of entries in the above diff --git a/src/trees/TreeView.cpp b/src/trees/TreeView.cpp index 9c918c562..b739b0a10 100644 --- a/src/trees/TreeView.cpp +++ b/src/trees/TreeView.cpp @@ -48,6 +48,11 @@ #include "model/Yeast.h" #include "trees/TreeModel.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_TreeView.cpp" +#endif + TreeView::TreeView(QWidget * parent, TreeModel::TypeMasks type) : QTreeView{parent}, m_type{type} { diff --git a/src/widgets/Animator.cpp b/src/widgets/Animator.cpp index f0102376d..f307fcfef 100644 --- a/src/widgets/Animator.cpp +++ b/src/widgets/Animator.cpp @@ -21,6 +21,11 @@ #include #include +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_Animator.cpp" +#endif + Animator::Animator(QObject * target, QObject * parent) : QVariantAnimation(parent) { setTargetObject(target); return; diff --git a/src/widgets/BtComboBoxBool.cpp b/src/widgets/BtComboBoxBool.cpp old mode 100755 new mode 100644 index 683ad2674..5a990c667 --- a/src/widgets/BtComboBoxBool.cpp +++ b/src/widgets/BtComboBoxBool.cpp @@ -20,6 +20,11 @@ #include "utils/MetaTypes.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BtComboBoxBool.cpp" +#endif + namespace { // We store string values inside the combo box as it's less confusing when the value is optional QString const falseValue = QStringLiteral("false"); diff --git a/src/widgets/BtComboBoxEnum.cpp b/src/widgets/BtComboBoxEnum.cpp old mode 100755 new mode 100644 index 8b974fc89..9cf921546 --- a/src/widgets/BtComboBoxEnum.cpp +++ b/src/widgets/BtComboBoxEnum.cpp @@ -17,6 +17,11 @@ #include "widgets/SmartLineEdit.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BtComboBoxEnum.cpp" +#endif + // This private implementation class holds all private non-virtual members of BtComboBoxEnum class BtComboBoxEnum::impl { public: diff --git a/src/widgets/BtComboBoxNamedEntity.cpp b/src/widgets/BtComboBoxNamedEntity.cpp old mode 100755 new mode 100644 index 67205ffa3..dac42a770 --- a/src/widgets/BtComboBoxNamedEntity.cpp +++ b/src/widgets/BtComboBoxNamedEntity.cpp @@ -21,6 +21,11 @@ #include #include +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BtComboBoxNamedEntity.cpp" +#endif + BtComboBoxNamedEntity::BtComboBoxNamedEntity(char const * const name, QWidget* parent) : QComboBox{parent}, m_name{name} { diff --git a/src/widgets/BtComboBoxNamedEntity.h b/src/widgets/BtComboBoxNamedEntity.h index fe517dd44..bc7a08a08 100755 --- a/src/widgets/BtComboBoxNamedEntity.h +++ b/src/widgets/BtComboBoxNamedEntity.h @@ -26,7 +26,7 @@ * \brief Extends \c QComboBox to show a list of a particular \c NamedEntity - eg \c Style for a \c Recipe. Used in * conjunction with \c BtComboBoxNamedEntityBase to make \c BtComboBoxNamedStyle etc, because classes inheriting * from QObject can't be templated, as the Qt MOC won't be able to process them. (See comment in - * tableModels/BtTableModel.h for more info.) + * qtModels/tableModels/BtTableModel.h for more info.) */ class BtComboBoxNamedEntity : public QComboBox { Q_OBJECT @@ -226,19 +226,19 @@ class BtComboBox##NeName : public BtComboBoxNamedEntity, \ #include "model/Style.h" #include "model/Water.h" -#include "listModels/BoilListModel.h" -#include "listModels/EquipmentListModel.h" -#include "listModels/MashListModel.h" -#include "listModels/FermentationListModel.h" -#include "listModels/StyleListModel.h" -#include "listModels/WaterListModel.h" - -#include "sortFilterProxyModels/BoilSortFilterProxyModel.h" -#include "sortFilterProxyModels/EquipmentSortFilterProxyModel.h" -#include "sortFilterProxyModels/MashSortFilterProxyModel.h" -#include "sortFilterProxyModels/FermentationSortFilterProxyModel.h" -#include "sortFilterProxyModels/StyleSortFilterProxyModel.h" -#include "sortFilterProxyModels/WaterSortFilterProxyModel.h" +#include "qtModels/listModels/BoilListModel.h" +#include "qtModels/listModels/EquipmentListModel.h" +#include "qtModels/listModels/MashListModel.h" +#include "qtModels/listModels/FermentationListModel.h" +#include "qtModels/listModels/StyleListModel.h" +#include "qtModels/listModels/WaterListModel.h" + +#include "qtModels/sortFilterProxyModels/BoilSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/EquipmentSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/MashSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/FermentationSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/StyleSortFilterProxyModel.h" +#include "qtModels/sortFilterProxyModels/WaterSortFilterProxyModel.h" BT_COMBO_BOX_NAMED_ENTITY_DECL(Boil ) BT_COMBO_BOX_NAMED_ENTITY_DECL(Equipment ) diff --git a/src/widgets/BtOptionalDateEdit.cpp b/src/widgets/BtOptionalDateEdit.cpp old mode 100755 new mode 100644 index b573a7733..820f25680 --- a/src/widgets/BtOptionalDateEdit.cpp +++ b/src/widgets/BtOptionalDateEdit.cpp @@ -23,6 +23,11 @@ #include #include +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_BtOptionalDateEdit.cpp" +#endif + // // This private implementation class holds all private non-virtual members of BtOptionalDateEdit // diff --git a/src/widgets/InfoButton.cpp b/src/widgets/InfoButton.cpp old mode 100755 new mode 100644 index ab39c01d6..10c956497 --- a/src/widgets/InfoButton.cpp +++ b/src/widgets/InfoButton.cpp @@ -25,6 +25,11 @@ #include "utils/Fonts.h" #include "widgets/InfoText.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_InfoButton.cpp" +#endif + namespace { QColor const backgroundColorInfoShown {0x14, 0x82, 0x63}; QColor const backgroundColorPressed {0x63, 0x14, 0x82}; diff --git a/src/widgets/InfoText.cpp b/src/widgets/InfoText.cpp old mode 100755 new mode 100644 index 8994af23d..e7d6fb633 --- a/src/widgets/InfoText.cpp +++ b/src/widgets/InfoText.cpp @@ -19,6 +19,11 @@ #include "widgets/InfoButton.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_InfoText.cpp" +#endif + InfoText::InfoText(QWidget * parent, Qt::WindowFlags flags) : QLabel(parent, flags), m_infoButton{nullptr} { this->setWordWrap(true); // diff --git a/src/widgets/SelectionControl.cpp b/src/widgets/SelectionControl.cpp index 44a832440..dbf93dc95 100644 --- a/src/widgets/SelectionControl.cpp +++ b/src/widgets/SelectionControl.cpp @@ -16,6 +16,11 @@ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌*/ #include "widgets/SelectionControl.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_SelectionControl.cpp" +#endif + SelectionControl::SelectionControl(QWidget * parent) : QAbstractButton(parent) { setObjectName("SelectionControl"); setCheckable(true); diff --git a/src/widgets/SmartCheckBox.cpp b/src/widgets/SmartCheckBox.cpp old mode 100755 new mode 100644 index 3d67b2be4..c71fba32b --- a/src/widgets/SmartCheckBox.cpp +++ b/src/widgets/SmartCheckBox.cpp @@ -21,6 +21,11 @@ #include "widgets/SmartLineEdit.h" #include "utils/TypeLookup.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_SmartCheckBox.cpp" +#endif + // This private implementation class holds all private non-virtual members of SmartCheckBox class SmartCheckBox::impl { public: diff --git a/src/widgets/SmartDigitWidget.cpp b/src/widgets/SmartDigitWidget.cpp index f8dda9fba..43cb86c11 100644 --- a/src/widgets/SmartDigitWidget.cpp +++ b/src/widgets/SmartDigitWidget.cpp @@ -31,6 +31,11 @@ #include "PersistentSettings.h" #include "widgets/SmartLabel.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_SmartDigitWidget.cpp" +#endif + // This private implementation class holds all private non-virtual members of SmartDigitWidget class SmartDigitWidget::impl { public: diff --git a/src/widgets/SmartLabel.cpp b/src/widgets/SmartLabel.cpp index 21c0098b9..8feb44d68 100644 --- a/src/widgets/SmartLabel.cpp +++ b/src/widgets/SmartLabel.cpp @@ -33,6 +33,11 @@ #include "widgets/SmartField.h" #include "widgets/UnitAndScalePopUpMenu.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_SmartLabel.cpp" +#endif + // This private implementation class holds all private non-virtual members of SmartLabel class SmartLabel::impl { public: diff --git a/src/widgets/SmartLineEdit.cpp b/src/widgets/SmartLineEdit.cpp index 4be2db451..e9c9436cc 100644 --- a/src/widgets/SmartLineEdit.cpp +++ b/src/widgets/SmartLineEdit.cpp @@ -34,6 +34,11 @@ #include "utils/TypeLookup.h" #include "widgets/SmartLabel.h" +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_SmartLineEdit.cpp" +#endif + namespace { // // There is a bit of trial-and-error involved in setting these values diff --git a/src/widgets/ToggleSwitch.cpp b/src/widgets/ToggleSwitch.cpp index 24385c0e2..feefcf618 100644 --- a/src/widgets/ToggleSwitch.cpp +++ b/src/widgets/ToggleSwitch.cpp @@ -18,6 +18,11 @@ #include +#ifdef BUILDING_WITH_CMAKE + // Explicitly doing this include reduces potential problems with AUTOMOC when compiling with CMake + #include "moc_ToggleSwitch.cpp" +#endif + Q_DECL_IMPORT void qt_blurImage(QPainter * p, QImage & blurImage, qreal radius, bool quality, bool alphaOnly, int transposed = 0); // src/widgets/effects/qpixmapfilter.cpp diff --git a/translations/bt_ca.ts b/translations/bt_ca.ts index ae37e938e..8a1cad068 100644 --- a/translations/bt_ca.ts +++ b/translations/bt_ca.ts @@ -7074,6 +7074,14 @@ El volum final al primari és de %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -10172,6 +10180,14 @@ El volum final al primari és de %1. Overall Impression + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_cs.ts b/translations/bt_cs.ts index 092a76d3a..781160c7e 100644 --- a/translations/bt_cs.ts +++ b/translations/bt_cs.ts @@ -6924,6 +6924,14 @@ Celkový objem pro hlavní kvašení je %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -10008,6 +10016,14 @@ Celkový objem pro hlavní kvašení je %1. Overall Impression + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_da.ts b/translations/bt_da.ts index 8c557f10b..021db601d 100644 --- a/translations/bt_da.ts +++ b/translations/bt_da.ts @@ -140,52 +140,52 @@ BoilStepTableModel - + Name Navn - + Step Time Trin varighed - + Start Temp Starttemperatur - + Ramp Time Varighed niveau - + End Temp Sluttemperatur - + Start Acidity Startsurhedsgrad - + End Acidity Slutsurhedsgrad - + Start Gravity Startmassefylde - + End Gravity Slutmassefylde - + Chilling Type Afkølingstype @@ -193,12 +193,12 @@ BoilTableModel - + Name Navn - + Pre-Boil Size Volumen før kogning @@ -1319,22 +1319,22 @@ Logfil indeholder måske flere detaljer. EquipmentTableModel - + Name Navn - + Mash Tun Volume Mæskebeholder Volumen - + Kettle Volume Kogekar Volumen - + Fermenter Volume Gæringskar Volumen @@ -1498,12 +1498,12 @@ Logfil indeholder måske flere detaljer. Forkert kolonne: %1 - + Name Navn - + Type Type @@ -1516,22 +1516,22 @@ Logfil indeholder måske flere detaljer. Udbyttegrad % - + Inventory Lager - + Color Farve - + Yield (DBFG) % Udbytte af ekstrakt med fint kværnet malt (DBFG) % - + Amount Type Mængdeangivelse @@ -1555,62 +1555,62 @@ Logfil indeholder måske flere detaljer. FermentationStepTableModel - + Name Navn - + Step Time Trin varighed - + Start Temp Start-temp. - + End Temp Slut-temp. - + Start Acidity Startsurhedsgrad - + End Acidity Slutsurhedsgrad - + Start Gravity Startmassefylde - + End Gravity Slutmassefylde - + Free Rise Frivillig temp.stigning - + No Nej - + Yes Ja - + Vessel Beholder @@ -1618,12 +1618,12 @@ Logfil indeholder måske flere detaljer. FermentationTableModel - + Name Navn - + Number of Steps Antal trin @@ -1872,12 +1872,12 @@ Logfil indeholder måske flere detaljer. HopTableModel - + Name Navn - + Alpha % Alfa % @@ -1894,22 +1894,22 @@ Logfil indeholder måske flere detaljer. Titel: - + Form Form - + Inventory Lager - + Year År - + Amount Type Mængdeangivelse @@ -2571,32 +2571,32 @@ Hvis du har brug for hjælp, bedes du åbne en sag (issue) på %1 Forkert kolonne: %1 - + Name Navn - + Type Type - + Amount Mængde - + Infusion Temp Infusions-temp. - + Target Temp Tlsigtet temperatur - + Time Varighed @@ -2604,22 +2604,22 @@ Hvis du har brug for hjælp, bedes du åbne en sag (issue) på %1 MashTableModel - + Name Navn - + Initial Grain Temperature Malttemperatur ved start - + Total Mash Water Samlet volumen vand til mæskning - + Total Time Samlet varighed @@ -2902,12 +2902,12 @@ Hvis du har brug for hjælp, bedes du åbne en sag (issue) på %1 MiscTableModel - + Name Navn - + Type Type @@ -2924,12 +2924,12 @@ Hvis du har brug for hjælp, bedes du åbne en sag (issue) på %1 Mængde - + Amount Type Mængdeangivelse - + Inventory Lager @@ -2937,7 +2937,7 @@ Hvis du har brug for hjælp, bedes du åbne en sag (issue) på %1 NE - + Change %1 %2 Skift %1 %2 @@ -4867,47 +4867,47 @@ The final volume in the primary is %1. RecipeAdditionFermentableTableModel - + Name Navn - + Type Type - + Yield Udbytte - + Color FarveFarve - + Amount Mængde - + Amount Type Mængdeangivelse - + Inventory Lager - + Stage Trin - + Time Tid @@ -4958,47 +4958,47 @@ The final volume in the primary is %1. RecipeAdditionHopTableModel - + Name Navn - + Form Tilstand - + Alpha % Alfa % - + Year År - + Amount Mængde - + Amount Type Mængdeangivelse - + Inventory Lager - + Stage Trin - + Time Tid @@ -5049,37 +5049,37 @@ The final volume in the primary is %1. RecipeAdditionMiscTableModel - + Name Navn - + Type Type - + Amount Mængde - + Amount Type Mængdeangivelse - + Inventory Lager - + Stage Trin - + Time Tid @@ -5105,62 +5105,62 @@ The final volume in the primary is %1. RecipeAdditionYeastTableModel - + Name Navn - + Laboratory Producent - + Product ID Produkt ID - + Type Type - + Form Tilstand - + Amount Mængde - + Amount Type Mængde enhed - + Inventory Lager - + Stage Trin - + Step Trin - + Attenuation Forgæring - + Times Cultured Antal gange genhøstet @@ -5206,37 +5206,37 @@ The final volume in the primary is %1. RecipeAdjustmentSaltTableModel - + Name Navn - + Type Type - + Amount Mængde - + Amount Type Mængdeangivelse - + Inventory Lager - + Added To Føjet til - + % Acid % syre @@ -5881,22 +5881,22 @@ The final volume in the primary is %1. SaltTableModel - + Name Navn - + % Acid % syre - + Inventory Lager - + Amount Type Mængdeangivelse @@ -6063,32 +6063,32 @@ The final volume in the primary is %1. StyleTableModel - + Name Navn - + Type Type - + Category Kategori - + Category Number Kategorinummer - + Style Letter Stilart bogstav - + Style Guide Stilart guide @@ -6710,12 +6710,12 @@ The final volume in the primary is %1. Forkert model index. række = %1 - + Bad column: %1 Forkert kolonne: %1 - + Name Navn @@ -6724,32 +6724,32 @@ The final volume in the primary is %1. Mængde - + Calcium (ppm) Calcium (ppm) - + Bicarbonate (ppm) Hydrogencarbonat (ppm) - + Sulfate (ppm) Sulfat (ppm) - + Chloride (ppm) Chlorid (ppm) - + Sodium (ppm) Natrium (ppm) - + Magnesium (ppm) Magnesium (ppm) @@ -6941,17 +6941,17 @@ The final volume in the primary is %1. Forkert kolonne: %1 - + Name Navn - + Type Type - + Form Type @@ -6960,22 +6960,22 @@ The final volume in the primary is %1. Mængde - + Laboratory Producent - + Product ID Produkt ID - + Inventory Lager - + Amount Type Mængdeangivelse @@ -7469,8 +7469,8 @@ The final volume in the primary is %1. equipmentEditor - - + + Losses Tab @@ -7511,25 +7511,25 @@ The final volume in the primary is %1. - + Hot Liquor Tank Varm væske beholder - + Lauter Tun Urtfiltreringsbeholder - + Aging Vessel Lagertank - + Packaging Vessel Opbevaringstank @@ -7574,254 +7574,264 @@ The final volume in the primary is %1. Standardværdi er 100°C (212°F), men aktuel værdi varierer med højde over havet. - + + ID in database + ID i database + + + + You can normally ignore this, but it's sometimes useful for debugging. + Du kan normalt ignorere dette, men det er nogle gange nyttigt til fejlfinding. + + + Hot Liquor Tank Type Varm væske beholdertype - - - - - + + + + + Volume Volumen - + Evaporation Loss Fordampningstab - - - - + + + + Weight Masse - - - - + + + + Specific Heat Capacity Specifik varmekapacitet - + HLT Notes Varm væskebeholder notater - - - - - - - + + + + + + + Notes Notater - + Mash Tun Mæskekar - - - + + + Mash Tun Type Type af mæskekar - + Volume of mash tun Volumen af mæskekar - + This is equal to the vessel's Heat Capacity divided by its weight. Typical values are • Aluminum - 0.215 c/g·C • Copper - 0.092 c/g·C • Iron/Steel - 0.108 c/g·C • Plastic - 0.359 c/g·C. Dette er lig med beholderens varmekapacitet divideret med dens masse. Typiske værdier er • Aluminum - 0.900 J/g·°C • Kobber - 0.385 J/g·°C • Jern/stål- 0.444 J/g·°C • Plastik - 0.92 J/g·°C. - + Grain absorption Absorption i malt - + Default Absorption Standardabsorption - + How much water is permanently lost to each unit of weight of grain during mashing. The default value is 1.0875 liters per kilogram. This can fluctuate due to the fine-ness of your grind, humidity, brand, and other factors. Pressing the "Default Absorption" button will reset the value to this default. Hvor meget vand mistes pr. masseenhed af malt under mæskningen. Standardværdien er 1.0875 L/kg. Dette kan variere afhængigt af formalingsgraden, leverandør og andre faktorer. Ved klik på "Standardabsorption" vil værdien blive sat til denne standard. - + Other Mashing losses Andre tab under mæskning - + Mashing losses not included in grain absorption Tab under mæskning, som ikke er indregnet i absorption - + If you do not have a separate lauter tun, then this should include the lautering deadspace. Hvis du ikke har en særskilt urtfiltrerinsbeholder, skal denne inkludere dødvolumen ved urtfiltreringen. - + Mash Tun Notes Mæskekar notater - + Lauter Tun Type Urtfiltreringsbeholder type - + Lauter Tun Volume Urtfiltreringsbeholder volumen - - + + Deadspace Losses Dødvolumentab - + Lauter Tun Notes Urtfiltreringsbeholder notater - + Boil Kettle Kogekar - - - + + + Boil Kettle Type Kogekar type - + Pre-boil Volume Voumen før kogning - + Calculate pre-boil volume Beregn volumen før kogning - + Evaporation rate per hour Fordampningshastighed pr. time - + Kettle to Fermenter Loss Tab ved overførsel kogekar til gærkar - + Outflow per minute Aftapningshastighed pr. min - + Brew Kettle Notes Bryggekar notater - + Fermenter Gærkar - + Fermenter Type Gærkar type - + This is also known as the batch size. Dette er det samme som volumen af portion. - + Fermenter Notes Gærkar notater - + Aging Vessel Type Lagringsbeholder type - - + + Packaging Vessel Notes Opbevaringsbeholder notater - + Packaging Vessel Type Opbevaringsbeholder type - + Set as Default Vælg som standard - + New equipment Nyt udstyr - + Save and close Gem og luk - + Discard and close Annuller og luk - + Internal Diameter Indre diameter - + Opening Diameter Diameter af åbning - + New Ny - + Save Gem - + Cancel Annuller @@ -11040,62 +11050,72 @@ The final volume in the primary is %1. Type af bryg - + Max Maks - + Min Min - + + ID in database + ID i database + + + + You can normally ignore this, but it's sometimes useful for debugging. + Du kan normalt ignorere dette, men det er nogle gange nyttigt til fejlfinding. + + + OG Startmassefylde (OG) - + FG Slutmassefylde (FG) - + IBUs IBU - + Color (SRM) Farve (SRM) - + Carb (vols) Carbondioxidindhold (volumen) - + ABV (pct) Alkoholvolumenprocent (ABV) - + Ingredients Ingredienser - + Examples Eksempler - + Notes Notater - + Save Gem @@ -11115,57 +11135,57 @@ The final volume in the primary is %1. Krævet - + Ranges Intervaller - + Aroma Aroma - + Appearance Udseende - + Flavor Duft - + Mouthfeel Mundfølelse - + Overall Impression Helhedsindtryk - + New style Ny stilart - + Save and close Gem og luk - + Discard and close Annuller og luk - + New Ny - + Cancel Annuller diff --git a/translations/bt_de.ts b/translations/bt_de.ts index fd1545e60..3787b2c1f 100644 --- a/translations/bt_de.ts +++ b/translations/bt_de.ts @@ -6963,6 +6963,14 @@ Das endgültige Volumen in der Hauptgärung beträgt %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -10045,6 +10053,14 @@ Das endgültige Volumen in der Hauptgärung beträgt %1. Overall Impression + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_el.ts b/translations/bt_el.ts index ff6e3cf92..c5b139a33 100644 --- a/translations/bt_el.ts +++ b/translations/bt_el.ts @@ -6956,6 +6956,14 @@ The final volume in the primary is %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -10042,6 +10050,14 @@ The final volume in the primary is %1. Overall Impression + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_en.ts b/translations/bt_en.ts index 072a693b9..49bac1bff 100644 --- a/translations/bt_en.ts +++ b/translations/bt_en.ts @@ -5344,6 +5344,14 @@ The final volume in the primary is %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -7823,6 +7831,14 @@ The final volume in the primary is %1. Cancel + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_es.ts b/translations/bt_es.ts index c54bf497a..38bdae3a9 100644 --- a/translations/bt_es.ts +++ b/translations/bt_es.ts @@ -7026,6 +7026,14 @@ El volumen final en el primario es %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -10108,6 +10116,14 @@ El volumen final en el primario es %1. Overall Impression + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_et.ts b/translations/bt_et.ts index ac4059342..42b301a85 100644 --- a/translations/bt_et.ts +++ b/translations/bt_et.ts @@ -5440,6 +5440,14 @@ The final volume in the primary is %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -7935,6 +7943,14 @@ The final volume in the primary is %1. Cancel + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_eu.ts b/translations/bt_eu.ts index f6824f228..23e3dd8c6 100644 --- a/translations/bt_eu.ts +++ b/translations/bt_eu.ts @@ -5452,6 +5452,14 @@ The final volume in the primary is %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -7947,6 +7955,14 @@ The final volume in the primary is %1. Cancel + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_fr.ts b/translations/bt_fr.ts index eafa8f661..9d1d7bd6b 100644 --- a/translations/bt_fr.ts +++ b/translations/bt_fr.ts @@ -7080,6 +7080,14 @@ Le volume final dans la cuve de fermentation est de %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -10190,6 +10198,14 @@ Le volume final dans la cuve de fermentation est de %1. Overall Impression + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_gl.ts b/translations/bt_gl.ts index c67180c47..26acddc99 100644 --- a/translations/bt_gl.ts +++ b/translations/bt_gl.ts @@ -5794,6 +5794,14 @@ The final volume in the primary is %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -8328,6 +8336,14 @@ The final volume in the primary is %1. Cancel + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_hu.ts b/translations/bt_hu.ts index b46bc9593..bd09b9bb7 100644 --- a/translations/bt_hu.ts +++ b/translations/bt_hu.ts @@ -7002,6 +7002,14 @@ Végleges mennyiség az elsődleges erjesztőben: %1 Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -9912,6 +9920,14 @@ Végleges mennyiség az elsődleges erjesztőben: %1 Overall Impression + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_it.ts b/translations/bt_it.ts index b48436d7e..b5febc8e6 100644 --- a/translations/bt_it.ts +++ b/translations/bt_it.ts @@ -7055,6 +7055,14 @@ Il Volume finale del primo è %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -10163,6 +10171,14 @@ Il Volume finale del primo è %1. Overall Impression + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_lv.ts b/translations/bt_lv.ts index f7543647d..99748d6d2 100644 --- a/translations/bt_lv.ts +++ b/translations/bt_lv.ts @@ -5627,6 +5627,14 @@ The final volume in the primary is %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -8166,6 +8174,14 @@ The final volume in the primary is %1. Cancel + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_nb.ts b/translations/bt_nb.ts index 9bd750599..1ac0170aa 100644 --- a/translations/bt_nb.ts +++ b/translations/bt_nb.ts @@ -6967,6 +6967,14 @@ Sluttvolumet i primærgjæringskaret er %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -10052,6 +10060,14 @@ Sluttvolumet i primærgjæringskaret er %1. Overall Impression + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_nl.ts b/translations/bt_nl.ts index e50d6c336..583a38c78 100644 --- a/translations/bt_nl.ts +++ b/translations/bt_nl.ts @@ -7088,6 +7088,14 @@ Het uiteindelijke volume in de hoofdvergisting is %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -10046,6 +10054,14 @@ Het uiteindelijke volume in de hoofdvergisting is %1. Overall Impression + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_pl.ts b/translations/bt_pl.ts index 23bcc3ec3..81484cb16 100644 --- a/translations/bt_pl.ts +++ b/translations/bt_pl.ts @@ -6868,6 +6868,14 @@ Końcowa pojemność w fermentorze wyniesie %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -9958,6 +9966,14 @@ Końcowa pojemność w fermentorze wyniesie %1. Overall Impression + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_pt.ts b/translations/bt_pt.ts index 9f0ba4ad0..7bd5cf972 100644 --- a/translations/bt_pt.ts +++ b/translations/bt_pt.ts @@ -6994,6 +6994,14 @@ O volume final do fermentador primário é %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -10092,6 +10100,14 @@ O volume final do fermentador primário é %1. Overall Impression + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_ru.ts b/translations/bt_ru.ts index e643731a6..5fd71b546 100644 --- a/translations/bt_ru.ts +++ b/translations/bt_ru.ts @@ -7026,6 +7026,14 @@ The final volume in the primary is %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -10100,6 +10108,14 @@ The final volume in the primary is %1. Overall Impression + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_sr.ts b/translations/bt_sr.ts index 54b73710d..1ad6b7aae 100644 --- a/translations/bt_sr.ts +++ b/translations/bt_sr.ts @@ -6550,6 +6550,14 @@ The final volume in the primary is %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -9232,6 +9240,14 @@ The final volume in the primary is %1. Cancel + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_sv.ts b/translations/bt_sv.ts index 14a1bdb02..5f18e8450 100644 --- a/translations/bt_sv.ts +++ b/translations/bt_sv.ts @@ -7079,6 +7079,14 @@ Primärens slutgiltiga volym är %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -10085,6 +10093,14 @@ Primärens slutgiltiga volym är %1. Overall Impression + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_tr.ts b/translations/bt_tr.ts index cc286e5ca..ce6051dd4 100644 --- a/translations/bt_tr.ts +++ b/translations/bt_tr.ts @@ -7064,6 +7064,14 @@ The final volume in the primary is %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -9886,6 +9894,14 @@ The final volume in the primary is %1. Cancel İptal + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog diff --git a/translations/bt_zh.ts b/translations/bt_zh.ts index 5321c1e5f..0a9540250 100644 --- a/translations/bt_zh.ts +++ b/translations/bt_zh.ts @@ -6744,6 +6744,14 @@ The final volume in the primary is %1. Opening Diameter + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + fermentableEditor @@ -9814,6 +9822,14 @@ The final volume in the primary is %1. Overall Impression + + ID in database + + + + You can normally ignore this, but it's sometimes useful for debugging. + + timerListDialog