diff options
author | Merov Linden <merov@lindenlab.com> | 2011-10-03 17:13:14 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2011-10-03 17:13:14 -0700 |
commit | 99ada9b047d1cda8f45ec7f193ec04328496a721 (patch) | |
tree | 03daf2f4ab56de43b03f4f7b0963abe041ad67ec /indra/newview/lltoolbarview.h | |
parent | cd467cc34f876920b35d3570f50dbad54ce4a42c (diff) | |
parent | 37fdd27bcbd38b5cf22e0ff003f4d01b908996c7 (diff) |
EXP-1202 : pull from richard/viewer-experience-fui
Diffstat (limited to 'indra/newview/lltoolbarview.h')
-rw-r--r-- | indra/newview/lltoolbarview.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/indra/newview/lltoolbarview.h b/indra/newview/lltoolbarview.h index 4e1b855e3d..b7d3a4033a 100644 --- a/indra/newview/lltoolbarview.h +++ b/indra/newview/lltoolbarview.h @@ -51,7 +51,7 @@ public: struct Toolbar : public LLInitParam::Block<Toolbar> { Mandatory<U32> button_display_mode; - Multiple<LLCommandId::Params> commands; + Multiple<LLCommandId::Params> commands; Toolbar(); }; struct ToolbarSet : public LLInitParam::Block<ToolbarSet> @@ -66,18 +66,18 @@ public: virtual ~LLToolBarView(); virtual BOOL postBuild(); virtual void draw(); - // Toolbar view interface with the rest of the world // Checks if the commandId is being used somewhere in one of the toolbars bool hasCommand(const LLCommandId& commandId) const; // Loads the toolbars from the existing user or default settings bool loadToolbars(bool force_default = false); // return false if load fails - bool loadDefaultToolbars() { return loadToolbars(true); } + static bool loadDefaultToolbars(); + static void startDragItem( S32 x, S32 y, const LLUUID& uuid); static BOOL handleDragItem( S32 x, S32 y, const LLUUID& uuid, LLAssetType::EType type); static BOOL handleDrop( EDragAndDropType cargo_type, void* cargo_data, const LLUUID& folder_id); - + protected: friend class LLUICtrlFactory; LLToolBarView(const Params&); @@ -93,6 +93,10 @@ private: LLToolBar* mToolbarLeft; LLToolBar* mToolbarRight; LLToolBar* mToolbarBottom; + bool mDragging; + LLToolBarButton* mDragButton; + S32 mMouseX; + S32 mMouseY; static bool sDragStarted; }; |