class OutcomeFilesTrackerDockWidget(DockWidgetWidget):
    """
    a dock widget to track outcome files
    """
    def __init__(self, parent, **params):
        self.params = Params(**params)
        self.data_accessor = self.params.data_accessor  # alias
        super(OutcomeFilesTrackerDockWidget, self).__init__(parent,
            title=params.get('title', 'Outcome files tracker'),
            **params)

        self.__createFilesTrackerWidget__(QVBoxLayout())

        parent.addDockWidget(Qt.RightDockWidgetArea, self)

    def __createFilesTrackerWidget__(self, layout):
        self.__files_tracker_widget__ = FilesTrackerWidget(self.dockComposite,
                                                           layout=layout)

    def appendFile(self, _filename):
        self.__files_tracker_widget__.appendFile(_filename)
class OutcomeFilesTrackerDockWidget(DockWidgetWidget):
    """
    a dock widget to track outcome files
    """
    def __init__(self, parent, **params):
        self.params = Params(**params)
        self.data_accessor = self.params.data_accessor  # alias
        super(OutcomeFilesTrackerDockWidget,
              self).__init__(parent,
                             title=params.get('title',
                                              'Outcome files tracker'),
                             **params)

        self.__createFilesTrackerWidget__(QVBoxLayout())

        parent.addDockWidget(Qt.RightDockWidgetArea, self)

    def __createFilesTrackerWidget__(self, layout):
        self.__files_tracker_widget__ = FilesTrackerWidget(self.dockComposite,
                                                           layout=layout)

    def appendFile(self, _filename):
        self.__files_tracker_widget__.appendFile(_filename)
 def __createFilesTrackerWidget__(self, layout):
     self.__files_tracker_widget__ = FilesTrackerWidget(self.dockComposite,
                                                        layout=layout)
 def __createFilesTrackerWidget__(self, layout):
     self.__files_tracker_widget__ = FilesTrackerWidget(self.dockComposite,
                                                        layout=layout)