BtPatternListModel

BtPatternListModel — data model class for widgets showing pattern of a song

Synopsis

#include "bt-edit.h"

struct              BtPatternListModel;
BtPattern *         bt_pattern_list_model_get_object    (BtPatternListModel *model,
                                                         GtkTreeIter *iter);
BtPatternListModel * bt_pattern_list_model_new          (BtMachine *machine,
                                                         BtSequence *sequence,
                                                         gboolean skip_internal);

Object Hierarchy

  GObject
   +----BtPatternListModel

Implemented Interfaces

BtPatternListModel implements GtkTreeModel.

Description

A generic model representing the patterns of a machine, suitable for combo-boxes and treeview widgets.

Details

struct BtPatternListModel

struct BtPatternListModel;

Data model for GtkTreeView or GtkComboBox.


bt_pattern_list_model_get_object ()

BtPattern *         bt_pattern_list_model_get_object    (BtPatternListModel *model,
                                                         GtkTreeIter *iter);

The the BtPattern for the iter.

model :

the model

iter :

the iter

bt_pattern_list_model_new ()

BtPatternListModel * bt_pattern_list_model_new          (BtMachine *machine,
                                                         BtSequence *sequence,
                                                         gboolean skip_internal);

Creates a list model of patterns for the machne. The model is automatically updated when patterns are added, removed or changed. The sequence is used to track the use of patterns.

machine :

the machine

sequence :

the sequence

skip_internal :

wheter to include internal patterns or not

Returns :

the pattern model.