# Path: apasvo/_version.py

# 
# Path: apasvo/_version.py



from PySide import QtCore
from PySide import QtGui
from apasvo._version import _application_name
from apasvo._version import _organization
        self.verticalLayout.addWidget(self.takanamiGroupBox)

        # Button Box
        self.buttonBox = QtGui.QDialogButtonBox(self)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.RestoreDefaults |
                                          QtGui.QDialogButtonBox.Cancel |
                                          QtGui.QDialogButtonBox.Ok)
        self.verticalLayout.addWidget(self.buttonBox)

    def on_sta_changed(self, value):
        self.ltaSpinBox.setMinimum(value + self.step)

    def on_lta_changed(self, value):
        self.staSpinBox.setMaximum(value - self.step)

    def load_settings(self):
        # Read settings
        settings = QtCore.QSettings(_organization, _application_name)
        settings.beginGroup('stalta_settings')
        self.staSpinBox.setValue(float(settings.value('sta_window_len', 5.0)))
        self.ltaSpinBox.setValue(float(settings.value('lta_window_len', 100.0)))
        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/_version.py

# 
# Path: apasvo/_version.py



# Path: apasvo/gui/views/staltadialog.py
from PySide import QtCore
from PySide import QtGui
from apasvo._version import _application_name
from apasvo._version import _organization

        self.verticalLayout.addWidget(self.takanamiGroupBox)

        # Button Box
        self.buttonBox = QtGui.QDialogButtonBox(self)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.RestoreDefaults |
                                          QtGui.QDialogButtonBox.Cancel |
                                          QtGui.QDialogButtonBox.Ok)
        self.verticalLayout.addWidget(self.buttonBox)

    def on_sta_changed(self, value):
        self.ltaSpinBox.setMinimum(value + self.step)

    def on_lta_changed(self, value):
        self.staSpinBox.setMaximum(value - self.step)

    def load_settings(self):
        # Read settings
        settings = QtCore.QSettings(_organization, _application_name)
        settings.beginGroup('stalta_settings')
        self.staSpinBox.setValue(float(settings.value('sta_window_len', 5.0)))
        self.ltaSpinBox.setValue(float(settings.value('lta_window_len', 100.0)))
        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)