20 #ifndef RUNTIME_PARAMETER_SETTERS_H
21 #define RUNTIME_PARAMETER_SETTERS_H
25 #include <QStringList>
29 class ParameterSettable;
38 virtual void onParameterChanges(
ParameterSettable*
object, QString paramName ) = 0;
52 this->descrPath = descrPath;
53 this->name = descrPath.split(
'/', QString::SkipEmptyParts ).last();
126 QString getDescriptionPath() {
return descrPath; };
156 template<
class T,
typename H>
160 MethodSetter( QString paramPath,
void (T::*setter)(H), H (T::*getter)()
const )
166 T* robject =
static_cast<T*
>( object );
167 (robject->*setter)( newvalue );
168 return (robject->*getter)();
172 T* robject =
static_cast<T*
>( object );
173 retvar = (robject->*getter)();
177 void (T::*setter)(H);
179 H (T::*getter)()
const;