static gint OnDialogKey( GtkWidget* widget, GdkEventKey* event, gpointer data ) { if ( g_surfwin ) { if ( event->keyval == GDK_Return ) { if ( g_dlgSurface.m_bEditingTextureWidget ) { OnApply( NULL, NULL ); g_dlgSurface.m_bEditingTextureWidget = false; } else { OnDone( NULL, NULL ); } return TRUE; } if ( event->keyval == GDK_Escape ) { OnCancel( NULL, NULL ); return TRUE; } } return FALSE; }
void Move::OnForceStop() { OnDone(); }
// this method should be called if it's possible that no async clipboard // operation is currently in progress (like it can be the case when the // clipboard is cleared but not because we asked about it), it should only // be called if such situation is expected -- otherwise call OnDone() which // would assert in this case static void OnDoneIfInProgress(wxClipboard *clipboard) { if ( ms_clipboard ) OnDone(clipboard); }
void About::KeyPress (GG::Key key, boost::uint32_t key_code_point, GG::Flags<GG::ModKey> mod_keys) { if ((key == GG::GGK_RETURN) || (key == GG::GGK_ESCAPE)) { OnDone(); } }
HX_RESULT CBaseArchiver2::Done() { OnDone(); return HXR_OK; }