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(NULL) {}
45 PlotDataTypes plotDataTypes;
46 PlotDataFormats plotDataFormats;
47 PlotFeatures plotFeatures;
49 QPluginLoader *factory;
55 FigureCategory(
const QString description,
const PlotDataTypes allowedPlotDataTypes,
const PlotDataFormats allowedPlotDataFormats,
const PlotFeatures requiredPlotFeatures,
const PlotFeatures excludedPlotFeatures,
const QString defaultClassName)
56 : m_description(description),
57 m_allowedPlotDataTypes(allowedPlotDataTypes),
58 m_allowedPlotDataFormats(allowedPlotDataFormats),
59 m_requiredPlotFeatures(requiredPlotFeatures),
60 m_excludedPlotFeatures(excludedPlotFeatures),
61 m_defaultClassName(defaultClassName)
67 QString m_description;
68 PlotDataTypes m_allowedPlotDataTypes;
69 PlotDataFormats m_allowedPlotDataFormats;
70 PlotFeatures m_requiredPlotFeatures;
71 PlotFeatures m_excludedPlotFeatures;
72 QString m_defaultClassName;
84 const QList<PluginLoadStatus> getPluginLoadStatus()
const {
return m_pluginLoadStatus; }
85 const QMap<QString, FigureCategory> getFigureCategories()
const {
return m_figureCategories; }
87 QStringList getListOfIncompatibleDesignerPlugins()
const;
91 QList<FigurePlugin>
getPossibleFigureClasses(
int plotDataTypesMask,
int plotDataFormatsMask,
int plotFeaturesMask );
100 QWidget*
createWidget(
const QString &className, QWidget *parentWidget, AbstractFigure::WindowMode winMode = AbstractFigure::ModeStandaloneInUi);
104 void setApiPointersToWidgetAndChildren(QWidget *widget);
107 QList<FigurePlugin> m_figurePlugins;
108 QList<PluginLoadStatus> m_pluginLoadStatus;
109 QMap<QString, FigureCategory> m_figureCategories;
110 QVector<QTranslator*> m_Translator;
Class for managing status values (like errors or warning)
Definition: retVal.h:54
Definition: apiFunctionsGraph.cpp:39
Definition: sharedStructuresGraphics.h:45