4 #ifndef pqParaViewBehaviors_h
5 #define pqParaViewBehaviors_h
7 #include "pqApplicationComponentsModule.h"
10 #include "vtkSetGet.h"
41 #define PQ_BEHAVIOR_DEFINE_METHODS(_name) \
42 static void setEnable##_name(bool val) { pqParaViewBehaviors::_name = val; } \
43 static bool enable##_name() { return pqParaViewBehaviors::_name; }
45 #define PQ_BEHAVIOR_DEFINE_METHODS_LEGACY(_name) \
46 VTK_LEGACY(static void setEnable##_name(bool val) { pqParaViewBehaviors::_name = val; }); \
47 VTK_LEGACY(static bool enable##_name() { return pqParaViewBehaviors::_name; });
49 #define PQ_BEHAVIOR_DECLARE_FLAG(_name) static bool _name;
54 typedef QObject Superclass;
161 #undef PQ_BEHAVIOR_DECLARE_FLAG
162 #undef PQ_BEHAVIOR_DEFINE_METHODS