TwiceAsNice  2019-02-18
Classes | Namespaces | Macros
BridgeItem.h File Reference
#include <QObject>
#include <Nice/Qt/Config.h>
#include <Nice/Property/Property.hh>
#include <Nice/Property/Bridge.h>
#include <Nice/Property/BridgeMemFn.hh>
#include <Nice/Property/Joint.h>
#include <Nice/Qt/Plugin.h>
#include <Nice/Util/Sync.h>
#include <QKeyEvent>
#include <Nice/Qt/PropertyBridgeQt.h>
#include <Nice/Qt/BridgeQtSignalMemFn.hh>
#include <stdint.h>
#include <QMessageBox>
Include dependency graph for BridgeItem.h:

Classes

class  Nice::BridgeItemSlots
 
class  Nice::BridgeItem
 An instance of this class provides the bridge interface for all gui elements which want to connect to a Property. All Widgets which are connected to a Property have to be derived from this class. More...
 

Namespaces

 Nice
 

 

Macros

#define NICE_QT_DISCONNECT_ALL(p)
 
#define NICE_QT_DISCONNECT(p, o, c, s)
 
#define NICE_QT_CONNECT(p, o, c, s, t)
 

Macro Definition Documentation

◆ NICE_QT_CONNECT

#define NICE_QT_CONNECT (   p,
  o,
  c,
  s,
  t 
)
Value:
{ \
std::string id = Nice::castToString (m_id) + std::string( #c ) + "::" + std::string( #s ) + ":" +Nice::castToString ( uintptr_t(o) ); \
if( p && !p->getBridge( id ) ){ \
p->applyBridge(new Nice::PropertyBridgeQtSignalMemFn<t, c>(o, #s, #t, m_id), id ); \
m_connectedProps.push_back(p);} \
if(p) {o->c::s(p->get<t>()); } }
t
Definition: hs01.m:4
int c
Definition: lutgen.py:3
Nice::I64 m_id
Definition: BridgeQtSignalSlotMemFn.hh:38
Definition: BridgeQtSignalMemFn.hh:23
float p[4]
Definition: PupilTestApp.cc:84
_W64 unsigned int uintptr_t
Definition: stdint.h:119
std::string castToString(const T &_t)
Casts a type T to a string.
Definition: Cast.hh:37
popt Meyer s(reformulated) problem p0

◆ NICE_QT_DISCONNECT

#define NICE_QT_DISCONNECT (   p,
  o,
  c,
  s 
)
Value:
{ \
std::string id = Nice::castToString (m_id) + Nice::castToString (m_id) + std::string( #c ) + "::" + std::string( #s ) + ":" +Nice::castToString ( uintptr_t(o) ); \
if( p && p->getBridge(id) ){ \
p->removeBridge( Nice::castToString ( m_id ) ); }}
int c
Definition: lutgen.py:3
Nice::I64 m_id
Definition: BridgeQtSignalSlotMemFn.hh:38
float p[4]
Definition: PupilTestApp.cc:84
_W64 unsigned int uintptr_t
Definition: stdint.h:119
std::string castToString(const T &_t)
Casts a type T to a string.
Definition: Cast.hh:37
popt Meyer s(reformulated) problem p0

◆ NICE_QT_DISCONNECT_ALL

#define NICE_QT_DISCONNECT_ALL (   p)
Value:
if( p ){ \
p->removeBridge( Nice::castToString (m_id) ); }
Nice::I64 m_id
Definition: BridgeQtSignalSlotMemFn.hh:38
float p[4]
Definition: PupilTestApp.cc:84
std::string castToString(const T &_t)
Casts a type T to a string.
Definition: Cast.hh:37