rework ui layouts, now it is more flexible and modular

This commit is contained in:
Eduardo Bart
2011-05-09 17:38:01 -03:00
parent 6d871b305f
commit 51fe97644d
29 changed files with 441 additions and 398 deletions

View File

@@ -34,7 +34,7 @@ class UIElement;
class UIElementSkin
{
public:
UIElementSkin(const std::string& name, UI::EElementType elementType) :
UIElementSkin(const std::string& name, UI::ElementType elementType) :
m_name(name),
m_elementType(elementType) { }
UIElementSkin() : m_elementType(UI::Element) { }
@@ -49,7 +49,7 @@ public:
const std::string& getName() const { return m_name; }
const Size& getDefaultSize() const { return m_defaultSize; }
UI::EElementType getElementType() const { return m_elementType; }
UI::ElementType getElementType() const { return m_elementType; }
ImagePtr getDefaultImage() const { return m_defaultImage; }
protected:
@@ -57,7 +57,7 @@ protected:
private:
std::string m_name;
UI::EElementType m_elementType;
UI::ElementType m_elementType;
Size m_defaultSize;
ImagePtr m_defaultImage;
};