Exemplo n.º 1
0
 def __init__(self, base_xml_widget, base_file_widget, tab_widget, project):
     AbstractManager.__init__(self, base_xml_widget, tab_widget, project,
                              'data_manager')
     self.xml_controller = XmlController_DataTools(self)
     self.file_tree = FileController_OpusData(self,
                                              self.project.data_path(),
                                              base_file_widget)
Exemplo n.º 2
0
class DataManager(AbstractManager):
    ''' Handler for GUI elements belonging to the Generals tab '''

    def __init__(self, base_xml_widget, base_file_widget, tab_widget, project):
        AbstractManager.__init__(self, base_xml_widget, tab_widget, project, 'data_manager')
        self.xml_controller = XmlController_DataTools(self)
        self.file_tree = FileController_OpusData(self, self.project.data_path(), base_file_widget)

    def close(self):
        ''' See AbstractManager for documentation '''
        # Make sure to also close the FileController when closing data manager
        self.file_tree.close()
        AbstractManager.close(self)
Exemplo n.º 3
0
class DataManager(AbstractManager):
    ''' Handler for GUI elements belonging to the Generals tab '''
    def __init__(self, base_xml_widget, base_file_widget, tab_widget, project):
        AbstractManager.__init__(self, base_xml_widget, tab_widget, project,
                                 'data_manager')
        self.xml_controller = XmlController_DataTools(self)
        self.file_tree = FileController_OpusData(self,
                                                 self.project.data_path(),
                                                 base_file_widget)

    def close(self):
        ''' See AbstractManager for documentation '''
        # Make sure to also close the FileController when closing data manager
        self.file_tree.close()
        AbstractManager.close(self)
Exemplo n.º 4
0
 def __init__(self, base_xml_widget, base_file_widget, tab_widget, project):
     AbstractManager.__init__(self, base_xml_widget, tab_widget, project, 'data_manager')
     self.xml_controller = XmlController_DataTools(self)
     self.file_tree = FileController_OpusData(self, self.project.data_path(), base_file_widget)