void ossimQtViewDialogController::apply()
{
    if ( isIdentityMode() )
    {
        emit setIdentityMode(true);
    }
    else
    {
        emit setIdentityMode(false);
        transferFromDialog();
        emit applyView(theViewObject.get());
        transferToDialog();
    }
}
Ejemplo n.º 2
0
void Dialog::apply()
{
	if (isBufferDependent()) {
		if (!isBufferAvailable() ||
		    (isBufferReadonly() && !canApplyToReadOnly()))
			return;
	}

	applyView();
	dispatchParams();

	if (disconnectOnApply() && !isClosing()) {
		disconnect();
		initialiseParams(string());
		updateView();
	}
}
Ejemplo n.º 3
0
/// Pop the current active view
void Renderer::popView(){
	m_viewStack.pop();
	if(!m_viewStack.empty()){
		applyView(m_viewStack.top());
	}
};
Ejemplo n.º 4
0
/// Activate view and push it to the stack
void Renderer::pushView(const View& view){
	m_viewStack.push(view);
	applyView(view);
};
Ejemplo n.º 5
0
/// Set the currently active view
void Renderer::setView(const View &view){
	m_currentView = view;
	applyView(m_currentView);
};