diff options
author | Richard Linden <none@none> | 2010-11-23 16:25:27 -0800 |
---|---|---|
committer | Richard Linden <none@none> | 2010-11-23 16:25:27 -0800 |
commit | 0298a7e196529fd853143fff483037e882df0a3d (patch) | |
tree | 419f47f58dbc6b3f87dd2ac17fdf67e33c0dafde /indra/llui/lllayoutstack.h | |
parent | bf55e74784f95cc514b140ac054c09b81bb977a7 (diff) | |
parent | f8d08af9f1e810c977626e4131baf771d2b3655c (diff) |
merge
Diffstat (limited to 'indra/llui/lllayoutstack.h')
-rw-r--r-- | indra/llui/lllayoutstack.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/indra/llui/lllayoutstack.h b/indra/llui/lllayoutstack.h index e19ef403ef..9e8539c716 100644 --- a/indra/llui/lllayoutstack.h +++ b/indra/llui/lllayoutstack.h @@ -37,12 +37,24 @@ class LLLayoutPanel; class LLLayoutStack : public LLView, public LLInstanceTracker<LLLayoutStack> { public: + typedef enum e_layout_orientation + { + HORIZONTAL, + VERTICAL + } ELayoutOrientation; + + struct OrientationNames + : public LLInitParam::TypeValuesHelper<ELayoutOrientation, OrientationNames> + { + static void declareValues(); + }; + struct LayoutStackRegistry : public LLChildRegistry<LayoutStackRegistry> {}; struct Params : public LLInitParam::Block<Params, LLView::Params> { - Mandatory<std::string> orientation; + Mandatory<ELayoutOrientation, OrientationNames> orientation; Optional<S32> border_size; Optional<bool> animate, clip; @@ -52,12 +64,6 @@ public: typedef LayoutStackRegistry child_registry_t; - typedef enum e_layout_orientation - { - HORIZONTAL, - VERTICAL - } ELayoutOrientation; - virtual ~LLLayoutStack(); /*virtual*/ void draw(); |