add splitter widget

* add horizontal/vertical cursor
* possibildiade to resize game map with the new splitter widget
* fix reload warnings in textmessage
This commit is contained in:
Eduardo Bart
2012-03-22 22:52:31 -03:00
parent 33458a3e39
commit 79a1d66f3f
9 changed files with 99 additions and 2 deletions

View File

@@ -116,6 +116,8 @@ TilePtr UIMap::getTile(const Point& mousePos)
void UIMap::onGeometryChange(const Rect& oldRect, const Rect& newRect)
{
UIWidget::onGeometryChange(oldRect, newRect);
Rect mapRect = getChildrenRect().expanded(-1);
Size mapSize = m_mapView->getVisibleSize();
mapSize.scale(mapRect.size(), Fw::KeepAspectRatio);