# 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
        settings.setValue('startf', self.startfSpinBox.value())
        settings.setValue('endf', self.endfSpinBox.value())
        settings.setValue('bandwidth', self.bandwidthSpinBox.value())
        settings.setValue('overlap', self.overlapSpinBox.value())
        settings.endGroup()
        settings.endGroup()
        settings.beginGroup("takanami_settings")
        settings.setValue('takanami', self.takanamiCheckBox.checkState())
        settings.setValue('takanami_margin', self.takanamiMarginSpinBox.value())
        settings.endGroup()
        
    def onclick(self, button):

        if self.buttonBox.standardButton(button) == QtGui.QDialogButtonBox.RestoreDefaults:
            self.load_settings()
        if self.buttonBox.standardButton(button) == QtGui.QDialogButtonBox.Apply:
            self.save_settings()
        if self.buttonBox.standardButton(button) == QtGui.QDialogButtonBox.Ok:
            self.save_settings()

    def _on_size_changed(self, size):
        if size <= 1:
            self.actionRemoveFilter.setEnabled(False)

    def _on_data_changed(self, top_left, bottom_right):
        self.ampawindowSpinBox.setMinimum(max(self._filters.list()))

    def _load_filters(self, default=None):
        if default is None:
            default = [30.0, 20.0, 10.0, 5.0, 2.5]

# 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

        settings.setValue('startf', self.startfSpinBox.value())
        settings.setValue('endf', self.endfSpinBox.value())
        settings.setValue('bandwidth', self.bandwidthSpinBox.value())
        settings.setValue('overlap', self.overlapSpinBox.value())
        settings.endGroup()
        settings.endGroup()
        settings.beginGroup("takanami_settings")
        settings.setValue('takanami', self.takanamiCheckBox.checkState())
        settings.setValue('takanami_margin', self.takanamiMarginSpinBox.value())
        settings.endGroup()
        
    def onclick(self, button):

        if self.buttonBox.standardButton(button) == QtGui.QDialogButtonBox.RestoreDefaults:
            self.load_settings()
        if self.buttonBox.standardButton(button) == QtGui.QDialogButtonBox.Apply:
            self.save_settings()
        if self.buttonBox.standardButton(button) == QtGui.QDialogButtonBox.Ok:
            self.save_settings()

    def _on_size_changed(self, size):
        if size <= 1:
            self.actionRemoveFilter.setEnabled(False)

    def _on_data_changed(self, top_left, bottom_right):
        self.ampawindowSpinBox.setMinimum(max(self._filters.list()))

    def _load_filters(self, default=None):
        if default is None:
            default = [30.0, 20.0, 10.0, 5.0, 2.5]

        settings = QtCore.QSettings(_organization, _application_name)