# Path: apasvo/gui/models/filterlistmodel.py
# class FilterListModel(QtCore.QAbstractTableModel):
#     def __init__(self, listobj, header=None):
#     def rowCount(self, parent=QtCore.QModelIndex()):
#     def columnCount(self, parent=QtCore.QModelIndex()):
#     def data(self, index, role=QtCore.Qt.DisplayRole):
#     def headerData(self, section, orientation, role=QtCore.Qt.DisplayRole):
#     def sort(self, column, order=QtCore.Qt.AscendingOrder):
#     def setData(self, index, value, role=QtCore.Qt.EditRole):
#     def flags(self, index):
#     def removeRows(self, row, count, parent=QtCore.QModelIndex()):
#     def addFilter(self, value=10.0):
#     def clearFilters(self):
#     def list(self):
# 
# Path: apasvo/gui/delegates/dsbdelegate.py
# class DoubleSpinBoxDelegate(QtGui.QStyledItemDelegate):
#     def __init__(self, parent=None, minimum=0.0, maximum=100.0, step=0.01):
#     def createEditor(self, parent, option, index):
#     def setEditorData(self, spinBox, index):
#     def setModelData(self, spinBox, model, index):
#     def updateEditorGeometry(self, editor, option, index):
# 
# Path: apasvo/_version.py

# 
# Path: apasvo/_version.py



from PySide import QtCore
from PySide import QtGui
from apasvo.gui.models import filterlistmodel
from apasvo.gui.delegates import dsbdelegate
from apasvo._version import _application_name
from apasvo._version import _organization
            if self._filters.rowCount() <= 1:
                self.actionRemoveFilter.setEnabled(False)
            self.ampawindowSpinBox.setMinimum(max(self._filters.list()) +
                                              self.step)

    def load_settings(self):
        # Read settings
        settings = QtCore.QSettings(_organization, _application_name)
        settings.beginGroup("ampa_settings")
        self.ampawindowSpinBox.setValue(float(settings.value('window_len', 100.0)))
        self.ampawindowstepSpinBox.setValue(float(settings.value('overlap', 50.0)))
        self.ampanoisethresholdSpinBox.setValue(int(settings.value('noise_threshold', 90)))
        self._filters.clearFilters()
        for value in self._load_filters():
            self.addFilter(float(value))
        settings.beginGroup("filter_bank_settings")
        self.startfSpinBox.setValue(float(settings.value('startf', 2.0)))
        self.endfSpinBox.setValue(float(settings.value('endf', 12.0)))
        self.bandwidthSpinBox.setValue(float(settings.value('bandwidth', 3.0)))
        self.overlapSpinBox.setValue(float(settings.value('overlap', 1.0)))
        settings.endGroup()
        settings.endGroup()
        settings.beginGroup("takanami_settings")
        self.takanamiCheckBox.setChecked(int(settings.value('takanami', True)))
        self.takanamiMarginSpinBox.setValue(float(settings.value('takanami_margin', 5.0)))
        settings.endGroup()

    def save_settings(self):

        """Saves settings to persistent storage."""

# Path: apasvo/gui/models/filterlistmodel.py
# class FilterListModel(QtCore.QAbstractTableModel):
#     def __init__(self, listobj, header=None):
#     def rowCount(self, parent=QtCore.QModelIndex()):
#     def columnCount(self, parent=QtCore.QModelIndex()):
#     def data(self, index, role=QtCore.Qt.DisplayRole):
#     def headerData(self, section, orientation, role=QtCore.Qt.DisplayRole):
#     def sort(self, column, order=QtCore.Qt.AscendingOrder):
#     def setData(self, index, value, role=QtCore.Qt.EditRole):
#     def flags(self, index):
#     def removeRows(self, row, count, parent=QtCore.QModelIndex()):
#     def addFilter(self, value=10.0):
#     def clearFilters(self):
#     def list(self):
# 
# Path: apasvo/gui/delegates/dsbdelegate.py
# class DoubleSpinBoxDelegate(QtGui.QStyledItemDelegate):
#     def __init__(self, parent=None, minimum=0.0, maximum=100.0, step=0.01):
#     def createEditor(self, parent, option, index):
#     def setEditorData(self, spinBox, index):
#     def setModelData(self, spinBox, model, index):
#     def updateEditorGeometry(self, editor, option, index):
# 
# Path: apasvo/_version.py

# 
# Path: apasvo/_version.py



# Path: apasvo/gui/views/ampadialog.py
from PySide import QtCore
from PySide import QtGui
from apasvo.gui.models import filterlistmodel
from apasvo.gui.delegates import dsbdelegate
from apasvo._version import _application_name
from apasvo._version import _organization

            if self._filters.rowCount() <= 1:
                self.actionRemoveFilter.setEnabled(False)
            self.ampawindowSpinBox.setMinimum(max(self._filters.list()) +
                                              self.step)

    def load_settings(self):
        # Read settings
        settings = QtCore.QSettings(_organization, _application_name)
        settings.beginGroup("ampa_settings")
        self.ampawindowSpinBox.setValue(float(settings.value('window_len', 100.0)))
        self.ampawindowstepSpinBox.setValue(float(settings.value('overlap', 50.0)))
        self.ampanoisethresholdSpinBox.setValue(int(settings.value('noise_threshold', 90)))
        self._filters.clearFilters()
        for value in self._load_filters():
            self.addFilter(float(value))
        settings.beginGroup("filter_bank_settings")
        self.startfSpinBox.setValue(float(settings.value('startf', 2.0)))
        self.endfSpinBox.setValue(float(settings.value('endf', 12.0)))
        self.bandwidthSpinBox.setValue(float(settings.value('bandwidth', 3.0)))
        self.overlapSpinBox.setValue(float(settings.value('overlap', 1.0)))
        settings.endGroup()
        settings.endGroup()
        settings.beginGroup("takanami_settings")
        self.takanamiCheckBox.setChecked(int(settings.value('takanami', True)))
        self.takanamiMarginSpinBox.setValue(float(settings.value('takanami_margin', 5.0)))
        settings.endGroup()

    def save_settings(self):

        """Saves settings to persistent storage."""

        settings = QtCore.QSettings(_organization, _application_name)