Ejemplo n.º 1
0
void DiagramEndPoint::disconnect()
{
	D_METHOD(("DiagramEndPoint::disconnect()\n"));
	if (m_connected)
	{
		m_connected = false;
		m_wire = 0;
		makeDraggable(true);
		disconnected();
	}
}
Ejemplo n.º 2
0
        void kClipHolder::mouseDragged(ofMouseEventArgs & mouse) {
            if(isBeingDragged && !view->inside(mouse.x,mouse.y))
                makeDroppable(mouse.x, mouse.y);

            else
            if(hasBeenMadeDroppable)
                makeDraggable(x,y);


            kDragObject::mouseDragged(mouse);
        }
Ejemplo n.º 3
0
void DiagramEndPoint::connect(
	DiagramWire *wire)
{
	D_METHOD(("DiagramEndPoint::connect()\n"));
	if (!m_connected && wire)
	{
		m_connected = true;
		m_wire = wire;
		makeDraggable(false);
		connected();
	}
}
Ejemplo n.º 4
0
__USE_CORTEX_NAMESPACE

#include <Debug.h>
#define D_METHOD(x) //PRINT (x)
#define D_MESSAGE(x) //PRINT (x)
#define D_MOUSE(x) //PRINT (x)

// -------------------------------------------------------- //
// *** ctor/dtor
// -------------------------------------------------------- //

DiagramEndPoint::DiagramEndPoint(
	BRect frame)
	: DiagramItem(DiagramItem::M_ENDPOINT),
	  m_frame(frame),
	  m_wire(0),
	  m_connected(false),
	  m_connecting(false)
{
	D_METHOD(("DiagramEndPoint::DiagramEndPoint()\n"));
	makeDraggable(true);
}
Ejemplo n.º 5
0
__USE_CORTEX_NAMESPACE

#include <Debug.h>
#define D_METHOD(x) //PRINT (x)
#define D_MESSAGE(x) //PRINT (x)
#define D_MOUSE(x) //PRINT (x)
#define D_DRAW(x) //PRINT (x)

// -------------------------------------------------------- //
// *** ctor/dtor (public)
// -------------------------------------------------------- //

DiagramBox::DiagramBox(
	BRect frame,
	uint32 flags)
	: DiagramItem(DiagramItem::M_BOX),
	  DiagramItemGroup(DiagramItem::M_ENDPOINT),
	  m_frame(frame),
	  m_flags(flags)
{
	D_METHOD(("DiagramBox::DiagramBox()\n"));
	makeDraggable(true);
}