diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lltoolmgr.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/linden/indra/newview/lltoolmgr.h b/linden/indra/newview/lltoolmgr.h index 6f0f50b..5cf005a 100644 --- a/linden/indra/newview/lltoolmgr.h +++ b/linden/indra/newview/lltoolmgr.h | |||
@@ -51,27 +51,33 @@ public: | |||
51 | // Must be called after gSavedSettings set up. | 51 | // Must be called after gSavedSettings set up. |
52 | void initTools(); | 52 | void initTools(); |
53 | 53 | ||
54 | LLTool* getCurrentTool(MASK override_mask); | 54 | LLTool* getCurrentTool(); // returns active tool, taking into account keyboard state |
55 | LLTool* getBaseTool(); // returns active tool when overrides are deactivated | ||
55 | 56 | ||
56 | BOOL inEdit(); | 57 | BOOL inEdit(); |
57 | void useSelectedTool( LLToolset* vp ); | ||
58 | 58 | ||
59 | void setTransientTool(LLTool* tool); | 59 | void setTransientTool(LLTool* tool); |
60 | void clearTransientTool(); | 60 | void clearTransientTool(); |
61 | BOOL usingTransientTool(); | 61 | BOOL usingTransientTool(); |
62 | 62 | ||
63 | void setCurrentToolset(LLToolset* current); | ||
64 | LLToolset* getCurrentToolset(); | ||
65 | |||
63 | void onAppFocusGained(); | 66 | void onAppFocusGained(); |
64 | void onAppFocusLost(); | 67 | void onAppFocusLost(); |
65 | 68 | ||
66 | protected: | 69 | protected: |
67 | friend class LLToolset; // to allow access to setCurrentTool(); | 70 | friend class LLToolset; // to allow access to setCurrentTool(); |
68 | void setCurrentTool(LLTool* tool); | 71 | void setCurrentTool(LLTool* tool); |
72 | void updateToolStatus(); | ||
69 | 73 | ||
70 | protected: | 74 | protected: |
71 | LLTool* mCurrentTool; | 75 | LLTool* mBaseTool; |
72 | LLTool* mSavedTool; // The current tool at the time application focus was lost. | 76 | LLTool* mSavedTool; // The current tool at the time application focus was lost. |
73 | LLTool* mTransientTool; | 77 | LLTool* mTransientTool; |
74 | LLTool* mOverrideTool; // Tool triggered by keyboard override | 78 | LLTool* mOverrideTool; // Tool triggered by keyboard override |
79 | LLTool* mSelectedTool; // last known active tool | ||
80 | LLToolset* mCurrentToolset; | ||
75 | }; | 81 | }; |
76 | 82 | ||
77 | // Sets of tools for various modes | 83 | // Sets of tools for various modes |
@@ -106,7 +112,6 @@ void select_tool(void *tool); | |||
106 | // Globals (created and destroyed by LLViewerWindow) | 112 | // Globals (created and destroyed by LLViewerWindow) |
107 | extern LLToolMgr* gToolMgr; | 113 | extern LLToolMgr* gToolMgr; |
108 | 114 | ||
109 | extern LLToolset* gCurrentToolset; | ||
110 | extern LLToolset* gBasicToolset; | 115 | extern LLToolset* gBasicToolset; |
111 | extern LLToolset *gCameraToolset; | 116 | extern LLToolset *gCameraToolset; |
112 | //extern LLToolset *gLandToolset; | 117 | //extern LLToolset *gLandToolset; |