MuseScore  3.4
Music composition and notation
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Ms::Editor Class Reference

Contains a score editing logic. More...

#include <edit.h>

Collaboration diagram for Ms::Editor:
Collaboration graph
[legend]

Public Member Functions

 Editor (Score *s, bool allowNonUnique=false)
 
 Editor (const Editor &)=delete
 
 Editor (Editor &&)
 
Editoroperator= (const Editor &)=delete
 
Editoroperator= (Editor &&)
 
 ~Editor ()
 
void rollback ()
 
void commit ()
 
HairpinaddHairpin (HairpinType, ChordRest *cr1, ChordRest *cr2=nullptr, bool toCr2End=true)
 

Private Member Functions

void finishChanges ()
 

Private Attributes

Scorescore
 
bool needCommit
 

Friends

class Score
 

Detailed Description

Contains a score editing logic.

Constructor & Destructor Documentation

◆ Editor() [1/3]

Ms::Editor::Editor ( Score s,
bool  allowNonUnique = false 
)

◆ Editor() [2/3]

Ms::Editor::Editor ( const Editor )
delete

◆ Editor() [3/3]

Ms::Editor::Editor ( Editor &&  )

◆ ~Editor()

Ms::Editor::~Editor ( )

Member Function Documentation

◆ addHairpin()

Hairpin* Ms::Editor::addHairpin ( HairpinType  ,
ChordRest cr1,
ChordRest cr2 = nullptr,
bool  toCr2End = true 
)

◆ commit()

void Ms::Editor::commit ( )

◆ finishChanges()

void Ms::Editor::finishChanges ( )
private

◆ operator=() [1/2]

Editor& Ms::Editor::operator= ( const Editor )
delete

◆ operator=() [2/2]

Editor& Ms::Editor::operator= ( Editor &&  )

◆ rollback()

void Ms::Editor::rollback ( )

Friends And Related Function Documentation

◆ Score

friend class Score
friend

Member Data Documentation

◆ needCommit

bool Ms::Editor::needCommit
private

◆ score

Score* Ms::Editor::score
private

The documentation for this class was generated from the following file: