layout.addWidget(self.screens)
layout.addLayout(hlayout)
self.setLayout(layout)
- self.resize(800, 600)
+ self.resize(800, 500)
for link in (self.nav.main, self.nav.config):
self.connect(link, SIGNAL('linkActivated(QString)'),
def showLogWindow(self, link):
self.logWindow.show()
- self.logWindow.resize(800, 400)
+ self.logWindow.resize(800, 200)
self.logWindow.raise_()
self.logWindow.activateWindow()
SfaScreen.__init__(self, parent)
widget = ConfigWidget(self)
- self.init(widget, "Configure", "Configure the OneLab Federation GUI")
+ self.init(widget, "Configure", "Configure the OneLab SFA crawler")
SfaScreen.__init__(self, parent)
slice = SliceWidget(self)
- self.init(slice, "Main Window", "OneLab Federation GUI")
+ self.init(slice, "Main Window", "OneLab SFA crawler")
def rspecUpdated(self):
self.mainwin.rspecWindow.updateView()
if config.verbose:
self._trace=time.time()
command = "%s %s" % (self.exe, self.args.join(" "))
- print time.strftime('%M:%S'),'Invoking',command
+ print time.strftime('%H:%M:%S'),'Invoking',command
def trace_end (self):
if config.verbose:
- command = "%s %s" % (self.exe, self.args.join(" "))
- print time.strftime('%M:%S'),"[%.3f s]"%(time.time()-self._trace),command,'Done'
+# command = "%s %s" % (self.exe, self.args.join(" "))
+ print time.strftime('%H:%M:%S'),"Done [%.3f s]"%(time.time()-self._trace)
+ if config.debug:
self.xmlrpctracker.getAndPrint(self.output)
highGlobPattern = '<<b>%s</b>%s>'
highAttPattern = ' <b>%s</b>="%s"'
def getHtmlText(plainText, globPattern, attPattern):
- print "PLAIN TEXT:", plainText
+# print "PLAIN TEXT:", plainText
tmp = plainText.split(' ', 1)
- print "TMP:", tmp
+# print "TMP:", tmp
elemName = tmp[0]
AttListHtml = ''
if len(tmp) > 1:
def colorize(color, text):
return '<font color=' + color + '>' + text + '</font>'
text = str(index.model().data(index).property('content').toString())
- print "TEXT:", text
+# print "TEXT:", text
if option.state & QStyle.State_Selected:
htmlText = colorize(palette.highlightedText().color().name(),
getHtmlText(text, highGlobPattern, highAttPattern))
if option.state & QStyle.State_Selected \
else palette.base().color()
painter.save()
- print "COLOR:", color.name()
+# print "COLOR:", color.name()
# voodoo: if not highlighted, filling the rect
# with the base color makes no difference
painter.fillRect(option.rect, color)