void LanguageServerCluster::Reload() { StopAll(); // If we are not enabled, stop here if(!LanguageServerConfig::Get().IsEnabled()) { return; } StartAll(); }
void WeatherRouting::OnComputeAll ( wxCommandEvent& event ) { /* todo: make this work when already running to start routes not computed, and not waiting */ if(!m_bRunning) { StartAll(); UpdateComputeState(); } }
void ToasterBox::Notify() { //if the list is empty, skip this if (winList->IsEmpty()) return; wxLogDebug(_T("%s"), _T("clean&shrink")); //clean the window list CleanList(); //figure out how many blanks we have ToasterBoxWindowListNode node = winList->GetFirst(); if (!node) return; //( (our base position)-(position of this node) ) / (default height of the windows)+1 //long blanks = ((popupPosition.y - // node->GetData()->GetPosition().y) / popupSize.GetHeight()) +1; //move windows to fill in blank space for (int i = node->GetData()->GetPosition().y; i < popupPosition.y; i += 4) { if (i > popupPosition.y) i = popupPosition.y; //loop through all the windows for (unsigned int j = 0; j < winList->GetCount(); j++) { long ourNewHeight = i - (j * popupSize.GetHeight() - 8); ToasterBoxWindowListNode tmpNode = winList->Item(j); ToasterBoxWindow* tmpTb = tmpNode->GetData(); //reset where the object THINKS its supposed to be tmpTb->SetPopupPosition(popupPosition.x, ourNewHeight); //actually move it tmpTb->SetSize(popupPosition.x, ourNewHeight, tmpTb->GetSize().GetWidth(), tmpTb->GetSize().GetHeight()); //tmpNode = 0; tmpTb = 0; } wxMilliSleep(sleepTime); //DrawText(); //Update(); } StartAll(); //node = 0; }