diff options
author | Richard Nelson <richard@lindenlab.com> | 2011-08-10 14:59:26 -0700 |
---|---|---|
committer | Richard Nelson <richard@lindenlab.com> | 2011-08-10 14:59:26 -0700 |
commit | d1fefdefd3878d48c15209e34f299c0fa3cd6aa3 (patch) | |
tree | 500d536819a8440af51d77f5b17c8df721173b28 /indra/llui/llmenubutton.h | |
parent | dfcd11e51e68922b5158ef4076721f7c66a3d637 (diff) | |
parent | d93fb23fa1e92de71a0ef4854d74d20df5831346 (diff) |
merge
Diffstat (limited to 'indra/llui/llmenubutton.h')
-rw-r--r-- | indra/llui/llmenubutton.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/indra/llui/llmenubutton.h b/indra/llui/llmenubutton.h index 7b657595da..e2396e7fb2 100644 --- a/indra/llui/llmenubutton.h +++ b/indra/llui/llmenubutton.h @@ -35,21 +35,30 @@ class LLMenuButton : public LLButton { public: + typedef enum e_menu_position + { + MP_TOP_LEFT, + MP_TOP_RIGHT, + MP_BOTTOM_LEFT + } EMenuPosition; + + struct MenuPositions + : public LLInitParam::TypeValuesHelper<EMenuPosition, MenuPositions> + { + static void declareValues(); + }; + struct Params : public LLInitParam::Block<Params, LLButton::Params> { // filename for it's toggleable menu Optional<std::string> menu_filename; + Optional<EMenuPosition> position; Params(); }; - typedef enum e_menu_position - { - MP_TOP_LEFT, - MP_TOP_RIGHT, - MP_BOTTOM_LEFT - } EMenuPosition; + boost::signals2::connection setMouseDownCallback( const mouse_signal_t::slot_type& cb ); |