void CMapDetail::OnSize(UINT nType, int cx, int cy) { CWnd::OnSize(nType, cx, cy); // TODO: 在此处添加消息处理程序代码 adjustLayout(); }
void CMapDetail::initMapDetail( const CString& strPrev, int nNum ) { for( int i=1; i <= nNum; ++i ) { CString strTemp; strTemp.Format( "%s_%d.png", strPrev, i ); CString strPath; strPath.Format( "./Editor/mapStyle/%s_%d.png", strPrev, i ); std::string strFileName = strTemp.GetBuffer(); CImage* pImage = new CImage; pImage->Load( strPath ); ImageInfo ii; ii.pImage = pImage; ii.nWidth = pImage->GetWidth(); ii.nHeight = pImage->GetHeight(); ii.nOffsetX = 0; ii.nOffsetY = 0; m_mapImages[strFileName] = ii; } adjustLayout(); }
void VRFSystemView::removeAllVRFTerminalViews() { prepareGeometryChange(); for( auto it = m_terminalViews.begin(); it != m_terminalViews.end(); ) { delete * it; it = m_terminalViews.erase(it); } adjustLayout(); }
void VRFSystemView::removeAllVRFTerminalViews() { prepareGeometryChange(); for( std::vector<QGraphicsObject *>::iterator it = m_terminalViews.begin(); it != m_terminalViews.end(); ) { delete * it; it = m_terminalViews.erase(it); } adjustLayout(); }
void LLFloaterMap::setRadarVisible( bool show_radar ) { bool old_show_radar = gSavedSettings.getBOOL("ShowMiniMapRadar"); gSavedSettings.setBOOL("ShowMiniMapRadar", show_radar); setRadarButtonState( show_radar ); mPanelRadar->setVisible( show_radar ); // Adjust the minimap window's size if visibility is changing if (show_radar != old_show_radar) { adjustLayout( show_radar ); } }
BOOL LLFloaterMap::postBuild() { // Send the drag handle to the back, but make sure close stays on top sendChildToBack(getDragHandle()); sendChildToFront(getChild<LLButton>("llfloater_minimize_btn")); sendChildToFront(getChild<LLButton>("llfloater_close_btn")); setIsChrome(TRUE); childSetAction("toggle_radar", onToggleRadar, this); if (!gSavedSettings.getBOOL("ShowMiniMapRadar")) { // Collapse radar if it's not showing. adjustLayout( false ); } return TRUE; }
VRFSystemView::VRFSystemView() : m_mouseDown(false), m_width(0), m_height(0), m_vrfPixmap(":images/vrf_outdoor.png") { vrfIconButton = new ButtonItem(m_vrfPixmap,m_vrfPixmap,m_vrfPixmap); vrfIconButton->setParentItem(this); connect(vrfIconButton, &ButtonItem::mouseClicked, this, &VRFSystemView::onVRFIconClicked); terminalDropZone = new OSDropZoneItem(); terminalDropZone->setParentItem(this); terminalDropZone->setSize(terminalDropZoneWidth,dropZoneHeight); terminalDropZone->setText("Drop VRF Terminal"); zoneDropZone = new OSDropZoneItem(); zoneDropZone->setParentItem(this); zoneDropZone->setSize(zoneDropZoneWidth,dropZoneHeight); zoneDropZone->setText("Drop Thermal Zone"); adjustLayout(); }
void Transfer::resizeEvent(QResizeEvent *) { adjustLayout(); }
void Slide::resizeEvent(QResizeEvent *) { adjustLayout(); }
void VRFSystemView::addVRFTerminalView(VRFTerminalView * view) { m_terminalViews.push_back(view); view->setParentItem(this); adjustLayout(); }
void Configuration::resizeEvent(QResizeEvent *) { adjustLayout(); }
void CounterInterface::resizeEvent(QResizeEvent *) { adjustLayout(); }
void TreatmentInterface::resizeEvent(QResizeEvent *) { adjustLayout(); }
void TopMenu::resizeEvent(QResizeEvent *) { adjustLayout(); }
void Home::resizeEvent(QResizeEvent *) { adjustLayout(); }