1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 __maintainer__ = 'Florian Boucault <florian@fluendo.com>'
19
20
21 from elisa.base_components.model import Model
22
23
25 """
26 Modelize a menu node.
27
28 DOCME more.
29
30 @ivar text: label of the node
31 @type text: string or L{elisa.extern.translator.Translatable}
32 @ivar sub_text: second label of the node
33 @type sub_text: string or L{elisa.extern.translator.Translatable}
34 @ivar theme_icon: identifier of the icon used for the node
35 @type theme_icon: string
36 @ivar thumbnail_source: URI of a picture thumbnailed for the node; optional
37 @type thumbnail_source: L{elisa.core.media_uri.MediaUri}
38 @ivar has_children: True if the node has children nodes, False otherwise
39 @type has_children: boolean
40 @ivar uri: URI of the media represented by the node
41 @type uri: L{elisa.core.media_uri.MediaUri}
42 @ivar children: list containing all the child models
43 @type children: L{elisa.plugins.base.list_model.ListModel}
44 """
45
46 text = ''
47 sub_text = ''
48 theme_icon = 'unknown_icon'
49 thumbnail_source = None
50 has_children = False
51 uri = None
52 children = None
53