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;
}
예제 #2
0
파일: Move.cpp 프로젝트: weimingtom/isilme
void	Move::OnForceStop()
{
    OnDone();
}
예제 #3
0
 // 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);
 }
예제 #4
0
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();
    }
}
예제 #5
0
HX_RESULT
CBaseArchiver2::Done()
{
    OnDone();
    return HXR_OK;
}