|
|
@ -25,7 +25,7 @@ class UnreadableMessageBox(QMessageBox): |
|
|
|
def __init__(self, fileName): |
|
|
|
super().__init__() |
|
|
|
|
|
|
|
self.setIcon(QMessageBox.Warning) |
|
|
|
self.setIcon(QMessageBox.Information) |
|
|
|
self.setWindowTitle(f"File \"{fileName}\" cannot be opened") |
|
|
|
self.setText("The file you have selected cannot be opened.") |
|
|
|
self.setInformativeText("Please make sure it is in the right format.") |
|
|
@ -41,7 +41,7 @@ class ChordNameWarningMessageBox(QMessageBox): |
|
|
|
def __init__(self): |
|
|
|
super().__init__() |
|
|
|
|
|
|
|
self.setIcon(QMessageBox.Warning) |
|
|
|
self.setIcon(QMessageBox.Information) |
|
|
|
self.setWindowTitle("Unnamed chord") |
|
|
|
self.setText("Chords must have a name.") |
|
|
|
self.setInformativeText("Please give your chord a name and try again.") |
|
|
@ -57,7 +57,7 @@ class SectionNameWarningMessageBox(QMessageBox): |
|
|
|
def __init__(self): |
|
|
|
super().__init__() |
|
|
|
|
|
|
|
self.setIcon(QMessageBox.Warning) |
|
|
|
self.setIcon(QMessageBox.Information) |
|
|
|
self.setWindowTitle("Unnamed section") |
|
|
|
self.setText("Sections must have a unique name.") |
|
|
|
self.setInformativeText( |
|
|
@ -74,7 +74,7 @@ class BlockMustHaveSectionWarningMessageBox(QMessageBox): |
|
|
|
def __init__(self): |
|
|
|
super().__init__() |
|
|
|
|
|
|
|
self.setIcon(QMessageBox.Warning) |
|
|
|
self.setIcon(QMessageBox.Information) |
|
|
|
self.setWindowTitle("No sections found") |
|
|
|
self.setText("Each block must belong to a section, but no sections have yet been created.") |
|
|
|
self.setInformativeText( |
|
|
@ -91,7 +91,7 @@ class VoicingWarningMessageBox(QMessageBox): |
|
|
|
def __init__(self): |
|
|
|
super().__init__() |
|
|
|
|
|
|
|
self.setIcon(QMessageBox.Warning) |
|
|
|
self.setIcon(QMessageBox.Information) |
|
|
|
self.setWindowTitle("Malformed voicing") |
|
|
|
self.setText( |
|
|
|
"The voicing you entered was not understood and has not been applied.") |
|
|
@ -109,7 +109,7 @@ class LengthWarningMessageBox(QMessageBox): |
|
|
|
def __init__(self): |
|
|
|
super().__init__() |
|
|
|
|
|
|
|
self.setIcon(QMessageBox.Warning) |
|
|
|
self.setIcon(QMessageBox.Information) |
|
|
|
self.setWindowTitle("Block without valid length") |
|
|
|
self.setText("Blocks must have a length.") |
|
|
|
self.setInformativeText( |
|
|
|