RB.RhythmDBPropertyModel

g GObject.GInterface GObject.GInterface Gtk.TreeModel Gtk.TreeModel GObject.GInterface->Gtk.TreeModel GObject.Object GObject.Object RB.RhythmDBPropertyModel RB.RhythmDBPropertyModel GObject.Object->RB.RhythmDBPropertyModel Gtk.TreeModel->RB.RhythmDBPropertyModel

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Gtk.TreeModel (28)

Structs:

GObject.ObjectClass (5)

class

new (db, propid)

enable_drag (view)

iter_from_string (name, iter)

Virtual Methods

Inherited:

GObject.Object (7), Gtk.TreeModel (19)

do_pre_row_deletion ()

Properties

Name

Type

Flags

Short Description

db

RB.RhythmDB

r/w/co

RB.RhythmDB object

prop

int

r/w/co

Property id

query-model

RB.RhythmDBQueryModel

r/w

RB.RhythmDBQueryModel object

Signals

Inherited:

GObject.Object (1), Gtk.TreeModel (5)

Name

Short Description

pre-row-deletion

Emitted just before a row is deleted from the model.

Fields

Inherited:

GObject.Object (1), Gtk.TreeModel (5)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class RB.RhythmDBPropertyModel(**kwargs)
Bases:

GObject.Object, Gtk.TreeModel

Abstract:

No

Structure:

RB.RhythmDBPropertyModelClass

classmethod new(db, propid)
Parameters:
Returns:

the new RB.RhythmDBPropertyModel

Return type:

RB.RhythmDBPropertyModel

Creates a new property model for the specified property ID.

enable_drag(view)
Parameters:

view (Gtk.TreeView) – the Gtk.TreeView from which to enable drag and drop

Enables drag and drop from a specified Gtk.TreeView that is backed by the RB.RhythmDBPropertyModel. Drag targets are determined by the indexed property.

iter_from_string(name, iter)
Parameters:
Returns:

True if the value was found.

Return type:

bool

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:

RUN_LAST

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:

RB.RhythmDB

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The RB.RhythmDB object the model is associated with.

RB.RhythmDBPropertyModel.props.prop
Name:

prop

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The property that this property model indexes.

RB.RhythmDBPropertyModel.props.query_model
Name:

query-model

Type:

RB.RhythmDBQueryModel

Default Value:

None

Flags:

READABLE, WRITABLE

The query model that this property model indexes.