From 7787bfbf9e39595d98c459e4af121f3174762c7d Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 24 Nov 2019 13:26:29 +0100 Subject: Selection: move commands/command_private.* to core/selection.* The file command_private.cpp had functions concerning selections only. To make these functions accessible from outside the undo machinery, turn it into a part of the core-library. Currently, only C++ functions are exported. We might think about also exporting a C interface. Signed-off-by: Berthold Stoeger --- commands/command_private.h | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 commands/command_private.h (limited to 'commands/command_private.h') diff --git a/commands/command_private.h b/commands/command_private.h deleted file mode 100644 index 280654a93..000000000 --- a/commands/command_private.h +++ /dev/null @@ -1,25 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -// Private definitions for the command-objects - -#ifndef COMMAND_PRIVATE_H -#define COMMAND_PRIVATE_H - -#include "core/dive.h" - -#include -#include -#include - -namespace Command { - -// Reset the selection to the dives of the "selection" vector and send the appropriate signals. -// Set the current dive to "currentDive". "currentDive" must be an element of "selection" (or -// null if "seletion" is empty). Return true if the selection or current dive changed. -void setSelection(const std::vector &selection, dive *currentDive); - -// Get currently selectd dives -std::vector getDiveSelection(); - -} // namespace Command - -#endif // COMMAND_PRIVATE_H -- cgit v1.2.3-70-g09d2