Further pluggged in LLView::Params. For now just used for a few exclusively hard-coded elements. XUI parsing not yet implemented. New element registry not yet implemented.

This commit is contained in:
Shyotl
2013-05-17 14:45:23 -05:00
parent 182b15aee5
commit b1d69d05c3
18 changed files with 443 additions and 140 deletions

View File

@@ -39,8 +39,10 @@ class LLTextureView : public LLContainerView
friend class LLTextureBar;
friend class LLGLTexMemBar;
friend class LLAvatarTexBar;
protected:
LLTextureView(const Params&);
friend class LLUICtrlFactory;
public:
LLTextureView(const std::string& name, const LLRect& rect);
~LLTextureView();
/*virtual*/ void draw();
@@ -76,7 +78,19 @@ class LLGLTexSizeBar;
class LLTextureSizeView : public LLContainerView
{
public:
LLTextureSizeView(const std::string& name);
struct Params : public LLInitParam::Block<Params, LLContainerView::Params>
{
Mandatory<S32> type;
Params() :
type("type")
{
changeDefault(visible, false);
changeDefault(follows.flags, FOLLOWS_BOTTOM | FOLLOWS_LEFT);
}
};
LLTextureSizeView(const Params& p);
~LLTextureSizeView();
/*virtual*/ void draw();