##// END OF EJS Templates
New data sources system switch complete...
New data sources system switch complete Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1495:9c439b3d7daf
r1495:9c439b3d7daf
Show More
SqpApplication.cpp
151 lines | 4.7 KiB | text/x-c | CppLexer
/ gui / src / SqpApplication.cpp
Initialisation de l'application multithread avec le spimpl....
r21 #include "SqpApplication.h"
Adds a a gui controller class to manage global actions across the application.
r1076 #include <Actions/ActionsGuiController.h>
Thibaud Rabillard
Fix wrong merge
r1087 #include <Catalogue/CatalogueController.h>
Alexandre Leroux
Makes the connection between Data source controller and Variable controller...
r169 #include <Data/IDataProvider.h>
New data sources system switch complete...
r1495 #include <DataSource/datasources.h>
Rename "DragDropHelper" in "DragDropGuiController"
r1075 #include <DragAndDrop/DragDropGuiController.h>
Intialization of network controller
r339 #include <Network/NetworkController.h>
Initialisation de l'application multithread avec le spimpl....
r21 #include <QThread>
Time widget is now used with the variable createion request
r193 #include <Time/TimeController.h>
All the codebase is modified to build with new Variable Controller...
r1348 #include <Variable/VariableController2.h>
#include <Variable/VariableModel2.h>
Initialisation de l'application multithread avec le spimpl....
r21
Q_LOGGING_CATEGORY(LOG_SqpApplication, "SqpApplication")
New Catalogue API WIP, basic models and views implemented...
r1406 class SqpApplication::SqpApplicationPrivate
{
Initialisation de l'application multithread avec le spimpl....
r21 public:
add missing visualization thread call
r55 SqpApplicationPrivate()
New Catalogue API WIP, basic models and views implemented...
r1406 : m_VariableController { std::make_shared<VariableController2>() }
, m_PlotInterractionMode(SqpApplication::PlotsInteractionMode::None)
, m_PlotCursorMode(SqpApplication::PlotsCursorMode::NoCursor)
Alexandre Leroux
Minor fixes...
r32 {
Alexandre Leroux
Makes the connection between Data source controller and Variable controller...
r169 // /////////////////////////////// //
// Connections between controllers //
// /////////////////////////////// //
// VariableController <-> DataSourceController
New data sources system switch complete...
r1495 connect(&m_DataSources, static_cast<void (DataSources::*)(const QString&, const QVariantHash&,
std::shared_ptr<IDataProvider>)>(&DataSources::createVariable),
New Catalogue API WIP, basic models and views implemented...
r1406 [](const QString& variableName, const QVariantHash& variableMetadata,
std::shared_ptr<IDataProvider> variableProvider) {
sqpApp->variableController().createVariable(variableName, variableMetadata,
variableProvider, sqpApp->timeController().dateTime());
});
Alexandre Leroux
Makes the connection between Data source controller and Variable controller...
r169
Time widget is now used with the variable createion request
r193
All the codebase is modified to build with new Variable Controller...
r1348 m_NetworkController.moveToThread(&m_NetworkControllerThread);
Add a name for all thread
r429 m_NetworkControllerThread.setObjectName("NetworkControllerThread");
Merge branch 'feature/NetworkController' into develop...
r374
Time widget is now used with the variable createion request
r193 // Additionnal init
New Catalogue API WIP, basic models and views implemented...
r1406 // m_VariableController->setTimeController(m_TimeController.get());
Alexandre Leroux
Minor fixes...
r32 }
Ajout des règles vera++
r24 virtual ~SqpApplicationPrivate()
Ajout de la méthode wait pour éviter de détruire un thread en cours...
r22 {
Add the visualization controller
r53
Intialization of network controller
r339 m_NetworkControllerThread.quit();
m_NetworkControllerThread.wait();
Ajout de la méthode wait pour éviter de détruire un thread en cours...
r22 }
Initialisation de l'application multithread avec le spimpl....
r21
New data sources system switch complete...
r1495 DataSources m_DataSources;
All the codebase is modified to build with new Variable Controller...
r1348 std::shared_ptr<VariableController2> m_VariableController;
TimeController m_TimeController;
NetworkController m_NetworkController;
CatalogueController m_CatalogueController;
Adds a a gui controller class to manage global actions across the application.
r1076
Intialization of network controller
r339 QThread m_NetworkControllerThread;
New helper class for the drag&drop
r837
All the codebase is modified to build with new Variable Controller...
r1348 DragDropGuiController m_DragDropGuiController;
ActionsGuiController m_ActionsGuiController;
Toolbar for interactions modes
r957
SqpApplication::PlotsInteractionMode m_PlotInterractionMode;
SqpApplication::PlotsCursorMode m_PlotCursorMode;
Initialisation de l'application multithread avec le spimpl....
r21 };
New Catalogue API WIP, basic models and views implemented...
r1406 SqpApplication::SqpApplication(int& argc, char** argv)
: QApplication { argc, argv }, impl { spimpl::make_unique_impl<SqpApplicationPrivate>() }
Initialisation de l'application multithread avec le spimpl....
r21 {
Refactored main toolbar to make it suck less :)...
r1462 this->setStyle(new MyProxyStyle(this->style()));
Implement the network controller to permit the execution of a request...
r389 qCDebug(LOG_SqpApplication()) << tr("SqpApplication construction") << QThread::currentThread();
Initialisation de l'application multithread avec le spimpl....
r21
Add Qt::AA_EnableHighDpiScaling and QCP::phFastPolylines
r1320 QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
All the codebase is modified to build with new Variable Controller...
r1348 connect(&impl->m_NetworkControllerThread, &QThread::started, &impl->m_NetworkController,
New Catalogue API WIP, basic models and views implemented...
r1406 &NetworkController::initialize);
All the codebase is modified to build with new Variable Controller...
r1348 connect(&impl->m_NetworkControllerThread, &QThread::finished, &impl->m_NetworkController,
New Catalogue API WIP, basic models and views implemented...
r1406 &NetworkController::finalize);
Intialization of network controller
r339
impl->m_NetworkControllerThread.start();
Initialisation de l'application multithread avec le spimpl....
r21 }
New Catalogue API WIP, basic models and views implemented...
r1406 SqpApplication::~SqpApplication() {}
Initialisation de l'application multithread avec le spimpl....
r21
New Catalogue API WIP, basic models and views implemented...
r1406 void SqpApplication::initialize() {}
Alexandre Leroux
Add access to DataSourceController from SqpApplication
r33
New data sources system switch complete...
r1495 //DataSourceController& SqpApplication::dataSourceController() noexcept
//{
// return impl->m_DataSourceController;
//}
DataSources& SqpApplication::dataSources() noexcept
Alexandre Leroux
Add access to DataSourceController from SqpApplication
r33 {
New data sources system switch complete...
r1495 return impl->m_DataSources;
Alexandre Leroux
Add access to DataSourceController from SqpApplication
r33 }
Add the visualization controller
r53
New Catalogue API WIP, basic models and views implemented...
r1406 NetworkController& SqpApplication::networkController() noexcept
Intialization of network controller
r339 {
All the codebase is modified to build with new Variable Controller...
r1348 return impl->m_NetworkController;
Intialization of network controller
r339 }
New Catalogue API WIP, basic models and views implemented...
r1406 TimeController& SqpApplication::timeController() noexcept
Time widget is now used with the variable createion request
r193 {
All the codebase is modified to build with new Variable Controller...
r1348 return impl->m_TimeController;
Time widget is now used with the variable createion request
r193 }
New Catalogue API WIP, basic models and views implemented...
r1406 VariableController2& SqpApplication::variableController() noexcept
Alexandre Leroux
Inits variable controller and adds it to the SciQlop app
r111 {
return *impl->m_VariableController;
}
All the codebase is modified to build with new Variable Controller...
r1348 std::shared_ptr<VariableController2> SqpApplication::variableControllerOwner() noexcept
{
return impl->m_VariableController;
}
New Catalogue API WIP, basic models and views implemented...
r1406 CatalogueController& SqpApplication::catalogueController() noexcept
Add catalogue controller to SqpApplication
r1144 {
All the codebase is modified to build with new Variable Controller...
r1348 return impl->m_CatalogueController;
Add catalogue controller to SqpApplication
r1144 }
New Catalogue API WIP, basic models and views implemented...
r1406 DragDropGuiController& SqpApplication::dragDropGuiController() noexcept
New helper class for the drag&drop
r837 {
All the codebase is modified to build with new Variable Controller...
r1348 return impl->m_DragDropGuiController;
New helper class for the drag&drop
r837 }
Toolbar for interactions modes
r957
New Catalogue API WIP, basic models and views implemented...
r1406 ActionsGuiController& SqpApplication::actionsGuiController() noexcept
Adds a a gui controller class to manage global actions across the application.
r1076 {
All the codebase is modified to build with new Variable Controller...
r1348 return impl->m_ActionsGuiController;
Adds a a gui controller class to manage global actions across the application.
r1076 }
Toolbar for interactions modes
r957 SqpApplication::PlotsInteractionMode SqpApplication::plotsInteractionMode() const
{
return impl->m_PlotInterractionMode;
}
void SqpApplication::setPlotsInteractionMode(SqpApplication::PlotsInteractionMode mode)
{
impl->m_PlotInterractionMode = mode;
}
SqpApplication::PlotsCursorMode SqpApplication::plotsCursorMode() const
{
return impl->m_PlotCursorMode;
}
void SqpApplication::setPlotsCursorMode(SqpApplication::PlotsCursorMode mode)
{
impl->m_PlotCursorMode = mode;
}