Ejemplo n.º 1
0
void MYMENU_EditRedo()
{
    if ( editmode == 1 ) {
        SendMessageW( hEdit, EM_REDO, 0, 0 );
    }
    else {
        history_redo();
        update_selection_rect();
        update_table_view( hwnd );
    }
}
Ejemplo n.º 2
0
void command_history(doc *d, char **args, int nargs)
{
  int i;
  int command = -1;

  for (i = 0; i < nargs; i++) {
    if(!strcmp(args[i],"-h")||!strcmp(args[i],"--help"))return history_usage();
    if (command != -1) return history_usage();
    if (!strcmp(args[i], "undo")) { command = UNDO; continue; }
    if (!strcmp(args[i], "redo")) { command = REDO; continue; }
    return history_usage();
  }
  if (command == -1) return history_usage();

  switch (command) {
  case UNDO: return history_undo(d);
  case REDO: return history_redo(d);
  }
}
Ejemplo n.º 3
0
static void redo(Sprite* sprite)
{
	history_redo(sprite->history);
}