1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
# -*- 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)
|