BtMachineListModel

BtMachineListModel — data model class for widgets showing machines of a song

Synopsis

#include "bt-edit.h"

struct              BtMachineListModel;
BtMachine *         bt_machine_list_model_get_object    (BtMachineListModel *model,
                                                         GtkTreeIter *iter);
BtMachineListModel * bt_machine_list_model_new          (BtSetup *setup);

Object Hierarchy

  GObject
   +----BtMachineListModel

Implemented Interfaces

BtMachineListModel implements GtkTreeModel.

Description

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

Details

struct BtMachineListModel

struct BtMachineListModel;

Data model for GtkTreeView or GtkComboBox.


bt_machine_list_model_get_object ()

BtMachine *         bt_machine_list_model_get_object    (BtMachineListModel *model,
                                                         GtkTreeIter *iter);

The the BtMachine for the iter.

model :

the model

iter :

the iter

bt_machine_list_model_new ()

BtMachineListModel * bt_machine_list_model_new          (BtSetup *setup);

Creates a list model of machines for the setup. The model is automatically updated when machines are added, removed or changed.

setup :

the setup

Returns :

the machine model.