From $ROOTSYS/tutorials/eve/paramlist.C

// @(#)root/eve:$Id$
// Author: Matevz Tadel

// Demonstrates usage of simple configuration via TEveParamList class.

#include "TEveManager.h"
#include "TEveParamList.h"
#include "TQObject.h"

class TParamFollower
{
public:
   TParamFollower()
   {
      TQObject::Connect("TEveParamList", "ParamChanged(char*)",
                        "TParamFollower", this, "OnParamChanged(char*)");
   }
   virtual ~TParamFollower()
   {
      TQObject::Disconnect("TParamFollower", "ParamChanged(char*)",
                           this, "OnParamChanged(char*)");
   }

   void OnParamChanged(const char* parameter)
   {
      TEveParamList* pl = dynamic_cast<TEveParamList*>
         (reinterpret_cast<TQObject*>(gTQSender));

      printf("Change in param-list '%s', parameter '%s'.\n",
             pl->GetElementName(), parameter);
   }
   
   ClassDef(TParamFollower, 0);
};

ClassImp(TParamFollower)

void paramlist()
{
   TEveManager::Create();

   TEveParamList* x = 0;

   x = new TEveParamList("Top config");
   gEve->AddToListTree(x, 0);

   x->AddParameter(TEveParamList::FloatConfig_t("Pepe", 20, 0, 110));
   x->AddParameter(TEveParamList::IntConfig_t("Dima", 100, 0, 110));
   x->AddParameter(TEveParamList::BoolConfig_t("Chris", 1));

   x = new TEveParamList("Another config");
   gEve->AddToListTree(x, 0);

   x->AddParameter(TEveParamList::FloatConfig_t("MagneticField", 4, -4, 4));
   x->AddParameter(TEveParamList::FloatConfig_t("Temperature", 16, -20, 40));

   new TParamFollower;
}
 paramlist.C:1
 paramlist.C:2
 paramlist.C:3
 paramlist.C:4
 paramlist.C:5
 paramlist.C:6
 paramlist.C:7
 paramlist.C:8
 paramlist.C:9
 paramlist.C:10
 paramlist.C:11
 paramlist.C:12
 paramlist.C:13
 paramlist.C:14
 paramlist.C:15
 paramlist.C:16
 paramlist.C:17
 paramlist.C:18
 paramlist.C:19
 paramlist.C:20
 paramlist.C:21
 paramlist.C:22
 paramlist.C:23
 paramlist.C:24
 paramlist.C:25
 paramlist.C:26
 paramlist.C:27
 paramlist.C:28
 paramlist.C:29
 paramlist.C:30
 paramlist.C:31
 paramlist.C:32
 paramlist.C:33
 paramlist.C:34
 paramlist.C:35
 paramlist.C:36
 paramlist.C:37
 paramlist.C:38
 paramlist.C:39
 paramlist.C:40
 paramlist.C:41
 paramlist.C:42
 paramlist.C:43
 paramlist.C:44
 paramlist.C:45
 paramlist.C:46
 paramlist.C:47
 paramlist.C:48
 paramlist.C:49
 paramlist.C:50
 paramlist.C:51
 paramlist.C:52
 paramlist.C:53
 paramlist.C:54
 paramlist.C:55
 paramlist.C:56
 paramlist.C:57
 paramlist.C:58
 paramlist.C:59