From 2ecff1e21e6fc794ac2f9414606bd262e1dd2222 Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de>
Date: Tue, 5 Mar 2024 12:27:06 +0100
Subject: [PATCH] rename GUI/View/Tool/UpdateTimer -> GUI/Support/Thread/

---
 GUI/{View/Tool => Support/Thread}/UpdateTimer.cpp | 4 ++--
 GUI/{View/Tool => Support/Thread}/UpdateTimer.h   | 8 ++++----
 GUI/View/Manager/AutosaveController.cpp           | 2 +-
 GUI/View/Plotter/ScientificPlot.cpp               | 2 +-
 GUI/View/Sample/ScriptPanel.cpp                   | 2 +-
 Tests/Unit/GUI/TestUpdateTimer.cpp                | 2 +-
 6 files changed, 10 insertions(+), 10 deletions(-)
 rename GUI/{View/Tool => Support/Thread}/UpdateTimer.cpp (94%)
 rename GUI/{View/Tool => Support/Thread}/UpdateTimer.h (86%)

diff --git a/GUI/View/Tool/UpdateTimer.cpp b/GUI/Support/Thread/UpdateTimer.cpp
similarity index 94%
rename from GUI/View/Tool/UpdateTimer.cpp
rename to GUI/Support/Thread/UpdateTimer.cpp
index 547017fb470..92c549a7198 100644
--- a/GUI/View/Tool/UpdateTimer.cpp
+++ b/GUI/Support/Thread/UpdateTimer.cpp
@@ -2,7 +2,7 @@
 //
 //  BornAgain: simulate and fit reflection and scattering
 //
-//! @file      GUI/View/Tool/UpdateTimer.cpp
+//! @file      GUI/Support/Thread/UpdateTimer.cpp
 //! @brief     Implements class UpdateTimer.
 //!
 //! @homepage  http://www.bornagainproject.org
@@ -12,7 +12,7 @@
 //
 //  ************************************************************************************************
 
-#include "GUI/View/Tool/UpdateTimer.h"
+#include "GUI/Support/Thread/UpdateTimer.h"
 
 UpdateTimer::UpdateTimer(int timerInterval, QObject* parent)
     : QObject(parent)
diff --git a/GUI/View/Tool/UpdateTimer.h b/GUI/Support/Thread/UpdateTimer.h
similarity index 86%
rename from GUI/View/Tool/UpdateTimer.h
rename to GUI/Support/Thread/UpdateTimer.h
index 86414856b4f..dd7b0974441 100644
--- a/GUI/View/Tool/UpdateTimer.h
+++ b/GUI/Support/Thread/UpdateTimer.h
@@ -2,7 +2,7 @@
 //
 //  BornAgain: simulate and fit reflection and scattering
 //
-//! @file      GUI/View/Tool/UpdateTimer.h
+//! @file      GUI/Support/Thread/UpdateTimer.h
 //! @brief     Defines class UpdateTimer.
 //!
 //! @homepage  http://www.bornagainproject.org
@@ -12,8 +12,8 @@
 //
 //  ************************************************************************************************
 
-#ifndef BORNAGAIN_GUI_VIEW_TOOL_UPDATETIMER_H
-#define BORNAGAIN_GUI_VIEW_TOOL_UPDATETIMER_H
+#ifndef BORNAGAIN_GUI_SUPPORT_THREAD_UPDATETIMER_H
+#define BORNAGAIN_GUI_SUPPORT_THREAD_UPDATETIMER_H
 
 #include <QObject>
 #include <QTimer>
@@ -48,4 +48,4 @@ private:
     QTimer* m_timer;
 };
 
-#endif // BORNAGAIN_GUI_VIEW_TOOL_UPDATETIMER_H
+#endif // BORNAGAIN_GUI_SUPPORT_THREAD_UPDATETIMER_H
diff --git a/GUI/View/Manager/AutosaveController.cpp b/GUI/View/Manager/AutosaveController.cpp
index 18a71d58a35..39dc6c350c7 100644
--- a/GUI/View/Manager/AutosaveController.cpp
+++ b/GUI/View/Manager/AutosaveController.cpp
@@ -15,7 +15,7 @@
 #include "GUI/View/Manager/AutosaveController.h"
 #include "GUI/Model/Project/ProjectDocument.h"
 #include "GUI/Model/Project/ProjectUtil.h"
-#include "GUI/View/Tool/UpdateTimer.h"
+#include "GUI/Support/Thread/UpdateTimer.h"
 #include <QDir>
 
 AutosaveController::AutosaveController(QObject* parent, int update_interval_msec)
diff --git a/GUI/View/Plotter/ScientificPlot.cpp b/GUI/View/Plotter/ScientificPlot.cpp
index 4e8f21b9017..646d2da7db7 100644
--- a/GUI/View/Plotter/ScientificPlot.cpp
+++ b/GUI/View/Plotter/ScientificPlot.cpp
@@ -13,8 +13,8 @@
 //  ************************************************************************************************
 
 #include "GUI/View/Plotter/ScientificPlot.h"
+#include "GUI/Support/Thread/UpdateTimer.h"
 #include "GUI/View/Plotter/PlotEventHelper.h"
-#include "GUI/View/Tool/UpdateTimer.h"
 #include <QEvent>
 #include <qcustomplot.h>
 
diff --git a/GUI/View/Sample/ScriptPanel.cpp b/GUI/View/Sample/ScriptPanel.cpp
index 469f20e1bba..62488da2523 100644
--- a/GUI/View/Sample/ScriptPanel.cpp
+++ b/GUI/View/Sample/ScriptPanel.cpp
@@ -16,9 +16,9 @@
 #include "GUI/Model/Sample/SampleItem.h"
 #include "GUI/Model/ToCore/SampleToCore.h"
 #include "GUI/Support/Style/Style.h"
+#include "GUI/Support/Thread/UpdateTimer.h"
 #include "GUI/View/Info/CautionSign.h"
 #include "GUI/View/Info/PythonSyntaxHighlighter.h"
-#include "GUI/View/Tool/UpdateTimer.h"
 #include "Sample/Multilayer/MultiLayer.h"
 #include "Sim/Export/ExportToPython.h"
 #include <QScrollBar>
diff --git a/Tests/Unit/GUI/TestUpdateTimer.cpp b/Tests/Unit/GUI/TestUpdateTimer.cpp
index 935885603fc..bb2edb64e27 100644
--- a/Tests/Unit/GUI/TestUpdateTimer.cpp
+++ b/Tests/Unit/GUI/TestUpdateTimer.cpp
@@ -1,4 +1,4 @@
-#include "GUI/View/Tool/UpdateTimer.h"
+#include "GUI/Support/Thread/UpdateTimer.h"
 
 #include "Tests/GTestWrapper/google_test.h"
 #include <QSignalSpy>
-- 
GitLab