Package flumotion :: Package admin :: Package gtk :: Module componentlist :: Class ComponentList
[hide private]

Class ComponentList

source code

extern.log.log.Loggable --+
                          |
             object --+   |
                      |   |
        gobject.GObject --+
                          |
                         ComponentList

I present a view on the list of components logged in to the manager.

Instance Methods [hide private]
 
__init__(self, treeView)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_createUI(self, treeView) source code
string
getSelectedNames(self)
Get the names of the currently selected component, or None.
source code
flumotion.common.component.AdminComponentState
getSelectedStates(self)
Get the states of the currently selected component, or None.
source code
list of strings
getComponentNames(self)
Fetches a list of all component names
source code
list of AdminComponentState
getComponentStates(self)
Fetches a list of all component states
source code
bool
canStart(self)
Get whether the selected components can be started.
source code
bool
canStop(self)
Get whether the selected components can be stoped.
source code
 
clearAndRebuild(self, components)
Update the components view by removing all old components and showing the new ones.
source code
 
stateSet(self, state, key, value) source code
 
_updateStartStop(self) source code
 
_updateWorker(self, titer, componentState) source code
 
_removeListenerForeach(self, model, path, titer) source code
 
_setMoodValue(self, titer, value)
Set the mood value on the given component name.
source code
 
_getSelected(self, col_name) source code
 
_tooltipsGetContext(self, treeview, keyboard_tip, x, y) source code
 
_getMoodPixbufs(self) source code
 
_selectionChanged(self) source code
 
_updateTooltip(self, path, tooltip) source code
 
_showPopupMenu(self, event) source code
 
_tree_view_query_tooltip_cb(self, treeview, x, y, keyboard_tip, tooltip) source code
 
_view_cursor_changed_cb(self, *args) source code
 
_view_button_press_event_cb(self, treeview, event) source code
 
do_get_property(self, prop) source code
 
do_set_property(self, prop, value) source code

Inherited from extern.log.log.Loggable: __providedBy__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

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__

Class Variables [hide private]
  logCategory = 'components'
Implementors can provide a category to log their messages under.
  __gtype__ = <GType flumotion+admin+gtk+componentlist+Component...
  __implemented__ = <implementedBy flumotion.admin.gtk.component...
  __provides__ = <zope.interface.declarations.ClassProvides obje...
Properties [hide private]

Inherited from gobject.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]

__init__(self, treeView)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • treeView - the gtk.TreeView to put the view in.
Overrides: object.__init__

getComponentNames(self)

source code 

Fetches a list of all component names

Returns: list of strings
component names

getComponentStates(self)

source code 

Fetches a list of all component states

Returns: list of AdminComponentState
component states

clearAndRebuild(self, components)

source code 

Update the components view by removing all old components and showing the new ones.

Parameters:

_setMoodValue(self, titer, value)

source code 

Set the mood value on the given component name.

Parameters:
  • value (int)

Class Variable Details [hide private]

__gtype__

Value:
<GType flumotion+admin+gtk+componentlist+ComponentList (149698312)>

__implemented__

Value:
<implementedBy flumotion.admin.gtk.componentlist.ComponentList>

__provides__

Value:
<zope.interface.declarations.ClassProvides object at 0x8ec84ac>