void nxtCanvasWidget::set_options_fill( bool setting ){ if( options ){ if( setting != options_fill_inverted ){ options_fill_inverted = !options_fill_inverted; options->set_fill_shape( !options->get_fill_shape() ); emit options_changed(); } } }
void nxtCanvasWidget::set_options_inverted( bool setting ){ if( options ){ if( setting != options_inverted ){ options_inverted = !options_inverted; options->invert_switch(); emit options_changed(); } } }
void CGUIMain::doQuitDialog() { reveal(); if (options_changed()) { CGUIMsgBox *msg = new CGUIMsgBox(_("Configuration has changed, save?"), CRRC_DIALOG_OK | CRRC_DIALOG_CANCEL, quitDialogCallback); msg->setOKButtonLegend(_("Yes")); msg->setCancelButtonLegend(_("No")); } else { Global::Simulation->quit(); } }
void nxtCanvasWidget::set_tool( tool_type new_tool ){ //TOOL_BITMAP is constant on, so disable it now if( current_tool == TOOL_BITMAP ){ disable_buffer(); selection.setWidth( 0 ); selection.setHeight( 0 ); if( options && options_inverted ){ options_inverted = false; options->invert_switch(); emit options_changed(); } update(); } current_tool = new_tool; }
void ChannelSettings::channel_options_changing() { emit options_changed(channel_index); }
void ChannelSettings::options_changing() { emit options_changed(-1); }