RB.RhythmDBPropertyModel¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/co  | 
  | 
||
r/w/co  | 
Property id  | 
||
r/w  | 
  | 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Emitted just before a row is deleted from the model.  | 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class RB.RhythmDBPropertyModel(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
A
RB.RhythmDBPropertyModelgroups the entries in aRB.RhythmDBQueryModelby the value of a property. For example, aRB.RhythmDBPropertyModelusing theRB.RhythmDBPropType.ARTISTproperty can be used as the model for aGtk.TreeViewthat 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
RB.RhythmDBPropertyModelfor each property.- classmethod new(db, propid)¶
 - Parameters:
 db (
RB.RhythmDB) – theRB.RhythmDBobjectpropid (
RB.RhythmDBPropType) – the property to index
- Returns:
 the new
RB.RhythmDBPropertyModel- Return type:
 
Creates a new property model for the specified property ID.
- enable_drag(view)¶
 - Parameters:
 view (
Gtk.TreeView) – theGtk.TreeViewfrom which to enable drag and drop
Enables drag and drop from a specified
Gtk.TreeViewthat is backed by theRB.RhythmDBPropertyModel. Drag targets are determined by the indexed property.
- iter_from_string(name, iter)¶
 - Parameters:
 name (
str) – the property value to finditer (
Gtk.TreeIter) – aGtk.TreeIterto point to the row
- Returns:
 Trueif the value was found.- Return type:
 
Locates the row in the model for a property value.
- do_pre_row_deletion() virtual¶
 
Signal Details¶
- RB.RhythmDBPropertyModel.signals.pre_row_deletion(rhythm_d_b_property_model)¶
 - Signal Name:
 pre-row-deletion- Flags:
 - Parameters:
 rhythm_d_b_property_model (
RB.RhythmDBPropertyModel) – The object which received the signal
Emitted just before a row is deleted from the model.
Property Details¶
- RB.RhythmDBPropertyModel.props.db¶
 - Name:
 db- Type:
 - Default Value:
 - Flags:
 
The
RB.RhythmDBobject the model is associated with.
- RB.RhythmDBPropertyModel.props.prop¶
 - Name:
 prop- Type:
 - Default Value:
 0- Flags:
 
The property that this property model indexes.
- RB.RhythmDBPropertyModel.props.query_model¶
 - Name:
 query-model- Type:
 - Default Value:
 - Flags:
 
The query model that this property model indexes.