Exemple #1
0
 def apply_state(self, state):
     """Imports data for save/restore"""
     # 1 is the widget version; change when widgets are added/removed
     MainWindow.apply_state(self, state)
     qtutils.apply_window_state(self, state, 1)
     for widget in self.dockwidgets:
         widget.titleBarWidget().update_tooltips()
Exemple #2
0
 def apply_state(self, state):
     """Imports data for save/restore"""
     # 1 is the widget version; change when widgets are added/removed
     MainWindow.apply_state(self, state)
     qtutils.apply_window_state(self, state, 1)
     for widget in self.dockwidgets:
         widget.titleBarWidget().update_tooltips()
Exemple #3
0
    def apply_state(self, state):
        """Imports data for save/restore"""
        result = MainWindow.apply_state(self, state)
        self.lock_layout_action.setChecked(state.get('lock_layout', False))

        show_status_filter = state.get('show_status_filter', False)
        self.statuswidget.filter_widget.setVisible(show_status_filter)
        return result
Exemple #4
0
    def apply_state(self, state):
        """Imports data for save/restore"""
        result = MainWindow.apply_state(self, state)
        self.lock_layout_action.setChecked(state.get('lock_layout', False))

        show_status_filter = state.get('show_status_filter', False)
        self.statuswidget.filter_widget.setVisible(show_status_filter)
        return result
Exemple #5
0
 def apply_state(self, state):
     result = MainWindow.apply_state(self, state)
     try:
         count = state['count']
         if self.dag.overridden('count'):
             count = self.dag.count
     except:
         count = self.dag.count
         result = False
     self.dag.set_count(count)
     self.lock_layout_action.setChecked(state.get('lock_layout', False))
     return result
Exemple #6
0
 def apply_state(self, state):
     result = MainWindow.apply_state(self, state)
     try:
         count = state['count']
         if self.dag.overridden('count'):
             count = self.dag.count
     except:
         count = self.dag.count
         result = False
     self.dag.set_count(count)
     self.lock_layout_action.setChecked(state.get('lock_layout', False))
     return result
Exemple #7
0
 def apply_state(self, state):
     """Imports data for save/restore"""
     result = MainWindow.apply_state(self, state)
     self.lock_layout_action.setChecked(state.get('lock_layout', False))
     return result
Exemple #8
0
 def apply_state(self, state):
     """Imports data for save/restore"""
     result = MainWindow.apply_state(self, state)
     self.lock_layout_action.setChecked(state.get('lock_layout', False))
     return result
Exemple #9
0
 def apply_state(self, state):
     """Imports data for save/restore"""
     # 1 is the widget version; change when widgets are added/removed
     MainWindow.apply_state(self, state)
     qtutils.apply_window_state(self, state, 1)