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

# Form implementation generated from reading ui file '/home/offedetl/Development/Eric4/eric4_0/eric4/Preferences/ConfigurationPages/EditorCalltipsPage.ui'
#
# Created: Thu May 10 08:08:30 2007
#      by: PyQt4 UI code generator 4-snapshot-20070502
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_EditorCalltipsPage(object):
    def setupUi(self, EditorCalltipsPage):
        EditorCalltipsPage.setObjectName("EditorCalltipsPage")
        EditorCalltipsPage.resize(QtCore.QSize(QtCore.QRect(0,0,400,315).size()).expandedTo(EditorCalltipsPage.minimumSizeHint()))

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

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

        self.line18 = QtGui.QFrame(EditorCalltipsPage)
        self.line18.setFrameShape(QtGui.QFrame.HLine)
        self.line18.setFrameShadow(QtGui.QFrame.Sunken)
        self.line18.setFrameShape(QtGui.QFrame.HLine)
        self.line18.setFrameShadow(QtGui.QFrame.Sunken)
        self.line18.setObjectName("line18")
        self.vboxlayout.addWidget(self.line18)

        self.ctEnabledCheckBox = QtGui.QCheckBox(EditorCalltipsPage)
        self.ctEnabledCheckBox.setObjectName("ctEnabledCheckBox")
        self.vboxlayout.addWidget(self.ctEnabledCheckBox)

        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setMargin(0)
        self.hboxlayout.setSpacing(6)
        self.hboxlayout.setObjectName("hboxlayout")

        self.textLabel2 = QtGui.QLabel(EditorCalltipsPage)
        self.textLabel2.setEnabled(False)
        self.textLabel2.setObjectName("textLabel2")
        self.hboxlayout.addWidget(self.textLabel2)

        self.ctVisibleSlider = QtGui.QSlider(EditorCalltipsPage)
        self.ctVisibleSlider.setEnabled(False)
        self.ctVisibleSlider.setMinimum(-1)
        self.ctVisibleSlider.setMaximum(20)
        self.ctVisibleSlider.setOrientation(QtCore.Qt.Horizontal)
        self.ctVisibleSlider.setTickInterval(1)
        self.ctVisibleSlider.setObjectName("ctVisibleSlider")
        self.hboxlayout.addWidget(self.ctVisibleSlider)

        self.lCDNumber5 = QtGui.QLCDNumber(EditorCalltipsPage)
        self.lCDNumber5.setEnabled(False)
        self.lCDNumber5.setNumDigits(2)
        self.lCDNumber5.setSegmentStyle(QtGui.QLCDNumber.Flat)
        self.lCDNumber5.setObjectName("lCDNumber5")
        self.hboxlayout.addWidget(self.lCDNumber5)
        self.vboxlayout.addLayout(self.hboxlayout)

        self.groupBox = QtGui.QGroupBox(EditorCalltipsPage)
        self.groupBox.setObjectName("groupBox")

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

        self.ctNoContextButton = QtGui.QRadioButton(self.groupBox)
        self.ctNoContextButton.setObjectName("ctNoContextButton")
        self.vboxlayout1.addWidget(self.ctNoContextButton)

        self.ctNoAutoCompletionButton = QtGui.QRadioButton(self.groupBox)
        self.ctNoAutoCompletionButton.setObjectName("ctNoAutoCompletionButton")
        self.vboxlayout1.addWidget(self.ctNoAutoCompletionButton)

        self.ctContextButton = QtGui.QRadioButton(self.groupBox)
        self.ctContextButton.setObjectName("ctContextButton")
        self.vboxlayout1.addWidget(self.ctContextButton)

        self.line = QtGui.QFrame(self.groupBox)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName("line")
        self.vboxlayout1.addWidget(self.line)

        self.label = QtGui.QLabel(self.groupBox)
        self.label.setWordWrap(True)
        self.label.setObjectName("label")
        self.vboxlayout1.addWidget(self.label)
        self.vboxlayout.addWidget(self.groupBox)

        spacerItem = QtGui.QSpacerItem(388,21,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
        self.vboxlayout.addItem(spacerItem)

        self.retranslateUi(EditorCalltipsPage)
        QtCore.QObject.connect(self.ctEnabledCheckBox,QtCore.SIGNAL("toggled(bool)"),self.textLabel2.setEnabled)
        QtCore.QObject.connect(self.ctEnabledCheckBox,QtCore.SIGNAL("toggled(bool)"),self.ctVisibleSlider.setEnabled)
        QtCore.QObject.connect(self.ctEnabledCheckBox,QtCore.SIGNAL("toggled(bool)"),self.lCDNumber5.setEnabled)
        QtCore.QObject.connect(self.ctVisibleSlider,QtCore.SIGNAL("valueChanged(int)"),self.lCDNumber5.display)
        QtCore.QMetaObject.connectSlotsByName(EditorCalltipsPage)

    def retranslateUi(self, EditorCalltipsPage):
        self.headerLabel.setText(QtGui.QApplication.translate("EditorCalltipsPage", "<b>Configure Calltips</b>", None, QtGui.QApplication.UnicodeUTF8))
        self.ctEnabledCheckBox.setToolTip(QtGui.QApplication.translate("EditorCalltipsPage", "Select this to enable calltips", None, QtGui.QApplication.UnicodeUTF8))
        self.ctEnabledCheckBox.setText(QtGui.QApplication.translate("EditorCalltipsPage", "Calltips Enabled", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel2.setText(QtGui.QApplication.translate("EditorCalltipsPage", "Visible calltips:", None, QtGui.QApplication.UnicodeUTF8))
        self.ctVisibleSlider.setToolTip(QtGui.QApplication.translate("EditorCalltipsPage", "Move to set the maximum number of calltips shown (0 = all available)", None, QtGui.QApplication.UnicodeUTF8))
        self.lCDNumber5.setToolTip(QtGui.QApplication.translate("EditorCalltipsPage", "Displays the maximum number of calltips to be shown", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("EditorCalltipsPage", "Context display options", None, QtGui.QApplication.UnicodeUTF8))
        self.ctNoContextButton.setToolTip(QtGui.QApplication.translate("EditorCalltipsPage", "Select to display calltips without a context", None, QtGui.QApplication.UnicodeUTF8))
        self.ctNoContextButton.setText(QtGui.QApplication.translate("EditorCalltipsPage", "Don\'t show context information", None, QtGui.QApplication.UnicodeUTF8))
        self.ctNoAutoCompletionButton.setToolTip(QtGui.QApplication.translate("EditorCalltipsPage", "Select to display calltips with a context only if the user hasn\'t already implicitly identified the context using autocompletion", None, QtGui.QApplication.UnicodeUTF8))
        self.ctNoAutoCompletionButton.setText(QtGui.QApplication.translate("EditorCalltipsPage", "Show context information, if no prior autocompletion", None, QtGui.QApplication.UnicodeUTF8))
        self.ctContextButton.setToolTip(QtGui.QApplication.translate("EditorCalltipsPage", "Select to display calltips with a context", None, QtGui.QApplication.UnicodeUTF8))
        self.ctContextButton.setText(QtGui.QApplication.translate("EditorCalltipsPage", "Show context information", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("EditorCalltipsPage", "A context is any scope (e.g. a C++ namespace or a Python module) prior to the function/method name.", None, QtGui.QApplication.UnicodeUTF8))



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