##// END OF EJS Templates
(•̀ᴗ•́)و ̑̑ Some cleaning, remover previous implementation of VariableController...
jeandet -
r26:de55e7be9096
parent child
Show More
@@ -86,18 +86,13 FILE (GLOB_RECURSE core_SRCS
86 ./include/CoreGlobal.h
86 ./include/CoreGlobal.h
87 ./include/Visualization/VisualizationController.h
87 ./include/Visualization/VisualizationController.h
88 ./include/PluginManager/PluginManager.h
88 ./include/PluginManager/PluginManager.h
89 ./include/Variable/VariableModel.h
90 ./include/Variable/VariableModel2.h
89 ./include/Variable/VariableModel2.h
91 ./include/Variable/VariableAcquisitionWorker.h
92 ./include/Variable/VariableCacheStrategy.h
90 ./include/Variable/VariableCacheStrategy.h
93 ./include/Variable/VariableSynchronizationGroup.h
94 ./include/Variable/VariableSynchronizationGroup2.h
91 ./include/Variable/VariableSynchronizationGroup2.h
95 ./include/Variable/ProportionalCacheStrategy.h
92 ./include/Variable/ProportionalCacheStrategy.h
96 ./include/Variable/SingleThresholdCacheStrategy.h
93 ./include/Variable/SingleThresholdCacheStrategy.h
97 ./include/Variable/VariableCacheStrategyFactory.h
94 ./include/Variable/VariableCacheStrategyFactory.h
98 ./include/Variable/Variable.h
95 ./include/Variable/Variable.h
99 ./include/Variable/VariableCacheController.h
100 ./include/Variable/VariableController.h
101 ./include/Variable/VariableController2.h
96 ./include/Variable/VariableController2.h
102 ./include/Variable/private/VCTransaction.h
97 ./include/Variable/private/VCTransaction.h
103 ./include/Time/TimeController.h
98 ./include/Time/TimeController.h
@@ -123,15 +118,10 FILE (GLOB_RECURSE core_SRCS
123 ./src/Network/Downloader.cpp
118 ./src/Network/Downloader.cpp
124 ./src/Visualization/VisualizationController.cpp
119 ./src/Visualization/VisualizationController.cpp
125 ./src/PluginManager/PluginManager.cpp
120 ./src/PluginManager/PluginManager.cpp
126 ./src/Variable/VariableController.cpp
127 ./src/Variable/VariableController2.cpp
121 ./src/Variable/VariableController2.cpp
128 ./src/Variable/VariableModel.cpp
129 ./src/Variable/VariableModel2.cpp
122 ./src/Variable/VariableModel2.cpp
130 ./src/Variable/VariableCacheController.cpp
131 ./src/Variable/VariableSynchronizationGroup.cpp
132 ./src/Variable/VariableSynchronizationGroup2.cpp
123 ./src/Variable/VariableSynchronizationGroup2.cpp
133 ./src/Variable/Variable.cpp
124 ./src/Variable/Variable.cpp
134 ./src/Variable/VariableAcquisitionWorker.cpp
135 ./src/Version.cpp
125 ./src/Version.cpp
136 ./src/Time/TimeController.cpp
126 ./src/Time/TimeController.cpp
137 ./src/Settings/SqpSettingsDefs.cpp
127 ./src/Settings/SqpSettingsDefs.cpp
@@ -1,3 +1,5
1 #ifndef VARIABLECONTROLLER2_H
2 #define VARIABLECONTROLLER2_H
1 #include <memory>
3 #include <memory>
2 #include <vector>
4 #include <vector>
3 #include <set>
5 #include <set>
@@ -9,8 +11,6
9 #include <QItemSelectionModel>
11 #include <QItemSelectionModel>
10 #include <Common/spimpl.h>
12 #include <Common/spimpl.h>
11 #include <Variable/Variable.h>
13 #include <Variable/Variable.h>
12 //#include <Variable/VariableSynchronizationGroup.h>
13 #include <Variable/VariableModel.h>
14 #include <Data/IDataProvider.h>
14 #include <Data/IDataProvider.h>
15 #include "Data/DateTimeRange.h"
15 #include "Data/DateTimeRange.h"
16
16
@@ -50,3 +50,5 signals:
50 void variableDeleted(const std::shared_ptr<Variable>&);
50 void variableDeleted(const std::shared_ptr<Variable>&);
51
51
52 };
52 };
53
54 #endif //VARIABLECONTROLLER2_H
@@ -17,11 +17,12 class IDataSeries;
17 class Variable;
17 class Variable;
18 class VariableController2;
18 class VariableController2;
19
19
20 enum VariableRoles { ProgressRole = Qt::UserRole };
21
20 /**
22 /**
21 * @brief The VariableModel class aims to hold the variables that have been created in SciQlop
23 * @brief The VariableModel class aims to hold the variables that have been created in SciQlop
22 */
24 */
23 class SCIQLOP_CORE_EXPORT VariableModel2 : public QAbstractTableModel {
25 class SCIQLOP_CORE_EXPORT VariableModel2 : public QAbstractTableModel {
24 enum VariableRoles { ProgressRole = Qt::UserRole };
25 Q_OBJECT
26 Q_OBJECT
26 std::shared_ptr<VariableController2> _variableController;
27 std::shared_ptr<VariableController2> _variableController;
27 public:
28 public:
@@ -145,10 +145,6 QVariant VariableModel2::headerData(int section, Qt::Orientation orientation, in
145 ? QVariant{propertiesIt->m_Name}
145 ? QVariant{propertiesIt->m_Name}
146 : QVariant{QSize{propertiesIt->m_Width, propertiesIt->m_Height}};
146 : QVariant{QSize{propertiesIt->m_Width, propertiesIt->m_Height}};
147 }
147 }
148 else {
149 qWarning(LOG_VariableModel())
150 << tr("Can't get header data (unknown column %1)").arg(section);
151 }
152 }
148 }
153
149
154 return QVariant{};
150 return QVariant{};
@@ -17,7 +17,7
17 #include <Data/Unit.h>
17 #include <Data/Unit.h>
18 #include <Data/IDataProvider.h>
18 #include <Data/IDataProvider.h>
19
19
20 #include <Variable/VariableController.h>
20 #include <Variable/VariableController2.h>
21
21
22 #include <Time/TimeController.h>
22 #include <Time/TimeController.h>
23
23
@@ -38,10 +38,6 declare_test(TestDataSourceItem TestDataSourceItem
38 "sciqlopcore;Qt5::Test")
38 "sciqlopcore;Qt5::Test")
39
39
40 declare_test(TestVariable TestVariable Variable/TestVariable.cpp "sciqlopcore;Qt5::Test")
40 declare_test(TestVariable TestVariable Variable/TestVariable.cpp "sciqlopcore;Qt5::Test")
41 declare_test(TestVariableCacheController TestVariableCacheController Variable/TestVariableCacheController.cpp "sciqlopcore;Qt5::Test")
42 declare_test(TestVariableController TestVariableController Variable/TestVariableController.cpp "sciqlopcore;Qt5::Test")
43 declare_test(TestVariableSync TestVariableSync Variable/TestVariableSync.cpp "sciqlopcore;Qt5::Test")
44
45 declare_test(TestDownloader TestDownloader Network/TestDownloader.cpp "sciqlopcore;Qt5::Test")
41 declare_test(TestDownloader TestDownloader Network/TestDownloader.cpp "sciqlopcore;Qt5::Test")
46
42
47
43
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (1103 lines changed) Show them Hide them
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (508 lines changed) Show them Hide them
General Comments 0
You need to be logged in to leave comments. Login now