示例#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)
 def __init__(self,
              xml = '<opus_project> <manager /> </opus_project>',
              manager_node_path = 'manager',
              opus_project = None):
     self.app = QtGui.QApplication([], True)
     base_widget = QtGui.QWidget()
     base_widget.setLayout(QtGui.QVBoxLayout())
     base_tab_widget = QtGui.QTabWidget(base_widget)
     project = MockupOpusProject(xml) if not opus_project else opus_project
     AbstractManager.__init__(self, base_widget, base_tab_widget, project, manager_node_path)
示例#3
0
 def __init__(self,
              xml='<opus_project> <manager /> </opus_project>',
              manager_node_path='manager',
              opus_project=None):
     self.app = QtGui.QApplication([], True)
     base_widget = QtGui.QWidget()
     base_widget.setLayout(QtGui.QVBoxLayout())
     base_tab_widget = QtGui.QTabWidget(base_widget)
     project = MockupOpusProject(xml) if not opus_project else opus_project
     AbstractManager.__init__(self, base_widget, base_tab_widget, project,
                              manager_node_path)
示例#4
0
 def __init__(self, base_widget, tab_widget, project):
     AbstractManager.__init__(self, base_widget, tab_widget, project,
                              'general')
     self.xml_controller = XmlController_General(self)
 def __init__(self, base_widget, tab_widget, project):
     AbstractManager.__init__(self, base_widget, tab_widget, project, "model_manager")
     self.xml_controller = XmlController_Models(self)
示例#6
0
 def __init__(self, base_widget, tab_widget, project):
     AbstractManager.__init__(self, base_widget, tab_widget, project,
                              'results_manager')
     self.resultBrowser = None
     self.xml_controller = XmlController_Results(self)
示例#7
0
 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)
 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)
 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)
示例#10
0
 def __init__(self, base_widget, tab_widget, project):
     AbstractManager.__init__(self, base_widget, tab_widget, project,
                              'scenario_manager')
     self.xml_controller = XmlController_Scenarios(self)
 def __init__(self, base_widget, tab_widget, project):
     AbstractManager.__init__(self, base_widget, tab_widget, project, 'general')
     self.xml_controller = XmlController_General(self)
 def __init__(self, base_widget, tab_widget, project):
     AbstractManager.__init__(self, base_widget, tab_widget, project,
                              'scenario_manager')
     self.xml_controller = XmlController_Scenarios(self)
示例#13
0
 def __init__(self, base_widget, tab_widget, project):
     AbstractManager.__init__(self, base_widget, tab_widget, project,
                              'model_manager')
     self.xml_controller = XmlController_Models(self)