From 827d2ec43e27c10108cbccda2e6c7b10bacad481 Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de>
Date: Thu, 14 Mar 2024 09:14:06 +0100
Subject: [PATCH] rename GUI/Support/Thread/ -> GUI/Model/Type/

---
 GUI/Model/Project/AutosaveController.cpp           | 2 +-
 GUI/{Support/Thread => Model/Type}/UpdateTimer.cpp | 4 ++--
 GUI/{Support/Thread => Model/Type}/UpdateTimer.h   | 8 ++++----
 GUI/View/Sample/ScriptPanel.cpp                    | 2 +-
 Tests/Unit/GUI/TestUpdateTimer.cpp                 | 2 +-
 5 files changed, 9 insertions(+), 9 deletions(-)
 rename GUI/{Support/Thread => Model/Type}/UpdateTimer.cpp (94%)
 rename GUI/{Support/Thread => Model/Type}/UpdateTimer.h (86%)

diff --git a/GUI/Model/Project/AutosaveController.cpp b/GUI/Model/Project/AutosaveController.cpp
index 270f1034f12..c5408b8db3e 100644
--- a/GUI/Model/Project/AutosaveController.cpp
+++ b/GUI/Model/Project/AutosaveController.cpp
@@ -15,7 +15,7 @@
 #include "GUI/Model/Project/AutosaveController.h"
 #include "GUI/Model/Project/ProjectDocument.h"
 #include "GUI/Model/Project/ProjectUtil.h"
-#include "GUI/Support/Thread/UpdateTimer.h"
+#include "GUI/Model/Type/UpdateTimer.h"
 #include <QDir>
 
 AutosaveController::AutosaveController(QObject* parent, int update_interval_msec)
diff --git a/GUI/Support/Thread/UpdateTimer.cpp b/GUI/Model/Type/UpdateTimer.cpp
similarity index 94%
rename from GUI/Support/Thread/UpdateTimer.cpp
rename to GUI/Model/Type/UpdateTimer.cpp
index 92c549a7198..410a958ff3f 100644
--- a/GUI/Support/Thread/UpdateTimer.cpp
+++ b/GUI/Model/Type/UpdateTimer.cpp
@@ -2,7 +2,7 @@
 //
 //  BornAgain: simulate and fit reflection and scattering
 //
-//! @file      GUI/Support/Thread/UpdateTimer.cpp
+//! @file      GUI/Model/Type/UpdateTimer.cpp
 //! @brief     Implements class UpdateTimer.
 //!
 //! @homepage  http://www.bornagainproject.org
@@ -12,7 +12,7 @@
 //
 //  ************************************************************************************************
 
-#include "GUI/Support/Thread/UpdateTimer.h"
+#include "GUI/Model/Type/UpdateTimer.h"
 
 UpdateTimer::UpdateTimer(int timerInterval, QObject* parent)
     : QObject(parent)
diff --git a/GUI/Support/Thread/UpdateTimer.h b/GUI/Model/Type/UpdateTimer.h
similarity index 86%
rename from GUI/Support/Thread/UpdateTimer.h
rename to GUI/Model/Type/UpdateTimer.h
index dd7b0974441..c9990516e51 100644
--- a/GUI/Support/Thread/UpdateTimer.h
+++ b/GUI/Model/Type/UpdateTimer.h
@@ -2,7 +2,7 @@
 //
 //  BornAgain: simulate and fit reflection and scattering
 //
-//! @file      GUI/Support/Thread/UpdateTimer.h
+//! @file      GUI/Model/Type/UpdateTimer.h
 //! @brief     Defines class UpdateTimer.
 //!
 //! @homepage  http://www.bornagainproject.org
@@ -12,8 +12,8 @@
 //
 //  ************************************************************************************************
 
-#ifndef BORNAGAIN_GUI_SUPPORT_THREAD_UPDATETIMER_H
-#define BORNAGAIN_GUI_SUPPORT_THREAD_UPDATETIMER_H
+#ifndef BORNAGAIN_GUI_MODEL_TYPE_UPDATETIMER_H
+#define BORNAGAIN_GUI_MODEL_TYPE_UPDATETIMER_H
 
 #include <QObject>
 #include <QTimer>
@@ -48,4 +48,4 @@ private:
     QTimer* m_timer;
 };
 
-#endif // BORNAGAIN_GUI_SUPPORT_THREAD_UPDATETIMER_H
+#endif // BORNAGAIN_GUI_MODEL_TYPE_UPDATETIMER_H
diff --git a/GUI/View/Sample/ScriptPanel.cpp b/GUI/View/Sample/ScriptPanel.cpp
index f8920a272da..39490120348 100644
--- a/GUI/View/Sample/ScriptPanel.cpp
+++ b/GUI/View/Sample/ScriptPanel.cpp
@@ -15,7 +15,7 @@
 #include "GUI/View/Sample/ScriptPanel.h"
 #include "GUI/Model/Sample/SampleItem.h"
 #include "GUI/Model/ToCore/SampleToCore.h"
-#include "GUI/Support/Thread/UpdateTimer.h"
+#include "GUI/Model/Type/UpdateTimer.h"
 #include "GUI/View/Base/Fontsize.h"
 #include "GUI/View/Info/CautionSign.h"
 #include "GUI/View/Info/PythonSyntaxHighlighter.h"
diff --git a/Tests/Unit/GUI/TestUpdateTimer.cpp b/Tests/Unit/GUI/TestUpdateTimer.cpp
index bb2edb64e27..a22de25a443 100644
--- a/Tests/Unit/GUI/TestUpdateTimer.cpp
+++ b/Tests/Unit/GUI/TestUpdateTimer.cpp
@@ -1,4 +1,4 @@
-#include "GUI/Support/Thread/UpdateTimer.h"
+#include "GUI/Model/Type/UpdateTimer.h"
 
 #include "Tests/GTestWrapper/google_test.h"
 #include <QSignalSpy>
-- 
GitLab