def __init__(self, param=None): """Main Window for holding the Vispy Canvas and the parameter control menu. """ QtWidgets.QMainWindow.__init__(self) self.resize(1067, 800) icon = load_data_file('wiggly_bar/spring.ico') self.setWindowIcon(QtGui.QIcon(icon)) self.setWindowTitle('Nonlinear Physical Model Simulation') self.parameter_object = SetupWidget(self) self.parameter_object.param = (param if param is not None else self.parameter_object.param) self.parameter_object.changed_parameter_sig.connect(self.update_view) self.view_box = WigglyBar(**self.parameter_object.param.props) self.view_box.create_native() self.view_box.native.setParent(self) splitter = QtWidgets.QSplitter(QtCore.Qt.Horizontal) splitter.addWidget(self.parameter_object) splitter.addWidget(self.view_box.native) self.setCentralWidget(splitter)
def __init__(self): """ Build out the dock widgets with the kluster widgets inside. Will use QSettings object to retain size and position. """ super().__init__() self.setWindowTitle('Kluster Intelligence') self.setDockNestingEnabled(True) self.iconpath = os.path.join( os.path.dirname(os.path.dirname(__file__)), 'images', 'kluster_img.ico') self.setWindowIcon(QtGui.QIcon(self.iconpath)) self.widget_obj_names = [] self.project = fqpr_project.FqprProject( is_gui=False ) # is_gui controls the progress bar text, used to disable it for gui, no longer # fqpr = fully qualified ping record, the term for the datastore in kluster self.intelligence = fqpr_intelligence.FqprIntel(project=self.project) self.action_tab = ActionTab(self) self.monitor_dashboard = MonitorDashboard(self) self.project_view = kluster_projectview.KlusterProjectView(self) self.multibeam_intel = MultibeamIntel() self.nav_intel = NavIntel() self.naverror_intel = NavErrorIntel() self.navlog_intel = NavLogIntel() self.svp_intel = SvpIntel() self.lyout = QtWidgets.QGridLayout() self.top_widget = QtWidgets.QWidget() self.intel_tab = IntelTab() self.output_window = IntelOutput() self.setup_widgets() self.setup_signals() self.seen_files = [] self.intelligence.bind_to_action_update(self.action_tab.update_actions)