S32 LLToolBarView::flashCommand(const LLCommandId& commandId, bool flash) { S32 command_location = hasCommand(commandId); if (command_location != TOOLBAR_NONE) { mToolbars[command_location]->flashCommand(commandId, flash); } return command_location; }
S32 LLToolBarView::stopCommandInProgress(const LLCommandId& commandId) { S32 command_location = hasCommand(commandId); if (command_location != TOOLBAR_NONE) { mToolbars[command_location]->stopCommandInProgress(commandId); } return command_location; }
S32 LLToolBarView::enableCommand(const LLCommandId& commandId, bool enabled) { S32 command_location = hasCommand(commandId); if (command_location != TOOLBAR_NONE) { mToolbars[command_location]->enableCommand(commandId, enabled); } return command_location; }
S32 LLToolBarView::flashCommand(const LLCommandId& commandId, bool flash, bool force_flashing/* = false */) { S32 command_location = hasCommand(commandId); if (command_location != LLToolBarEnums::TOOLBAR_NONE) { mToolbars[command_location]->flashCommand(commandId, flash, force_flashing); } return command_location; }
S32 LLToolBarView::removeCommand(const LLCommandId& commandId, int& rank) { S32 command_location = hasCommand(commandId); rank = LLToolBar::RANK_NONE; if (command_location != TOOLBAR_NONE) { rank = mToolbars[command_location]->removeCommand(commandId); } return command_location; }