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

# Form implementation generated from reading ui file '/home/phil/work/releaseforge/ReleaseForge/helpBA.ui'
#
# Created: Sat Apr 22 07:41:09 2006
#      by: The PyQt User Interface Compiler (pyuic) 3.15
#
# WARNING! All changes made in this file will be lost!


from qt import *


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

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

        self.setSizeGripEnabled(1)

        HelpBALayout = QGridLayout(self,1,1,11,6,"HelpBALayout")

        self.helpTextBrowser = QTextBrowser(self,"helpTextBrowser")

        HelpBALayout.addWidget(self.helpTextBrowser,1,0)

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

        self.buttonBack = QPushButton(self,"buttonBack")
        self.buttonBack.setAutoDefault(0)
        layout7.addWidget(self.buttonBack)

        self.buttonForward = QPushButton(self,"buttonForward")
        self.buttonForward.setAutoDefault(0)
        self.buttonForward.setDefault(0)
        layout7.addWidget(self.buttonForward)

        self.buttonHome = QPushButton(self,"buttonHome")
        self.buttonHome.setAutoDefault(0)
        layout7.addWidget(self.buttonHome)
        spacer12 = QSpacerItem(60,21,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout7.addItem(spacer12)

        self.buttonClose = QPushButton(self,"buttonClose")
        self.buttonClose.setAutoDefault(0)
        layout7.addWidget(self.buttonClose)

        HelpBALayout.addLayout(layout7,0,0)

        self.languageChange()

        self.resize(QSize(594,543).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.buttonForward,SIGNAL("clicked()"),self.forward_slot)
        self.connect(self.buttonHome,SIGNAL("clicked()"),self.home_slot)
        self.connect(self.buttonBack,SIGNAL("clicked()"),self.back_slot)
        self.connect(self.buttonClose,SIGNAL("clicked()"),self.reject)

        self.setTabOrder(self.buttonBack,self.buttonForward)
        self.setTabOrder(self.buttonForward,self.buttonHome)
        self.setTabOrder(self.buttonHome,self.buttonClose)
        self.setTabOrder(self.buttonClose,self.helpTextBrowser)


    def languageChange(self):
        self.setCaption(self.__tr("ReleaseForge Help"))
        self.buttonBack.setText(self.__tr("<< &Back"))
        self.buttonBack.setAccel(self.__tr("Alt+B"))
        self.buttonForward.setText(self.__tr("&Forward >>"))
        self.buttonForward.setAccel(self.__tr("Alt+F"))
        self.buttonHome.setText(self.__tr("&Home"))
        self.buttonHome.setAccel(self.__tr("Alt+H"))
        self.buttonClose.setText(self.__tr("&Close"))
        self.buttonClose.setAccel(self.__tr("Alt+C"))


    def back_slot(self):
        print "HelpBA.back_slot(): Not implemented yet"

    def forward_slot(self):
        print "HelpBA.forward_slot(): Not implemented yet"

    def home_slot(self):
        print "HelpBA.home_slot(): Not implemented yet"

    def close_slot(self):
        print "HelpBA.close_slot(): Not implemented yet"

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