Browse Source

add block and track name to statusbar

master
Nils 9 months ago
parent
commit
ed9c33188e
  1. 1
      CHANGELOG
  2. 2
      engine/cursor.py
  3. 2
      qtgui/mainwindow.py

1
CHANGELOG

@ -23,6 +23,7 @@ Settings menu to autoconnect metronome audio ports to system on startup. Default
Metronome audio outputs now use real metronome name, not only pretty name
Use lilypond title as jack pretty client name, if provided (needs libcalfbox-lss 1.1.0)
Add preview image to Lilypond properties and metadata
More information about the cursor and position in the status bar
## 2022-04-15 2.0.3

2
engine/cursor.py

@ -124,6 +124,7 @@ class Cursor:
"type": "Cursor",
"trackIndex": trackState.index(),
"track" : trackState.track,
"trackName" : trackState.track.name,
"cboxMidiOutUuid" : trackState.track.sequencerInterface.cboxMidiOutUuid, #used for midi throught. Step midi shall produce sound through the current track.
"midiChannel" : trackState.midiChannel(), #zero based
"trackId" : id(trackState.track),
@ -135,6 +136,7 @@ class Cursor:
"appending" : trackState.isAppending(),
"blockindex" : trackState.blockindex,
"block" : block,
"blockName" : block.name,
"localCursorIndex" : block.localCursorIndex,
"itemId" : id(item),
"item" : item,

2
qtgui/mainwindow.py

@ -173,7 +173,7 @@ class MainWindow(TemplateMainWindow):
else:
itemMessage = "" #Appending
positionMessage = " Pitch: <b>{}</b> | Track: <b>{}</b> | Pos: <b>{}</b> | Ticks: <b>{}</b> ".format(c["lilypondPitch"], c["trackIndex"]+1, c["position"], c["tickindex"])
positionMessage = " Pitch: <b>{}</b> | Track: <b>{}-{}</b> | Block: <b>{}</b> | Pos: <b>{}</b> | Ticks: <b>{}</b> ".format(c["lilypondPitch"], c["trackIndex"]+1, c["trackName"], c["blockName"], c["position"], c["tickindex"])
message = "{} | {}".format(itemMessage, positionMessage)
#self.statusBar().showMessage(message) #overriden by tool tips, even empty ones

Loading…
Cancel
Save