23#ifndef DESIGNERWIDGETORGANIZER_H
24#define DESIGNERWIDGETORGANIZER_H
26#include "../../common/sharedStructures.h"
27#include "../../common/sharedStructuresGraphics.h"
28#include "../../AddInManager/pluginModel.h"
29#include "plot/AbstractItomDesignerPlugin.h"
33#include <qtranslator.h>
42 FigurePlugin() : filename(
""), classname(
""), plotDataTypes(
DataObjLine), plotFeatures(Static), factory(
nullptr), pluginVersion(0) {}
45 PlotDataTypes plotDataTypes;
46 PlotDataFormats plotDataFormats;
47 PlotFeatures plotFeatures;
50 QPluginLoader *factory;
56 FigureCategory(
const QString description,
const PlotDataTypes allowedPlotDataTypes,
const PlotDataFormats allowedPlotDataFormats,
const PlotFeatures requiredPlotFeatures,
const PlotFeatures excludedPlotFeatures,
const QString defaultClassName)
57 : m_description(description),
58 m_allowedPlotDataTypes(allowedPlotDataTypes),
59 m_allowedPlotDataFormats(allowedPlotDataFormats),
60 m_requiredPlotFeatures(requiredPlotFeatures),
61 m_excludedPlotFeatures(excludedPlotFeatures),
62 m_defaultClassName(defaultClassName)
68 QString m_description;
69 PlotDataTypes m_allowedPlotDataTypes;
70 PlotDataFormats m_allowedPlotDataFormats;
71 PlotFeatures m_requiredPlotFeatures;
72 PlotFeatures m_excludedPlotFeatures;
73 QString m_defaultClassName;
85 const QList<PluginLoadStatus> getPluginLoadStatus()
const {
return m_pluginLoadStatus; }
86 const QMap<QString, FigureCategory> getFigureCategories()
const {
return m_figureCategories; }
88 QStringList getListOfIncompatibleDesignerPlugins()
const;
92 QList<FigurePlugin>
getPossibleFigureClasses(
int plotDataTypesMask,
int plotDataFormatsMask,
int plotFeaturesMask );
101 QWidget*
createWidget(
const QString &className, QWidget *parentWidget, AbstractFigure::WindowMode winMode = AbstractFigure::ModeStandaloneInUi);
105 void setApiPointersToWidgetAndChildren(QWidget *widget);
108 QList<FigurePlugin> m_figurePlugins;
109 QList<PluginLoadStatus> m_pluginLoadStatus;
110 QMap<QString, FigureCategory> m_figureCategories;
111 QVector<QTranslator*> m_Translator;
Class for managing status values (like errors or warning)
Definition retVal.h:54
Definition apiFunctionsGraph.cpp:40
@ DataObjLine
Definition sharedStructuresGraphics.h:45