Пример #1
0
void
PathGroups::makePathConnections()
{
  for(int i=0; i<m_paths.count(); i++)
    m_paths[i]->disconnect();

  for(int i=0; i<m_paths.count(); i++)
    {
      connect(m_paths[i], SIGNAL(selectForEditing(int, int)),
	      this, SLOT(selectForEditing(int, int)));

      connect(m_paths[i], SIGNAL(deselectForEditing()),
	      this, SLOT(deselectForEditing()));
    }
}
Пример #2
0
void
ClipPlanes::makeClipConnections()
{
  for(int i=0; i<m_clips.count(); i++)
    m_clips[i]->disconnect();

  for(int i=0; i<m_clips.count(); i++)
    {
      connect(m_clips[i], SIGNAL(selectForEditing()),
	      this, SLOT(selectForEditing()));

      connect(m_clips[i], SIGNAL(deselectForEditing()),
	      this, SLOT(deselectForEditing()));
    }
}
Пример #3
0
void
Grids::makeGridConnections()
{
  for(int i=0; i<m_grids.count(); i++)
    m_grids[i]->disconnect();

  for(int i=0; i<m_grids.count(); i++)
    {
      connect(m_grids[i], SIGNAL(selectForEditing(int, int)),
	      this, SLOT(selectForEditing(int, int)));

      connect(m_grids[i], SIGNAL(deselectForEditing()),
	      this, SLOT(deselectForEditing()));
    }
}
Пример #4
0
void
ClipGrabber::mouseReleaseEvent(QMouseEvent* const event,
			       Camera* const camera)
{
  m_pressed = false;
  m_pointPressed = -1;

  setActive(false);
  emit deselectForEditing();
}