-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14523a5
commit 583c71c
Showing
91 changed files
with
1,154 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "edwinstylehandler.h" | ||
|
||
bool EdwinStyleHandler::handle(Ms::Score* score) | ||
{ | ||
if (!score) | ||
return false; | ||
|
||
return score->loadStyle(":/styles/Edwin.mss", /*ign*/false, /*overlap*/true); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef EDWINSTYLEHANDLER_H | ||
#define EDWINSTYLEHANDLER_H | ||
|
||
#include "migration/iscoremigrationhandler.h" | ||
|
||
class EdwinStyleHandler : public IScoreMigrationHandler | ||
{ | ||
public: | ||
EdwinStyleHandler() = default; | ||
|
||
bool handle(Ms::Score* score) override; | ||
}; | ||
|
||
#endif // EDWINSTYLEHANDLER_H |
11 changes: 0 additions & 11 deletions
11
mscore/migration/handlers/firstsystemindentationhandler.cpp
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "lelandstylehandler.h" | ||
|
||
bool LelandStyleHandler::handle(Ms::Score* score) | ||
{ | ||
if (!score) | ||
return false; | ||
|
||
return score->loadStyle(":/styles/Leland.mss", /*ign*/false, /*overlap*/true); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef LELANDSTYLEHANDLER_H | ||
#define LELANDSTYLEHANDLER_H | ||
|
||
#include "migration/iscoremigrationhandler.h" | ||
|
||
class LelandStyleHandler : public IScoreMigrationHandler | ||
{ | ||
public: | ||
LelandStyleHandler() = default; | ||
|
||
bool handle(Ms::Score* score) override; | ||
}; | ||
|
||
#endif // LELANDSTYLEHANDLER_H |
11 changes: 0 additions & 11 deletions
11
mscore/migration/handlers/staffverticaljustificationhandler.cpp
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
mscore/migration/handlers/staffverticaljustificationhandler.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#include "styledefaultshandler.h" | ||
|
||
#include <QFile> | ||
|
||
bool StyleDefaultsHandler::handle(Ms::Score* score) | ||
{ | ||
if (!score) | ||
return false; | ||
|
||
if (!score->styleB(Ms::Sid::usePre_3_6_defaults) && score->mscVersion() < Ms::MSCVERSION) | ||
score->style().set(Ms::Sid::usePre_3_6_defaults, true); | ||
|
||
Ms::MStyle baseStyle; | ||
|
||
if (score->styleB(Ms::Sid::usePre_3_6_defaults)) { | ||
QFile oldDefaultsFile(":/styles/Pre-3.6-defaults.mss"); | ||
|
||
if (!oldDefaultsFile.open(QIODevice::ReadOnly)) | ||
return false; | ||
|
||
baseStyle.load(&oldDefaultsFile); | ||
|
||
score->style().applyNewDefaults(baseStyle); | ||
} | ||
|
||
QVariant lul = baseStyle.value(Ms::Sid::pageTwosided); | ||
|
||
Ms::MScore::setBaseStyle(baseStyle); | ||
|
||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef OLDSCOREHANDLER_H | ||
#define OLDSCOREHANDLER_H | ||
|
||
#include "migration/iscoremigrationhandler.h" | ||
|
||
class StyleDefaultsHandler : public IScoreMigrationHandler | ||
{ | ||
public: | ||
StyleDefaultsHandler() = default; | ||
|
||
bool handle(Ms::Score* score) override; | ||
}; | ||
|
||
#endif // OLDSCOREHANDLER_H |
Oops, something went wrong.