Ignore:
Timestamp:
Aug 13, 2025, 8:24:42 AM (3 months ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
780bfa
Parents:
1c355bf
git-author:
Frederik Heber <frederik.heber@…> (08/13/25 08:17:04)
git-committer:
Frederik Heber <frederik.heber@…> (08/13/25 08:24:42)
Message:

Splits off Undo mark actions.

  • Undo action has again no parameters (which is preferable to use in the GUI).
  • undo-mark is now alled set-undo-mark (with parameter telling whether to set or unset the mark).
  • undo-till-mark is now a separate action.
  • adapted userguide accordingly.
  • TESTS: adapted regression tests.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/regression/Options/UndoMark/testsuite-options-undo-mark.at

    r1c355bf rbcc29ca  
    2222
    2323# simple call
    24 AT_CHECK([../../molecuilder --undo-mark 1 --undo --till-mark 1], 0, [ignore], [ignore])
     24AT_CHECK([../../molecuilder --set-undo-mark 1 --undo-till-mark], 0, [ignore], [ignore])
    2525
    2626# add an atom prior to undo-mark
    27 AT_CHECK([../../molecuilder --add-atom 1 --domain-position "5,5,5" --undo-mark 1 --undo --till-mark 1], 0, [stdout], [ignore])
    28 AT_CHECK([grep "Removing atom" stdout], 1, [ignore], [ignore])
     27AT_CHECK([../../molecuilder -i test-simple-prior.conf --add-atom 1 --domain-position "5,5,5" --set-undo-mark 1 --undo-till-mark], 0, [stdout], [ignore])
     28AT_CHECK([grep -c "ATOM" test-simple-prior.conf], 1, [ignore], [ignore])
    2929
    3030# add an atom after to undo-mark
    31 AT_CHECK([../../molecuilder --undo-mark 1 --add-atom 1 --domain-position "5,5,5" --undo --till-mark 1], 0, [stdout], [ignore])
    32 AT_CHECK([grep "Removing atom" stdout], 0, [ignore], [ignore])
     31AT_CHECK([../../molecuilder -i test-simple-after.conf --set-undo-mark 1 --add-atom 1 --domain-position "5,5,5" --undo-till-mark], 0, [stdout], [ignore])
     32AT_CHECK([grep -c "ATOM" test-simple-after.conf], 1, [ignore], [ignore])
    3333
    34 # add an atom prior to undo-mark
    35 AT_CHECK([../../molecuilder  --undo-mark 0 --add-atom 1 --domain-position "5,5,5" --select-all-atoms --undo --till-mark 1], 0, [stdout], [ignore])
    36 AT_CHECK([grep "Removing atom" stdout], 1, [ignore], [ignore])
     34# add an atom prior to undo-mark reset
     35AT_CHECK([../../molecuilder  -i test-simple-prior-reset.conf --set-undo-mark 0 --add-atom 1 --domain-position "5,5,5" --select-all-atoms --undo-till-mark], 0, [stdout], [ignore])
     36AT_CHECK([grep -c "ATOM" test-simple-prior-reset.conf], 1, [ignore], [ignore])
    3737
    3838# input file with added atom
    39 AT_CHECK([../../molecuilder --undo-mark 1 --input hydrogen.xyz --add-atom 1 --domain-position "5,5,5" --undo --till-mark 1 --select-all-atoms], 0, [stdout], [ignore])
     39AT_CHECK([../../molecuilder --set-undo-mark 1 --input hydrogen.xyz --add-atom 1 --domain-position "5,5,5" --undo-till-mark --select-all-atoms], 0, [stdout], [ignore])
    4040AT_CHECK([grep "0 atoms selected" stdout], 0, [ignore], [ignore])
    4141
    4242# input file with added atom
    43 AT_CHECK([../../molecuilder --input hydrogen.xyz --add-atom 1 --domain-position "5,5,5" --undo-mark 0 --undo --till-mark 0], 0, [stdout], [ignore])
     43AT_CHECK([../../molecuilder --input hydrogen.xyz --add-atom 1 --domain-position "5,5,5" --set-undo-mark 0 --undo-till-mark], 0, [stdout], [ignore])
    4444AT_CHECK([grep "Resetting mark" stdout], 0, [ignore], [ignore])
    4545
Note: See TracChangeset for help on using the changeset viewer.