Package elisa :: Package plugins :: Package bad :: Package poblenou_frontend :: Package poblenou_widgets :: Module top_level_menu :: Class TopLevelMenu
[hide private]
[frames] | no frames]

Class TopLevelMenu

source code


Nested Classes [hide private]

Inherited from pgm.graph.group.Group: __metaclass__

Instance Methods [hide private]
 
__init__(self, canvas='frontend', layer=<enum PGM_DRAWABLE_MIDDLE of type PgmDrawableLayer>, width=1.0, height=1.0, font_family='DejaVu Sans', selected_position=(0.0, 0.0, 0.0), selected_size=(0.0, 0.0), selected_opacity=255, mode=0, path_steps=1, duration=500, transformation=7) source code
 
width__get(self) source code
 
height__get(self) source code
 
size__get(self) source code
 
width__set(self, width) source code
 
height__set(self, height) source code
 
size__set(self, size) source code
 
_within_bounds(self, index)
Internal function to make a bounds-check against the current limits of the item-list.
source code
 
_apply_selected_values(self, index)
Update self._items[index] with the values for the selected state
source code
 
_apply_hidden_values(self, item_index, value_index) source code
 
_apply_visible_values(self, item_index, value_index) source code
 
_calculate_value_list(self, value) source code
 
layout(self)
Compute the positions, sizes and opacities for all the items in the widget.
source code
 
regenerate_text(self) source code
 
update(self)
Sets the correct positions, sizes and opacities for all items in the widget depending on the currently select state or currently focused item.
source code
 
update_images(self, index, normal_file, blurred_file, reflected_file) source code
 
insert(self, index, normal_file, blurred_file, reflected_file, label)
This call has no effect if the widget is in state "selected"!
source code
 
append(self, normal_file, blurred_file, reflected_file, label)
This call has no effect if the widget is in state "selected"!
source code
 
delete(self, index)
This call has no effect if the widget is in state "selected"!
source code
 
prev(self)
Make the previous item in the widget the currently focused item.
source code
 
next(self)
Make the next item in the widget the currently focused item.
source code
 
select(self)
This toggles the selected state of the widget.
source code
 
is_selected(self)
Returns if widget is in selected state or not.
source code
 
focused_item__get(self)
Get the index of the currently focused item.
source code
 
focused_item__set(self, index)
Directly set the currently focused item.
source code

Inherited from pgm.graph.group.Group: absolute_opacity_factor__get, absolute_position__get, add, canvas__get, canvas__set, children__get, empty, opacity__get, opacity__set, parent__get, position__get, position__set, regenerate, remove, visible__get, visible__set, x__get, x__set, y__get, y__set, z__get, z__set

Inherited from pgm.graph.group.Group (private): _proxy_child_signal, _set_visibility_from_parent

Inherited from gobject.GObject: __cmp__, __delattr__, __gdoc__, __gobject_init__, __hash__, __new__, __repr__, __setattr__, chain, connect, connect_after, connect_object, connect_object_after, disconnect, disconnect_by_func, emit, emit_stop_by_name, freeze_notify, get_data, get_properties, get_property, handler_block, handler_block_by_func, handler_disconnect, handler_is_connected, handler_unblock, handler_unblock_by_func, notify, props, set_data, set_properties, set_property, stop_emission, thaw_notify, weak_ref

Inherited from object: __getattribute__, __reduce__, __reduce_ex__, __str__

Static Methods [hide private]

Inherited from pgm.graph.group.Group: __classinit__

Class Variables [hide private]

Inherited from pgm.graph.group.Group: __gsignals__, __gtype__

Properties [hide private]
  focused_item
Get the index of the currently focused item.
  height
  size
  width

Inherited from pgm.graph.group.Group: absolute_opacity_factor, absolute_position, canvas, children, opacity, parent, position, visible, x, y, z

Inherited from gobject.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]

__init__(self, canvas='frontend', layer=<enum PGM_DRAWABLE_MIDDLE of type PgmDrawableLayer>, width=1.0, height=1.0, font_family='DejaVu Sans', selected_position=(0.0, 0.0, 0.0), selected_size=(0.0, 0.0), selected_opacity=255, mode=0, path_steps=1, duration=500, transformation=7)
(Constructor)

source code 
Overrides: pgm.graph.group.Group.__init__

width__get(self)

source code 
Overrides: pgm.graph.group.Group.width__get

height__get(self)

source code 
Overrides: pgm.graph.group.Group.height__get

size__get(self)

source code 
Overrides: pgm.graph.group.Group.size__get

width__set(self, width)

source code 
Overrides: pgm.graph.group.Group.width__set

height__set(self, height)

source code 
Overrides: pgm.graph.group.Group.height__set

size__set(self, size)

source code 
Overrides: pgm.graph.group.Group.size__set

prev(self)

source code 
Make the previous item in the widget the currently focused item. This function will automatically set the selected state to false and also call update() implicitly for you.

next(self)

source code 
Make the next item in the widget the currently focused item. This function will automatically set the selected state to false and also call update() implicitly for you.

select(self)

source code 
This toggles the selected state of the widget. update() is called implicitly for you.

focused_item__get(self)

source code 
Get the index of the currently focused item. This does not imply any selected state! If you want to know the selected state call is_selected()

focused_item__set(self, index)

source code 
Directly set the currently focused item. This function has no effect if widget is in selected state. If widget is not in selected state update() is called implicitly for you.

Property Details [hide private]

focused_item

Get the index of the currently focused item. This does not imply any selected state! If you want to know the selected state call is_selected()
Get Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.top_level_menu.TopLevelMenu.focused_item__get(self) - Get the index of the currently focused item.
Set Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.top_level_menu.TopLevelMenu.focused_item__set(self, index) - Directly set the currently focused item.
Delete Method:
'frontend'

height

Get Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.top_level_menu.TopLevelMenu.height__get(self)
Set Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.top_level_menu.TopLevelMenu.height__set(self, height)
Delete Method:
'frontend'

size

Get Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.top_level_menu.TopLevelMenu.size__get(self)
Set Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.top_level_menu.TopLevelMenu.size__set(self, size)
Delete Method:
'frontend'

width

Get Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.top_level_menu.TopLevelMenu.width__get(self)
Set Method:
elisa.plugins.bad.poblenou_frontend.poblenou_widgets.top_level_menu.TopLevelMenu.width__set(self, width)
Delete Method:
'frontend'