| Top |
BtSequenceGridModelBtSequenceGridModel — data model class for widgets showing the pattern sequence of a song |
| gulong | bars | Read / Write |
| gulong | length | Read / Write |
| BtSequenceGridModelPosFormat | pos-format | Read / Write |
A generic model representing the track x time grid of patterns of a song. Can be shown by a treeview.
The visible length can be greater then the real length of the underlying sequence, by setting the BtSequenceGridModel::length property.
BtSequenceGridModel * bt_sequence_grid_model_new (BtSequence *sequence,BtSongInfo *song_info,gulong bars);
Creates a grid model for the sequence
. The model is automatically updated on
changes in the content. It also expands its length in sync to the sequence.
To make the row-shading work, the application has to update “bars” when it changed on the view.
When setting “length” to a value greater than the real
sequence
, the model will append dummy rows. This allows the cursor to go
beyond the end to expand the sequence.
“bars” property“bars” gulong
tick stepping for the color shading.
Flags: Read / Write
Allowed values: [1,4294967295]
“length” property“length” gulong
visible length of the sequence (>= real length).
Flags: Read / Write
Allowed values: <= 4294967295
“pos-format” property“pos-format” BtSequenceGridModelPosFormat
the display format for position columns.
Flags: Read / Write
Default value: BT_SEQUENCE_GRID_MODEL_POS_FORMAT_TICKS