Class s.g.s.i.ImageSlave(BaseEditorSlave):

Part of stoqlib.gui.slaves.imageslaveslave View In Hierarchy

A slave view showing a image inside a gtk.Button. When clicked it opens a dialog for selecting a new image, saving it on the 'image' attribute of the model
Method __init__ A base class for editor slaves inheritance
Method _setup_menu Create popup
Method _show_image Show an image from filename
Method _edit_image Opens a dialog to load and save a new image
Method _on_popup_edit__activate Undocumented
Method _on_popup_erase__activate Undocumented
Method on_eventbox__button_press_event Undocumented
Method on_eventbox__enter_notify_event Undocumented
Method on_eventbox__leave_notify_event Undocumented

Inherited from BaseEditorSlave:

Method _setup_visual_mode Undocumented
Method create_model Creates a new model for the editor.
Method setup_proxies A subclass can override this
Method setup_slaves A subclass can override this
Method on_cancel This is a hook method which must be redefined when some
Method on_confirm This is a hook method which must be redefined when some
Method update_visual_mode This method must be overwritten on child if some addition task in
Method validate_confirm Must be redefined by childs and will perform some validations
def __init__(self, conn, model):
A base class for editor slaves inheritance
Parametersconna connection
modelthe object model tied with the proxy widgets
visual_modedoes this slave must be opened in visual mode? if so, all the proxy widgets will be disable
def _setup_menu(self):
Create popup
def _show_image(self, filename, sensitive):
Show an image from filename
def _edit_image(self):
Opens a dialog to load and save a new image
def _on_popup_edit__activate(self, menu):
Undocumented
def _on_popup_erase__activate(self, menu):
Undocumented
def on_eventbox__button_press_event(self, eventbox, event):
Undocumented
def on_eventbox__enter_notify_event(self, eventbox, event):
Undocumented
def on_eventbox__leave_notify_event(self, eventbox, event):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.