SF.net SVN: fclient:[938] trunk/fclient/fclient/impl/ViewObject.py
Status: Pre-Alpha
Brought to you by:
jurner
From: <jU...@us...> - 2008-08-17 12:58:33
|
Revision: 938 http://fclient.svn.sourceforge.net/fclient/?rev=938&view=rev Author: jUrner Date: 2008-08-17 12:58:43 +0000 (Sun, 17 Aug 2008) Log Message: ----------- this and that Modified Paths: -------------- trunk/fclient/fclient/impl/ViewObject.py Modified: trunk/fclient/fclient/impl/ViewObject.py =================================================================== --- trunk/fclient/fclient/impl/ViewObject.py 2008-08-17 12:58:35 UTC (rev 937) +++ trunk/fclient/fclient/impl/ViewObject.py 2008-08-17 12:58:43 UTC (rev 938) @@ -25,33 +25,49 @@ def __init__(self, parentView=None): QtCore.QObject.__init__(self, parentView) config.ObjectRegistry.register(self) + self.emit(QtCore.SIGNAL('viewObjectRegistered(QObject*)'), self) def close(self): - pass + """closes the view""" + config.ObjectRegistry.unregister(self) + self.emit(QtCore.SIGNAL('viewObjectUnregistered(QObject*)'), self) def create(self): - pass + """creates the underlaying widget of the view object + @return: (QWidget) + @note: make shure to call the base class method after* creating the widget + """ + self.emit(QtCore.SIGNAL('viewObjectWidgetCreated(QObject*)'), self) def displayName(self): - pass + """returns the display name of the view object + @return: (QString) + """ + return QtCore.QString() def icon(self): - pass - + """returns the icon associated to the view + @return (QIcon) + """ + def name(self): - return '' + """returns the unique name of the view object + @return: (QString) + """ + return QtCore.QString() def parentWidget(self): + """returns the parent widget of the parent view""" parentView = self.parent() if parentView is not None: return parentView.widget() return None def prefsPage(self): - pass + """returns the preferences page of the view or None""" def widget(self): - pass + """returns the widget of the view or None""" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |