Exemplo n.º 1
0
void LLToolMgr::onAppFocusGained()
{
    if (mSelectedTool)
    {
        mSelectedTool->handleSelect();
    }
    updateToolStatus();
}
Exemplo n.º 2
0
void LLToolMgr::onAppFocusLost()
{
    if (mSelectedTool)
    {
        mSelectedTool->handleDeselect();
    }
    updateToolStatus();
}
Exemplo n.º 3
0
void LLToolMgr::onAppFocusGained()
{
	if (mSavedTool)
	{
		mBaseTool = mSavedTool;
		mSavedTool = NULL;
	}
	updateToolStatus();
}
Exemplo n.º 4
0
void LLToolMgr::setCurrentTool( LLTool* tool )
{
	if (mTransientTool)
	{
		mTransientTool = NULL;
	}

	mBaseTool = tool;
	updateToolStatus();
}
Exemplo n.º 5
0
void LLToolMgr::clearTransientTool()
{
	if (mTransientTool)
	{
		mTransientTool = NULL;
		if (!mBaseTool)
		{
			llwarns << "mBaseTool is NULL" << llendl;
		}
	}
	updateToolStatus();
}
Exemplo n.º 6
0
void LLToolMgr::clearTransientTool()
{
	if (mTransientTool)
	{
		mTransientTool = NULL;
		if (!mBaseTool)
		{
			LL_WARNS() << "mBaseTool is NULL" << LL_ENDL;
		}
	}
	updateToolStatus();
}
Exemplo n.º 7
0
void LLToolMgr::setCurrentTool( LLTool* tool )
{
    if(tool && mBaseTool!=tool)
        lldebugs << "Current Tool: " << tool->getName() << llendl;
    if (mTransientTool)
    {
        mTransientTool = NULL;
    }

    mBaseTool = tool;
    updateToolStatus();

    mSavedTool = NULL;
}
Exemplo n.º 8
0
void LLToolMgr::setCurrentTool( LLTool* tool )
{
	if(tool && mBaseTool!=tool)
		LL_DEBUGS() << "Current Tool: " << tool->getName() << LL_ENDL;
	if (mTransientTool)
	{
		mTransientTool = NULL;
	}

	mBaseTool = tool;
	updateToolStatus();

	mSavedTool = NULL;
}
Exemplo n.º 9
0
void LLToolMgr::setTransientTool(LLTool* tool)
{
	if (!tool)
	{
		clearTransientTool();
	}
	else
	{
		if (mTransientTool)
		{
			mTransientTool = NULL;
		}

		mTransientTool = tool;
	}

	updateToolStatus();
}
Exemplo n.º 10
0
// The "gun tool", used for handling mouselook, captures the mouse and
// locks it within the window.  When the app loses focus we need to
// release this locking.
void LLToolMgr::onAppFocusLost()
{
	mSavedTool = mBaseTool;
	mBaseTool = gToolNull;
	updateToolStatus();
}