diff options
author | Oz Linden <oz@lindenlab.com> | 2011-08-15 16:35:41 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-08-15 16:35:41 -0400 |
commit | cb957d3dabfd0a419cb70461cc5bf3af2adba7a3 (patch) | |
tree | ac9978539aa02d80bf8c026aa3b2e1ba85404ecf /indra/llui/llmenubutton.h | |
parent | 7819b49086729187e198bf69f9c45f1c63f11ff2 (diff) | |
parent | b8320207bb911a311a498426fdd4a987dd7748ea (diff) |
merge late 3.0.1 beta candidate fixes
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 ); |