示例#1
0
文件: MapStyleWnd.cpp 项目: xiaouC/SV
void CMapDetail::OnSize(UINT nType, int cx, int cy)
{
	CWnd::OnSize(nType, cx, cy);

	// TODO: 在此处添加消息处理程序代码
	adjustLayout();
}
示例#2
0
文件: MapStyleWnd.cpp 项目: xiaouC/SV
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();
}
示例#4
0
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();
}
示例#5
0
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 );
	}
}
示例#6
0
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();
}
示例#8
0
void Transfer::resizeEvent(QResizeEvent *)
{
    adjustLayout();
}
示例#9
0
void Slide::resizeEvent(QResizeEvent *)
{
    adjustLayout();
}
void VRFSystemView::addVRFTerminalView(VRFTerminalView * view)
{
  m_terminalViews.push_back(view);
  view->setParentItem(this);
  adjustLayout();
}
void Configuration::resizeEvent(QResizeEvent *)
{
    adjustLayout();
}
示例#12
0
void CounterInterface::resizeEvent(QResizeEvent *)
{
    adjustLayout();
}
示例#13
0
void TreatmentInterface::resizeEvent(QResizeEvent *)
{
    adjustLayout();
}
示例#14
0
void TopMenu::resizeEvent(QResizeEvent *)
{
    adjustLayout();
}
示例#15
0
void Home::resizeEvent(QResizeEvent *)
{
    adjustLayout();
}