#pragma once /*========================================================================= medInria Copyright (c) INRIA 2013 - 2020. All rights reserved. See LICENSE.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. =========================================================================*/ #include #include #include class medAbstractParameter; class medStringListParameter; class medParameterPoolPrivate; class MEDCORE_EXPORT medParameterPool : public QObject { Q_OBJECT public: medParameterPool(QObject* parent = nullptr); virtual ~medParameterPool(); void append(medAbstractParameter *parameter); void append(QList parameters); void clear(); int count() const; void remove (medAbstractParameter* parameter); void removeAll (QString name); QList parameters(); QList parameters(QString id); QStringList parametersNames(); QString name() const; void setName(QString); QColor color(); void setColor(QColor color); private slots: void changeParamsValue(); void removeInternParam(); private: void connectParam(medAbstractParameter *parameter); void disconnectParam(medAbstractParameter *parameter); medParameterPoolPrivate *d; };