예제 #1
0
void UiManager::onActiveTabChanged(const qReal::TabInfo &tab)
{
	if (tab.type() == mCurrentTab) {
		return;
	}

	saveDocks();
	mCurrentTab = tab.type();
	reloadDocks();
	toggleModeButtons();
}
예제 #2
0
void ActionsManager::onActiveTabChanged(const qReal::TabInfo &info)
{
	updateEnabledActions();
	const bool isDiagramTab = info.type() == qReal::TabInfo::TabType::editor;
	mRunAction.setEnabled(isDiagramTab);
	mStopRobotAction.setEnabled(isDiagramTab);
}