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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric4/eric4_2/eric4/Preferences/ConfigurationPages/EditorGeneralPage.ui'
#
# Created: Thu Mar 27 12:53:13 2008
#      by: PyQt4 UI code generator 4.3.4-snapshot-20080307
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_EditorGeneralPage(object):
    def setupUi(self, EditorGeneralPage):
        EditorGeneralPage.setObjectName("EditorGeneralPage")
        EditorGeneralPage.resize(QtCore.QSize(QtCore.QRect(0,0,547,593).size()).expandedTo(EditorGeneralPage.minimumSizeHint()))

        self.vboxlayout = QtGui.QVBoxLayout(EditorGeneralPage)
        self.vboxlayout.setSpacing(6)
        self.vboxlayout.setMargin(6)
        self.vboxlayout.setObjectName("vboxlayout")

        self.headerLabel = QtGui.QLabel(EditorGeneralPage)
        self.headerLabel.setObjectName("headerLabel")
        self.vboxlayout.addWidget(self.headerLabel)

        self.line2 = QtGui.QFrame(EditorGeneralPage)
        self.line2.setFrameShape(QtGui.QFrame.HLine)
        self.line2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line2.setFrameShape(QtGui.QFrame.HLine)
        self.line2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line2.setObjectName("line2")
        self.vboxlayout.addWidget(self.line2)

        self.groupBox_5 = QtGui.QGroupBox(EditorGeneralPage)
        self.groupBox_5.setObjectName("groupBox_5")

        self.vboxlayout1 = QtGui.QVBoxLayout(self.groupBox_5)
        self.vboxlayout1.setSpacing(6)
        self.vboxlayout1.setMargin(6)
        self.vboxlayout1.setObjectName("vboxlayout1")

        self.gridlayout = QtGui.QGridLayout()
        self.gridlayout.setObjectName("gridlayout")

        self.TextLabel13_3 = QtGui.QLabel(self.groupBox_5)
        self.TextLabel13_3.setObjectName("TextLabel13_3")
        self.gridlayout.addWidget(self.TextLabel13_3,0,0,1,1)

        self.tabwidthSlider = QtGui.QSlider(self.groupBox_5)
        self.tabwidthSlider.setMinimum(1)
        self.tabwidthSlider.setMaximum(20)
        self.tabwidthSlider.setProperty("value",QtCore.QVariant(4))
        self.tabwidthSlider.setOrientation(QtCore.Qt.Horizontal)
        self.tabwidthSlider.setTickInterval(1)
        self.tabwidthSlider.setObjectName("tabwidthSlider")
        self.gridlayout.addWidget(self.tabwidthSlider,0,1,1,1)

        self.tabwidthLCD = QtGui.QLCDNumber(self.groupBox_5)
        self.tabwidthLCD.setNumDigits(2)
        self.tabwidthLCD.setSegmentStyle(QtGui.QLCDNumber.Flat)
        self.tabwidthLCD.setProperty("value",QtCore.QVariant(4.0))
        self.tabwidthLCD.setObjectName("tabwidthLCD")
        self.gridlayout.addWidget(self.tabwidthLCD,0,2,1,1)

        self.TextLabel13_2_3 = QtGui.QLabel(self.groupBox_5)
        self.TextLabel13_2_3.setObjectName("TextLabel13_2_3")
        self.gridlayout.addWidget(self.TextLabel13_2_3,1,0,1,1)

        self.indentwidthSlider = QtGui.QSlider(self.groupBox_5)
        self.indentwidthSlider.setMinimum(1)
        self.indentwidthSlider.setMaximum(20)
        self.indentwidthSlider.setProperty("value",QtCore.QVariant(4))
        self.indentwidthSlider.setOrientation(QtCore.Qt.Horizontal)
        self.indentwidthSlider.setTickInterval(1)
        self.indentwidthSlider.setObjectName("indentwidthSlider")
        self.gridlayout.addWidget(self.indentwidthSlider,1,1,1,1)

        self.indentwidthLCD = QtGui.QLCDNumber(self.groupBox_5)
        self.indentwidthLCD.setNumDigits(2)
        self.indentwidthLCD.setSegmentStyle(QtGui.QLCDNumber.Flat)
        self.indentwidthLCD.setProperty("value",QtCore.QVariant(4.0))
        self.indentwidthLCD.setObjectName("indentwidthLCD")
        self.gridlayout.addWidget(self.indentwidthLCD,1,2,1,1)
        self.vboxlayout1.addLayout(self.gridlayout)

        self.gridlayout1 = QtGui.QGridLayout()
        self.gridlayout1.setObjectName("gridlayout1")

        self.indentguidesCheckBox = QtGui.QCheckBox(self.groupBox_5)
        self.indentguidesCheckBox.setObjectName("indentguidesCheckBox")
        self.gridlayout1.addWidget(self.indentguidesCheckBox,0,0,1,1)

        self.tabforindentationCheckBox = QtGui.QCheckBox(self.groupBox_5)
        self.tabforindentationCheckBox.setObjectName("tabforindentationCheckBox")
        self.gridlayout1.addWidget(self.tabforindentationCheckBox,0,1,1,1)

        self.autoindentCheckBox = QtGui.QCheckBox(self.groupBox_5)
        self.autoindentCheckBox.setObjectName("autoindentCheckBox")
        self.gridlayout1.addWidget(self.autoindentCheckBox,1,0,1,1)

        self.converttabsCheckBox = QtGui.QCheckBox(self.groupBox_5)
        self.converttabsCheckBox.setObjectName("converttabsCheckBox")
        self.gridlayout1.addWidget(self.converttabsCheckBox,1,1,1,1)

        self.tabindentsCheckBox = QtGui.QCheckBox(self.groupBox_5)
        self.tabindentsCheckBox.setObjectName("tabindentsCheckBox")
        self.gridlayout1.addWidget(self.tabindentsCheckBox,2,0,1,1)
        self.vboxlayout1.addLayout(self.gridlayout1)
        self.vboxlayout.addWidget(self.groupBox_5)

        spacerItem = QtGui.QSpacerItem(535,101,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
        self.vboxlayout.addItem(spacerItem)
        self.TextLabel13_3.setBuddy(self.tabwidthSlider)
        self.TextLabel13_2_3.setBuddy(self.indentwidthSlider)

        self.retranslateUi(EditorGeneralPage)
        QtCore.QObject.connect(self.tabwidthSlider,QtCore.SIGNAL("valueChanged(int)"),self.tabwidthLCD.display)
        QtCore.QObject.connect(self.indentwidthSlider,QtCore.SIGNAL("valueChanged(int)"),self.indentwidthLCD.display)
        QtCore.QMetaObject.connectSlotsByName(EditorGeneralPage)
        EditorGeneralPage.setTabOrder(self.tabwidthSlider,self.indentwidthSlider)
        EditorGeneralPage.setTabOrder(self.indentwidthSlider,self.indentguidesCheckBox)
        EditorGeneralPage.setTabOrder(self.indentguidesCheckBox,self.autoindentCheckBox)
        EditorGeneralPage.setTabOrder(self.autoindentCheckBox,self.tabindentsCheckBox)
        EditorGeneralPage.setTabOrder(self.tabindentsCheckBox,self.tabforindentationCheckBox)
        EditorGeneralPage.setTabOrder(self.tabforindentationCheckBox,self.converttabsCheckBox)

    def retranslateUi(self, EditorGeneralPage):
        self.headerLabel.setText(QtGui.QApplication.translate("EditorGeneralPage", "<b>Configure general editor settings</b>", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_5.setTitle(QtGui.QApplication.translate("EditorGeneralPage", "Tabs && Indentation", None, QtGui.QApplication.UnicodeUTF8))
        self.TextLabel13_3.setText(QtGui.QApplication.translate("EditorGeneralPage", "Tab width:", None, QtGui.QApplication.UnicodeUTF8))
        self.tabwidthSlider.setToolTip(QtGui.QApplication.translate("EditorGeneralPage", "Move to set the tab width.", None, QtGui.QApplication.UnicodeUTF8))
        self.tabwidthLCD.setToolTip(QtGui.QApplication.translate("EditorGeneralPage", "Displays the selected tab width.", None, QtGui.QApplication.UnicodeUTF8))
        self.TextLabel13_2_3.setText(QtGui.QApplication.translate("EditorGeneralPage", "Indentation width:", None, QtGui.QApplication.UnicodeUTF8))
        self.indentwidthSlider.setToolTip(QtGui.QApplication.translate("EditorGeneralPage", "Move to set the indentation width.", None, QtGui.QApplication.UnicodeUTF8))
        self.indentwidthLCD.setToolTip(QtGui.QApplication.translate("EditorGeneralPage", "Displays the selected indentation width.", None, QtGui.QApplication.UnicodeUTF8))
        self.indentguidesCheckBox.setToolTip(QtGui.QApplication.translate("EditorGeneralPage", "Select whether indentation guides should be shown.", None, QtGui.QApplication.UnicodeUTF8))
        self.indentguidesCheckBox.setText(QtGui.QApplication.translate("EditorGeneralPage", "Show Indentation Guides", None, QtGui.QApplication.UnicodeUTF8))
        self.tabforindentationCheckBox.setToolTip(QtGui.QApplication.translate("EditorGeneralPage", "Select whether tab characters are used for indentations.", None, QtGui.QApplication.UnicodeUTF8))
        self.tabforindentationCheckBox.setText(QtGui.QApplication.translate("EditorGeneralPage", "Use tabs for indentations", None, QtGui.QApplication.UnicodeUTF8))
        self.autoindentCheckBox.setToolTip(QtGui.QApplication.translate("EditorGeneralPage", "Select whether autoindentation shall be enabled", None, QtGui.QApplication.UnicodeUTF8))
        self.autoindentCheckBox.setText(QtGui.QApplication.translate("EditorGeneralPage", "Auto indentation", None, QtGui.QApplication.UnicodeUTF8))
        self.converttabsCheckBox.setToolTip(QtGui.QApplication.translate("EditorGeneralPage", "Select whether tabs shall be converted upon opening the file", None, QtGui.QApplication.UnicodeUTF8))
        self.converttabsCheckBox.setText(QtGui.QApplication.translate("EditorGeneralPage", "Convert tabs upon open", None, QtGui.QApplication.UnicodeUTF8))
        self.tabindentsCheckBox.setToolTip(QtGui.QApplication.translate("EditorGeneralPage", "Select whether pressing the tab key indents.", None, QtGui.QApplication.UnicodeUTF8))
        self.tabindentsCheckBox.setText(QtGui.QApplication.translate("EditorGeneralPage", "Tab key indents", None, QtGui.QApplication.UnicodeUTF8))


if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    EditorGeneralPage = QtGui.QWidget()
    ui = Ui_EditorGeneralPage()
    ui.setupUi(EditorGeneralPage)
    EditorGeneralPage.show()
    sys.exit(app.exec_())
