diff --git a/src/appshell/qml/MuseScore/AppShell/notationpagemodel.cpp b/src/appshell/qml/MuseScore/AppShell/notationpagemodel.cpp
index ef1755cff835b..14dc7b477b784 100644
--- a/src/appshell/qml/MuseScore/AppShell/notationpagemodel.cpp
+++ b/src/appshell/qml/MuseScore/AppShell/notationpagemodel.cpp
@@ -19,22 +19,27 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-#include "notationpagemodel.h"
-#include "internal/applicationuiactions.h"
-#include "dockwindow/idockwindow.h"
+#include "notationpagemodel.h"
#include "async/async.h"
+#include "log.h"
+
+#include "engraving/dom/part.h"
+#include "engraving/dom/score.h"
+#include "engraving/dom/staff.h"
#include "notation/inotationelements.h" // IWYU pragma: keep
#include "notation/inotationinteraction.h"
#include "notation/inotationnoteinput.h"
#include "notation/inotationselection.h"
-#include "log.h"
+#include "internal/applicationuiactions.h"
+#include "dockwindow/idockwindow.h"
using namespace mu::appshell;
using namespace mu::notation;
+using namespace mu::engraving;
using namespace muse::actions;
NotationPageModel::NotationPageModel(QObject* parent)
@@ -253,10 +258,10 @@ void NotationPageModel::doUpdatePercussionPanelVisibility()
return;
}
- const mu::engraving::Score* score = notation->elements()->msScore();
+ const Score* score = notation->elements()->msScore();
if (score) {
- const mu::engraving::InputState& inputState = score->inputState();
- const mu::engraving::Staff* staff = inputState.staff();
+ const InputState& inputState = score->inputState();
+ const Staff* staff = inputState.staff();
if (inputState.noteEntryMode() && staff && staff->isDrumStaff(inputState.tick())) {
setPercussionPanelOpen(true);
return;
diff --git a/src/appshell/qml/MuseScore/AppShell/notationstatusbarmodel.cpp b/src/appshell/qml/MuseScore/AppShell/notationstatusbarmodel.cpp
index 964448f820e63..052817f928f2f 100644
--- a/src/appshell/qml/MuseScore/AppShell/notationstatusbarmodel.cpp
+++ b/src/appshell/qml/MuseScore/AppShell/notationstatusbarmodel.cpp
@@ -32,6 +32,8 @@
#include "workspace/qml/Muse/Workspace/workspacesmenumodel.h"
#endif
+#include "engraving/dom/score.h"
+
#include "notation/inotationaccessibility.h"
#include "notation/inotationstyle.h" // IWYU pragma: keep
#include "notation/inotationundostack.h" // IWYU pragma: keep
diff --git a/src/appshell/qml/MuseScore/AppShell/notationstatusbarmodel.h b/src/appshell/qml/MuseScore/AppShell/notationstatusbarmodel.h
index 4251b3e564040..3132fc06d182b 100644
--- a/src/appshell/qml/MuseScore/AppShell/notationstatusbarmodel.h
+++ b/src/appshell/qml/MuseScore/AppShell/notationstatusbarmodel.h
@@ -38,9 +38,6 @@
#include "workspace/iworkspaceconfiguration.h"
#include "notation/inotationconfiguration.h"
#include "context/iglobalcontext.h"
-
-#include "notation/notationtypes.h"
-
#include "global/iglobalconfiguration.h"
namespace mu::appshell {
diff --git a/src/braille/internal/brailleinput.h b/src/braille/internal/brailleinput.h
index 6e9a01b71a0b8..97ea1c58ea3f3 100644
--- a/src/braille/internal/brailleinput.h
+++ b/src/braille/internal/brailleinput.h
@@ -20,8 +20,9 @@
* along with this program. If not, see .
*/
-#ifndef MU_BRAILLE_BRAILLEINPUT_H
-#define MU_BRAILLE_BRAILLEINPUT_H
+#pragma once
+
+#include "engraving/dom/accidental.h"
#include "notation/notationtypes.h"
@@ -68,7 +69,7 @@ class BrailleInputState
bool isDurationMatch();
DurationType getCloseDuration();
- notation::SymbolId articulation();
+ engraving::SymId articulation();
int octave();
int dots();
int addedOctave();
@@ -83,7 +84,7 @@ class BrailleInputState
void setNoteName(const notation::NoteName notename, const bool chord_base = true);
void setCurrentDuration(const DurationType duration);
void setNoteDurations(const std::vector durations);
- void setArticulation(const notation::SymbolId articulation);
+ void setArticulation(const engraving::SymId articulation);
void setOctave(const int octave, const bool chord_base = false);
void setDots(const int dots);
void setAddedOctave(const int octave);
@@ -116,16 +117,16 @@ class BrailleInputState
int tupletNumber();
void setTupletNumber(const int num);
- notation::Duration tupletDuration();
- void setTupletDuration(const notation::Duration d);
+ engraving::TDuration tupletDuration();
+ void setTupletDuration(const engraving::TDuration d);
void clearTuplet();
bool tupletIndicator();
void setTupletIndicator(bool val);
private:
- AccidentalType _accidental = AccidentalType::NONE;
+ engraving::AccidentalType _accidental = engraving::AccidentalType::NONE;
notation::NoteName _note_name = notation::NoteName::C;
notation::NoteName _chordbase_note_name = notation::NoteName::C;
- notation::SymbolId _articulation = notation::SymbolId::noSym;
+ engraving::SymId _articulation = engraving::SymId::noSym;
int _octave = 4;
int _chordbase_note_octave = 4;
int _added_octave = -1;
@@ -149,7 +150,7 @@ class BrailleInputState
bool _accord;
int _tuplet_number = -1;
- notation::Duration _tuplet_duration;
+ engraving::TDuration _tuplet_duration;
bool _tuplet_indicator = false;
};
@@ -162,9 +163,8 @@ int getInterval(const braille_code* code);
bool isNoteName(const braille_code* code);
QString fromNoteName(notation::NoteName);
AccidentalType getAccidentalType(const braille_code* code);
-notation::SymbolId getArticulation(const braille_code* code);
+engraving::SymId getArticulation(const braille_code* code);
int getOctave(const braille_code* code);
int getOctaveDiff(notation::NoteName source, notation::NoteName note);
std::pair applyInterval(notation::NoteName source, int interval, IntervalDirection direction);
}
-#endif // MU_BRAILLE_BRAILLEINPUT_H
diff --git a/src/braille/internal/notationbraille.cpp b/src/braille/internal/notationbraille.cpp
index 2df1866daf826..1ae148c4a7551 100644
--- a/src/braille/internal/notationbraille.cpp
+++ b/src/braille/internal/notationbraille.cpp
@@ -26,7 +26,9 @@
#include "engraving/dom/factory.h"
#include "engraving/dom/measure.h"
+#include "engraving/dom/score.h"
#include "engraving/dom/segment.h"
+#include "engraving/dom/select.h"
#include "engraving/dom/slur.h"
#include "engraving/dom/staff.h"
#include "engraving/dom/tie.h"
diff --git a/src/braille/internal/notationbraille.h b/src/braille/internal/notationbraille.h
index 623b83572d7cd..a88a2f6a5fd0e 100644
--- a/src/braille/internal/notationbraille.h
+++ b/src/braille/internal/notationbraille.h
@@ -20,8 +20,7 @@
* along with this program. If not, see .
*/
-#ifndef MU_BRAILLE_NOTATIONBRAILLE_H
-#define MU_BRAILLE_NOTATIONBRAILLE_H
+#pragma once
#include "accessibility/iaccessibilitycontroller.h"
#include "async/asyncable.h"
@@ -31,7 +30,7 @@
#include "ibrailleconfiguration.h"
#include "inotationbraille.h"
#include "modularity/ioc.h"
-#include "notation/notationtypes.h"
+#include "notation/types/noteinputtypes.h"
#include "playback/iplaybackcontroller.h"
#include "actions/iactionsdispatcher.h"
@@ -41,6 +40,7 @@
namespace mu::engraving {
class Score;
class Selection;
+class TDuration;
class NotationBraille : public mu::braille::INotationBraille, public muse::Contextable, public muse::async::Asyncable
{
@@ -69,8 +69,8 @@ class NotationBraille : public mu::braille::INotationBraille, public muse::Conte
bool incDuration();
bool decDuration();
bool setArticulation();
- void setInputNoteDuration(notation::Duration d);
- void setTupletDuration(int tuplet, notation::Duration d);
+ void setInputNoteDuration(engraving::TDuration d);
+ void setTupletDuration(int tuplet, engraving::TDuration d);
muse::ValCh brailleInfo() const override;
muse::ValCh cursorPosition() const override;
@@ -138,5 +138,3 @@ class NotationBraille : public mu::braille::INotationBraille, public muse::Conte
muse::async::Notification m_selectionChanged;
};
}
-
-#endif // MU_BRAILLE_NOTATIONBRAILLE_H
diff --git a/src/converter/internal/compat/backendapi.cpp b/src/converter/internal/compat/backendapi.cpp
index d6507165d3da2..ef0284154bdab 100644
--- a/src/converter/internal/compat/backendapi.cpp
+++ b/src/converter/internal/compat/backendapi.cpp
@@ -34,6 +34,7 @@
#include "engraving/infrastructure/mscwriter.h"
#include "engraving/dom/excerpt.h"
+#include "engraving/dom/score.h"
#include "engraving/rw/mscsaver.h"
#include "engraving/types/typesconv.h"
diff --git a/src/converter/internal/compat/notationmeta.cpp b/src/converter/internal/compat/notationmeta.cpp
index aade5243aa3e0..bbfda7c3cd236 100644
--- a/src/converter/internal/compat/notationmeta.cpp
+++ b/src/converter/internal/compat/notationmeta.cpp
@@ -30,6 +30,8 @@
#include "audio/common/audioutils.h"
#include "audio/common/audiotypes.h"
+#include "engraving/dom/part.h"
+#include "engraving/dom/score.h"
#include "engraving/dom/tempotext.h"
#include "engraving/dom/text.h"
diff --git a/src/converter/internal/convertercontroller.h b/src/converter/internal/convertercontroller.h
index 592342bfaa788..c7f51e80acf41 100644
--- a/src/converter/internal/convertercontroller.h
+++ b/src/converter/internal/convertercontroller.h
@@ -26,6 +26,7 @@
#include "../iconvertercontroller.h"
#include "modularity/ioc.h"
+#include "notation/notationtypes.h"
#include "project/iprojectcreator.h"
#include "project/inotationwritersregister.h"
#include "context/iglobalcontext.h"
diff --git a/src/engraving/api/v1/score.h b/src/engraving/api/v1/score.h
index afc09320759c5..e2177572624f1 100644
--- a/src/engraving/api/v1/score.h
+++ b/src/engraving/api/v1/score.h
@@ -27,6 +27,9 @@
#include "modularity/ioc.h"
#include "context/iglobalcontext.h"
+#include "engraving/dom/score.h"
+#include "engraving/dom/segment.h"
+
// api
#include "excerpt.h"
#include "apistructs.h"
diff --git a/src/engraving/dom/mscore.h b/src/engraving/dom/mscore.h
index 4c69dca7ae52f..6ae45b4e9d309 100644
--- a/src/engraving/dom/mscore.h
+++ b/src/engraving/dom/mscore.h
@@ -107,14 +107,6 @@ enum class SelectType : char {
SINGLE, RANGE, ADD, REPLACE
};
-//---------------------------------------------------------
-// UpDownMode
-//---------------------------------------------------------
-
-enum class UpDownMode : char {
- CHROMATIC, OCTAVE, DIATONIC
-};
-
//---------------------------------------------------------
// OffsetType
//---------------------------------------------------------
diff --git a/src/engraving/dom/realizedharmony.h b/src/engraving/dom/realizedharmony.h
index 399a26574810f..3e5be03f41172 100644
--- a/src/engraving/dom/realizedharmony.h
+++ b/src/engraving/dom/realizedharmony.h
@@ -20,12 +20,10 @@
* along with this program. If not, see .
*/
-#ifndef MU_ENGRAVING_REALIZEDHARMONY_H
-#define MU_ENGRAVING_REALIZEDHARMONY_H
+#pragma once
#include