You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
522 B
C++
28 lines
522 B
C++
#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;
|
|
|
|
void display() const;
|
|
|
|
private:
|
|
std::vector<ClassicMockNote*> _selected_notes;
|
|
bool _multiselection_enabled;
|
|
};
|