Exemple #1
0
 def actionPerformed(self, event):
     database_path = UIHelpers.choose_file()
     if database_path:
         if Application.get_instance().execute(
                 SetDomainDictValueCommand(
                     SetDomainDictValueCommand.TYPE_PERSISTENCE,
                     'database_path', database_path)):
             self._text_field.setText(database_path)
 def _execute_select_objects_command(self):
     Application.get_instance().execute(
         SetDomainDictValueCommand(
             self._get_domain_dict_type(), 'object_ids',
             self._model.map_object_indexes_to_ids([
                 self.convertRowIndexToModel(i)
                 for i in self.getSelectedRows()
             ])))
 def itemStateChanged(self, event):
     for button in self._buttons:
         if button.isSelected():
             Application.get_instance().execute(
                 SetDomainDictValueCommand(
                     SetDomainDictValueCommand.TYPE_VISIBLE_ITEMS,
                     'tags_operator', button.getLabel()))
             break
 def itemStateChanged(self, event):
     for button in self._buttons:
         if button.isSelected():
             Application.get_instance().execute(
                 SetDomainDictValueCommand(
                     SetDomainDictValueCommand.TYPE_PRE_ANALYZE_VALIDATOR,
                     'capturing', button.getLabel()))
             break
Exemple #5
0
 def itemStateChanged(self, event):
     statuses = []
     for check_box in self._check_boxes:
         if check_box.isSelected():
             statuses.append(check_box.getLabel())
     Application.get_instance().execute(
         SetDomainDictValueCommand(
             SetDomainDictValueCommand.TYPE_VISIBLE_ITEMS, 'statuses',
             statuses))
Exemple #6
0
 def itemStateChanged(self, event):
     scope_tools = []
     for check_box in self._check_boxes:
         if check_box.isSelected():
             scope_tools.append(check_box.getLabel())
     Application.get_instance().execute(SetDomainDictValueCommand(
         SetDomainDictValueCommand.TYPE_PRE_ANALYZE_VALIDATOR,
         'scope_tools',
         scope_tools
     ))
 def _execute_select_main_object_command(self):
     main_object_id = None
     main_object_index = self.getSelectedRow()
     if main_object_index != -1:
         main_object_id = self._model.map_object_indexes_to_ids(
             [self.convertRowIndexToModel(main_object_index)])[0]
     if main_object_id != self._prev_main_selected_object_id:
         Application.get_instance().execute(
             SetDomainDictValueCommand(self._get_domain_dict_type(),
                                       'main_object_id', main_object_id))
         self._prev_main_selected_object_id = main_object_id
Exemple #8
0
 def itemStateChanged(self, event):
     Application.get_instance().execute(
         SetDomainDictValueCommand(self._get_domain_dict_type(),
                                   self._get_domain_dict_key(),
                                   self._check_box.isSelected()))
 def focusLost(self, event):
     Application.get_instance().execute(
         SetDomainDictValueCommand(
             self._get_domain_dict_type(), self._get_domain_dict_key(),
             InfrastructureHelpers.split(self._text_field.getText())))
Exemple #10
0
 def _update(self):
     Application.get_instance().execute(SetDomainDictValueCommand(
         SetDomainDictValueCommand.TYPE_VISIBLE_ITEMS,
         'tags',
         InfrastructureHelpers.split(self._text_field.getText())
     ))