# 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
        self.ampawindowstepSpinBox.setMaximum(value)

    def on_ampa_window_step_changed(self, value):
        pass

    def on_startf_changed(self, value):
        self.endfSpinBox.setMinimum(value + self.endfSpinBox.singleStep())
        self.bandwidthSpinBox.setMaximum(self.nyquist_freq - value - self.bandwidthSpinBox.singleStep())

    def on_endf_changed(self, value):
        self.startfSpinBox.setMaximum(value - self.startfSpinBox.singleStep())

    def on_bandwidth_changed(self, value):
        self.overlapSpinBox.setMaximum(value - self.overlapSpinBox.singleStep())

    def addFilter(self, value=10.0):
        self._filters.addFilter(value)
        self.ampawindowSpinBox.setMinimum(max(self._filters.list()) +
                                          self.step)

    def removeFilter(self):
        if len(self.filtersTable.selectionModel().selectedRows()) > 0:
            self._filters.removeRow(self.filtersTable.currentIndex().row())
            if self._filters.rowCount() <= 1:
                self.actionRemoveFilter.setEnabled(False)
            self.ampawindowSpinBox.setMinimum(max(self._filters.list()) +
                                              self.step)

    def load_settings(self):
        # Read settings

# 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

        self.ampawindowstepSpinBox.setMaximum(value)

    def on_ampa_window_step_changed(self, value):
        pass

    def on_startf_changed(self, value):
        self.endfSpinBox.setMinimum(value + self.endfSpinBox.singleStep())
        self.bandwidthSpinBox.setMaximum(self.nyquist_freq - value - self.bandwidthSpinBox.singleStep())

    def on_endf_changed(self, value):
        self.startfSpinBox.setMaximum(value - self.startfSpinBox.singleStep())

    def on_bandwidth_changed(self, value):
        self.overlapSpinBox.setMaximum(value - self.overlapSpinBox.singleStep())

    def addFilter(self, value=10.0):
        self._filters.addFilter(value)
        self.ampawindowSpinBox.setMinimum(max(self._filters.list()) +
                                          self.step)

    def removeFilter(self):
        if len(self.filtersTable.selectionModel().selectedRows()) > 0:
            self._filters.removeRow(self.filtersTable.currentIndex().row())
            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)