예제 #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)
예제 #8
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)
예제 #9
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)
예제 #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)