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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_9/eric3/Debugger/VariableDetailForm.ui'
#
# Created: So Jan 15 12:46:41 2006
#      by: The PyQt User Interface Compiler (pyuic) 3.15.1
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


class VariableDetailForm(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

        if not name:
            self.setName("VariableDetailForm")


        VariableDetailFormLayout = QVBoxLayout(self,6,6,"VariableDetailFormLayout")

        Layout2 = QGridLayout(None,1,1,0,6,"Layout2")

        self.TextLabel1 = QLabel(self,"TextLabel1")

        Layout2.addWidget(self.TextLabel1,0,0)

        self.eType = QLineEdit(self,"eType")
        self.eType.setReadOnly(1)

        Layout2.addWidget(self.eType,1,1)

        self.eValue = QTextEdit(self,"eValue")
        self.eValue.setTextFormat(QTextEdit.PlainText)
        self.eValue.setReadOnly(1)

        Layout2.addWidget(self.eValue,2,1)

        self.eName = QLineEdit(self,"eName")
        self.eName.setReadOnly(1)

        Layout2.addWidget(self.eName,0,1)

        self.TextLabel2 = QLabel(self,"TextLabel2")

        Layout2.addWidget(self.TextLabel2,1,0)

        self.TextLabel3 = QLabel(self,"TextLabel3")
        self.TextLabel3.setAlignment(QLabel.AlignTop)

        Layout2.addWidget(self.TextLabel3,2,0)
        VariableDetailFormLayout.addLayout(Layout2)

        Layout1 = QHBoxLayout(None,0,6,"Layout1")
        Spacer1 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout1.addItem(Spacer1)

        self.PushButton1 = QPushButton(self,"PushButton1")
        self.PushButton1.setDefault(1)
        Layout1.addWidget(self.PushButton1)
        Spacer2 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout1.addItem(Spacer2)
        VariableDetailFormLayout.addLayout(Layout1)

        self.languageChange()

        self.resize(QSize(406,281).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.PushButton1,SIGNAL("clicked()"),self.accept)

        self.setTabOrder(self.eName,self.eType)
        self.setTabOrder(self.eType,self.eValue)
        self.setTabOrder(self.eValue,self.PushButton1)


    def languageChange(self):
        self.setCaption(self.__tr("Variable Details"))
        self.TextLabel1.setText(self.__tr("Name:"))
        self.TextLabel2.setText(self.__tr("Type:"))
        self.TextLabel3.setText(self.__tr("Value:"))
        self.PushButton1.setText(self.__tr("&OK"))
        self.PushButton1.setAccel(self.__tr("Alt+O"))


    def __tr(self,s,c = None):
        return qApp.translate("VariableDetailForm",s,c)

if __name__ == "__main__":
    a = QApplication(sys.argv)
    QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
    w = VariableDetailForm()
    a.setMainWidget(w)
    w.show()
    a.exec_loop()
