예제 #1
0
PlotWidget::PlotWidget ()
{
  g_symbol = new Bars;
  
  QVBoxLayout *vbox = new QVBoxLayout;
  vbox->setSpacing(0);
  vbox->setMargin(0);
  setLayout(vbox);
  
  // chart splitter
  _csplitter = new QSplitter(Qt::Vertical, 0);
  _csplitter->setOpaqueResize(FALSE);
  vbox->addWidget(_csplitter);
  
  _cw = new ControlWidget;
  connect(_cw, SIGNAL(signalSelected()), this, SLOT(refresh()));
  connect(_cw, SIGNAL(signalRefresh()), this, SLOT(refresh()));
  connect(_cw, SIGNAL(signalIndicator()), this, SLOT(indicatorDialog()));
  connect(_cw, SIGNAL(signalLength()), this, SLOT(setBarLength()));
  connect(_cw, SIGNAL(signalRange()), this, SLOT(refresh()));
  connect(_cw, SIGNAL(signalScrollBarChanged(int)), this, SLOT(scrollBarChanged(int)));
  connect(_cw, SIGNAL(signalRemovePlot()), this, SLOT(removeIndicator()));
  connect(_cw, SIGNAL(signalEditPlot()), this, SLOT(editIndicator()));
  vbox->addWidget(_cw);
  
  // fix for messed up plot screen if we draw the plot before it has become visible
  // we load settings just after plot is visible with this delay
  QTimer::singleShot(10, this, SLOT(loadSettings()));
}
예제 #2
0
파일: Pod.cpp 프로젝트: emfb760/brain-game
void Pod::removeFromScene()
{
    if(bPFXNode) {
        bPFXNode->getCreator()->destroyParticleSystem(bPFX);
        head->getCreator()->destroySceneNode(bPFXNode);
        bPFXNode = NULL;
        bPFX = NULL;
    }
    
    removeGlow();
    if (stem)
    {
        stem->getCreator()->destroyMovableObject(stem->getAttachedObject(0)); // Assuming only one entity
        stem = NULL;
    }
    removeIndicator();
    if (head && podShape != POD_SHAPE_HOLDOUT)
    {
        head->getCreator()->destroyEntity(headContentEntity);
        head = NULL;
        headContentEntity = NULL;
    }
    if (shell)
    {
        shell->getCreator()->destroyMovableObject(shell->getAttachedObject(0));
        shell = NULL;
    }
    if (entirePod)
    {
        entirePod->removeAndDestroyAllChildren();
        entirePod->getCreator()->destroySceneNode(entirePod);
        entirePod = NULL;
    }
}
예제 #3
0
void HbIndicatorGroupPrivate::removeIndicators(const QList<IndicatorClientInfo> &clientInfo)
{
    mRemovedIndicators.clear();
    for (int i = 0; i < clientInfo.size(); ++i) {
        removeIndicator(clientInfo.at(i));
    }
}
예제 #4
0
void Pod::removeFromScene()
{
    uncloaked = false;
    if (uncloakNode) {
        removeUncloakPFX();
    }
    
    if(bPFXNode) {
        bPFXNode->getCreator()->destroyParticleSystem(bPFX);
        head->getCreator()->destroySceneNode(bPFXNode);
        bPFXNode = NULL;
        bPFX = NULL;
    }
    
    if (signalSound)
    {
        OgreFramework::getSingletonPtr()->m_pSoundMgr->destroySound(signalSound);
        signalSound = NULL;
    }
    
    removeGlow();
    if (stem)
    {
        stem->getCreator()->destroyMovableObject(stem->getAttachedObject(0)); // Assuming only one entity
        stem = NULL;
    }
    removeIndicator();
    if (head && podShape != POD_SHAPE_HOLDOUT)
    {
        head->getCreator()->destroyEntity(headContentEntity);
        if (headContentEffect)
        {
            head->getCreator()->destroyParticleSystem(headContentEffect);
            headContentEffect = NULL;
        }
        head = NULL;
        headContentEntity = NULL;
    }
    if (shell)
    {
        shell->getCreator()->destroyMovableObject(shell->getAttachedObject(0));
        shell = NULL;
    }
    if (entirePod)
    {
        entirePod->removeAndDestroyAllChildren();
        entirePod->getCreator()->destroySceneNode(entirePod);
        entirePod = NULL;
    }
}
        void TargetedIndicator::onClose()
        {
          if (m_is_enemy_target)
          {
            InternalMessage("Display","Display::TargetedIndicator::onClose Entering") ;
            --m_count ;

            // the last one turn of the light
            if (m_count == 0)
              removeIndicator() ;

            InternalMessage("Display","Display::TargetedIndicator::onClose Leaving") ;
          }
        }