Exemplo n.º 1
0
void oCourse::importControls(const string &ctrls) {
  int oldNC = nControls;
  vector<int> oldC;
  for (int k = 0; k<nControls; k++)
    oldC.push_back(Controls[k] ? Controls[k]->getId() : 0);

  nControls = 0;

  vector<int> newC;
  splitControls(ctrls, newC);

  for (size_t k = 0; k< newC.size(); k++)
    doAddControl(newC[k]);

  bool changed = nControls != oldNC;

  for (int k = 0; !changed && k<nControls; k++)
    changed |= oldC[k] != Controls[k]->getId();

  if (changed) {
    updateChanged();

    oe->punchIndex.clear();
  }
}
Exemplo n.º 2
0
 void Window::addControls(std::vector<Control*> pControls)
 {
   XBMC_TRACE;
   SingleLockWithDelayGuard gslock(g_graphicsContext,languageHook);
   int count = 1; int size = pControls.size();
   for (std::vector<Control*>::iterator iter = pControls.begin(); iter != pControls.end(); count++, ++iter)
     doAddControl(*iter,NULL, count == size);
 }
Exemplo n.º 3
0
 void Window::addControls(std::vector<Control*> pControls) throw (WindowException)
 {
   TRACE;
   DelayedCallGuard dg(languageHook);
   CSingleLock lock(g_graphicsContext);
   int count = 1; int size = pControls.size();
   for (std::vector<Control*>::iterator iter = pControls.begin(); iter != pControls.end(); count++, iter++)
     doAddControl(*iter,NULL, count == size);
 }
Exemplo n.º 4
0
pControl oCourse::addControl(int Id)
{
  pControl pc = doAddControl(Id);
  updateChanged();
  return pc;
}
Exemplo n.º 5
0
 void Window::addControl(Control* pControl)
 {
   XBMC_TRACE;
   DelayedCallGuard dg(languageHook);
   doAddControl(pControl,&g_graphicsContext,true);
 }
Exemplo n.º 6
0
 void Window::addControl(Control* pControl) throw (WindowException)
 {
   TRACE;
   DelayedCallGuard dg(languageHook);
   doAddControl(pControl,&g_graphicsContext,true);
 }