SetSavedSearchesCommand.h header

#include <ew/core/SetSavedSearchesCommand.h>

Namespace ew::core

SetSavedSearchesCommand class

class ew::core::SetSavedSearchesCommand

Command that replaces the project's list of saved searches (used to add or remove one by pushing the new list). Undo restores the previous list.

Members

ew::core::SetSavedSearchesCommand::SetSavedSearchesCommand(Project &project, std::vector< SavedSearch > searches)

Creates a command that sets the saved searches to searches when applied.

ew::core::SetSavedSearchesCommand::~SetSavedSearchesCommand() override

Destroys the command.

void ew::core::SetSavedSearchesCommand::apply() override

Records the current saved searches and applies the new list.

void ew::core::SetSavedSearchesCommand::undo() override

Restores the previous saved searches.

QString ew::core::SetSavedSearchesCommand::description() const override

Returns a short description for the undo/redo UI.