Top | ![]() |
![]() |
![]() |
![]() |
A generic model representing the presets of a machine, suitable for combo-boxes and treeview widgets.
One needs to manually tell the model of new, removed and changed presets.
BtPresetListModel *
bt_preset_list_model_new (GstElement *machine
);
Creates a list model of presets for the machine
. The model is automatically
updated when presets are added, removed or renamed.
void bt_preset_list_model_add (BtPresetListModel *model
,gchar *preset
);
Notifies the model that a new preset was added.
void bt_preset_list_model_remove (BtPresetListModel *model
,gchar *preset
);
Notifies the model that a preset was removed.
void bt_preset_list_model_rename (BtPresetListModel *model
,gchar *o_preset
,gchar *n_preset
);
Notifies the model that a preset was renamed.
gboolean bt_preset_list_model_find_iter (BtPresetListModel *model
,gchar *preset
,GtkTreeIter *iter
);
Find the preset and return the iter to the row.