void wxToolBarBase::ClearTools() { while ( GetToolsCount() ) { DeleteToolByPos(0); } }
void wxToolBarBase::ClearTools() { #if defined(__INTEL_COMPILER) && 1 /* VDM auto patch */ # pragma ivdep # pragma swp # pragma unroll # pragma prefetch # if 0 # pragma simd noassert # endif #endif /* VDM auto patch */ while ( GetToolsCount() ) { DeleteToolByPos(0); } }
void CToolBar::MakeDropdownTool(int id) { wxToolBarToolBase* pOldTool = FindById(id); if (!pOldTool) return; wxToolBarToolBase* pTool = new wxToolBarToolBase(0, id, pOldTool->GetLabel(), pOldTool->GetNormalBitmap(), pOldTool->GetDisabledBitmap(), wxITEM_DROPDOWN, NULL, pOldTool->GetShortHelp(), pOldTool->GetLongHelp()); int pos = GetToolPos(id); wxASSERT(pos != wxNOT_FOUND); DeleteToolByPos(pos); InsertTool(pos, pTool); Realize(); }
void wxMainToolBar::InitToolBar() { // set up the toolbar controls int ipos = 0; if(m_first_dpos == 0) { ipos += InsertObject(ipos); ipos += InsertType(ipos); ipos += InsertBin(ipos); // we need to be able to set binning always m_first_dpos = ipos; } if(m_first_dpos > 0) { int ntools = GetToolsCount(); size_t max_pos = ntools-1; // Delete the camera dependent tools for(size_t ipos=max_pos; ipos>m_first_dpos; ipos--) { DeleteToolByPos(ipos); } // clear references to the deleted tools m_zoomSpin = 0; m_temp_text = 0; } wxCamera* camera = wxF()->cam(); if(camera && camera->IsArtcam()) { ipos = m_first_dpos; ipos += InsertZoom(ipos); ipos += InsertSubframe(ipos); ipos += InsertRestartExposure(ipos); ipos += InsertCooling(ipos); } //20080525:BM try to support more webcam else if(camera && camera->IsWebcam()) { ipos = m_first_dpos; ipos += InsertZoom(ipos); ipos += InsertSubframe(ipos); } Realize(); CamEnable(); }