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

	saveDocks();
	mCurrentTab = tab.type();
	reloadDocks();
	toggleModeButtons();
}
Esempio n. 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);
}