iVS3D v2.0.0
Loading...
Searching...
No Matches
automaticexecsettings.h
1#ifndef AUTOMATICEXECSETTINGS_H
2#define AUTOMATICEXECSETTINGS_H
3
4#include <QObject>
5#include <QFileDialog>
6#include <QJsonObject>
7#include <QFile>
8#include <QJsonDocument>
9
10#include "controller/exportcontroller.h"
11#include "plugin/algorithmmanager.h"
12
13
14
27class AutomaticExecSettings : public QObject
28{
29 Q_OBJECT
30public:
42 QList<QPair<QString, QMap<QString, QVariant>>> getPluginList();
47 QStringList getPluginNames();
52 void setExportController(ExportController* exportController);
57 void loadPluginList(QString path);
58
59public slots:
65 void slot_addAuto(int idx, bool generate);
69 void slot_addAutoOutput();
74 void slot_removedPlugin(int row);
78 void slot_saveConfiguration(QString path);
82 void slot_loadConfiguration(QString path);
83
88 void slot_doubleClickedItem(int row);
94 void slot_autoOrderChanged(int first, int second);
95
96signals:
101 void sig_showExportSettings(QMap<QString, QVariant> exportSettings);
106 void sig_setAlgorithm(int index);
111 void sig_updatedSelectedPlugins(QStringList usedPlugins);
112
113
114private:
115 //algoList maps the plugin name with its selected settings
116 QList<QPair<QString, QMap<QString, QVariant>>> m_algoList;
117
118 ExportController* m_exportController = nullptr;
119
120 void updateShownAlgoList();
121
122};
123
124#endif // AUTOMATICEXECSETTINGS_H
The AutomaticExecSettings class is used to track the settings for the automatic execution.
Definition automaticexecsettings.h:28
QList< QPair< QString, QMap< QString, QVariant > > > getPluginList()
getPluginList Returns the current automatic settings
Definition automaticexecsettings.cpp:9
void slot_loadConfiguration(QString path)
slot_loadConfiguration Connected to the AutomaticController, called to load a existing JSON file
Definition automaticexecsettings.cpp:152
void slot_saveConfiguration(QString path)
slot_saveConfiguration Connected to the AutomaticController, called to save the current settings to a...
Definition automaticexecsettings.cpp:121
void sig_showExportSettings(QMap< QString, QVariant > exportSettings)
sig_showExportSettings Connected to ExportController, used to set settings in the OutpuWidget
void slot_doubleClickedItem(int row)
slot_doubleClickedItem Connected to the AutomaticWidget, called when a algorithm is double clicked to...
Definition automaticexecsettings.cpp:157
void loadPluginList(QString path)
loadPluginList Actually loads the settings from the given file
Definition automaticexecsettings.cpp:49
void slot_autoOrderChanged(int first, int second)
slot_autoOrderChanged Connected to the AutomaticWidget, called when algorithms are moved with the dra...
Definition automaticexecsettings.cpp:177
void slot_addAutoOutput()
slot_addAutoOutput Connected to the OutputWidget, used to add a export
Definition automaticexecsettings.cpp:105
void sig_updatedSelectedPlugins(QStringList usedPlugins)
sig_updatedSelectedPlugins Emitted to set the currently shown plugin list on the AutomaticWidget
void slot_removedPlugin(int row)
slot_removedPlugin Connected to the AutomaticWidget, called when the user removes an algorithm
Definition automaticexecsettings.cpp:114
void setExportController(ExportController *exportController)
setExportController ExportController doesn't exists when this class is created, so it has to be set l...
Definition automaticexecsettings.cpp:44
QStringList getPluginNames()
getPluginNames Returns QstringList with name of the alogrithm and its settings
Definition automaticexecsettings.cpp:14
AutomaticExecSettings()
AutomaticExecSettings Constructor which creates neede connects.
Definition automaticexecsettings.cpp:4
void sig_setAlgorithm(int index)
sig_setAlgorithm Emitted to set the currently shown algorithm on the SamplingWidget
void slot_addAuto(int idx, bool generate)
slot_addAuto Connected to the SamplingWidget, used to add a plugin
Definition automaticexecsettings.cpp:89
The ExportController class is managing signals and slots for the start of an export and opening recon...
Definition exportcontroller.h:48