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:
- classmethod new(db, propid)¶
- Parameters:
db (
RB.RhythmDB
) – theRB.RhythmDB
objectpropid (
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.TreeView
from which to enable drag and drop
Enables drag and drop from a specified
Gtk.TreeView
that 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.TreeIter
to point to the row
- Returns:
True
if 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.RhythmDB
object 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.