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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_6/eric3/UI/AboutForm.ui'
#
# Created: Do Dez 30 14:12:51 2004
#      by: The PyQt User Interface Compiler (pyuic) snapshot-20041229
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *

image0_data = [
"32 32 31 1",
"k c #0e0d0c",
"j c #24201e",
"i c #46352d",
"n c #55433d",
"e c #5e5441",
"u c #754a35",
"r c #775b3e",
"h c #7f6a4a",
"m c #887b79",
"C c #897a54",
"o c #9a5b40",
"f c #9c9496",
"B c #9e9069",
"q c #a26d47",
"A c #a6835d",
"g c #aea18a",
"x c #b3704d",
"l c #b9b2ad",
"t c #bb7e57",
"v c #bc9076",
"w c #c99068",
"y c #c9a182",
"d c #ccbfb4",
"z c #d7b49b",
"a c #d7d0cc",
"s c #dea284",
"b c #e0dedd",
"c c #ece8e8",
"# c #f1f0f0",
"p c #ff0000",
". c #ffffff",
"................##.abbc.........",
"...............#aadeeefa........",
"...............cghijjjifa#......",
"..............cgejkkkjkjel#.....",
"............#amnkkkkkkkjjf#.....",
"...........#leijkkkjiojkimb.....",
"....p...p..aejjkkkjjjqenonf.....",
"...p.....p.lijerjkjjjqsstol#....",
"...p.....p.anmtuiiuumvwxoimb....",
"....p...p.#mnyouiowooooouuq.....",
".....ppp..#dlfqooqttxouoouz.....",
"...........#hqwwooxxtxooxtb.....",
"...........clmwtxooxwtxuxw#.....",
"...ppppppp...dsottooxtoooz......",
"............#sstxxvvqtxtqw......",
"............aswoqhtywxoqtA......",
"....pp...p..zwtd#qAtArABqy......",
"...p..p.p...cc#flCBACCed........",
"...p..pp....#cdegggBCBhB........",
"...ppppppp..#lmCgBBBBBAA........",
".............gnBBBBCCChC........",
"............cleChhCCChChb.......",
"...p.....p..bfeBheeheeerB.......",
"...p..p..p..bffBBCeneenCC.......",
"...p..p..p...#afBBCejinhB.......",
"...ppppppp..##bCeheCkierd.......",
".............#lBCCejjieel.......",
"...........##blgCCejieuhqz#.....",
"............#blggBAeierhyvy.....",
"...........###lggAvAfmrAAtv#....",
".............#lgvtwtdbaazzc.....",
"..............#dzyydc#.#.#......"
]

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

        self.image0 = QPixmap(image0_data)

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


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

        layout3 = QHBoxLayout(None,0,6,"layout3")

        self.pixmapLabel1 = QLabel(self,"pixmapLabel1")
        self.pixmapLabel1.setPixmap(self.image0)
        self.pixmapLabel1.setScaledContents(0)
        layout3.addWidget(self.pixmapLabel1)

        self.ericLabel = QLabel(self,"ericLabel")
        self.ericLabel.setSizePolicy(QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Preferred,0,0,self.ericLabel.sizePolicy().hasHeightForWidth()))
        ericLabel_font = QFont(self.ericLabel.font())
        ericLabel_font.setBold(1)
        self.ericLabel.setFont(ericLabel_font)
        layout3.addWidget(self.ericLabel)
        AboutFormLayout.addLayout(layout3)

        self.tabWidget2 = QTabWidget(self,"tabWidget2")

        self.about = QWidget(self.tabWidget2,"about")
        aboutLayout = QVBoxLayout(self.about,6,6,"aboutLayout")

        self.aboutEdit = QTextBrowser(self.about,"aboutEdit")
        self.aboutEdit.setFrameShape(QTextBrowser.NoFrame)
        self.aboutEdit.setWordWrap(QTextBrowser.FixedColumnWidth)
        aboutLayout.addWidget(self.aboutEdit)
        self.tabWidget2.insertTab(self.about,QString(""))

        self.authors = QWidget(self.tabWidget2,"authors")
        authorsLayout = QVBoxLayout(self.authors,6,6,"authorsLayout")

        self.authorsEdit = QTextEdit(self.authors,"authorsEdit")
        self.authorsEdit.setFrameShape(QTextEdit.NoFrame)
        self.authorsEdit.setWordWrap(QTextEdit.FixedColumnWidth)
        self.authorsEdit.setWrapColumnOrWidth(80)
        self.authorsEdit.setReadOnly(1)
        authorsLayout.addWidget(self.authorsEdit)
        self.tabWidget2.insertTab(self.authors,QString(""))

        self.thanks = QWidget(self.tabWidget2,"thanks")
        thanksLayout = QVBoxLayout(self.thanks,6,6,"thanksLayout")

        self.thanksEdit = QTextEdit(self.thanks,"thanksEdit")
        self.thanksEdit.setFrameShape(QTextEdit.NoFrame)
        self.thanksEdit.setReadOnly(1)
        thanksLayout.addWidget(self.thanksEdit)
        self.tabWidget2.insertTab(self.thanks,QString(""))

        self.license = QWidget(self.tabWidget2,"license")
        licenseLayout = QVBoxLayout(self.license,6,6,"licenseLayout")

        self.licenseEdit = QTextEdit(self.license,"licenseEdit")
        self.licenseEdit.setFrameShape(QTextEdit.NoFrame)
        self.licenseEdit.setTextFormat(QTextEdit.PlainText)
        self.licenseEdit.setWordWrap(QTextEdit.FixedColumnWidth)
        self.licenseEdit.setWrapColumnOrWidth(80)
        self.licenseEdit.setReadOnly(1)
        licenseLayout.addWidget(self.licenseEdit)
        self.tabWidget2.insertTab(self.license,QString(""))
        AboutFormLayout.addWidget(self.tabWidget2)

        layout1 = QHBoxLayout(None,0,6,"layout1")
        spacer1 = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout1.addItem(spacer1)

        self.pushButton1 = QPushButton(self,"pushButton1")
        layout1.addWidget(self.pushButton1)
        spacer2 = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout1.addItem(spacer2)
        AboutFormLayout.addLayout(layout1)

        self.languageChange()

        self.resize(QSize(532,437).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.pushButton1,SIGNAL("clicked()"),self.accept)
        self.connect(self.aboutEdit,SIGNAL("linkClicked(const QString&)"),self.handleLinkClicked)


    def languageChange(self):
        self.setCaption(self.__tr("About Eric"))
        self.tabWidget2.changeTab(self.about,self.__tr("&About"))
        self.tabWidget2.changeTab(self.authors,self.__tr("A&uthors"))
        self.tabWidget2.changeTab(self.thanks,self.__tr("&Thanks To"))
        self.tabWidget2.changeTab(self.license,self.__tr("&License Agreement"))
        self.pushButton1.setText(self.__tr("&Close"))
        self.pushButton1.setAccel(self.__tr("Alt+C"))


    def handleLinkClicked(self,a0):
        print "AboutForm.handleLinkClicked(const QString&): Not implemented yet"

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

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