2022-02-09 18:30:49 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "classicmocknote.h"
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class SelectionManager
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit SelectionManager();
|
|
|
|
|
|
|
|
// Remove whole selection completely
|
|
|
|
void discard();
|
|
|
|
|
|
|
|
void fetch(ClassicMockNote * const note);
|
|
|
|
void remove(ClassicMockNote * const note);
|
|
|
|
|
|
|
|
void enableMultiselection(bool enable = true);
|
|
|
|
bool isMultiselectionEnabled() const;
|
|
|
|
|
2022-02-17 14:20:30 -05:00
|
|
|
void display() const;
|
|
|
|
|
2022-02-09 18:30:49 -05:00
|
|
|
private:
|
|
|
|
std::vector<ClassicMockNote*> _selected_notes;
|
|
|
|
bool _multiselection_enabled;
|
|
|
|
};
|