This widget displays the current table of note assignments, as contained in our NoteAssignmentsMap.
More...
#include <RosterWidget.h>
This widget displays the current table of note assignments, as contained in our NoteAssignmentsMap.
Definition at line 15 of file RosterWidget.h.
void AnimateLocalBells |
( |
quint64 |
notesChord | ) |
|
|
slot |
Causes the bells specified in the bit-chord to visually vibrate, as if they had been struck.
- Parameters
-
notesChord | a bit-chord of CHOIR_NOTE_* values indicating which bells to vibrate. |
void BellPositionClicked |
( |
const zg::ZGPeerID & |
peerID, |
|
|
uint32 |
noteIdx |
|
) |
| |
|
signal |
Emitted whenever a cell in the grid is clicked on by the user.
- Parameters
-
peerID | the ZGPeerID corresponding to the row that was clicked on |
noteIdx | The CHOIR_NOTE_* value corresponding to the column that was clicked on |
int GetTotalContentHeight |
( |
| ) |
const |
Returns The total height of the view's contents.
int GetVerticalScrollOffset |
( |
| ) |
const |
|
inline |
Returns how many pixels we have scrolled down from the top of the view.
Definition at line 74 of file RosterWidget.h.
Returns true iff this view is currently in read-only mode.
Definition at line 85 of file RosterWidget.h.
virtual void leaveEvent |
( |
QEvent * |
| ) |
|
|
virtual |
Called when the mouse pointer exits the RosterWidget's on-screen area.
virtual void mouseMoveEvent |
( |
QMouseEvent * |
| ) |
|
|
virtual |
virtual void mousePressEvent |
( |
QMouseEvent * |
| ) |
|
|
virtual |
Called when the user presses down on the mouse button while over the RosterWidget.
virtual void mouseReleaseEvent |
( |
QMouseEvent * |
| ) |
|
|
virtual |
Called when the user releases the mouse button while over the RosterWidget.
virtual void paintEvent |
( |
QPaintEvent * |
| ) |
|
|
virtual |
void SetLatenciesTable |
( |
Hashtable< ZGPeerID, uint64 > & |
latenciesTable | ) |
|
|
slot |
Sets the latency values we should display to the user at the right-hand side of the grid.
- Parameters
-
latenciesTable | a table of ZGPeerIDs and their associated latencies (in microseconds) |
void SetNoteAssignments |
( |
const ConstNoteAssignmentsMapRef & |
notesRef | ) |
|
|
inline |
Called to set the NotesAssignmentMap that the RosterWidget should consult to render handbell icons.
TheRosterWidget will place handbell icons in the grid according to the state of this object.
- Parameters
-
notesRef | a reference to a NotesAssignmentMap object. |
Definition at line 71 of file RosterWidget.h.
void SetNotesUsedInMusicSheet |
( |
uint64 |
notesChord | ) |
|
Called to tell the RosterWidget which notes are used in the current song.
The RosterWidget will use this information to lay out the columns it displays.
- Parameters
-
notesChord | a bit-chord of CHOIR_NOTE_* values |
void SetPeerIsOnline |
( |
const ZGPeerID & |
peerID, |
|
|
bool |
isOnline, |
|
|
const ConstMessageRef & |
optPeerInfo |
|
) |
| |
Called when a peer comes online or goes offline.
The RosterWidget will use this information to lay out the rows it displays.
- Parameters
-
peerID | the ZGPeerID of the peer we are being notified about |
isOnline | True iff this peer just came online; false iff this peer just went offline. |
optPeerInfo | Reference to some information about the peer (e.g. its on-screen name) |
void SetReadOnly |
( |
bool |
ro | ) |
|
|
inline |
Set whether this widget should allow user input via mouse-clicks or not.
- Parameters
-
ro | Iff true, this view will become read-only (darkened and non-clickable) |
Definition at line 82 of file RosterWidget.h.
void SetSeniorPeerID |
( |
const ZGPeerID & |
pid | ) |
|
Called whenever the senior-peer of the system changes.
The RosterWidget uses this information to render the senior peer's name in italics.
- Parameters
-
pid | the ZGPeerID of the new senior peer, or an invalid ZGPeerID if there is no senior peer(!?) |
void SetVerticalScrollOffset |
( |
int |
vso | ) |
|
|
inlineslot |
Sets our vertical-scroll offset.
- Parameters
-
vso | The number of pixels down from the top of the grid we should be scrolled to. |
Definition at line 106 of file RosterWidget.h.
virtual void showEvent |
( |
QShowEvent * |
| ) |
|
|
virtual |
void TotalContentHeightChanged |
( |
| ) |
|
|
signal |
Emitted whenever rows are added or removed from this view's grid.
virtual void wheelEvent |
( |
QWheelEvent * |
| ) |
|
|
virtual |
Called when the user turns the mouse-wheel while the mouse is over the RosterWidget.
void WheelTurned |
( |
int |
dy | ) |
|
|
signal |
Emitted whenever the user turns his little mouse-wheel while hovering over this view.
- Parameters
-
dy | A value indicating how far and in what direction the mouse-wheel was turned. |
The documentation for this class was generated from the following file: