Browse Source

add block and track name to statusbar

master
Nils 2 years 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 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) Use lilypond title as jack pretty client name, if provided (needs libcalfbox-lss 1.1.0)
Add preview image to Lilypond properties and metadata 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 ## 2022-04-15 2.0.3

2
engine/cursor.py

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

2
qtgui/mainwindow.py

@ -173,7 +173,7 @@ class MainWindow(TemplateMainWindow):
else: else:
itemMessage = "" #Appending 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) message = "{} | {}".format(itemMessage, positionMessage)
#self.statusBar().showMessage(message) #overriden by tool tips, even empty ones #self.statusBar().showMessage(message) #overriden by tool tips, even empty ones

Loading…
Cancel
Save