Verovio
Source code documentation
docselection.h
1
// Name: docselection.h
3
// Author: Laurent Pugin
4
// Created: 2022
5
// Copyright (c) Authors and others. All rights reserved.
7
8
#ifndef __VRV_DOC_SELECTION_H__
9
#define __VRV_DOC_SELECTION_H__
10
11
#include <string>
12
13
namespace
vrv {
14
15
class
Doc;
16
17
//----------------------------------------------------------------------------
18
// DocSelection
19
//----------------------------------------------------------------------------
20
24
class
DocSelection
{
25
26
public
:
30
DocSelection
();
32
virtual
~
DocSelection
() {}
34
39
bool
Parse
(
const
std::string &selection);
40
45
void
Set
(
Doc
*doc);
46
47
private
:
48
//
49
public
:
50
std::string m_selectionStart;
51
std::string m_selectionEnd;
52
int
m_selectionRangeStart;
53
int
m_selectionRangeEnd;
54
std::string m_measureRange;
55
bool
m_isPending;
56
};
57
58
}
// namespace vrv
59
60
#endif
vrv::Doc
This class is a hold the data and corresponds to the model of a MVC design pattern.
Definition:
doc.h:41
vrv::DocSelection
This class stores a document selection.
Definition:
docselection.h:24
vrv::DocSelection::Set
void Set(Doc *doc)
Set the selection to the Doc.
vrv::DocSelection::Parse
bool Parse(const std::string &selection)
Parse the stringified JSON string a stores the values.
include
vrv
docselection.h
Generated on Fri Apr 4 2025 06:58:35 for Verovio by
1.8.17