Esempio n. 1
0
    def save_settings(self, plugin_settings, instance_settings):
        instance_settings.set_value('settings_exist', True)

        instance_settings.set_value('table_splitter',
                                    self.table_splitter.saveState())
        instance_settings.set_value('filter_splitter',
                                    self.filter_splitter.saveState())

        instance_settings.set_value('paused', self._paused)
        instance_settings.set_value('show_highlighted_only',
                                    self.highlight_exclude_button.isChecked())

        exclude_filters = []
        for index, item in enumerate(self._exclude_filters):
            exclude_filters.append(item[2])
            filter_settings = instance_settings.get_settings(
                'exclude_filter_' + str(index))
            item[1].save_settings(filter_settings)
        instance_settings.set_value('exclude_filters', pack(exclude_filters))

        highlight_filters = []
        for index, item in enumerate(self._highlight_filters):
            highlight_filters.append(item[2])
            filter_settings = instance_settings.get_settings(
                'highlight_filter_' + str(index))
            item[1].save_settings(filter_settings)
        instance_settings.set_value('highlight_filters',
                                    pack(highlight_filters))
        instance_settings.set_value('message_limit',
                                    self._model.get_message_limit())
 def save_settings(self, settings):
     """
     Saves the settings for this filter.
     :param settings: used to write the settings to an ini file ''qt_gui.settings.Settings''
     """
     settings.set_value('displist', pack(self._display_list))
     settings.set_value('itemlist', pack(self._parentfilter._list))
Esempio n. 3
0
 def save_settings(self, plugin_settings, instance_settings):
     """Save the settings associated with this widget
     Currently, this is just the plot type, but may include more useful
     data in the future"""
     instance_settings.set_value('plot_type', self._plot_index)
     xlim = self.get_xlim()
     ylim = self.get_ylim()
     # convert limits to normal arrays of floats; some backends return numpy
     # arrays
     xlim = [float(x) for x in xlim]
     ylim = [float(y) for y in ylim]
     instance_settings.set_value('x_limits', pack(xlim))
     instance_settings.set_value('y_limits', pack(ylim))
Esempio n. 4
0
    def save_settings(self, plugin_settings, instance_settings):
        """Save the settings associated with this widget

        Currently, this is just the plot type, but may include more useful
        data in the future"""
        instance_settings.set_value('plot_type', self._plot_index)
        xlim = self.get_xlim()
        ylim = self.get_ylim()
        # convert limits to normal arrays of floats; some backends return numpy
        # arrays
        xlim = [float(x) for x in xlim]
        ylim = [float(y) for y in ylim]
        instance_settings.set_value('x_limits', pack(xlim))
        instance_settings.set_value('y_limits', pack(ylim))
    def save_settings(self, settings):
        """
        Saves the settings for this filter to an ini file.
        :param settings: used to write the settings to an ini file ''qt_gui.settings.Settings''
        """
        settings.set_value('text', self._parentfilter._message._text)
        settings.set_value('regex', self._parentfilter._message._regex)

        settings.set_value('severityitemlist', pack(self._parentfilter._severity._selected_items))

        settings.set_value('topicitemlist', pack(self._parentfilter._topic._selected_items))

        settings.set_value('nodeitemlist', pack(self._parentfilter._node._selected_items))

        return
    def save_settings(self, settings):
        """
        Saves the settings for this filter to an ini file.
        :param settings: used to write the settings to an ini file ''qt_gui.settings.Settings''
        """
        settings.set_value('text', self._parentfilter._message._text)
        settings.set_value('regex', self._parentfilter._message._regex)

        settings.set_value('severityitemlist', pack(self._parentfilter._severity._selected_items))

        settings.set_value('topicitemlist', pack(self._parentfilter._topic._selected_items))

        settings.set_value('nodeitemlist', pack(self._parentfilter._node._selected_items))

        return
Esempio n. 7
0
 def save_settings(self, plugin_settings, instance_settings):
     self._data_plot.save_settings(plugin_settings, instance_settings)
     instance_settings.set_value(
         'autoscroll', self._widget.autoscroll_checkbox.isChecked())
     instance_settings.set_value(
         'autoscale_y', self._widget.autoscale_y_checkbox.isChecked())
     instance_settings.set_value('topics',
                                 pack(self._widget._rosdata.keys()))
Esempio n. 8
0
 def save_settings(self, plugin_settings, instance_settings):
     self._data_plot.save_settings(plugin_settings, instance_settings)
     instance_settings.set_value('topics',
                                 pack(self._widget._rosdata.keys()))
     instance_settings.set_value(
         'window',
         str(self._widget.data_plot._data_plot_widget.window).decode())
     instance_settings.set_value(
         'bins',
         str(self._widget.data_plot._data_plot_widget.bins).decode())
    def save_settings(self, plugin_settings, instance_settings):
        instance_settings.set_value('settings_exist', True)

        instance_settings.set_value('table_splitter', self.table_splitter.saveState())
        instance_settings.set_value('filter_splitter', self.filter_splitter.saveState())

        instance_settings.set_value('paused', self._paused)
        instance_settings.set_value('show_highlighted_only', self.highlight_exclude_button.isChecked())

        exclude_filters = []
        for index, item in enumerate(self._exclude_filters):
            exclude_filters.append(item[2])
            filter_settings = instance_settings.get_settings('exclude_filter_' + str(index))
            item[1].save_settings(filter_settings)
        instance_settings.set_value('exclude_filters', pack(exclude_filters))

        highlight_filters = []
        for index, item in enumerate(self._highlight_filters):
            highlight_filters.append(item[2])
            filter_settings = instance_settings.get_settings('highlight_filter_' + str(index))
            item[1].save_settings(filter_settings)
        instance_settings.set_value('highlight_filters', pack(highlight_filters))
        instance_settings.set_value('message_limit', self._model.get_message_limit())
Esempio n. 10
0
 def save_settings(self, plugin_settings, instance_settings):
     self._data_plot.save_settings(plugin_settings, instance_settings)
     instance_settings.set_value('autoscroll', self._widget.autoscroll_checkbox.isChecked())
     instance_settings.set_value('topics', pack(self._widget._rosdata.keys()))
Esempio n. 11
0
 def save_settings(self, plugin_settings, instance_settings):
     instance_settings.set_value('plot_type', self._plot_type_index)
     # Store / retrieve in order
     instance_settings.set_value('topics',
                                 pack(self._widget._ordered_topics))
Esempio n. 12
0
 def save_settings(self, plugin_settings, instance_settings):
     instance_settings.set_value('plot_type', self._plot_type_index)
     instance_settings.set_value('topics', pack(self._widget._rosdata.keys()))
 def save_settings(self, settings):
     """
     Saves the settings for this filter.
     :param settings: used to write the settings to an ini file ''qt_gui.settings.Settings''
     """
     settings.set_value('itemlist', pack(self._parentfilter._selected_items))
Esempio n. 14
0
 def save_settings(self, plugin_settings, instance_settings):
     instance_settings.set_value('plot_type', self._plot_type_index)
     instance_settings.set_value('autoscroll', self._widget.autoscroll_checkbox.isChecked())
     instance_settings.set_value('topics', pack(self._widget._rosdata.keys()))