Package flumotion :: Package admin :: Package gtk :: Module parts :: Class ComponentsView
[hide private]

Class ComponentsView

source code

common.log.Loggable --+
                      |
    gobject.GObject --+
                      |
                     ComponentsView

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

Instance Methods [hide private]
 
__init__(self, tree_widget) source code
 
_add_columns(self) source code
 
_getMoodPixbufs(self) source code
 
_view_cursor_changed_cb(self, *args) source code
 
_view_button_press_event_cb(self, treeview, event) source code
 
_activated_cb(self, menu, action, state) source code
string
get_selected_name(self)
Get the name of the currently selected component, or None.
source code
flumotion.common.component.AdminComponentState
get_selected_state(self)
Get the state of the currently selected component, or None.
source code
 
update_start_stop_props(self) source code
 
_removeListenerForeach(self, model, path, iter) source code
 
update(self, components)
Update the components view by removing all old components and showing the new ones.
source code
 
_updateWorker(self, iter, componentState) source code
 
stateSet(self, state, key, value) source code
 
_set_mood_value(self, iter, value)
Set the mood value on the given component name.
source code

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

Class Variables [hide private]
  logCategory = 'components'
Implementors can provide a category to log their messages under.
  _moodPixbufs = None
  _view = None
  _model = None

Inherited from common.log.Loggable: __implemented__, __provides__

Method Details [hide private]

__init__(self, tree_widget)
(Constructor)

source code 
Parameters:
  • tree_widget - the gtk.TreeWidget to put the view in.

update(self, components)

source code 

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

Parameters:

_set_mood_value(self, iter, value)

source code 

Set the mood value on the given component name.

Parameters:
  • value (int)