# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'preferences.ui'
#
# Created: Fri Apr 26 14:57:21 2019
#      by: pyside-uic 0.2.15 running on PySide 1.2.4
#
# WARNING! All changes made in this file will be lost!

from PySide import QtCore, QtGui

class Ui_PreferencesDialog(object):
    def setupUi(self, PreferencesDialog):
        PreferencesDialog.setObjectName("PreferencesDialog")
        PreferencesDialog.resize(414, 379)
        self.verticalLayout = QtGui.QVBoxLayout(PreferencesDialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.tabWidget = QtGui.QTabWidget(PreferencesDialog)
        self.tabWidget.setObjectName("tabWidget")
        self.streamingTab = QtGui.QWidget()
        self.streamingTab.setObjectName("streamingTab")
        self.gridLayout_3 = QtGui.QGridLayout(self.streamingTab)
        self.gridLayout_3.setObjectName("gridLayout_3")
        spacerItem = QtGui.QSpacerItem(20, 10, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        self.gridLayout_3.addItem(spacerItem, 1, 0, 1, 1)
        self.automaticRGBCheckBox = QtGui.QCheckBox(self.streamingTab)
        self.automaticRGBCheckBox.setChecked(True)
        self.automaticRGBCheckBox.setObjectName("automaticRGBCheckBox")
        self.gridLayout_3.addWidget(self.automaticRGBCheckBox, 1, 1, 1, 1)
        self.ledsLabel = QtGui.QLabel(self.streamingTab)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.ledsLabel.setFont(font)
        self.ledsLabel.setObjectName("ledsLabel")
        self.gridLayout_3.addWidget(self.ledsLabel, 0, 0, 1, 2)
        spacerItem1 = QtGui.QSpacerItem(369, 243, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_3.addItem(spacerItem1, 5, 0, 1, 2)
        self.downsamplingLabel = QtGui.QLabel(self.streamingTab)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.downsamplingLabel.setFont(font)
        self.downsamplingLabel.setObjectName("downsamplingLabel")
        self.gridLayout_3.addWidget(self.downsamplingLabel, 2, 0, 1, 2)
        self.downsampleCheckBox = QtGui.QCheckBox(self.streamingTab)
        self.downsampleCheckBox.setChecked(True)
        self.downsampleCheckBox.setObjectName("downsampleCheckBox")
        self.gridLayout_3.addWidget(self.downsampleCheckBox, 3, 1, 1, 1)
        self.tabWidget.addTab(self.streamingTab, "")
        self.unitTab = QtGui.QWidget()
        self.unitTab.setObjectName("unitTab")
        self.gridLayout = QtGui.QGridLayout(self.unitTab)
        self.gridLayout.setObjectName("gridLayout")
        self.unitsLabel = QtGui.QLabel(self.unitTab)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.unitsLabel.setFont(font)
        self.unitsLabel.setObjectName("unitsLabel")
        self.gridLayout.addWidget(self.unitsLabel, 0, 0, 1, 2)
        spacerItem2 = QtGui.QSpacerItem(20, 13, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem2, 1, 0, 1, 1)
        spacerItem3 = QtGui.QSpacerItem(20, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem3, 4, 0, 1, 2)
        self.unitGridLayout = QtGui.QGridLayout()
        self.unitGridLayout.setObjectName("unitGridLayout")
        self.metricUnits = QtGui.QRadioButton(self.unitTab)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.metricUnits.setFont(font)
        self.metricUnits.setObjectName("metricUnits")
        self.unitGridLayout.addWidget(self.metricUnits, 0, 0, 1, 1)
        self.usUnits = QtGui.QRadioButton(self.unitTab)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.usUnits.setFont(font)
        self.usUnits.setObjectName("usUnits")
        self.unitGridLayout.addWidget(self.usUnits, 0, 1, 1, 1)
        self.mixedUnits = QtGui.QRadioButton(self.unitTab)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.mixedUnits.setFont(font)
        self.mixedUnits.setObjectName("mixedUnits")
        self.unitGridLayout.addWidget(self.mixedUnits, 0, 2, 1, 1)
        self.gridLayout.addLayout(self.unitGridLayout, 1, 1, 1, 1)
        self.tabWidget.addTab(self.unitTab, "")
        self.outputTab = QtGui.QWidget()
        self.outputTab.setObjectName("outputTab")
        self.gridLayout_2 = QtGui.QGridLayout(self.outputTab)
        self.gridLayout_2.setObjectName("gridLayout_2")
        spacerItem4 = QtGui.QSpacerItem(369, 237, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem4, 6, 0, 1, 3)
        self.outputLocationLabel = QtGui.QLabel(self.outputTab)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.outputLocationLabel.setFont(font)
        self.outputLocationLabel.setObjectName("outputLocationLabel")
        self.gridLayout_2.addWidget(self.outputLocationLabel, 0, 0, 1, 3)
        self.compressionLevel = QtGui.QSpinBox(self.outputTab)
        self.compressionLevel.setMinimum(0)
        self.compressionLevel.setMaximum(9)
        self.compressionLevel.setProperty("value", 6)
        self.compressionLevel.setObjectName("compressionLevel")
        self.gridLayout_2.addWidget(self.compressionLevel, 5, 2, 1, 1)
        self.compressionLabel = QtGui.QLabel(self.outputTab)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.compressionLabel.setFont(font)
        self.compressionLabel.setObjectName("compressionLabel")
        self.gridLayout_2.addWidget(self.compressionLabel, 3, 0, 1, 3)
        self.compressionLevelLabel = QtGui.QLabel(self.outputTab)
        self.compressionLevelLabel.setObjectName("compressionLevelLabel")
        self.gridLayout_2.addWidget(self.compressionLevelLabel, 5, 1, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.outputLocation = QtGui.QLineEdit(self.outputTab)
        self.outputLocation.setObjectName("outputLocation")
        self.horizontalLayout.addWidget(self.outputLocation)
        self.browseButton = QtGui.QPushButton(self.outputTab)
        self.browseButton.setObjectName("browseButton")
        self.horizontalLayout.addWidget(self.browseButton)
        self.gridLayout_2.addLayout(self.horizontalLayout, 1, 1, 1, 2)
        spacerItem5 = QtGui.QSpacerItem(20, 10, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem5, 1, 0, 1, 1)
        self.gridLayout_2.setColumnStretch(1, 1)
        self.tabWidget.addTab(self.outputTab, "")
        self.uploadTab = QtGui.QWidget()
        self.uploadTab.setObjectName("uploadTab")
        self.gridLayout_4 = QtGui.QGridLayout(self.uploadTab)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.uploadAccessKeyID = QtGui.QLineEdit(self.uploadTab)
        self.uploadAccessKeyID.setEnabled(False)
        self.uploadAccessKeyID.setObjectName("uploadAccessKeyID")
        self.gridLayout_4.addWidget(self.uploadAccessKeyID, 5, 3, 1, 1)
        self.uploadAccessKeyIDLabel = QtGui.QLabel(self.uploadTab)
        self.uploadAccessKeyIDLabel.setEnabled(False)
        self.uploadAccessKeyIDLabel.setObjectName("uploadAccessKeyIDLabel")
        self.gridLayout_4.addWidget(self.uploadAccessKeyIDLabel, 5, 2, 1, 1)
        spacerItem6 = QtGui.QSpacerItem(20, 13, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        self.gridLayout_4.addItem(spacerItem6, 2, 1, 1, 1)
        self.enableUpload = QtGui.QCheckBox(self.uploadTab)
        self.enableUpload.setObjectName("enableUpload")
        self.gridLayout_4.addWidget(self.enableUpload, 1, 1, 1, 3)
        self.uploadSecretAccessKey = QtGui.QLineEdit(self.uploadTab)
        self.uploadSecretAccessKey.setEnabled(False)
        self.uploadSecretAccessKey.setEchoMode(QtGui.QLineEdit.PasswordEchoOnEdit)
        self.uploadSecretAccessKey.setObjectName("uploadSecretAccessKey")
        self.gridLayout_4.addWidget(self.uploadSecretAccessKey, 6, 3, 1, 1)
        self.s3BucketLabel = QtGui.QLabel(self.uploadTab)
        self.s3BucketLabel.setEnabled(False)
        self.s3BucketLabel.setObjectName("s3BucketLabel")
        self.gridLayout_4.addWidget(self.s3BucketLabel, 2, 2, 1, 1)
        self.uploadLabel = QtGui.QLabel(self.uploadTab)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.uploadLabel.setFont(font)
        self.uploadLabel.setObjectName("uploadLabel")
        self.gridLayout_4.addWidget(self.uploadLabel, 0, 0, 1, 3)
        self.uploadDirectoryLabel = QtGui.QLabel(self.uploadTab)
        self.uploadDirectoryLabel.setEnabled(False)
        self.uploadDirectoryLabel.setObjectName("uploadDirectoryLabel")
        self.gridLayout_4.addWidget(self.uploadDirectoryLabel, 4, 2, 1, 1)
        self.uploadDirectory = QtGui.QLineEdit(self.uploadTab)
        self.uploadDirectory.setEnabled(False)
        self.uploadDirectory.setObjectName("uploadDirectory")
        self.gridLayout_4.addWidget(self.uploadDirectory, 4, 3, 1, 1)
        spacerItem7 = QtGui.QSpacerItem(20, 13, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        self.gridLayout_4.addItem(spacerItem7, 1, 0, 1, 1)
        spacerItem8 = QtGui.QSpacerItem(369, 116, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_4.addItem(spacerItem8, 8, 0, 1, 4)
        self.s3Bucket = QtGui.QLineEdit(self.uploadTab)
        self.s3Bucket.setEnabled(False)
        self.s3Bucket.setObjectName("s3Bucket")
        self.gridLayout_4.addWidget(self.s3Bucket, 2, 3, 1, 1)
        self.uploadDeleteOriginal = QtGui.QCheckBox(self.uploadTab)
        self.uploadDeleteOriginal.setEnabled(False)
        self.uploadDeleteOriginal.setObjectName("uploadDeleteOriginal")
        self.gridLayout_4.addWidget(self.uploadDeleteOriginal, 7, 2, 1, 2)
        self.uploadSecretAccessKeyLabel = QtGui.QLabel(self.uploadTab)
        self.uploadSecretAccessKeyLabel.setEnabled(False)
        self.uploadSecretAccessKeyLabel.setObjectName("uploadSecretAccessKeyLabel")
        self.gridLayout_4.addWidget(self.uploadSecretAccessKeyLabel, 6, 2, 1, 1)
        self.awsRegionLabel = QtGui.QLabel(self.uploadTab)
        self.awsRegionLabel.setEnabled(False)
        self.awsRegionLabel.setObjectName("awsRegionLabel")
        self.gridLayout_4.addWidget(self.awsRegionLabel, 3, 2, 1, 1)
        self.awsRegion = QtGui.QLineEdit(self.uploadTab)
        self.awsRegion.setEnabled(False)
        self.awsRegion.setObjectName("awsRegion")
        self.gridLayout_4.addWidget(self.awsRegion, 3, 3, 1, 1)
        self.tabWidget.addTab(self.uploadTab, "")
        self.verticalLayout.addWidget(self.tabWidget)
        self.buttonBox = QtGui.QDialogButtonBox(PreferencesDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(PreferencesDialog)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), PreferencesDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), PreferencesDialog.reject)
        QtCore.QObject.connect(self.enableUpload, QtCore.SIGNAL("toggled(bool)"), self.s3BucketLabel.setEnabled)
        QtCore.QObject.connect(self.enableUpload, QtCore.SIGNAL("toggled(bool)"), self.s3Bucket.setEnabled)
        QtCore.QObject.connect(self.enableUpload, QtCore.SIGNAL("toggled(bool)"), self.uploadDirectoryLabel.setEnabled)
        QtCore.QObject.connect(self.enableUpload, QtCore.SIGNAL("toggled(bool)"), self.uploadDirectory.setEnabled)
        QtCore.QObject.connect(self.enableUpload, QtCore.SIGNAL("toggled(bool)"), self.uploadAccessKeyIDLabel.setEnabled)
        QtCore.QObject.connect(self.enableUpload, QtCore.SIGNAL("toggled(bool)"), self.uploadAccessKeyID.setEnabled)
        QtCore.QObject.connect(self.enableUpload, QtCore.SIGNAL("toggled(bool)"), self.uploadSecretAccessKeyLabel.setEnabled)
        QtCore.QObject.connect(self.enableUpload, QtCore.SIGNAL("toggled(bool)"), self.uploadSecretAccessKey.setEnabled)
        QtCore.QObject.connect(self.enableUpload, QtCore.SIGNAL("toggled(bool)"), self.uploadDeleteOriginal.setEnabled)
        QtCore.QObject.connect(self.enableUpload, QtCore.SIGNAL("toggled(bool)"), self.awsRegionLabel.setEnabled)
        QtCore.QObject.connect(self.enableUpload, QtCore.SIGNAL("toggled(bool)"), self.awsRegion.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(PreferencesDialog)
        PreferencesDialog.setTabOrder(self.tabWidget, self.automaticRGBCheckBox)
        PreferencesDialog.setTabOrder(self.automaticRGBCheckBox, self.metricUnits)
        PreferencesDialog.setTabOrder(self.metricUnits, self.usUnits)
        PreferencesDialog.setTabOrder(self.usUnits, self.mixedUnits)
        PreferencesDialog.setTabOrder(self.mixedUnits, self.outputLocation)
        PreferencesDialog.setTabOrder(self.outputLocation, self.browseButton)
        PreferencesDialog.setTabOrder(self.browseButton, self.compressionLevel)
        PreferencesDialog.setTabOrder(self.compressionLevel, self.enableUpload)
        PreferencesDialog.setTabOrder(self.enableUpload, self.s3Bucket)
        PreferencesDialog.setTabOrder(self.s3Bucket, self.awsRegion)
        PreferencesDialog.setTabOrder(self.awsRegion, self.uploadDirectory)
        PreferencesDialog.setTabOrder(self.uploadDirectory, self.uploadAccessKeyID)
        PreferencesDialog.setTabOrder(self.uploadAccessKeyID, self.uploadSecretAccessKey)
        PreferencesDialog.setTabOrder(self.uploadSecretAccessKey, self.uploadDeleteOriginal)
        PreferencesDialog.setTabOrder(self.uploadDeleteOriginal, self.buttonBox)

    def retranslateUi(self, PreferencesDialog):
        PreferencesDialog.setWindowTitle(QtGui.QApplication.translate("PreferencesDialog", "Preferences", None, QtGui.QApplication.UnicodeUTF8))
        self.automaticRGBCheckBox.setText(QtGui.QApplication.translate("PreferencesDialog", "Automatically set RGB LEDs when connecting/disconnecting", None, QtGui.QApplication.UnicodeUTF8))
        self.ledsLabel.setText(QtGui.QApplication.translate("PreferencesDialog", "RGB LEDs", None, QtGui.QApplication.UnicodeUTF8))
        self.downsamplingLabel.setText(QtGui.QApplication.translate("PreferencesDialog", "Downsampling", None, QtGui.QApplication.UnicodeUTF8))
        self.downsampleCheckBox.setText(QtGui.QApplication.translate("PreferencesDialog", "Downsample high speed channels (for time domain graph only)", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.streamingTab), QtGui.QApplication.translate("PreferencesDialog", "Streaming", None, QtGui.QApplication.UnicodeUTF8))
        self.unitsLabel.setText(QtGui.QApplication.translate("PreferencesDialog", "Display Units", None, QtGui.QApplication.UnicodeUTF8))
        self.metricUnits.setText(QtGui.QApplication.translate("PreferencesDialog", "SI", None, QtGui.QApplication.UnicodeUTF8))
        self.usUnits.setText(QtGui.QApplication.translate("PreferencesDialog", "US Customary", None, QtGui.QApplication.UnicodeUTF8))
        self.mixedUnits.setText(QtGui.QApplication.translate("PreferencesDialog", "Mixed", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.unitTab), QtGui.QApplication.translate("PreferencesDialog", "Units", None, QtGui.QApplication.UnicodeUTF8))
        self.outputLocationLabel.setText(QtGui.QApplication.translate("PreferencesDialog", "Output Location", None, QtGui.QApplication.UnicodeUTF8))
        self.compressionLabel.setText(QtGui.QApplication.translate("PreferencesDialog", "Compression", None, QtGui.QApplication.UnicodeUTF8))
        self.compressionLevelLabel.setText(QtGui.QApplication.translate("PreferencesDialog", "Compression Level (default 6)", None, QtGui.QApplication.UnicodeUTF8))
        self.browseButton.setText(QtGui.QApplication.translate("PreferencesDialog", "Browse...", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.outputTab), QtGui.QApplication.translate("PreferencesDialog", "Output", None, QtGui.QApplication.UnicodeUTF8))
        self.uploadAccessKeyIDLabel.setText(QtGui.QApplication.translate("PreferencesDialog", "AWS Access Key ID", None, QtGui.QApplication.UnicodeUTF8))
        self.enableUpload.setText(QtGui.QApplication.translate("PreferencesDialog", "Enable AWS S3 Upload", None, QtGui.QApplication.UnicodeUTF8))
        self.s3BucketLabel.setText(QtGui.QApplication.translate("PreferencesDialog", "S3 Bucket", None, QtGui.QApplication.UnicodeUTF8))
        self.uploadLabel.setText(QtGui.QApplication.translate("PreferencesDialog", "Amazon S3 Upload", None, QtGui.QApplication.UnicodeUTF8))
        self.uploadDirectoryLabel.setText(QtGui.QApplication.translate("PreferencesDialog", "Upload Directory", None, QtGui.QApplication.UnicodeUTF8))
        self.uploadDeleteOriginal.setText(QtGui.QApplication.translate("PreferencesDialog", "Delete original .apd after successful upload", None, QtGui.QApplication.UnicodeUTF8))
        self.uploadSecretAccessKeyLabel.setText(QtGui.QApplication.translate("PreferencesDialog", "AWS Secret Access Key", None, QtGui.QApplication.UnicodeUTF8))
        self.awsRegionLabel.setText(QtGui.QApplication.translate("PreferencesDialog", "S3 Bucket AWS Region", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.uploadTab), QtGui.QApplication.translate("PreferencesDialog", "Cloud Upload", None, QtGui.QApplication.UnicodeUTF8))

