Ignore:
Timestamp:
Aug 13, 2025, 8:24:42 AM (2 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 moved

Legend:

Unmodified
Added
Removed
  • src/Actions/CommandAction/SetUndoMarkAction.cpp

    r1c355bf rbcc29ca  
    22 * Project: MoleCuilder
    33 * Description: creates and alters molecular systems
    4  * Copyright (C)  2021 Frederik Heber. All rights reserved.
     4 * Copyright (C)  2025 Frederik Heber. All rights reserved.
    55 *
    66 *
     
    2222
    2323/*
    24  * UndoMarkAction.cpp
     24 * SetUndoMarkAction.cpp
    2525 *
    2626 *  Created on: Apr 06, 2021
     
    3535//#include "CodePatterns/MemDebug.hpp"
    3636
    37 #include "Actions/CommandAction/UndoMarkAction.hpp"
     37#include "Actions/CommandAction/SetUndoMarkAction.hpp"
    3838
    3939#include "Actions/ActionQueue.hpp"
     
    4242
    4343// and construct the stuff
    44 #include "UndoMarkAction.def"
     44#include "SetUndoMarkAction.def"
    4545#include "Action_impl_pre.hpp"
    4646/** =========== define the function ====================== */
    47 ActionState::ptr CommandUndoMarkAction::performCall() {
     47ActionState::ptr CommandSetUndoMarkAction::performCall() {
    4848  // set ActionQueue on to last element (hence skipping all in between)
    4949
     
    5959}
    6060
    61 ActionState::ptr CommandUndoMarkAction::performUndo(ActionState::ptr _state) {
     61ActionState::ptr CommandSetUndoMarkAction::performUndo(ActionState::ptr _state) {
    6262  return Action::success;
    6363}
    6464
    65 ActionState::ptr CommandUndoMarkAction::performRedo(ActionState::ptr _state){
     65ActionState::ptr CommandSetUndoMarkAction::performRedo(ActionState::ptr _state){
    6666  return Action::success;
    6767}
    6868
    69 bool CommandUndoMarkAction::canUndo() {
     69bool CommandSetUndoMarkAction::canUndo() {
    7070  return false;
    7171}
    7272
    73 bool CommandUndoMarkAction::shouldUndo() {
     73bool CommandSetUndoMarkAction::shouldUndo() {
    7474  return false;
    7575}
Note: See TracChangeset for help on using the changeset viewer.