Top | ![]() |
![]() |
![]() |
![]() |
RhythmDBPropertyModelRhythmDBPropertyModel — tree model grouping entries from a query model by property values |
RhythmDB * | db | Read / Write / Construct Only |
gint | prop | Read / Write / Construct Only |
RhythmDBQueryModel * | query-model | Read / Write |
struct | RhythmDBPropertyModel |
struct | RhythmDBPropertyModelClass |
enum | RhythmDBPropertyModelColumn |
A RhythmDBPropertyModel groups the entries in a RhythmDBQueryModel by the value of a property. For example, a RhythmDBPropertyModel using the RHYTHMDB_PROP_ARTIST property can be used as the model for a GtkTreeView that will list the artists present in the query model.
The album/artist/genre browsers displayed in the library and other sources are populated using a RhythmDBPropertyModel for each property.
RhythmDBPropertyModel * rhythmdb_property_model_new (RhythmDB *db
,RhythmDBPropType propid
);
Creates a new property model for the specified property ID.
gboolean rhythmdb_property_model_iter_from_string (RhythmDBPropertyModel *model
,const char *name
,GtkTreeIter *iter
);
Locates the row in the model for a property value.
void rhythmdb_property_model_enable_drag (RhythmDBPropertyModel *model
,GtkTreeView *view
);
Enables drag and drop from a specified GtkTreeView that is backed by the RhythmDBPropertyModel. Drag targets are determined by the indexed property.
struct RhythmDBPropertyModelClass { GObjectClass parent; void (*pre_row_deletion) (RhythmDBPropertyModel *model); };
“db”
property“db” RhythmDB *
The RhythmDB object the model is associated with.
Flags: Read / Write / Construct Only
“prop”
property“prop” gint
The property that this property model indexes.
Flags: Read / Write / Construct Only
Allowed values: [0,73]
Default value: 0
“query-model”
property“query-model” RhythmDBQueryModel *
The query model that this property model indexes.
Flags: Read / Write
“pre-row-deletion”
signalvoid user_function (RhythmDBPropertyModel *model, gpointer user_data)
Emitted just before a row is deleted from the model.
Flags: Run Last