diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-01-14 13:55:00 -0800 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-01-14 13:55:00 -0800 |
commit | 04fe0399443cf4a5852e94cd3950ba1fd2d50562 (patch) | |
tree | 805e57d9bc12d869e87994380d5b023137fef48f /indra/newview/llnearbychatbar.h | |
parent | af2cbcee129911cb4e1d25fbd710d755c13b0282 (diff) |
Backed out changeset d5b761982e63
This got pushed too early - sorry. Sigh.
Diffstat (limited to 'indra/newview/llnearbychatbar.h')
-rw-r--r-- | indra/newview/llnearbychatbar.h | 47 |
1 files changed, 14 insertions, 33 deletions
diff --git a/indra/newview/llnearbychatbar.h b/indra/newview/llnearbychatbar.h index d9a7403611..224118e088 100644 --- a/indra/newview/llnearbychatbar.h +++ b/indra/newview/llnearbychatbar.h @@ -42,52 +42,33 @@ #include "llspeakers.h" -class LLGestureComboList - : public LLGestureManagerObserver - , public LLUICtrl +class LLGestureComboBox + : public LLComboBox + , public LLGestureManagerObserver { public: - struct Params : public LLInitParam::Block<Params, LLUICtrl::Params> - { - Optional<LLButton::Params> combo_button; - Optional<LLScrollListCtrl::Params> combo_list; - - Params(); - }; - + struct Params : public LLInitParam::Block<Params, LLComboBox::Params> { }; protected: - + LLGestureComboBox(const Params&); friend class LLUICtrlFactory; - LLGestureComboList(const Params&); - std::vector<LLMultiGesture*> mGestures; - std::string mLabel; - LLSD::Integer mViewAllItemIndex; - public: + ~LLGestureComboBox(); - ~LLGestureComboList(); - - LLCtrlListInterface* getListInterface() { return (LLCtrlListInterface*)mList; }; - virtual void showList(); - virtual void hideList(); - virtual BOOL handleKey(KEY key, MASK mask, BOOL called_from_parent); - - S32 getCurrentIndex() const; - void onItemSelected(const LLSD& data); - void sortByName(bool ascending = true); void refreshGestures(); void onCommitGesture(); - void onButtonCommit(); - virtual LLSD getValue() const; + virtual void draw(); // LLGestureManagerObserver trigger virtual void changed() { refreshGestures(); } -private: +protected: + + virtual void showList(); - LLButton* mButton; - LLScrollListCtrl* mList; - S32 mLastSelectedIndex; + LLFrameTimer mGestureLabelTimer; + std::vector<LLMultiGesture*> mGestures; + std::string mLabel; + LLSD::Integer mViewAllItemIndex; }; class LLNearbyChatBar |